Skip to content
Permalink
Browse files
docs(regen): proto class changes from protoc update (#60)
  • Loading branch information
yoshi-automation authored and chingor13 committed Dec 17, 2019
1 parent a3dab69 commit 0b04ce12554c53d2cbf8e2ea1b0ebcdcd8462c97
Showing 420 changed files with 10,805 additions and 1,460 deletions.
@@ -42,6 +42,12 @@ private AnnotationPayload() {
displayName_ = "";
}

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

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
@@ -55,7 +61,6 @@ private AnnotationPayload(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -208,7 +213,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
private int detailCase_ = 0;
private java.lang.Object detail_;

public enum DetailCase implements com.google.protobuf.Internal.EnumLite {
public enum DetailCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TRANSLATION(2),
CLASSIFICATION(3),
IMAGE_OBJECT_DETECTION(4),
@@ -220,7 +228,11 @@ public enum DetailCase implements com.google.protobuf.Internal.EnumLite {
private DetailCase(int value) {
this.value = value;
}
/** @deprecated Use {@link #forNumber(int)} instead. */
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DetailCase valueOf(int value) {
return forNumber(value);
@@ -263,6 +275,8 @@ public DetailCase getDetailCase() {
* </pre>
*
* <code>.google.cloud.automl.v1.TranslationAnnotation translation = 2;</code>
*
* @return Whether the translation field is set.
*/
public boolean hasTranslation() {
return detailCase_ == 2;
@@ -275,6 +289,8 @@ public boolean hasTranslation() {
* </pre>
*
* <code>.google.cloud.automl.v1.TranslationAnnotation translation = 2;</code>
*
* @return The translation.
*/
public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() {
if (detailCase_ == 2) {
@@ -307,6 +323,8 @@ public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationO
* </pre>
*
* <code>.google.cloud.automl.v1.ClassificationAnnotation classification = 3;</code>
*
* @return Whether the classification field is set.
*/
public boolean hasClassification() {
return detailCase_ == 3;
@@ -319,6 +337,8 @@ public boolean hasClassification() {
* </pre>
*
* <code>.google.cloud.automl.v1.ClassificationAnnotation classification = 3;</code>
*
* @return The classification.
*/
public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() {
if (detailCase_ == 3) {
@@ -351,6 +371,8 @@ public com.google.cloud.automl.v1.ClassificationAnnotationOrBuilder getClassific
* </pre>
*
* <code>.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;</code>
*
* @return Whether the imageObjectDetection field is set.
*/
public boolean hasImageObjectDetection() {
return detailCase_ == 4;
@@ -363,6 +385,8 @@ public boolean hasImageObjectDetection() {
* </pre>
*
* <code>.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;</code>
*
* @return The imageObjectDetection.
*/
public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectDetection() {
if (detailCase_ == 4) {
@@ -396,6 +420,8 @@ public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectD
* </pre>
*
* <code>.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;</code>
*
* @return Whether the textExtraction field is set.
*/
public boolean hasTextExtraction() {
return detailCase_ == 6;
@@ -408,6 +434,8 @@ public boolean hasTextExtraction() {
* </pre>
*
* <code>.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;</code>
*
* @return The textExtraction.
*/
public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() {
if (detailCase_ == 6) {
@@ -440,6 +468,8 @@ public com.google.cloud.automl.v1.TextExtractionAnnotationOrBuilder getTextExtra
* </pre>
*
* <code>.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;</code>
*
* @return Whether the textSentiment field is set.
*/
public boolean hasTextSentiment() {
return detailCase_ == 7;
@@ -452,6 +482,8 @@ public boolean hasTextSentiment() {
* </pre>
*
* <code>.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;</code>
*
* @return The textSentiment.
*/
public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() {
if (detailCase_ == 7) {
@@ -487,6 +519,8 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim
* </pre>
*
* <code>string annotation_spec_id = 1;</code>
*
* @return The annotationSpecId.
*/
public java.lang.String getAnnotationSpecId() {
java.lang.Object ref = annotationSpecId_;
@@ -509,6 +543,8 @@ public java.lang.String getAnnotationSpecId() {
* </pre>
*
* <code>string annotation_spec_id = 1;</code>
*
* @return The bytes for annotationSpecId.
*/
public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
java.lang.Object ref = annotationSpecId_;
@@ -537,6 +573,8 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
* </pre>
*
* <code>string display_name = 5;</code>
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
@@ -562,6 +600,8 @@ public java.lang.String getDisplayName() {
* </pre>
*
* <code>string display_name = 5;</code>
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
@@ -1087,6 +1127,8 @@ public Builder clearDetail() {
* </pre>
*
* <code>.google.cloud.automl.v1.TranslationAnnotation translation = 2;</code>
*
* @return Whether the translation field is set.
*/
public boolean hasTranslation() {
return detailCase_ == 2;
@@ -1099,6 +1141,8 @@ public boolean hasTranslation() {
* </pre>
*
* <code>.google.cloud.automl.v1.TranslationAnnotation translation = 2;</code>
*
* @return The translation.
*/
public com.google.cloud.automl.v1.TranslationAnnotation getTranslation() {
if (translationBuilder_ == null) {
@@ -1289,6 +1333,8 @@ public com.google.cloud.automl.v1.TranslationAnnotationOrBuilder getTranslationO
* </pre>
*
* <code>.google.cloud.automl.v1.ClassificationAnnotation classification = 3;</code>
*
* @return Whether the classification field is set.
*/
public boolean hasClassification() {
return detailCase_ == 3;
@@ -1301,6 +1347,8 @@ public boolean hasClassification() {
* </pre>
*
* <code>.google.cloud.automl.v1.ClassificationAnnotation classification = 3;</code>
*
* @return The classification.
*/
public com.google.cloud.automl.v1.ClassificationAnnotation getClassification() {
if (classificationBuilder_ == null) {
@@ -1494,6 +1542,8 @@ public com.google.cloud.automl.v1.ClassificationAnnotation.Builder getClassifica
*
* <code>.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
* </code>
*
* @return Whether the imageObjectDetection field is set.
*/
public boolean hasImageObjectDetection() {
return detailCase_ == 4;
@@ -1507,6 +1557,8 @@ public boolean hasImageObjectDetection() {
*
* <code>.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
* </code>
*
* @return The imageObjectDetection.
*/
public com.google.cloud.automl.v1.ImageObjectDetectionAnnotation getImageObjectDetection() {
if (imageObjectDetectionBuilder_ == null) {
@@ -1709,6 +1761,8 @@ public Builder clearImageObjectDetection() {
* </pre>
*
* <code>.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;</code>
*
* @return Whether the textExtraction field is set.
*/
public boolean hasTextExtraction() {
return detailCase_ == 6;
@@ -1721,6 +1775,8 @@ public boolean hasTextExtraction() {
* </pre>
*
* <code>.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;</code>
*
* @return The textExtraction.
*/
public com.google.cloud.automl.v1.TextExtractionAnnotation getTextExtraction() {
if (textExtractionBuilder_ == null) {
@@ -1913,6 +1969,8 @@ public com.google.cloud.automl.v1.TextExtractionAnnotation.Builder getTextExtrac
* </pre>
*
* <code>.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;</code>
*
* @return Whether the textSentiment field is set.
*/
public boolean hasTextSentiment() {
return detailCase_ == 7;
@@ -1925,6 +1983,8 @@ public boolean hasTextSentiment() {
* </pre>
*
* <code>.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;</code>
*
* @return The textSentiment.
*/
public com.google.cloud.automl.v1.TextSentimentAnnotation getTextSentiment() {
if (textSentimentBuilder_ == null) {
@@ -2113,6 +2173,8 @@ public com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder getTextSentim
* </pre>
*
* <code>string annotation_spec_id = 1;</code>
*
* @return The annotationSpecId.
*/
public java.lang.String getAnnotationSpecId() {
java.lang.Object ref = annotationSpecId_;
@@ -2135,6 +2197,8 @@ public java.lang.String getAnnotationSpecId() {
* </pre>
*
* <code>string annotation_spec_id = 1;</code>
*
* @return The bytes for annotationSpecId.
*/
public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
java.lang.Object ref = annotationSpecId_;
@@ -2157,6 +2221,9 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
* </pre>
*
* <code>string annotation_spec_id = 1;</code>
*
* @param value The annotationSpecId to set.
* @return This builder for chaining.
*/
public Builder setAnnotationSpecId(java.lang.String value) {
if (value == null) {
@@ -2177,6 +2244,8 @@ public Builder setAnnotationSpecId(java.lang.String value) {
* </pre>
*
* <code>string annotation_spec_id = 1;</code>
*
* @return This builder for chaining.
*/
public Builder clearAnnotationSpecId() {

@@ -2194,6 +2263,9 @@ public Builder clearAnnotationSpecId() {
* </pre>
*
* <code>string annotation_spec_id = 1;</code>
*
* @param value The bytes for annotationSpecId to set.
* @return This builder for chaining.
*/
public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
@@ -2220,6 +2292,8 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) {
* </pre>
*
* <code>string display_name = 5;</code>
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
@@ -2245,6 +2319,8 @@ public java.lang.String getDisplayName() {
* </pre>
*
* <code>string display_name = 5;</code>
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
@@ -2270,6 +2346,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
* </pre>
*
* <code>string display_name = 5;</code>
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
@@ -2293,6 +2372,8 @@ public Builder setDisplayName(java.lang.String value) {
* </pre>
*
* <code>string display_name = 5;</code>
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {

@@ -2313,6 +2394,9 @@ public Builder clearDisplayName() {
* </pre>
*
* <code>string display_name = 5;</code>
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {

0 comments on commit 0b04ce1

Please sign in to comment.