• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/dialogflow/v2/audio_config.proto
18 
19 package com.google.cloud.dialogflow.v2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Gender of the voice as described in
26  * [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
27  * </pre>
28  *
29  * Protobuf enum {@code google.cloud.dialogflow.v2.SsmlVoiceGender}
30  */
31 public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
32   /**
33    *
34    *
35    * <pre>
36    * An unspecified gender, which means that the client doesn't care which
37    * gender the selected voice will have.
38    * </pre>
39    *
40    * <code>SSML_VOICE_GENDER_UNSPECIFIED = 0;</code>
41    */
42   SSML_VOICE_GENDER_UNSPECIFIED(0),
43   /**
44    *
45    *
46    * <pre>
47    * A male voice.
48    * </pre>
49    *
50    * <code>SSML_VOICE_GENDER_MALE = 1;</code>
51    */
52   SSML_VOICE_GENDER_MALE(1),
53   /**
54    *
55    *
56    * <pre>
57    * A female voice.
58    * </pre>
59    *
60    * <code>SSML_VOICE_GENDER_FEMALE = 2;</code>
61    */
62   SSML_VOICE_GENDER_FEMALE(2),
63   /**
64    *
65    *
66    * <pre>
67    * A gender-neutral voice.
68    * </pre>
69    *
70    * <code>SSML_VOICE_GENDER_NEUTRAL = 3;</code>
71    */
72   SSML_VOICE_GENDER_NEUTRAL(3),
73   UNRECOGNIZED(-1),
74   ;
75 
76   /**
77    *
78    *
79    * <pre>
80    * An unspecified gender, which means that the client doesn't care which
81    * gender the selected voice will have.
82    * </pre>
83    *
84    * <code>SSML_VOICE_GENDER_UNSPECIFIED = 0;</code>
85    */
86   public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE = 0;
87   /**
88    *
89    *
90    * <pre>
91    * A male voice.
92    * </pre>
93    *
94    * <code>SSML_VOICE_GENDER_MALE = 1;</code>
95    */
96   public static final int SSML_VOICE_GENDER_MALE_VALUE = 1;
97   /**
98    *
99    *
100    * <pre>
101    * A female voice.
102    * </pre>
103    *
104    * <code>SSML_VOICE_GENDER_FEMALE = 2;</code>
105    */
106   public static final int SSML_VOICE_GENDER_FEMALE_VALUE = 2;
107   /**
108    *
109    *
110    * <pre>
111    * A gender-neutral voice.
112    * </pre>
113    *
114    * <code>SSML_VOICE_GENDER_NEUTRAL = 3;</code>
115    */
116   public static final int SSML_VOICE_GENDER_NEUTRAL_VALUE = 3;
117 
getNumber()118   public final int getNumber() {
119     if (this == UNRECOGNIZED) {
120       throw new java.lang.IllegalArgumentException(
121           "Can't get the number of an unknown enum value.");
122     }
123     return value;
124   }
125 
126   /**
127    * @param value The numeric wire value of the corresponding enum entry.
128    * @return The enum associated with the given numeric wire value.
129    * @deprecated Use {@link #forNumber(int)} instead.
130    */
131   @java.lang.Deprecated
valueOf(int value)132   public static SsmlVoiceGender valueOf(int value) {
133     return forNumber(value);
134   }
135 
136   /**
137    * @param value The numeric wire value of the corresponding enum entry.
138    * @return The enum associated with the given numeric wire value.
139    */
forNumber(int value)140   public static SsmlVoiceGender forNumber(int value) {
141     switch (value) {
142       case 0:
143         return SSML_VOICE_GENDER_UNSPECIFIED;
144       case 1:
145         return SSML_VOICE_GENDER_MALE;
146       case 2:
147         return SSML_VOICE_GENDER_FEMALE;
148       case 3:
149         return SSML_VOICE_GENDER_NEUTRAL;
150       default:
151         return null;
152     }
153   }
154 
internalGetValueMap()155   public static com.google.protobuf.Internal.EnumLiteMap<SsmlVoiceGender> internalGetValueMap() {
156     return internalValueMap;
157   }
158 
159   private static final com.google.protobuf.Internal.EnumLiteMap<SsmlVoiceGender> internalValueMap =
160       new com.google.protobuf.Internal.EnumLiteMap<SsmlVoiceGender>() {
161         public SsmlVoiceGender findValueByNumber(int number) {
162           return SsmlVoiceGender.forNumber(number);
163         }
164       };
165 
getValueDescriptor()166   public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
167     if (this == UNRECOGNIZED) {
168       throw new java.lang.IllegalStateException(
169           "Can't get the descriptor of an unrecognized enum value.");
170     }
171     return getDescriptor().getValues().get(ordinal());
172   }
173 
getDescriptorForType()174   public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
175     return getDescriptor();
176   }
177 
getDescriptor()178   public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
179     return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(2);
180   }
181 
182   private static final SsmlVoiceGender[] VALUES = values();
183 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)184   public static SsmlVoiceGender valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
185     if (desc.getType() != getDescriptor()) {
186       throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
187     }
188     if (desc.getIndex() == -1) {
189       return UNRECOGNIZED;
190     }
191     return VALUES[desc.getIndex()];
192   }
193 
194   private final int value;
195 
SsmlVoiceGender(int value)196   private SsmlVoiceGender(int value) {
197     this.value = value;
198   }
199 
200   // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.SsmlVoiceGender)
201 }
202