diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1/types/resource.py b/packages/google-cloud-python-speech/google/cloud/speech_v1/types/resource.py index 5a2bed82b248..498dcf4b8b20 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1/types/resource.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1/types/resource.py @@ -184,8 +184,28 @@ class SpeechAdaptation(proto.Message): of its fields, giving it a unique ``custom_class_id``. Refer to the inline defined class in phrase hints by its ``custom_class_id``. + abnf_grammar (google.cloud.speech_v1.types.SpeechAdaptation.ABNFGrammar): + Augmented Backus-Naur form (ABNF) is a + standardized grammar notation comprised by a set + of derivation rules. See specifications: + https://www.w3.org/TR/speech-grammar """ + class ABNFGrammar(proto.Message): + r""" + + Attributes: + abnf_strings (MutableSequence[str]): + All declarations and rules of an ABNF grammar + broken up into multiple strings that will end up + concatenated. + """ + + abnf_strings: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=1, + ) + phrase_sets: MutableSequence["PhraseSet"] = proto.RepeatedField( proto.MESSAGE, number=1, @@ -200,6 +220,11 @@ class SpeechAdaptation(proto.Message): number=3, message="CustomClass", ) + abnf_grammar: ABNFGrammar = proto.Field( + proto.MESSAGE, + number=4, + message=ABNFGrammar, + ) __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/types/resource.py b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/types/resource.py index 01572abfc6cc..edd70b53fea4 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/types/resource.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/types/resource.py @@ -185,8 +185,28 @@ class SpeechAdaptation(proto.Message): of its fields, giving it a unique ``custom_class_id``. Refer to the inline defined class in phrase hints by its ``custom_class_id``. + abnf_grammar (google.cloud.speech_v1p1beta1.types.SpeechAdaptation.ABNFGrammar): + Augmented Backus-Naur form (ABNF) is a + standardized grammar notation comprised by a set + of derivation rules. See specifications: + https://www.w3.org/TR/speech-grammar """ + class ABNFGrammar(proto.Message): + r""" + + Attributes: + abnf_strings (MutableSequence[str]): + All declarations and rules of an ABNF grammar + broken up into multiple strings that will end up + concatenated. + """ + + abnf_strings: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=1, + ) + phrase_sets: MutableSequence["PhraseSet"] = proto.RepeatedField( proto.MESSAGE, number=1, @@ -201,6 +221,11 @@ class SpeechAdaptation(proto.Message): number=3, message="CustomClass", ) + abnf_grammar: ABNFGrammar = proto.Field( + proto.MESSAGE, + number=4, + message=ABNFGrammar, + ) class TranscriptNormalization(proto.Message):