Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
docs(regen): update javadocs from protoc update (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and chingor13 committed Dec 19, 2019
1 parent dab9bdb commit 08b3366
Show file tree
Hide file tree
Showing 91 changed files with 3,303 additions and 220 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ private AnalyzeEntitiesRequest() {
encodingType_ = 0;
}

@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AnalyzeEntitiesRequest();
}

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
Expand All @@ -54,7 +60,6 @@ private AnalyzeEntitiesRequest(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
Expand Down Expand Up @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the document field is set.
*/
public boolean hasDocument() {
return document_ != null;
Expand All @@ -148,6 +155,8 @@ public boolean hasDocument() {
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The document.
*/
public com.google.cloud.language.v1.Document getDocument() {
return document_ == null
Expand Down Expand Up @@ -179,6 +188,8 @@ public com.google.cloud.language.v1.DocumentOrBuilder getDocumentOrBuilder() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The enum numeric value on the wire for encodingType.
*/
public int getEncodingTypeValue() {
return encodingType_;
Expand All @@ -191,6 +202,8 @@ public int getEncodingTypeValue() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The encodingType.
*/
public com.google.cloud.language.v1.EncodingType getEncodingType() {
@SuppressWarnings("deprecation")
Expand Down Expand Up @@ -560,6 +573,8 @@ public Builder mergeFrom(
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the document field is set.
*/
public boolean hasDocument() {
return documentBuilder_ != null || document_ != null;
Expand All @@ -574,6 +589,8 @@ public boolean hasDocument() {
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The document.
*/
public com.google.cloud.language.v1.Document getDocument() {
if (documentBuilder_ == null) {
Expand Down Expand Up @@ -752,6 +769,8 @@ public com.google.cloud.language.v1.DocumentOrBuilder getDocumentOrBuilder() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The enum numeric value on the wire for encodingType.
*/
public int getEncodingTypeValue() {
return encodingType_;
Expand All @@ -764,6 +783,9 @@ public int getEncodingTypeValue() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @param value The enum numeric value on the wire for encodingType to set.
* @return This builder for chaining.
*/
public Builder setEncodingTypeValue(int value) {
encodingType_ = value;
Expand All @@ -778,6 +800,8 @@ public Builder setEncodingTypeValue(int value) {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The encodingType.
*/
public com.google.cloud.language.v1.EncodingType getEncodingType() {
@SuppressWarnings("deprecation")
Expand All @@ -793,6 +817,9 @@ public com.google.cloud.language.v1.EncodingType getEncodingType() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @param value The encodingType to set.
* @return This builder for chaining.
*/
public Builder setEncodingType(com.google.cloud.language.v1.EncodingType value) {
if (value == null) {
Expand All @@ -811,6 +838,8 @@ public Builder setEncodingType(com.google.cloud.language.v1.EncodingType value)
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearEncodingType() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public interface AnalyzeEntitiesRequestOrBuilder
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the document field is set.
*/
boolean hasDocument();
/**
Expand All @@ -45,6 +47,8 @@ public interface AnalyzeEntitiesRequestOrBuilder
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The document.
*/
com.google.cloud.language.v1.Document getDocument();
/**
Expand All @@ -68,6 +72,8 @@ public interface AnalyzeEntitiesRequestOrBuilder
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The enum numeric value on the wire for encodingType.
*/
int getEncodingTypeValue();
/**
Expand All @@ -78,6 +84,8 @@ public interface AnalyzeEntitiesRequestOrBuilder
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The encodingType.
*/
com.google.cloud.language.v1.EncodingType getEncodingType();
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ private AnalyzeEntitiesResponse() {
language_ = "";
}

@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AnalyzeEntitiesResponse();
}

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
Expand Down Expand Up @@ -121,7 +127,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.language.v1.AnalyzeEntitiesResponse.Builder.class);
}

private int bitField0_;
public static final int ENTITIES_FIELD_NUMBER = 1;
private java.util.List<com.google.cloud.language.v1.Entity> entities_;
/**
Expand Down Expand Up @@ -198,6 +203,8 @@ public com.google.cloud.language.v1.EntityOrBuilder getEntitiesOrBuilder(int ind
* </pre>
*
* <code>string language = 2;</code>
*
* @return The language.
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
Expand All @@ -220,6 +227,8 @@ public java.lang.String getLanguage() {
* </pre>
*
* <code>string language = 2;</code>
*
* @return The bytes for language.
*/
public com.google.protobuf.ByteString getLanguageBytes() {
java.lang.Object ref = language_;
Expand Down Expand Up @@ -486,7 +495,6 @@ public com.google.cloud.language.v1.AnalyzeEntitiesResponse buildPartial() {
com.google.cloud.language.v1.AnalyzeEntitiesResponse result =
new com.google.cloud.language.v1.AnalyzeEntitiesResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (entitiesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entities_ = java.util.Collections.unmodifiableList(entities_);
Expand All @@ -497,7 +505,6 @@ public com.google.cloud.language.v1.AnalyzeEntitiesResponse buildPartial() {
result.entities_ = entitiesBuilder_.build();
}
result.language_ = language_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
Expand Down Expand Up @@ -970,6 +977,8 @@ public java.util.List<com.google.cloud.language.v1.Entity.Builder> getEntitiesBu
* </pre>
*
* <code>string language = 2;</code>
*
* @return The language.
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
Expand All @@ -992,6 +1001,8 @@ public java.lang.String getLanguage() {
* </pre>
*
* <code>string language = 2;</code>
*
* @return The bytes for language.
*/
public com.google.protobuf.ByteString getLanguageBytes() {
java.lang.Object ref = language_;
Expand All @@ -1014,6 +1025,9 @@ public com.google.protobuf.ByteString getLanguageBytes() {
* </pre>
*
* <code>string language = 2;</code>
*
* @param value The language to set.
* @return This builder for chaining.
*/
public Builder setLanguage(java.lang.String value) {
if (value == null) {
Expand All @@ -1034,6 +1048,8 @@ public Builder setLanguage(java.lang.String value) {
* </pre>
*
* <code>string language = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearLanguage() {

Expand All @@ -1051,6 +1067,9 @@ public Builder clearLanguage() {
* </pre>
*
* <code>string language = 2;</code>
*
* @param value The bytes for language to set.
* @return This builder for chaining.
*/
public Builder setLanguageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public interface AnalyzeEntitiesResponseOrBuilder
* </pre>
*
* <code>string language = 2;</code>
*
* @return The language.
*/
java.lang.String getLanguage();
/**
Expand All @@ -96,6 +98,8 @@ public interface AnalyzeEntitiesResponseOrBuilder
* </pre>
*
* <code>string language = 2;</code>
*
* @return The bytes for language.
*/
com.google.protobuf.ByteString getLanguageBytes();
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ private AnalyzeEntitySentimentRequest() {
encodingType_ = 0;
}

@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AnalyzeEntitySentimentRequest();
}

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
Expand All @@ -54,7 +60,6 @@ private AnalyzeEntitySentimentRequest(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
Expand Down Expand Up @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the document field is set.
*/
public boolean hasDocument() {
return document_ != null;
Expand All @@ -148,6 +155,8 @@ public boolean hasDocument() {
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The document.
*/
public com.google.cloud.language.v1.Document getDocument() {
return document_ == null
Expand Down Expand Up @@ -179,6 +188,8 @@ public com.google.cloud.language.v1.DocumentOrBuilder getDocumentOrBuilder() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The enum numeric value on the wire for encodingType.
*/
public int getEncodingTypeValue() {
return encodingType_;
Expand All @@ -191,6 +202,8 @@ public int getEncodingTypeValue() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The encodingType.
*/
public com.google.cloud.language.v1.EncodingType getEncodingType() {
@SuppressWarnings("deprecation")
Expand Down Expand Up @@ -561,6 +574,8 @@ public Builder mergeFrom(
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the document field is set.
*/
public boolean hasDocument() {
return documentBuilder_ != null || document_ != null;
Expand All @@ -575,6 +590,8 @@ public boolean hasDocument() {
* <code>
* .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The document.
*/
public com.google.cloud.language.v1.Document getDocument() {
if (documentBuilder_ == null) {
Expand Down Expand Up @@ -753,6 +770,8 @@ public com.google.cloud.language.v1.DocumentOrBuilder getDocumentOrBuilder() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The enum numeric value on the wire for encodingType.
*/
public int getEncodingTypeValue() {
return encodingType_;
Expand All @@ -765,6 +784,9 @@ public int getEncodingTypeValue() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @param value The enum numeric value on the wire for encodingType to set.
* @return This builder for chaining.
*/
public Builder setEncodingTypeValue(int value) {
encodingType_ = value;
Expand All @@ -779,6 +801,8 @@ public Builder setEncodingTypeValue(int value) {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return The encodingType.
*/
public com.google.cloud.language.v1.EncodingType getEncodingType() {
@SuppressWarnings("deprecation")
Expand All @@ -794,6 +818,9 @@ public com.google.cloud.language.v1.EncodingType getEncodingType() {
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @param value The encodingType to set.
* @return This builder for chaining.
*/
public Builder setEncodingType(com.google.cloud.language.v1.EncodingType value) {
if (value == null) {
Expand All @@ -812,6 +839,8 @@ public Builder setEncodingType(com.google.cloud.language.v1.EncodingType value)
* </pre>
*
* <code>.google.cloud.language.v1.EncodingType encoding_type = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearEncodingType() {

Expand Down
Loading

0 comments on commit 08b3366

Please sign in to comment.