• 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/translate/v3/translation_service.proto
18 
19 package com.google.cloud.translate.v3;
20 
21 public interface GlossaryOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Required. The resource name of the glossary. Glossary names have the form
31    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
32    * </pre>
33    *
34    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
35    *
36    * @return The name.
37    */
getName()38   java.lang.String getName();
39   /**
40    *
41    *
42    * <pre>
43    * Required. The resource name of the glossary. Glossary names have the form
44    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
45    * </pre>
46    *
47    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
48    *
49    * @return The bytes for name.
50    */
getNameBytes()51   com.google.protobuf.ByteString getNameBytes();
52 
53   /**
54    *
55    *
56    * <pre>
57    * Used with unidirectional glossaries.
58    * </pre>
59    *
60    * <code>.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;</code>
61    *
62    * @return Whether the languagePair field is set.
63    */
hasLanguagePair()64   boolean hasLanguagePair();
65   /**
66    *
67    *
68    * <pre>
69    * Used with unidirectional glossaries.
70    * </pre>
71    *
72    * <code>.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;</code>
73    *
74    * @return The languagePair.
75    */
getLanguagePair()76   com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair();
77   /**
78    *
79    *
80    * <pre>
81    * Used with unidirectional glossaries.
82    * </pre>
83    *
84    * <code>.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;</code>
85    */
getLanguagePairOrBuilder()86   com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder();
87 
88   /**
89    *
90    *
91    * <pre>
92    * Used with equivalent term set glossaries.
93    * </pre>
94    *
95    * <code>.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;</code>
96    *
97    * @return Whether the languageCodesSet field is set.
98    */
hasLanguageCodesSet()99   boolean hasLanguageCodesSet();
100   /**
101    *
102    *
103    * <pre>
104    * Used with equivalent term set glossaries.
105    * </pre>
106    *
107    * <code>.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;</code>
108    *
109    * @return The languageCodesSet.
110    */
getLanguageCodesSet()111   com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet();
112   /**
113    *
114    *
115    * <pre>
116    * Used with equivalent term set glossaries.
117    * </pre>
118    *
119    * <code>.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;</code>
120    */
getLanguageCodesSetOrBuilder()121   com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder();
122 
123   /**
124    *
125    *
126    * <pre>
127    * Required. Provides examples to build the glossary from.
128    * Total glossary must not exceed 10M Unicode codepoints.
129    * </pre>
130    *
131    * <code>.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;</code>
132    *
133    * @return Whether the inputConfig field is set.
134    */
hasInputConfig()135   boolean hasInputConfig();
136   /**
137    *
138    *
139    * <pre>
140    * Required. Provides examples to build the glossary from.
141    * Total glossary must not exceed 10M Unicode codepoints.
142    * </pre>
143    *
144    * <code>.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;</code>
145    *
146    * @return The inputConfig.
147    */
getInputConfig()148   com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig();
149   /**
150    *
151    *
152    * <pre>
153    * Required. Provides examples to build the glossary from.
154    * Total glossary must not exceed 10M Unicode codepoints.
155    * </pre>
156    *
157    * <code>.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;</code>
158    */
getInputConfigOrBuilder()159   com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
160 
161   /**
162    *
163    *
164    * <pre>
165    * Output only. The number of entries defined in the glossary.
166    * </pre>
167    *
168    * <code>int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
169    *
170    * @return The entryCount.
171    */
getEntryCount()172   int getEntryCount();
173 
174   /**
175    *
176    *
177    * <pre>
178    * Output only. When CreateGlossary was called.
179    * </pre>
180    *
181    * <code>.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
182    * </code>
183    *
184    * @return Whether the submitTime field is set.
185    */
hasSubmitTime()186   boolean hasSubmitTime();
187   /**
188    *
189    *
190    * <pre>
191    * Output only. When CreateGlossary was called.
192    * </pre>
193    *
194    * <code>.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
195    * </code>
196    *
197    * @return The submitTime.
198    */
getSubmitTime()199   com.google.protobuf.Timestamp getSubmitTime();
200   /**
201    *
202    *
203    * <pre>
204    * Output only. When CreateGlossary was called.
205    * </pre>
206    *
207    * <code>.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
208    * </code>
209    */
getSubmitTimeOrBuilder()210   com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder();
211 
212   /**
213    *
214    *
215    * <pre>
216    * Output only. When the glossary creation was finished.
217    * </pre>
218    *
219    * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
220    * </code>
221    *
222    * @return Whether the endTime field is set.
223    */
hasEndTime()224   boolean hasEndTime();
225   /**
226    *
227    *
228    * <pre>
229    * Output only. When the glossary creation was finished.
230    * </pre>
231    *
232    * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
233    * </code>
234    *
235    * @return The endTime.
236    */
getEndTime()237   com.google.protobuf.Timestamp getEndTime();
238   /**
239    *
240    *
241    * <pre>
242    * Output only. When the glossary creation was finished.
243    * </pre>
244    *
245    * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
246    * </code>
247    */
getEndTimeOrBuilder()248   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
249 
250   /**
251    *
252    *
253    * <pre>
254    * Optional. The display name of the glossary.
255    * </pre>
256    *
257    * <code>string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
258    *
259    * @return The displayName.
260    */
getDisplayName()261   java.lang.String getDisplayName();
262   /**
263    *
264    *
265    * <pre>
266    * Optional. The display name of the glossary.
267    * </pre>
268    *
269    * <code>string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
270    *
271    * @return The bytes for displayName.
272    */
getDisplayNameBytes()273   com.google.protobuf.ByteString getDisplayNameBytes();
274 
getLanguagesCase()275   public com.google.cloud.translate.v3.Glossary.LanguagesCase getLanguagesCase();
276 }
277