Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit f1bb5d6

Browse files
yoshi-automationchingor13
authored andcommitted
feat(regen): add SpeechContext (#45)
1 parent 934c211 commit f1bb5d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+6356
-1078
lines changed

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java

Lines changed: 86 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
2727
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
2828
}
2929

30+
static final com.google.protobuf.Descriptors.Descriptor
31+
internal_static_google_cloud_dialogflow_v2_SpeechContext_descriptor;
32+
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
33+
internal_static_google_cloud_dialogflow_v2_SpeechContext_fieldAccessorTable;
34+
static final com.google.protobuf.Descriptors.Descriptor
35+
internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_descriptor;
36+
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
37+
internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_fieldAccessorTable;
3038
static final com.google.protobuf.Descriptors.Descriptor
3139
internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor;
3240
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -56,48 +64,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
5664
+ "g.proto\022\032google.cloud.dialogflow.v2\032\037goo"
5765
+ "gle/api/field_behavior.proto\032\031google/api"
5866
+ "/resource.proto\032\036google/protobuf/duratio"
59-
+ "n.proto\032\034google/api/annotations.proto\"\376\001"
60-
+ "\n\020InputAudioConfig\022A\n\016audio_encoding\030\001 \001"
61-
+ "(\0162).google.cloud.dialogflow.v2.AudioEnc"
62-
+ "oding\022\031\n\021sample_rate_hertz\030\002 \001(\005\022\025\n\rlang"
63-
+ "uage_code\030\003 \001(\t\022\024\n\014phrase_hints\030\004 \003(\t\022E\n"
64-
+ "\rmodel_variant\030\n \001(\0162..google.cloud.dial"
65-
+ "ogflow.v2.SpeechModelVariant\022\030\n\020single_u"
66-
+ "tterance\030\010 \001(\010\"f\n\024VoiceSelectionParams\022\014"
67-
+ "\n\004name\030\001 \001(\t\022@\n\013ssml_gender\030\002 \001(\0162+.goog"
68-
+ "le.cloud.dialogflow.v2.SsmlVoiceGender\"\263"
69-
+ "\001\n\026SynthesizeSpeechConfig\022\025\n\rspeaking_ra"
70-
+ "te\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016volume_gain_d"
71-
+ "b\030\003 \001(\001\022\032\n\022effects_profile_id\030\005 \003(\t\022?\n\005v"
72-
+ "oice\030\004 \001(\01320.google.cloud.dialogflow.v2."
73-
+ "VoiceSelectionParams\"\315\001\n\021OutputAudioConf"
74-
+ "ig\022G\n\016audio_encoding\030\001 \001(\0162/.google.clou"
75-
+ "d.dialogflow.v2.OutputAudioEncoding\022\031\n\021s"
76-
+ "ample_rate_hertz\030\002 \001(\005\022T\n\030synthesize_spe"
77-
+ "ech_config\030\003 \001(\01322.google.cloud.dialogfl"
78-
+ "ow.v2.SynthesizeSpeechConfig*\373\001\n\rAudioEn"
79-
+ "coding\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\034"
80-
+ "\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n\023AUDIO_EN"
81-
+ "CODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MULAW\020\003\022"
82-
+ "\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDIO_ENCODIN"
83-
+ "G_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_OPUS\020\006\022"
84-
+ ")\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
85-
+ "\020\007*v\n\022SpeechModelVariant\022$\n SPEECH_MODEL"
86-
+ "_VARIANT_UNSPECIFIED\020\000\022\026\n\022USE_BEST_AVAIL"
87-
+ "ABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014USE_ENHANCED"
88-
+ "\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_GEN"
89-
+ "DER_UNSPECIFIED\020\000\022\032\n\026SSML_VOICE_GENDER_M"
90-
+ "ALE\020\001\022\034\n\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n\031S"
91-
+ "SML_VOICE_GENDER_NEUTRAL\020\003*\244\001\n\023OutputAud"
92-
+ "ioEncoding\022%\n!OUTPUT_AUDIO_ENCODING_UNSP"
93-
+ "ECIFIED\020\000\022#\n\037OUTPUT_AUDIO_ENCODING_LINEA"
94-
+ "R_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022\"\n"
95-
+ "\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003B\237\001\n\036co"
96-
+ "m.google.cloud.dialogflow.v2B\020AudioConfi"
97-
+ "gProtoP\001ZDgoogle.golang.org/genproto/goo"
98-
+ "gleapis/cloud/dialogflow/v2;dialogflow\370\001"
99-
+ "\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006pro"
100-
+ "to3"
67+
+ "n.proto\032\034google/api/annotations.proto\"/\n"
68+
+ "\rSpeechContext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost"
69+
+ "\030\002 \001(\002\"\222\001\n\016SpeechWordInfo\022\014\n\004word\030\003 \001(\t\022"
70+
+ "/\n\014start_offset\030\001 \001(\0132\031.google.protobuf."
71+
+ "Duration\022-\n\nend_offset\030\002 \001(\0132\031.google.pr"
72+
+ "otobuf.Duration\022\022\n\nconfidence\030\004 \001(\002\"\201\003\n\020"
73+
+ "InputAudioConfig\022A\n\016audio_encoding\030\001 \001(\016"
74+
+ "2).google.cloud.dialogflow.v2.AudioEncod"
75+
+ "ing\022\031\n\021sample_rate_hertz\030\002 \001(\005\022\025\n\rlangua"
76+
+ "ge_code\030\003 \001(\t\022\035\n\020enable_word_info\030\r \001(\010B"
77+
+ "\003\340A\001\022\033\n\014phrase_hints\030\004 \003(\tB\005\030\001\340A\001\022G\n\017spe"
78+
+ "ech_contexts\030\013 \003(\0132).google.cloud.dialog"
79+
+ "flow.v2.SpeechContextB\003\340A\001\022\022\n\005model\030\007 \001("
80+
+ "\tB\003\340A\001\022E\n\rmodel_variant\030\n \001(\0162..google.c"
81+
+ "loud.dialogflow.v2.SpeechModelVariant\022\030\n"
82+
+ "\020single_utterance\030\010 \001(\010\"f\n\024VoiceSelectio"
83+
+ "nParams\022\014\n\004name\030\001 \001(\t\022@\n\013ssml_gender\030\002 \001"
84+
+ "(\0162+.google.cloud.dialogflow.v2.SsmlVoic"
85+
+ "eGender\"\263\001\n\026SynthesizeSpeechConfig\022\025\n\rsp"
86+
+ "eaking_rate\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016volu"
87+
+ "me_gain_db\030\003 \001(\001\022\032\n\022effects_profile_id\030\005"
88+
+ " \003(\t\022?\n\005voice\030\004 \001(\01320.google.cloud.dialo"
89+
+ "gflow.v2.VoiceSelectionParams\"\315\001\n\021Output"
90+
+ "AudioConfig\022G\n\016audio_encoding\030\001 \001(\0162/.go"
91+
+ "ogle.cloud.dialogflow.v2.OutputAudioEnco"
92+
+ "ding\022\031\n\021sample_rate_hertz\030\002 \001(\005\022T\n\030synth"
93+
+ "esize_speech_config\030\003 \001(\01322.google.cloud"
94+
+ ".dialogflow.v2.SynthesizeSpeechConfig*\373\001"
95+
+ "\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING_UNSPEC"
96+
+ "IFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n"
97+
+ "\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING"
98+
+ "_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDI"
99+
+ "O_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OG"
100+
+ "G_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_HE"
101+
+ "ADER_BYTE\020\007*v\n\022SpeechModelVariant\022$\n SPE"
102+
+ "ECH_MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n\022USE_B"
103+
+ "EST_AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014USE"
104+
+ "_ENHANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SSML_"
105+
+ "VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML_VOICE"
106+
+ "_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GENDER_FEMA"
107+
+ "LE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTRAL\020\003*\244\001\n\023"
108+
+ "OutputAudioEncoding\022%\n!OUTPUT_AUDIO_ENCO"
109+
+ "DING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_ENCOD"
110+
+ "ING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODING"
111+
+ "_MP3\020\002\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_OPUS"
112+
+ "\020\003B\237\001\n\036com.google.cloud.dialogflow.v2B\020A"
113+
+ "udioConfigProtoP\001ZDgoogle.golang.org/gen"
114+
+ "proto/googleapis/cloud/dialogflow/v2;dia"
115+
+ "logflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflo"
116+
+ "w.V2b\006proto3"
101117
};
102118
descriptor =
103119
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -108,43 +124,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
108124
com.google.protobuf.DurationProto.getDescriptor(),
109125
com.google.api.AnnotationsProto.getDescriptor(),
110126
});
111-
internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor =
127+
internal_static_google_cloud_dialogflow_v2_SpeechContext_descriptor =
112128
getDescriptor().getMessageTypes().get(0);
129+
internal_static_google_cloud_dialogflow_v2_SpeechContext_fieldAccessorTable =
130+
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
131+
internal_static_google_cloud_dialogflow_v2_SpeechContext_descriptor,
132+
new java.lang.String[] {
133+
"Phrases", "Boost",
134+
});
135+
internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_descriptor =
136+
getDescriptor().getMessageTypes().get(1);
137+
internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_fieldAccessorTable =
138+
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
139+
internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_descriptor,
140+
new java.lang.String[] {
141+
"Word", "StartOffset", "EndOffset", "Confidence",
142+
});
143+
internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor =
144+
getDescriptor().getMessageTypes().get(2);
113145
internal_static_google_cloud_dialogflow_v2_InputAudioConfig_fieldAccessorTable =
114146
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
115147
internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor,
116148
new java.lang.String[] {
117149
"AudioEncoding",
118150
"SampleRateHertz",
119151
"LanguageCode",
152+
"EnableWordInfo",
120153
"PhraseHints",
154+
"SpeechContexts",
155+
"Model",
121156
"ModelVariant",
122157
"SingleUtterance",
123158
});
124159
internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor =
125-
getDescriptor().getMessageTypes().get(1);
160+
getDescriptor().getMessageTypes().get(3);
126161
internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_fieldAccessorTable =
127162
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
128163
internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor,
129164
new java.lang.String[] {
130165
"Name", "SsmlGender",
131166
});
132167
internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor =
133-
getDescriptor().getMessageTypes().get(2);
168+
getDescriptor().getMessageTypes().get(4);
134169
internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_fieldAccessorTable =
135170
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
136171
internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor,
137172
new java.lang.String[] {
138173
"SpeakingRate", "Pitch", "VolumeGainDb", "EffectsProfileId", "Voice",
139174
});
140175
internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor =
141-
getDescriptor().getMessageTypes().get(3);
176+
getDescriptor().getMessageTypes().get(5);
142177
internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_fieldAccessorTable =
143178
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
144179
internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor,
145180
new java.lang.String[] {
146181
"AudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfig",
147182
});
183+
com.google.protobuf.ExtensionRegistry registry =
184+
com.google.protobuf.ExtensionRegistry.newInstance();
185+
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
186+
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
187+
descriptor, registry);
148188
com.google.api.FieldBehaviorProto.getDescriptor();
149189
com.google.api.ResourceProto.getDescriptor();
150190
com.google.protobuf.DurationProto.getDescriptor();

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
141141
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
142142
* The `Context ID` is always converted to lowercase, may only contain
143143
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
144+
* The following context names are reserved for internal use by Dialogflow.
145+
* You should not use these contexts or create contexts with these names:
146+
* * `__system_counters__`
147+
* * `*_id_dialog_context`
148+
* * `*_dialog_params_size`
144149
* </pre>
145150
*
146151
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -166,6 +171,11 @@ public java.lang.String getName() {
166171
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
167172
* The `Context ID` is always converted to lowercase, may only contain
168173
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
174+
* The following context names are reserved for internal use by Dialogflow.
175+
* You should not use these contexts or create contexts with these names:
176+
* * `__system_counters__`
177+
* * `*_id_dialog_context`
178+
* * `*_dialog_params_size`
169179
* </pre>
170180
*
171181
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -623,6 +633,11 @@ public Builder mergeFrom(
623633
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
624634
* The `Context ID` is always converted to lowercase, may only contain
625635
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
636+
* The following context names are reserved for internal use by Dialogflow.
637+
* You should not use these contexts or create contexts with these names:
638+
* * `__system_counters__`
639+
* * `*_id_dialog_context`
640+
* * `*_dialog_params_size`
626641
* </pre>
627642
*
628643
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -648,6 +663,11 @@ public java.lang.String getName() {
648663
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
649664
* The `Context ID` is always converted to lowercase, may only contain
650665
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
666+
* The following context names are reserved for internal use by Dialogflow.
667+
* You should not use these contexts or create contexts with these names:
668+
* * `__system_counters__`
669+
* * `*_id_dialog_context`
670+
* * `*_dialog_params_size`
651671
* </pre>
652672
*
653673
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -673,6 +693,11 @@ public com.google.protobuf.ByteString getNameBytes() {
673693
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
674694
* The `Context ID` is always converted to lowercase, may only contain
675695
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
696+
* The following context names are reserved for internal use by Dialogflow.
697+
* You should not use these contexts or create contexts with these names:
698+
* * `__system_counters__`
699+
* * `*_id_dialog_context`
700+
* * `*_dialog_params_size`
676701
* </pre>
677702
*
678703
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -697,6 +722,11 @@ public Builder setName(java.lang.String value) {
697722
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
698723
* The `Context ID` is always converted to lowercase, may only contain
699724
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
725+
* The following context names are reserved for internal use by Dialogflow.
726+
* You should not use these contexts or create contexts with these names:
727+
* * `__system_counters__`
728+
* * `*_id_dialog_context`
729+
* * `*_dialog_params_size`
700730
* </pre>
701731
*
702732
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -717,6 +747,11 @@ public Builder clearName() {
717747
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
718748
* The `Context ID` is always converted to lowercase, may only contain
719749
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
750+
* The following context names are reserved for internal use by Dialogflow.
751+
* You should not use these contexts or create contexts with these names:
752+
* * `__system_counters__`
753+
* * `*_id_dialog_context`
754+
* * `*_dialog_params_size`
720755
* </pre>
721756
*
722757
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public interface ContextOrBuilder
3131
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3232
* The `Context ID` is always converted to lowercase, may only contain
3333
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
34+
* The following context names are reserved for internal use by Dialogflow.
35+
* You should not use these contexts or create contexts with these names:
36+
* * `__system_counters__`
37+
* * `*_id_dialog_context`
38+
* * `*_dialog_params_size`
3439
* </pre>
3540
*
3641
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -46,6 +51,11 @@ public interface ContextOrBuilder
4651
* `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
4752
* The `Context ID` is always converted to lowercase, may only contain
4853
* characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
54+
* The following context names are reserved for internal use by Dialogflow.
55+
* You should not use these contexts or create contexts with these names:
56+
* * `__system_counters__`
57+
* * `*_id_dialog_context`
58+
* * `*_dialog_params_size`
4959
* </pre>
5060
*
5161
* <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>

0 commit comments

Comments
 (0)