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

Commit 23c923b

Browse files
yoshi-automationchingor13
authored andcommitted
docs(regen): updated javadocs from protoc update (#43)
1 parent 4a30c3e commit 23c923b

File tree

109 files changed

+3177
-203
lines changed

Some content is hidden

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

109 files changed

+3177
-203
lines changed

proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ private BatchTranslateMetadata() {
4141
state_ = 0;
4242
}
4343

44+
@java.lang.Override
45+
@SuppressWarnings({"unused"})
46+
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47+
return new BatchTranslateMetadata();
48+
}
49+
4450
@java.lang.Override
4551
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4652
return this.unknownFields;
@@ -54,7 +60,6 @@ private BatchTranslateMetadata(
5460
if (extensionRegistry == null) {
5561
throw new java.lang.NullPointerException();
5662
}
57-
int mutable_bitField0_ = 0;
5863
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5964
com.google.protobuf.UnknownFieldSet.newBuilder();
6065
try {
@@ -286,12 +291,20 @@ public final int getNumber() {
286291
return value;
287292
}
288293

289-
/** @deprecated Use {@link #forNumber(int)} instead. */
294+
/**
295+
* @param value The numeric wire value of the corresponding enum entry.
296+
* @return The enum associated with the given numeric wire value.
297+
* @deprecated Use {@link #forNumber(int)} instead.
298+
*/
290299
@java.lang.Deprecated
291300
public static State valueOf(int value) {
292301
return forNumber(value);
293302
}
294303

304+
/**
305+
* @param value The numeric wire value of the corresponding enum entry.
306+
* @return The enum associated with the given numeric wire value.
307+
*/
295308
public static State forNumber(int value) {
296309
switch (value) {
297310
case 0:
@@ -367,6 +380,8 @@ private State(int value) {
367380
* </pre>
368381
*
369382
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
383+
*
384+
* @return The enum numeric value on the wire for state.
370385
*/
371386
public int getStateValue() {
372387
return state_;
@@ -379,6 +394,8 @@ public int getStateValue() {
379394
* </pre>
380395
*
381396
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
397+
*
398+
* @return The state.
382399
*/
383400
public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() {
384401
@SuppressWarnings("deprecation")
@@ -399,6 +416,8 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() {
399416
* </pre>
400417
*
401418
* <code>int64 translated_characters = 2;</code>
419+
*
420+
* @return The translatedCharacters.
402421
*/
403422
public long getTranslatedCharacters() {
404423
return translatedCharacters_;
@@ -415,6 +434,8 @@ public long getTranslatedCharacters() {
415434
* </pre>
416435
*
417436
* <code>int64 failed_characters = 3;</code>
437+
*
438+
* @return The failedCharacters.
418439
*/
419440
public long getFailedCharacters() {
420441
return failedCharacters_;
@@ -432,6 +453,8 @@ public long getFailedCharacters() {
432453
* </pre>
433454
*
434455
* <code>int64 total_characters = 4;</code>
456+
*
457+
* @return The totalCharacters.
435458
*/
436459
public long getTotalCharacters() {
437460
return totalCharacters_;
@@ -447,6 +470,8 @@ public long getTotalCharacters() {
447470
* </pre>
448471
*
449472
* <code>.google.protobuf.Timestamp submit_time = 5;</code>
473+
*
474+
* @return Whether the submitTime field is set.
450475
*/
451476
public boolean hasSubmitTime() {
452477
return submitTime_ != null;
@@ -459,6 +484,8 @@ public boolean hasSubmitTime() {
459484
* </pre>
460485
*
461486
* <code>.google.protobuf.Timestamp submit_time = 5;</code>
487+
*
488+
* @return The submitTime.
462489
*/
463490
public com.google.protobuf.Timestamp getSubmitTime() {
464491
return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_;
@@ -879,6 +906,8 @@ public Builder mergeFrom(
879906
* </pre>
880907
*
881908
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
909+
*
910+
* @return The enum numeric value on the wire for state.
882911
*/
883912
public int getStateValue() {
884913
return state_;
@@ -891,6 +920,9 @@ public int getStateValue() {
891920
* </pre>
892921
*
893922
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
923+
*
924+
* @param value The enum numeric value on the wire for state to set.
925+
* @return This builder for chaining.
894926
*/
895927
public Builder setStateValue(int value) {
896928
state_ = value;
@@ -905,6 +937,8 @@ public Builder setStateValue(int value) {
905937
* </pre>
906938
*
907939
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
940+
*
941+
* @return The state.
908942
*/
909943
public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() {
910944
@SuppressWarnings("deprecation")
@@ -922,6 +956,9 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() {
922956
* </pre>
923957
*
924958
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
959+
*
960+
* @param value The state to set.
961+
* @return This builder for chaining.
925962
*/
926963
public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.State value) {
927964
if (value == null) {
@@ -940,6 +977,8 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.Sta
940977
* </pre>
941978
*
942979
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
980+
*
981+
* @return This builder for chaining.
943982
*/
944983
public Builder clearState() {
945984

@@ -957,6 +996,8 @@ public Builder clearState() {
957996
* </pre>
958997
*
959998
* <code>int64 translated_characters = 2;</code>
999+
*
1000+
* @return The translatedCharacters.
9601001
*/
9611002
public long getTranslatedCharacters() {
9621003
return translatedCharacters_;
@@ -969,6 +1010,9 @@ public long getTranslatedCharacters() {
9691010
* </pre>
9701011
*
9711012
* <code>int64 translated_characters = 2;</code>
1013+
*
1014+
* @param value The translatedCharacters to set.
1015+
* @return This builder for chaining.
9721016
*/
9731017
public Builder setTranslatedCharacters(long value) {
9741018

@@ -984,6 +1028,8 @@ public Builder setTranslatedCharacters(long value) {
9841028
* </pre>
9851029
*
9861030
* <code>int64 translated_characters = 2;</code>
1031+
*
1032+
* @return This builder for chaining.
9871033
*/
9881034
public Builder clearTranslatedCharacters() {
9891035

@@ -1002,6 +1048,8 @@ public Builder clearTranslatedCharacters() {
10021048
* </pre>
10031049
*
10041050
* <code>int64 failed_characters = 3;</code>
1051+
*
1052+
* @return The failedCharacters.
10051053
*/
10061054
public long getFailedCharacters() {
10071055
return failedCharacters_;
@@ -1015,6 +1063,9 @@ public long getFailedCharacters() {
10151063
* </pre>
10161064
*
10171065
* <code>int64 failed_characters = 3;</code>
1066+
*
1067+
* @param value The failedCharacters to set.
1068+
* @return This builder for chaining.
10181069
*/
10191070
public Builder setFailedCharacters(long value) {
10201071

@@ -1031,6 +1082,8 @@ public Builder setFailedCharacters(long value) {
10311082
* </pre>
10321083
*
10331084
* <code>int64 failed_characters = 3;</code>
1085+
*
1086+
* @return This builder for chaining.
10341087
*/
10351088
public Builder clearFailedCharacters() {
10361089

@@ -1050,6 +1103,8 @@ public Builder clearFailedCharacters() {
10501103
* </pre>
10511104
*
10521105
* <code>int64 total_characters = 4;</code>
1106+
*
1107+
* @return The totalCharacters.
10531108
*/
10541109
public long getTotalCharacters() {
10551110
return totalCharacters_;
@@ -1064,6 +1119,9 @@ public long getTotalCharacters() {
10641119
* </pre>
10651120
*
10661121
* <code>int64 total_characters = 4;</code>
1122+
*
1123+
* @param value The totalCharacters to set.
1124+
* @return This builder for chaining.
10671125
*/
10681126
public Builder setTotalCharacters(long value) {
10691127

@@ -1081,6 +1139,8 @@ public Builder setTotalCharacters(long value) {
10811139
* </pre>
10821140
*
10831141
* <code>int64 total_characters = 4;</code>
1142+
*
1143+
* @return This builder for chaining.
10841144
*/
10851145
public Builder clearTotalCharacters() {
10861146

@@ -1103,6 +1163,8 @@ public Builder clearTotalCharacters() {
11031163
* </pre>
11041164
*
11051165
* <code>.google.protobuf.Timestamp submit_time = 5;</code>
1166+
*
1167+
* @return Whether the submitTime field is set.
11061168
*/
11071169
public boolean hasSubmitTime() {
11081170
return submitTimeBuilder_ != null || submitTime_ != null;
@@ -1115,6 +1177,8 @@ public boolean hasSubmitTime() {
11151177
* </pre>
11161178
*
11171179
* <code>.google.protobuf.Timestamp submit_time = 5;</code>
1180+
*
1181+
* @return The submitTime.
11181182
*/
11191183
public com.google.protobuf.Timestamp getSubmitTime() {
11201184
if (submitTimeBuilder_ == null) {

proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public interface BatchTranslateMetadataOrBuilder
3131
* </pre>
3232
*
3333
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
34+
*
35+
* @return The enum numeric value on the wire for state.
3436
*/
3537
int getStateValue();
3638
/**
@@ -41,6 +43,8 @@ public interface BatchTranslateMetadataOrBuilder
4143
* </pre>
4244
*
4345
* <code>.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;</code>
46+
*
47+
* @return The state.
4448
*/
4549
com.google.cloud.translate.v3.BatchTranslateMetadata.State getState();
4650

@@ -52,6 +56,8 @@ public interface BatchTranslateMetadataOrBuilder
5256
* </pre>
5357
*
5458
* <code>int64 translated_characters = 2;</code>
59+
*
60+
* @return The translatedCharacters.
5561
*/
5662
long getTranslatedCharacters();
5763

@@ -64,6 +70,8 @@ public interface BatchTranslateMetadataOrBuilder
6470
* </pre>
6571
*
6672
* <code>int64 failed_characters = 3;</code>
73+
*
74+
* @return The failedCharacters.
6775
*/
6876
long getFailedCharacters();
6977

@@ -77,6 +85,8 @@ public interface BatchTranslateMetadataOrBuilder
7785
* </pre>
7886
*
7987
* <code>int64 total_characters = 4;</code>
88+
*
89+
* @return The totalCharacters.
8090
*/
8191
long getTotalCharacters();
8292

@@ -88,6 +98,8 @@ public interface BatchTranslateMetadataOrBuilder
8898
* </pre>
8999
*
90100
* <code>.google.protobuf.Timestamp submit_time = 5;</code>
101+
*
102+
* @return Whether the submitTime field is set.
91103
*/
92104
boolean hasSubmitTime();
93105
/**
@@ -98,6 +110,8 @@ public interface BatchTranslateMetadataOrBuilder
98110
* </pre>
99111
*
100112
* <code>.google.protobuf.Timestamp submit_time = 5;</code>
113+
*
114+
* @return The submitTime.
101115
*/
102116
com.google.protobuf.Timestamp getSubmitTime();
103117
/**

0 commit comments

Comments
 (0)