\n\005state\030\001 \001("
+ + "\0162/.google.cloud.vision.v1.OperationMeta"
+ + "data.State\022/\n\013create_time\030\005 \001(\0132\032.google"
+ + ".protobuf.Timestamp\022/\n\013update_time\030\006 \001(\013"
+ + "2\032.google.protobuf.Timestamp\"Q\n\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUN"
+ + "NING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikel"
+ + "ihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n"
+ + "\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n"
+ + "\013VERY_LIKELY\020\0052\365\n\n\016ImageAnnotator\022\223\002\n\023Ba"
+ + "tchAnnotateImages\0222.google.cloud.vision."
+ + "v1.BatchAnnotateImagesRequest\0323.google.c"
+ + "loud.vision.v1.BatchAnnotateImagesRespon"
+ + "se\"\222\001\202\323\344\223\002\200\001\"\023/v1/images:annotate:\001*Z8\"3"
+ + "/v1/{parent=projects/*/locations/*}/imag"
+ + "es:annotate:\001*Z,\"\'/v1/{parent=projects/*"
+ + "}/images:annotate:\001*\332A\010requests\022\214\002\n\022Batc"
+ + "hAnnotateFiles\0221.google.cloud.vision.v1."
+ + "BatchAnnotateFilesRequest\0322.google.cloud"
+ + ".vision.v1.BatchAnnotateFilesResponse\"\216\001"
+ + "\202\323\344\223\002}\"\022/v1/files:annotate:\001*Z7\"2/v1/{pa"
+ + "rent=projects/*/locations/*}/files:annot"
+ + "ate:\001*Z+\"&/v1/{parent=projects/*}/files:"
+ + "annotate:\001*\332A\010requests\022\353\002\n\030AsyncBatchAnn"
+ + "otateImages\0227.google.cloud.vision.v1.Asy"
+ + "ncBatchAnnotateImagesRequest\032\035.google.lo"
+ + "ngrunning.Operation\"\366\001\202\323\344\223\002\236\001\"\035/v1/image"
+ + "s:asyncBatchAnnotate:\001*ZB\"=/v1/{parent=p"
+ + "rojects/*/locations/*}/images:asyncBatch"
+ + "Annotate:\001*Z6\"1/v1/{parent=projects/*}/i"
+ + "mages:asyncBatchAnnotate:\001*\332A\026requests,o"
+ + "utput_config\312A5\n AsyncBatchAnnotateImage"
+ + "sResponse\022\021OperationMetadata\022\327\002\n\027AsyncBa"
+ + "tchAnnotateFiles\0226.google.cloud.vision.v"
+ + "1.AsyncBatchAnnotateFilesRequest\032\035.googl"
+ + "e.longrunning.Operation\"\344\001\202\323\344\223\002\233\001\"\034/v1/f"
+ + "iles:asyncBatchAnnotate:\001*ZA\" bu
super(builder);
}
- private TextDetectionParams() {}
+ private TextDetectionParams() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -59,6 +61,7 @@ private TextDetectionParams(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -74,6 +77,16 @@ private TextDetectionParams(
enableTextDetectionConfidenceScore_ = input.readBool();
break;
}
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ advancedOcrOptions_.add(s);
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -90,6 +103,9 @@ private TextDetectionParams(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -130,6 +146,67 @@ public boolean getEnableTextDetectionConfidenceScore() {
return enableTextDetectionConfidenceScore_;
}
+ public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11;
+ private com.google.protobuf.LazyStringList advancedOcrOptions_;
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -147,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enableTextDetectionConfidenceScore_ != false) {
output.writeBool(9, enableTextDetectionConfidenceScore_);
}
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -161,6 +241,14 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeBoolSize(
9, enableTextDetectionConfidenceScore_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAdvancedOcrOptionsList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -179,6 +267,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore())
return false;
+ if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -194,6 +283,10 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore());
+ if (getAdvancedOcrOptionsCount() > 0) {
+ hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -342,6 +435,8 @@ public Builder clear() {
super.clear();
enableTextDetectionConfidenceScore_ = false;
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -369,7 +464,13 @@ public com.google.cloud.vision.v1.TextDetectionParams build() {
public com.google.cloud.vision.v1.TextDetectionParams buildPartial() {
com.google.cloud.vision.v1.TextDetectionParams result =
new com.google.cloud.vision.v1.TextDetectionParams(this);
+ int from_bitField0_ = bitField0_;
result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.advancedOcrOptions_ = advancedOcrOptions_;
onBuilt();
return result;
}
@@ -422,6 +523,16 @@ public Builder mergeFrom(com.google.cloud.vision.v1.TextDetectionParams other) {
if (other.getEnableTextDetectionConfidenceScore() != false) {
setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
}
+ if (!other.advancedOcrOptions_.isEmpty()) {
+ if (advancedOcrOptions_.isEmpty()) {
+ advancedOcrOptions_ = other.advancedOcrOptions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -451,6 +562,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean enableTextDetectionConfidenceScore_;
/**
*
@@ -509,6 +622,174 @@ public Builder clearEnableTextDetectionConfidenceScore() {
return this;
}
+ private com.google.protobuf.LazyStringList advancedOcrOptions_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureAdvancedOcrOptionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index to set the value at.
+ * @param value The advancedOcrOptions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdvancedOcrOptions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param values The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) {
+ ensureAdvancedOcrOptionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdvancedOcrOptions() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The bytes of the advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java
index 1afe75377..7d038b80b 100644
--- a/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java
+++ b/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java
@@ -37,4 +37,55 @@ public interface TextDetectionParamsOrBuilder
* @return The enableTextDetectionConfidenceScore.
*/
boolean getEnableTextDetectionConfidenceScore();
+
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ java.util.List getAdvancedOcrOptionsList();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ int getAdvancedOcrOptionsCount();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ java.lang.String getAdvancedOcrOptions(int index);
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index);
}
diff --git a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto
index a70c7fdc8..10464b0e0 100644
--- a/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto
+++ b/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto
@@ -654,6 +654,9 @@ message TextDetectionParams {
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
// score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
+
+ // A list of advanced OCR options to fine-tune OCR behavior.
+ repeated string advanced_ocr_options = 11;
}
// Image context and/or feature-specific parameters.
diff --git a/proto-google-cloud-vision-v1p1beta1/pom.xml b/proto-google-cloud-vision-v1p1beta1/pom.xml
index a2c932cba..e2e89a6b3 100644
--- a/proto-google-cloud-vision-v1p1beta1/pom.xml
+++ b/proto-google-cloud-vision-v1p1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-vision-v1p1beta1
- 0.89.2
+ 0.90.0
proto-google-cloud-vision-v1p1beta1
PROTO library for proto-google-cloud-vision-v1p1beta1
com.google.cloud
google-cloud-vision-parent
- 3.0.2
+ 3.1.0
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java
index a2d1fae31..6bd7d0d6a 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java
@@ -231,63 +231,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ";\n\ncrop_hints\030\001 \003(\0132\'.google.cloud.visio"
+ "n.v1p1beta1.CropHint\"(\n\017CropHintsParams\022"
+ "\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebDetectionPa"
- + "rams\022\033\n\023include_geo_results\030\002 \001(\010\"E\n\023Tex"
+ + "rams\022\033\n\023include_geo_results\030\002 \001(\010\"c\n\023Tex"
+ "tDetectionParams\022.\n&enable_text_detectio"
- + "n_confidence_score\030\t \001(\010\"\330\002\n\014ImageContex"
- + "t\022A\n\rlat_long_rect\030\001 \001(\0132*.google.cloud."
- + "vision.v1p1beta1.LatLongRect\022\026\n\016language"
- + "_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(\0132"
- + "..google.cloud.vision.v1p1beta1.CropHint"
- + "sParams\022O\n\024web_detection_params\030\006 \001(\01321."
- + "google.cloud.vision.v1p1beta1.WebDetecti"
- + "onParams\022Q\n\025text_detection_params\030\014 \001(\0132"
- + "2.google.cloud.vision.v1p1beta1.TextDete"
- + "ctionParams\"\311\001\n\024AnnotateImageRequest\0223\n\005"
- + "image\030\001 \001(\0132$.google.cloud.vision.v1p1be"
- + "ta1.Image\0228\n\010features\030\002 \003(\0132&.google.clo"
- + "ud.vision.v1p1beta1.Feature\022B\n\rimage_con"
- + "text\030\003 \001(\0132+.google.cloud.vision.v1p1bet"
- + "a1.ImageContext\"\302\006\n\025AnnotateImageRespons"
- + "e\022G\n\020face_annotations\030\001 \003(\0132-.google.clo"
- + "ud.vision.v1p1beta1.FaceAnnotation\022M\n\024la"
- + "ndmark_annotations\030\002 \003(\0132/.google.cloud."
- + "vision.v1p1beta1.EntityAnnotation\022I\n\020log"
- + "o_annotations\030\003 \003(\0132/.google.cloud.visio"
- + "n.v1p1beta1.EntityAnnotation\022J\n\021label_an"
- + "notations\030\004 \003(\0132/.google.cloud.vision.v1"
- + "p1beta1.EntityAnnotation\022I\n\020text_annotat"
- + "ions\030\005 \003(\0132/.google.cloud.vision.v1p1bet"
- + "a1.EntityAnnotation\022K\n\024full_text_annotat"
- + "ion\030\014 \001(\0132-.google.cloud.vision.v1p1beta"
- + "1.TextAnnotation\022S\n\026safe_search_annotati"
- + "on\030\006 \001(\01323.google.cloud.vision.v1p1beta1"
- + ".SafeSearchAnnotation\022S\n\033image_propertie"
- + "s_annotation\030\010 \001(\0132..google.cloud.vision"
- + ".v1p1beta1.ImageProperties\022Q\n\025crop_hints"
- + "_annotation\030\013 \001(\01322.google.cloud.vision."
- + "v1p1beta1.CropHintsAnnotation\022B\n\rweb_det"
- + "ection\030\r \001(\0132+.google.cloud.vision.v1p1b"
- + "eta1.WebDetection\022!\n\005error\030\t \001(\0132\022.googl"
- + "e.rpc.Status\"h\n\032BatchAnnotateImagesReque"
- + "st\022J\n\010requests\030\001 \003(\01323.google.cloud.visi"
- + "on.v1p1beta1.AnnotateImageRequestB\003\340A\002\"f"
- + "\n\033BatchAnnotateImagesResponse\022G\n\trespons"
- + "es\030\001 \003(\01324.google.cloud.vision.v1p1beta1"
- + ".AnnotateImageResponse*e\n\nLikelihood\022\013\n\007"
- + "UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY"
- + "\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIK"
- + "ELY\020\0052\311\002\n\016ImageAnnotator\022\276\001\n\023BatchAnnota"
- + "teImages\0229.google.cloud.vision.v1p1beta1"
- + ".BatchAnnotateImagesRequest\032:.google.clo"
- + "ud.vision.v1p1beta1.BatchAnnotateImagesR"
- + "esponse\"0\202\323\344\223\002\037\"\032/v1p1beta1/images:annot"
- + "ate:\001*\332A\010requests\032v\312A\025vision.googleapis."
- + "com\322A[https://www.googleapis.com/auth/cl"
- + "oud-platform,https://www.googleapis.com/"
- + "auth/cloud-visionB\202\001\n!com.google.cloud.v"
- + "ision.v1p1beta1B\023ImageAnnotatorProtoP\001ZC"
- + "google.golang.org/genproto/googleapis/cl"
- + "oud/vision/v1p1beta1;vision\370\001\001b\006proto3"
+ + "n_confidence_score\030\t \001(\010\022\034\n\024advanced_ocr"
+ + "_options\030\013 \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_l"
+ + "ong_rect\030\001 \001(\0132*.google.cloud.vision.v1p"
+ + "1beta1.LatLongRect\022\026\n\016language_hints\030\002 \003"
+ + "(\t\022I\n\021crop_hints_params\030\004 \001(\0132..google.c"
+ + "loud.vision.v1p1beta1.CropHintsParams\022O\n"
+ + "\024web_detection_params\030\006 \001(\01321.google.clo"
+ + "ud.vision.v1p1beta1.WebDetectionParams\022Q"
+ + "\n\025text_detection_params\030\014 \001(\01322.google.c"
+ + "loud.vision.v1p1beta1.TextDetectionParam"
+ + "s\"\311\001\n\024AnnotateImageRequest\0223\n\005image\030\001 \001("
+ + "\0132$.google.cloud.vision.v1p1beta1.Image\022"
+ + "8\n\010features\030\002 \003(\0132&.google.cloud.vision."
+ + "v1p1beta1.Feature\022B\n\rimage_context\030\003 \001(\013"
+ + "2+.google.cloud.vision.v1p1beta1.ImageCo"
+ + "ntext\"\302\006\n\025AnnotateImageResponse\022G\n\020face_"
+ + "annotations\030\001 \003(\0132-.google.cloud.vision."
+ + "v1p1beta1.FaceAnnotation\022M\n\024landmark_ann"
+ + "otations\030\002 \003(\0132/.google.cloud.vision.v1p"
+ + "1beta1.EntityAnnotation\022I\n\020logo_annotati"
+ + "ons\030\003 \003(\0132/.google.cloud.vision.v1p1beta"
+ + "1.EntityAnnotation\022J\n\021label_annotations\030"
+ + "\004 \003(\0132/.google.cloud.vision.v1p1beta1.En"
+ + "tityAnnotation\022I\n\020text_annotations\030\005 \003(\013"
+ + "2/.google.cloud.vision.v1p1beta1.EntityA"
+ + "nnotation\022K\n\024full_text_annotation\030\014 \001(\0132"
+ + "-.google.cloud.vision.v1p1beta1.TextAnno"
+ + "tation\022S\n\026safe_search_annotation\030\006 \001(\01323"
+ + ".google.cloud.vision.v1p1beta1.SafeSearc"
+ + "hAnnotation\022S\n\033image_properties_annotati"
+ + "on\030\010 \001(\0132..google.cloud.vision.v1p1beta1"
+ + ".ImageProperties\022Q\n\025crop_hints_annotatio"
+ + "n\030\013 \001(\01322.google.cloud.vision.v1p1beta1."
+ + "CropHintsAnnotation\022B\n\rweb_detection\030\r \001"
+ + "(\0132+.google.cloud.vision.v1p1beta1.WebDe"
+ + "tection\022!\n\005error\030\t \001(\0132\022.google.rpc.Stat"
+ + "us\"h\n\032BatchAnnotateImagesRequest\022J\n\010requ"
+ + "ests\030\001 \003(\01323.google.cloud.vision.v1p1bet"
+ + "a1.AnnotateImageRequestB\003\340A\002\"f\n\033BatchAnn"
+ + "otateImagesResponse\022G\n\tresponses\030\001 \003(\01324"
+ + ".google.cloud.vision.v1p1beta1.AnnotateI"
+ + "mageResponse*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022"
+ + "\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSS"
+ + "IBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\311\002\n\016"
+ + "ImageAnnotator\022\276\001\n\023BatchAnnotateImages\0229"
+ + ".google.cloud.vision.v1p1beta1.BatchAnno"
+ + "tateImagesRequest\032:.google.cloud.vision."
+ + "v1p1beta1.BatchAnnotateImagesResponse\"0\202"
+ + "\323\344\223\002\037\"\032/v1p1beta1/images:annotate:\001*\332A\010r"
+ + "equests\032v\312A\025vision.googleapis.com\322A[http"
+ + "s://www.googleapis.com/auth/cloud-platfo"
+ + "rm,https://www.googleapis.com/auth/cloud"
+ + "-visionB\202\001\n!com.google.cloud.vision.v1p1"
+ + "beta1B\023ImageAnnotatorProtoP\001ZCgoogle.gol"
+ + "ang.org/genproto/googleapis/cloud/vision"
+ + "/v1p1beta1;vision\370\001\001b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -469,7 +470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vision_v1p1beta1_TextDetectionParams_descriptor,
new java.lang.String[] {
- "EnableTextDetectionConfidenceScore",
+ "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions",
});
internal_static_google_cloud_vision_v1p1beta1_ImageContext_descriptor =
getDescriptor().getMessageTypes().get(17);
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java
index cb68cab87..7a53543f6 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java
@@ -38,7 +38,9 @@ private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder> bu
super(builder);
}
- private TextDetectionParams() {}
+ private TextDetectionParams() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -59,6 +61,7 @@ private TextDetectionParams(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -74,6 +77,16 @@ private TextDetectionParams(
enableTextDetectionConfidenceScore_ = input.readBool();
break;
}
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ advancedOcrOptions_.add(s);
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -90,6 +103,9 @@ private TextDetectionParams(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -130,6 +146,67 @@ public boolean getEnableTextDetectionConfidenceScore() {
return enableTextDetectionConfidenceScore_;
}
+ public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11;
+ private com.google.protobuf.LazyStringList advancedOcrOptions_;
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -147,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enableTextDetectionConfidenceScore_ != false) {
output.writeBool(9, enableTextDetectionConfidenceScore_);
}
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -161,6 +241,14 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeBoolSize(
9, enableTextDetectionConfidenceScore_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAdvancedOcrOptionsList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -179,6 +267,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore())
return false;
+ if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -194,6 +283,10 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore());
+ if (getAdvancedOcrOptionsCount() > 0) {
+ hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -343,6 +436,8 @@ public Builder clear() {
super.clear();
enableTextDetectionConfidenceScore_ = false;
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -370,7 +465,13 @@ public com.google.cloud.vision.v1p1beta1.TextDetectionParams build() {
public com.google.cloud.vision.v1p1beta1.TextDetectionParams buildPartial() {
com.google.cloud.vision.v1p1beta1.TextDetectionParams result =
new com.google.cloud.vision.v1p1beta1.TextDetectionParams(this);
+ int from_bitField0_ = bitField0_;
result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.advancedOcrOptions_ = advancedOcrOptions_;
onBuilt();
return result;
}
@@ -424,6 +525,16 @@ public Builder mergeFrom(com.google.cloud.vision.v1p1beta1.TextDetectionParams o
if (other.getEnableTextDetectionConfidenceScore() != false) {
setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
}
+ if (!other.advancedOcrOptions_.isEmpty()) {
+ if (advancedOcrOptions_.isEmpty()) {
+ advancedOcrOptions_ = other.advancedOcrOptions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -454,6 +565,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean enableTextDetectionConfidenceScore_;
/**
*
@@ -512,6 +625,174 @@ public Builder clearEnableTextDetectionConfidenceScore() {
return this;
}
+ private com.google.protobuf.LazyStringList advancedOcrOptions_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureAdvancedOcrOptionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index to set the value at.
+ * @param value The advancedOcrOptions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdvancedOcrOptions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param values The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) {
+ ensureAdvancedOcrOptionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdvancedOcrOptions() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The bytes of the advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java
index 61f5c77a7..df752eec7 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java
@@ -37,4 +37,55 @@ public interface TextDetectionParamsOrBuilder
* @return The enableTextDetectionConfidenceScore.
*/
boolean getEnableTextDetectionConfidenceScore();
+
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ java.util.List getAdvancedOcrOptionsList();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ int getAdvancedOcrOptionsCount();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ java.lang.String getAdvancedOcrOptions(int index);
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index);
}
diff --git a/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto b/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto
index daf6a2d27..729a0fa08 100644
--- a/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto
+++ b/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto
@@ -498,6 +498,9 @@ message TextDetectionParams {
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
// score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
+
+ // A list of advanced OCR options to fine-tune OCR behavior.
+ repeated string advanced_ocr_options = 11;
}
// Image context and/or feature-specific parameters.
diff --git a/proto-google-cloud-vision-v1p2beta1/pom.xml b/proto-google-cloud-vision-v1p2beta1/pom.xml
index e3c999d08..f2cb30792 100644
--- a/proto-google-cloud-vision-v1p2beta1/pom.xml
+++ b/proto-google-cloud-vision-v1p2beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-vision-v1p2beta1
- 3.0.2
+ 3.1.0
proto-google-cloud-vision-v1p2beta1
PROTO library for proto-google-cloud-vision-v1p2beta1
com.google.cloud
google-cloud-vision-parent
- 3.0.2
+ 3.1.0
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java
index 413a66f58..625320e96 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java
@@ -277,105 +277,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "nts\030\001 \003(\0132\'.google.cloud.vision.v1p2beta"
+ "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_"
+ "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in"
- + "clude_geo_results\030\002 \001(\010\"E\n\023TextDetection"
+ + "clude_geo_results\030\002 \001(\010\"c\n\023TextDetection"
+ "Params\022.\n&enable_text_detection_confiden"
- + "ce_score\030\t \001(\010\"\330\002\n\014ImageContext\022A\n\rlat_l"
- + "ong_rect\030\001 \001(\0132*.google.cloud.vision.v1p"
- + "2beta1.LatLongRect\022\026\n\016language_hints\030\002 \003"
- + "(\t\022I\n\021crop_hints_params\030\004 \001(\0132..google.c"
- + "loud.vision.v1p2beta1.CropHintsParams\022O\n"
- + "\024web_detection_params\030\006 \001(\01321.google.clo"
- + "ud.vision.v1p2beta1.WebDetectionParams\022Q"
- + "\n\025text_detection_params\030\014 \001(\01322.google.c"
- + "loud.vision.v1p2beta1.TextDetectionParam"
- + "s\"\311\001\n\024AnnotateImageRequest\0223\n\005image\030\001 \001("
- + "\0132$.google.cloud.vision.v1p2beta1.Image\022"
- + "8\n\010features\030\002 \003(\0132&.google.cloud.vision."
- + "v1p2beta1.Feature\022B\n\rimage_context\030\003 \001(\013"
- + "2+.google.cloud.vision.v1p2beta1.ImageCo"
- + "ntext\":\n\026ImageAnnotationContext\022\013\n\003uri\030\001"
- + " \001(\t\022\023\n\013page_number\030\002 \001(\005\"\212\007\n\025AnnotateIm"
- + "ageResponse\022G\n\020face_annotations\030\001 \003(\0132-."
- + "google.cloud.vision.v1p2beta1.FaceAnnota"
- + "tion\022M\n\024landmark_annotations\030\002 \003(\0132/.goo"
- + "gle.cloud.vision.v1p2beta1.EntityAnnotat"
- + "ion\022I\n\020logo_annotations\030\003 \003(\0132/.google.c"
- + "loud.vision.v1p2beta1.EntityAnnotation\022J"
- + "\n\021label_annotations\030\004 \003(\0132/.google.cloud"
- + ".vision.v1p2beta1.EntityAnnotation\022I\n\020te"
- + "xt_annotations\030\005 \003(\0132/.google.cloud.visi"
- + "on.v1p2beta1.EntityAnnotation\022K\n\024full_te"
- + "xt_annotation\030\014 \001(\0132-.google.cloud.visio"
- + "n.v1p2beta1.TextAnnotation\022S\n\026safe_searc"
- + "h_annotation\030\006 \001(\01323.google.cloud.vision"
- + ".v1p2beta1.SafeSearchAnnotation\022S\n\033image"
- + "_properties_annotation\030\010 \001(\0132..google.cl"
- + "oud.vision.v1p2beta1.ImageProperties\022Q\n\025"
- + "crop_hints_annotation\030\013 \001(\01322.google.clo"
- + "ud.vision.v1p2beta1.CropHintsAnnotation\022"
- + "B\n\rweb_detection\030\r \001(\0132+.google.cloud.vi"
- + "sion.v1p2beta1.WebDetection\022!\n\005error\030\t \001"
- + "(\0132\022.google.rpc.Status\022F\n\007context\030\025 \001(\0132"
- + "5.google.cloud.vision.v1p2beta1.ImageAnn"
- + "otationContext\"\241\001\n\024AnnotateFileResponse\022"
- + "@\n\014input_config\030\001 \001(\0132*.google.cloud.vis"
- + "ion.v1p2beta1.InputConfig\022G\n\tresponses\030\002"
+ + "ce_score\030\t \001(\010\022\034\n\024advanced_ocr_options\030\013"
+ + " \003(\t\"\330\002\n\014ImageContext\022A\n\rlat_long_rect\030\001"
+ + " \001(\0132*.google.cloud.vision.v1p2beta1.Lat"
+ + "LongRect\022\026\n\016language_hints\030\002 \003(\t\022I\n\021crop"
+ + "_hints_params\030\004 \001(\0132..google.cloud.visio"
+ + "n.v1p2beta1.CropHintsParams\022O\n\024web_detec"
+ + "tion_params\030\006 \001(\01321.google.cloud.vision."
+ + "v1p2beta1.WebDetectionParams\022Q\n\025text_det"
+ + "ection_params\030\014 \001(\01322.google.cloud.visio"
+ + "n.v1p2beta1.TextDetectionParams\"\311\001\n\024Anno"
+ + "tateImageRequest\0223\n\005image\030\001 \001(\0132$.google"
+ + ".cloud.vision.v1p2beta1.Image\0228\n\010feature"
+ + "s\030\002 \003(\0132&.google.cloud.vision.v1p2beta1."
+ + "Feature\022B\n\rimage_context\030\003 \001(\0132+.google."
+ + "cloud.vision.v1p2beta1.ImageContext\":\n\026I"
+ + "mageAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013pa"
+ + "ge_number\030\002 \001(\005\"\212\007\n\025AnnotateImageRespons"
+ + "e\022G\n\020face_annotations\030\001 \003(\0132-.google.clo"
+ + "ud.vision.v1p2beta1.FaceAnnotation\022M\n\024la"
+ + "ndmark_annotations\030\002 \003(\0132/.google.cloud."
+ + "vision.v1p2beta1.EntityAnnotation\022I\n\020log"
+ + "o_annotations\030\003 \003(\0132/.google.cloud.visio"
+ + "n.v1p2beta1.EntityAnnotation\022J\n\021label_an"
+ + "notations\030\004 \003(\0132/.google.cloud.vision.v1"
+ + "p2beta1.EntityAnnotation\022I\n\020text_annotat"
+ + "ions\030\005 \003(\0132/.google.cloud.vision.v1p2bet"
+ + "a1.EntityAnnotation\022K\n\024full_text_annotat"
+ + "ion\030\014 \001(\0132-.google.cloud.vision.v1p2beta"
+ + "1.TextAnnotation\022S\n\026safe_search_annotati"
+ + "on\030\006 \001(\01323.google.cloud.vision.v1p2beta1"
+ + ".SafeSearchAnnotation\022S\n\033image_propertie"
+ + "s_annotation\030\010 \001(\0132..google.cloud.vision"
+ + ".v1p2beta1.ImageProperties\022Q\n\025crop_hints"
+ + "_annotation\030\013 \001(\01322.google.cloud.vision."
+ + "v1p2beta1.CropHintsAnnotation\022B\n\rweb_det"
+ + "ection\030\r \001(\0132+.google.cloud.vision.v1p2b"
+ + "eta1.WebDetection\022!\n\005error\030\t \001(\0132\022.googl"
+ + "e.rpc.Status\022F\n\007context\030\025 \001(\01325.google.c"
+ + "loud.vision.v1p2beta1.ImageAnnotationCon"
+ + "text\"\241\001\n\024AnnotateFileResponse\022@\n\014input_c"
+ + "onfig\030\001 \001(\0132*.google.cloud.vision.v1p2be"
+ + "ta1.InputConfig\022G\n\tresponses\030\002 \003(\01324.goo"
+ + "gle.cloud.vision.v1p2beta1.AnnotateImage"
+ + "Response\"h\n\032BatchAnnotateImagesRequest\022J"
+ + "\n\010requests\030\001 \003(\01323.google.cloud.vision.v"
+ + "1p2beta1.AnnotateImageRequestB\003\340A\002\"f\n\033Ba"
+ + "tchAnnotateImagesResponse\022G\n\tresponses\030\001"
+ " \003(\01324.google.cloud.vision.v1p2beta1.Ann"
- + "otateImageResponse\"h\n\032BatchAnnotateImage"
- + "sRequest\022J\n\010requests\030\001 \003(\01323.google.clou"
- + "d.vision.v1p2beta1.AnnotateImageRequestB"
- + "\003\340A\002\"f\n\033BatchAnnotateImagesResponse\022G\n\tr"
- + "esponses\030\001 \003(\01324.google.cloud.vision.v1p"
- + "2beta1.AnnotateImageResponse\"\236\002\n\030AsyncAn"
- + "notateFileRequest\022@\n\014input_config\030\001 \001(\0132"
- + "*.google.cloud.vision.v1p2beta1.InputCon"
- + "fig\0228\n\010features\030\002 \003(\0132&.google.cloud.vis"
- + "ion.v1p2beta1.Feature\022B\n\rimage_context\030\003"
- + " \001(\0132+.google.cloud.vision.v1p2beta1.Ima"
- + "geContext\022B\n\routput_config\030\004 \001(\0132+.googl"
- + "e.cloud.vision.v1p2beta1.OutputConfig\"_\n"
- + "\031AsyncAnnotateFileResponse\022B\n\routput_con"
- + "fig\030\001 \001(\0132+.google.cloud.vision.v1p2beta"
- + "1.OutputConfig\"p\n\036AsyncBatchAnnotateFile"
- + "sRequest\022N\n\010requests\030\001 \003(\01327.google.clou"
- + "d.vision.v1p2beta1.AsyncAnnotateFileRequ"
- + "estB\003\340A\002\"n\n\037AsyncBatchAnnotateFilesRespo"
- + "nse\022K\n\tresponses\030\001 \003(\01328.google.cloud.vi"
- + "sion.v1p2beta1.AsyncAnnotateFileResponse"
- + "\"^\n\013InputConfig\022<\n\ngcs_source\030\001 \001(\0132(.go"
- + "ogle.cloud.vision.v1p2beta1.GcsSource\022\021\n"
- + "\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_"
- + "destination\030\001 \001(\0132-.google.cloud.vision."
- + "v1p2beta1.GcsDestination\022\022\n\nbatch_size\030\002"
- + " \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDes"
- + "tination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetad"
- + "ata\022E\n\005state\030\001 \001(\01626.google.cloud.vision"
- + ".v1p2beta1.OperationMetadata.State\022/\n\013cr"
- + "eate_time\030\005 \001(\0132\032.google.protobuf.Timest"
- + "amp\022/\n\013update_time\030\006 \001(\0132\032.google.protob"
- + "uf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPECIFI"
- + "ED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003"
- + "\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN"
- + "\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010P"
- + "OSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265"
- + "\004\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateImage"
- + "s\0229.google.cloud.vision.v1p2beta1.BatchA"
- + "nnotateImagesRequest\032:.google.cloud.visi"
- + "on.v1p2beta1.BatchAnnotateImagesResponse"
- + "\"0\202\323\344\223\002\037\"\032/v1p2beta1/images:annotate:\001*\332"
- + "A\010requests\022\351\001\n\027AsyncBatchAnnotateFiles\022="
- + ".google.cloud.vision.v1p2beta1.AsyncBatc"
- + "hAnnotateFilesRequest\032\035.google.longrunni"
- + "ng.Operation\"p\202\323\344\223\002(\"#/v1p2beta1/files:a"
- + "syncBatchAnnotate:\001*\332A\010requests\312A4\n\037Asyn"
- + "cBatchAnnotateFilesResponse\022\021OperationMe"
- + "tadata\032v\312A\025vision.googleapis.com\322A[https"
- + "://www.googleapis.com/auth/cloud-platfor"
- + "m,https://www.googleapis.com/auth/cloud-"
- + "visionB\202\001\n!com.google.cloud.vision.v1p2b"
- + "eta1B\023ImageAnnotatorProtoP\001ZCgoogle.gola"
- + "ng.org/genproto/googleapis/cloud/vision/"
- + "v1p2beta1;vision\370\001\001b\006proto3"
+ + "otateImageResponse\"\236\002\n\030AsyncAnnotateFile"
+ + "Request\022@\n\014input_config\030\001 \001(\0132*.google.c"
+ + "loud.vision.v1p2beta1.InputConfig\0228\n\010fea"
+ + "tures\030\002 \003(\0132&.google.cloud.vision.v1p2be"
+ + "ta1.Feature\022B\n\rimage_context\030\003 \001(\0132+.goo"
+ + "gle.cloud.vision.v1p2beta1.ImageContext\022"
+ + "B\n\routput_config\030\004 \001(\0132+.google.cloud.vi"
+ + "sion.v1p2beta1.OutputConfig\"_\n\031AsyncAnno"
+ + "tateFileResponse\022B\n\routput_config\030\001 \001(\0132"
+ + "+.google.cloud.vision.v1p2beta1.OutputCo"
+ + "nfig\"p\n\036AsyncBatchAnnotateFilesRequest\022N"
+ + "\n\010requests\030\001 \003(\01327.google.cloud.vision.v"
+ + "1p2beta1.AsyncAnnotateFileRequestB\003\340A\002\"n"
+ + "\n\037AsyncBatchAnnotateFilesResponse\022K\n\tres"
+ + "ponses\030\001 \003(\01328.google.cloud.vision.v1p2b"
+ + "eta1.AsyncAnnotateFileResponse\"^\n\013InputC"
+ + "onfig\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud"
+ + ".vision.v1p2beta1.GcsSource\022\021\n\tmime_type"
+ + "\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destinatio"
+ + "n\030\001 \001(\0132-.google.cloud.vision.v1p2beta1."
+ + "GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\tGc"
+ + "sSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination\022\013"
+ + "\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n\005sta"
+ + "te\030\001 \001(\01626.google.cloud.vision.v1p2beta1"
+ + ".OperationMetadata.State\022/\n\013create_time\030"
+ + "\005 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd"
+ + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta"
+ + "mp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CR"
+ + "EATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCEL"
+ + "LED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY"
+ + "_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022"
+ + "\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016ImageAn"
+ + "notator\022\276\001\n\023BatchAnnotateImages\0229.google"
+ + ".cloud.vision.v1p2beta1.BatchAnnotateIma"
+ + "gesRequest\032:.google.cloud.vision.v1p2bet"
+ + "a1.BatchAnnotateImagesResponse\"0\202\323\344\223\002\037\"\032"
+ + "/v1p2beta1/images:annotate:\001*\332A\010requests"
+ + "\022\351\001\n\027AsyncBatchAnnotateFiles\022=.google.cl"
+ + "oud.vision.v1p2beta1.AsyncBatchAnnotateF"
+ + "ilesRequest\032\035.google.longrunning.Operati"
+ + "on\"p\202\323\344\223\002(\"#/v1p2beta1/files:asyncBatchA"
+ + "nnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnno"
+ + "tateFilesResponse\022\021OperationMetadata\032v\312A"
+ + "\025vision.googleapis.com\322A[https://www.goo"
+ + "gleapis.com/auth/cloud-platform,https://"
+ + "www.googleapis.com/auth/cloud-visionB\202\001\n"
+ + "!com.google.cloud.vision.v1p2beta1B\023Imag"
+ + "eAnnotatorProtoP\001ZCgoogle.golang.org/gen"
+ + "proto/googleapis/cloud/vision/v1p2beta1;"
+ + "vision\370\001\001b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -559,7 +560,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vision_v1p2beta1_TextDetectionParams_descriptor,
new java.lang.String[] {
- "EnableTextDetectionConfidenceScore",
+ "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions",
});
internal_static_google_cloud_vision_v1p2beta1_ImageContext_descriptor =
getDescriptor().getMessageTypes().get(17);
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java
index e9606418c..27ece1398 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java
@@ -38,7 +38,9 @@ private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder> bu
super(builder);
}
- private TextDetectionParams() {}
+ private TextDetectionParams() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -59,6 +61,7 @@ private TextDetectionParams(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -74,6 +77,16 @@ private TextDetectionParams(
enableTextDetectionConfidenceScore_ = input.readBool();
break;
}
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ advancedOcrOptions_.add(s);
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -90,6 +103,9 @@ private TextDetectionParams(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -130,6 +146,67 @@ public boolean getEnableTextDetectionConfidenceScore() {
return enableTextDetectionConfidenceScore_;
}
+ public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11;
+ private com.google.protobuf.LazyStringList advancedOcrOptions_;
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -147,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enableTextDetectionConfidenceScore_ != false) {
output.writeBool(9, enableTextDetectionConfidenceScore_);
}
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -161,6 +241,14 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeBoolSize(
9, enableTextDetectionConfidenceScore_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAdvancedOcrOptionsList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -179,6 +267,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore())
return false;
+ if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -194,6 +283,10 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore());
+ if (getAdvancedOcrOptionsCount() > 0) {
+ hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -343,6 +436,8 @@ public Builder clear() {
super.clear();
enableTextDetectionConfidenceScore_ = false;
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -370,7 +465,13 @@ public com.google.cloud.vision.v1p2beta1.TextDetectionParams build() {
public com.google.cloud.vision.v1p2beta1.TextDetectionParams buildPartial() {
com.google.cloud.vision.v1p2beta1.TextDetectionParams result =
new com.google.cloud.vision.v1p2beta1.TextDetectionParams(this);
+ int from_bitField0_ = bitField0_;
result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.advancedOcrOptions_ = advancedOcrOptions_;
onBuilt();
return result;
}
@@ -424,6 +525,16 @@ public Builder mergeFrom(com.google.cloud.vision.v1p2beta1.TextDetectionParams o
if (other.getEnableTextDetectionConfidenceScore() != false) {
setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
}
+ if (!other.advancedOcrOptions_.isEmpty()) {
+ if (advancedOcrOptions_.isEmpty()) {
+ advancedOcrOptions_ = other.advancedOcrOptions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -454,6 +565,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean enableTextDetectionConfidenceScore_;
/**
*
@@ -512,6 +625,174 @@ public Builder clearEnableTextDetectionConfidenceScore() {
return this;
}
+ private com.google.protobuf.LazyStringList advancedOcrOptions_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureAdvancedOcrOptionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index to set the value at.
+ * @param value The advancedOcrOptions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdvancedOcrOptions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param values The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) {
+ ensureAdvancedOcrOptionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdvancedOcrOptions() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The bytes of the advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java
index e7e7f4f54..a0a0aac15 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java
@@ -37,4 +37,55 @@ public interface TextDetectionParamsOrBuilder
* @return The enableTextDetectionConfidenceScore.
*/
boolean getEnableTextDetectionConfidenceScore();
+
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ java.util.List getAdvancedOcrOptionsList();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ int getAdvancedOcrOptionsCount();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ java.lang.String getAdvancedOcrOptions(int index);
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index);
}
diff --git a/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto b/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto
index eaf5abf05..5fc3163c7 100644
--- a/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto
+++ b/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto
@@ -529,6 +529,9 @@ message TextDetectionParams {
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
// score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
+
+ // A list of advanced OCR options to fine-tune OCR behavior.
+ repeated string advanced_ocr_options = 11;
}
// Image context and/or feature-specific parameters.
diff --git a/proto-google-cloud-vision-v1p3beta1/pom.xml b/proto-google-cloud-vision-v1p3beta1/pom.xml
index 618383e21..d85e6427e 100644
--- a/proto-google-cloud-vision-v1p3beta1/pom.xml
+++ b/proto-google-cloud-vision-v1p3beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-vision-v1p3beta1
- 0.89.2
+ 0.90.0
proto-google-cloud-vision-v1p3beta1
PROTO library for proto-google-cloud-vision-v1p3beta1
com.google.cloud
google-cloud-vision-parent
- 3.0.2
+ 3.1.0
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java
index c3faa0587..4de97a561 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java
@@ -288,111 +288,112 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "loud.vision.v1p3beta1.CropHint\"(\n\017CropHi"
+ "ntsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022WebD"
+ "etectionParams\022\033\n\023include_geo_results\030\002 "
- + "\001(\010\"E\n\023TextDetectionParams\022.\n&enable_tex"
- + "t_detection_confidence_score\030\t \001(\010\"\253\003\n\014I"
- + "mageContext\022A\n\rlat_long_rect\030\001 \001(\0132*.goo"
- + "gle.cloud.vision.v1p3beta1.LatLongRect\022\026"
- + "\n\016language_hints\030\002 \003(\t\022I\n\021crop_hints_par"
- + "ams\030\004 \001(\0132..google.cloud.vision.v1p3beta"
- + "1.CropHintsParams\022Q\n\025product_search_para"
- + "ms\030\005 \001(\01322.google.cloud.vision.v1p3beta1"
- + ".ProductSearchParams\022O\n\024web_detection_pa"
- + "rams\030\006 \001(\01321.google.cloud.vision.v1p3bet"
- + "a1.WebDetectionParams\022Q\n\025text_detection_"
- + "params\030\014 \001(\01322.google.cloud.vision.v1p3b"
- + "eta1.TextDetectionParams\"\311\001\n\024AnnotateIma"
- + "geRequest\0223\n\005image\030\001 \001(\0132$.google.cloud."
- + "vision.v1p3beta1.Image\0228\n\010features\030\002 \003(\013"
- + "2&.google.cloud.vision.v1p3beta1.Feature"
- + "\022B\n\rimage_context\030\003 \001(\0132+.google.cloud.v"
- + "ision.v1p3beta1.ImageContext\":\n\026ImageAnn"
- + "otationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_numb"
- + "er\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022G\n\020fa"
- + "ce_annotations\030\001 \003(\0132-.google.cloud.visi"
- + "on.v1p3beta1.FaceAnnotation\022M\n\024landmark_"
- + "annotations\030\002 \003(\0132/.google.cloud.vision."
- + "v1p3beta1.EntityAnnotation\022I\n\020logo_annot"
- + "ations\030\003 \003(\0132/.google.cloud.vision.v1p3b"
- + "eta1.EntityAnnotation\022J\n\021label_annotatio"
- + "ns\030\004 \003(\0132/.google.cloud.vision.v1p3beta1"
- + ".EntityAnnotation\022^\n\034localized_object_an"
- + "notations\030\026 \003(\01328.google.cloud.vision.v1"
- + "p3beta1.LocalizedObjectAnnotation\022I\n\020tex"
- + "t_annotations\030\005 \003(\0132/.google.cloud.visio"
- + "n.v1p3beta1.EntityAnnotation\022K\n\024full_tex"
- + "t_annotation\030\014 \001(\0132-.google.cloud.vision"
- + ".v1p3beta1.TextAnnotation\022S\n\026safe_search"
- + "_annotation\030\006 \001(\01323.google.cloud.vision."
- + "v1p3beta1.SafeSearchAnnotation\022S\n\033image_"
- + "properties_annotation\030\010 \001(\0132..google.clo"
- + "ud.vision.v1p3beta1.ImageProperties\022Q\n\025c"
- + "rop_hints_annotation\030\013 \001(\01322.google.clou"
- + "d.vision.v1p3beta1.CropHintsAnnotation\022B"
- + "\n\rweb_detection\030\r \001(\0132+.google.cloud.vis"
- + "ion.v1p3beta1.WebDetection\022S\n\026product_se"
- + "arch_results\030\016 \001(\01323.google.cloud.vision"
- + ".v1p3beta1.ProductSearchResults\022!\n\005error"
- + "\030\t \001(\0132\022.google.rpc.Status\022F\n\007context\030\025 "
- + "\001(\01325.google.cloud.vision.v1p3beta1.Imag"
- + "eAnnotationContext\"\241\001\n\024AnnotateFileRespo"
- + "nse\022@\n\014input_config\030\001 \001(\0132*.google.cloud"
- + ".vision.v1p3beta1.InputConfig\022G\n\trespons"
- + "es\030\002 \003(\01324.google.cloud.vision.v1p3beta1"
- + ".AnnotateImageResponse\"h\n\032BatchAnnotateI"
- + "magesRequest\022J\n\010requests\030\001 \003(\01323.google."
- + "cloud.vision.v1p3beta1.AnnotateImageRequ"
- + "estB\003\340A\002\"f\n\033BatchAnnotateImagesResponse\022"
- + "G\n\tresponses\030\001 \003(\01324.google.cloud.vision"
- + ".v1p3beta1.AnnotateImageResponse\"\236\002\n\030Asy"
- + "ncAnnotateFileRequest\022@\n\014input_config\030\001 "
- + "\001(\0132*.google.cloud.vision.v1p3beta1.Inpu"
- + "tConfig\0228\n\010features\030\002 \003(\0132&.google.cloud"
- + ".vision.v1p3beta1.Feature\022B\n\rimage_conte"
- + "xt\030\003 \001(\0132+.google.cloud.vision.v1p3beta1"
- + ".ImageContext\022B\n\routput_config\030\004 \001(\0132+.g"
- + "oogle.cloud.vision.v1p3beta1.OutputConfi"
- + "g\"_\n\031AsyncAnnotateFileResponse\022B\n\routput"
- + "_config\030\001 \001(\0132+.google.cloud.vision.v1p3"
- + "beta1.OutputConfig\"p\n\036AsyncBatchAnnotate"
- + "FilesRequest\022N\n\010requests\030\001 \003(\01327.google."
- + "cloud.vision.v1p3beta1.AsyncAnnotateFile"
- + "RequestB\003\340A\002\"n\n\037AsyncBatchAnnotateFilesR"
- + "esponse\022K\n\tresponses\030\001 \003(\01328.google.clou"
- + "d.vision.v1p3beta1.AsyncAnnotateFileResp"
- + "onse\"^\n\013InputConfig\022<\n\ngcs_source\030\001 \001(\0132"
- + "(.google.cloud.vision.v1p3beta1.GcsSourc"
- + "e\022\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017"
- + "gcs_destination\030\001 \001(\0132-.google.cloud.vis"
- + "ion.v1p3beta1.GcsDestination\022\022\n\nbatch_si"
- + "ze\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016Gc"
- + "sDestination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationM"
- + "etadata\022E\n\005state\030\001 \001(\01626.google.cloud.vi"
- + "sion.v1p3beta1.OperationMetadata.State\022/"
- + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti"
- + "mestamp\022/\n\013update_time\030\006 \001(\0132\032.google.pr"
- + "otobuf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPE"
- + "CIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DO"
- + "NE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNK"
- + "NOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022"
- + "\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY"
- + "\020\0052\265\004\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateI"
- + "mages\0229.google.cloud.vision.v1p3beta1.Ba"
- + "tchAnnotateImagesRequest\032:.google.cloud."
- + "vision.v1p3beta1.BatchAnnotateImagesResp"
- + "onse\"0\202\323\344\223\002\037\"\032/v1p3beta1/images:annotate"
- + ":\001*\332A\010requests\022\351\001\n\027AsyncBatchAnnotateFil"
- + "es\022=.google.cloud.vision.v1p3beta1.Async"
- + "BatchAnnotateFilesRequest\032\035.google.longr"
- + "unning.Operation\"p\202\323\344\223\002(\"#/v1p3beta1/fil"
- + "es:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037"
- + "AsyncBatchAnnotateFilesResponse\022\021Operati"
- + "onMetadata\032v\312A\025vision.googleapis.com\322A[h"
- + "ttps://www.googleapis.com/auth/cloud-pla"
- + "tform,https://www.googleapis.com/auth/cl"
- + "oud-visionB\202\001\n!com.google.cloud.vision.v"
- + "1p3beta1B\023ImageAnnotatorProtoP\001ZCgoogle."
- + "golang.org/genproto/googleapis/cloud/vis"
- + "ion/v1p3beta1;vision\370\001\001b\006proto3"
+ + "\001(\010\"c\n\023TextDetectionParams\022.\n&enable_tex"
+ + "t_detection_confidence_score\030\t \001(\010\022\034\n\024ad"
+ + "vanced_ocr_options\030\013 \003(\t\"\253\003\n\014ImageContex"
+ + "t\022A\n\rlat_long_rect\030\001 \001(\0132*.google.cloud."
+ + "vision.v1p3beta1.LatLongRect\022\026\n\016language"
+ + "_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(\0132"
+ + "..google.cloud.vision.v1p3beta1.CropHint"
+ + "sParams\022Q\n\025product_search_params\030\005 \001(\01322"
+ + ".google.cloud.vision.v1p3beta1.ProductSe"
+ + "archParams\022O\n\024web_detection_params\030\006 \001(\013"
+ + "21.google.cloud.vision.v1p3beta1.WebDete"
+ + "ctionParams\022Q\n\025text_detection_params\030\014 \001"
+ + "(\01322.google.cloud.vision.v1p3beta1.TextD"
+ + "etectionParams\"\311\001\n\024AnnotateImageRequest\022"
+ + "3\n\005image\030\001 \001(\0132$.google.cloud.vision.v1p"
+ + "3beta1.Image\0228\n\010features\030\002 \003(\0132&.google."
+ + "cloud.vision.v1p3beta1.Feature\022B\n\rimage_"
+ + "context\030\003 \001(\0132+.google.cloud.vision.v1p3"
+ + "beta1.ImageContext\":\n\026ImageAnnotationCon"
+ + "text\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001(\005\"\277"
+ + "\010\n\025AnnotateImageResponse\022G\n\020face_annotat"
+ + "ions\030\001 \003(\0132-.google.cloud.vision.v1p3bet"
+ + "a1.FaceAnnotation\022M\n\024landmark_annotation"
+ + "s\030\002 \003(\0132/.google.cloud.vision.v1p3beta1."
+ + "EntityAnnotation\022I\n\020logo_annotations\030\003 \003"
+ + "(\0132/.google.cloud.vision.v1p3beta1.Entit"
+ + "yAnnotation\022J\n\021label_annotations\030\004 \003(\0132/"
+ + ".google.cloud.vision.v1p3beta1.EntityAnn"
+ + "otation\022^\n\034localized_object_annotations\030"
+ + "\026 \003(\01328.google.cloud.vision.v1p3beta1.Lo"
+ + "calizedObjectAnnotation\022I\n\020text_annotati"
+ + "ons\030\005 \003(\0132/.google.cloud.vision.v1p3beta"
+ + "1.EntityAnnotation\022K\n\024full_text_annotati"
+ + "on\030\014 \001(\0132-.google.cloud.vision.v1p3beta1"
+ + ".TextAnnotation\022S\n\026safe_search_annotatio"
+ + "n\030\006 \001(\01323.google.cloud.vision.v1p3beta1."
+ + "SafeSearchAnnotation\022S\n\033image_properties"
+ + "_annotation\030\010 \001(\0132..google.cloud.vision."
+ + "v1p3beta1.ImageProperties\022Q\n\025crop_hints_"
+ + "annotation\030\013 \001(\01322.google.cloud.vision.v"
+ + "1p3beta1.CropHintsAnnotation\022B\n\rweb_dete"
+ + "ction\030\r \001(\0132+.google.cloud.vision.v1p3be"
+ + "ta1.WebDetection\022S\n\026product_search_resul"
+ + "ts\030\016 \001(\01323.google.cloud.vision.v1p3beta1"
+ + ".ProductSearchResults\022!\n\005error\030\t \001(\0132\022.g"
+ + "oogle.rpc.Status\022F\n\007context\030\025 \001(\01325.goog"
+ + "le.cloud.vision.v1p3beta1.ImageAnnotatio"
+ + "nContext\"\241\001\n\024AnnotateFileResponse\022@\n\014inp"
+ + "ut_config\030\001 \001(\0132*.google.cloud.vision.v1"
+ + "p3beta1.InputConfig\022G\n\tresponses\030\002 \003(\01324"
+ + ".google.cloud.vision.v1p3beta1.AnnotateI"
+ + "mageResponse\"h\n\032BatchAnnotateImagesReque"
+ + "st\022J\n\010requests\030\001 \003(\01323.google.cloud.visi"
+ + "on.v1p3beta1.AnnotateImageRequestB\003\340A\002\"f"
+ + "\n\033BatchAnnotateImagesResponse\022G\n\trespons"
+ + "es\030\001 \003(\01324.google.cloud.vision.v1p3beta1"
+ + ".AnnotateImageResponse\"\236\002\n\030AsyncAnnotate"
+ + "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog"
+ + "le.cloud.vision.v1p3beta1.InputConfig\0228\n"
+ + "\010features\030\002 \003(\0132&.google.cloud.vision.v1"
+ + "p3beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+"
+ + ".google.cloud.vision.v1p3beta1.ImageCont"
+ + "ext\022B\n\routput_config\030\004 \001(\0132+.google.clou"
+ + "d.vision.v1p3beta1.OutputConfig\"_\n\031Async"
+ + "AnnotateFileResponse\022B\n\routput_config\030\001 "
+ + "\001(\0132+.google.cloud.vision.v1p3beta1.Outp"
+ + "utConfig\"p\n\036AsyncBatchAnnotateFilesReque"
+ + "st\022N\n\010requests\030\001 \003(\01327.google.cloud.visi"
+ + "on.v1p3beta1.AsyncAnnotateFileRequestB\003\340"
+ + "A\002\"n\n\037AsyncBatchAnnotateFilesResponse\022K\n"
+ + "\tresponses\030\001 \003(\01328.google.cloud.vision.v"
+ + "1p3beta1.AsyncAnnotateFileResponse\"^\n\013In"
+ + "putConfig\022<\n\ngcs_source\030\001 \001(\0132(.google.c"
+ + "loud.vision.v1p3beta1.GcsSource\022\021\n\tmime_"
+ + "type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gcs_destin"
+ + "ation\030\001 \001(\0132-.google.cloud.vision.v1p3be"
+ + "ta1.GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030"
+ + "\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestinati"
+ + "on\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMetadata\022E\n"
+ + "\005state\030\001 \001(\01626.google.cloud.vision.v1p3b"
+ + "eta1.OperationMetadata.State\022/\n\013create_t"
+ + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\022/\n"
+ + "\013update_time\030\006 \001(\0132\032.google.protobuf.Tim"
+ + "estamp\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013"
+ + "\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\r\n\tCA"
+ + "NCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNOWN\020\000\022\021\n\r"
+ + "VERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBL"
+ + "E\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\265\004\n\016Ima"
+ + "geAnnotator\022\276\001\n\023BatchAnnotateImages\0229.go"
+ + "ogle.cloud.vision.v1p3beta1.BatchAnnotat"
+ + "eImagesRequest\032:.google.cloud.vision.v1p"
+ + "3beta1.BatchAnnotateImagesResponse\"0\202\323\344\223"
+ + "\002\037\"\032/v1p3beta1/images:annotate:\001*\332A\010requ"
+ + "ests\022\351\001\n\027AsyncBatchAnnotateFiles\022=.googl"
+ + "e.cloud.vision.v1p3beta1.AsyncBatchAnnot"
+ + "ateFilesRequest\032\035.google.longrunning.Ope"
+ + "ration\"p\202\323\344\223\002(\"#/v1p3beta1/files:asyncBa"
+ + "tchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatch"
+ + "AnnotateFilesResponse\022\021OperationMetadata"
+ + "\032v\312A\025vision.googleapis.com\322A[https://www"
+ + ".googleapis.com/auth/cloud-platform,http"
+ + "s://www.googleapis.com/auth/cloud-vision"
+ + "B\202\001\n!com.google.cloud.vision.v1p3beta1B\023"
+ + "ImageAnnotatorProtoP\001ZCgoogle.golang.org"
+ + "/genproto/googleapis/cloud/vision/v1p3be"
+ + "ta1;vision\370\001\001b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -585,7 +586,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vision_v1p3beta1_TextDetectionParams_descriptor,
new java.lang.String[] {
- "EnableTextDetectionConfidenceScore",
+ "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions",
});
internal_static_google_cloud_vision_v1p3beta1_ImageContext_descriptor =
getDescriptor().getMessageTypes().get(18);
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java
index 7f3d9ba5c..cd18a9ab8 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java
@@ -38,7 +38,9 @@ private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder> bu
super(builder);
}
- private TextDetectionParams() {}
+ private TextDetectionParams() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -59,6 +61,7 @@ private TextDetectionParams(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -74,6 +77,16 @@ private TextDetectionParams(
enableTextDetectionConfidenceScore_ = input.readBool();
break;
}
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ advancedOcrOptions_.add(s);
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -90,6 +103,9 @@ private TextDetectionParams(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -130,6 +146,67 @@ public boolean getEnableTextDetectionConfidenceScore() {
return enableTextDetectionConfidenceScore_;
}
+ public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11;
+ private com.google.protobuf.LazyStringList advancedOcrOptions_;
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -147,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enableTextDetectionConfidenceScore_ != false) {
output.writeBool(9, enableTextDetectionConfidenceScore_);
}
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -161,6 +241,14 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeBoolSize(
9, enableTextDetectionConfidenceScore_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAdvancedOcrOptionsList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -179,6 +267,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore())
return false;
+ if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -194,6 +283,10 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore());
+ if (getAdvancedOcrOptionsCount() > 0) {
+ hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -343,6 +436,8 @@ public Builder clear() {
super.clear();
enableTextDetectionConfidenceScore_ = false;
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -370,7 +465,13 @@ public com.google.cloud.vision.v1p3beta1.TextDetectionParams build() {
public com.google.cloud.vision.v1p3beta1.TextDetectionParams buildPartial() {
com.google.cloud.vision.v1p3beta1.TextDetectionParams result =
new com.google.cloud.vision.v1p3beta1.TextDetectionParams(this);
+ int from_bitField0_ = bitField0_;
result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.advancedOcrOptions_ = advancedOcrOptions_;
onBuilt();
return result;
}
@@ -424,6 +525,16 @@ public Builder mergeFrom(com.google.cloud.vision.v1p3beta1.TextDetectionParams o
if (other.getEnableTextDetectionConfidenceScore() != false) {
setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
}
+ if (!other.advancedOcrOptions_.isEmpty()) {
+ if (advancedOcrOptions_.isEmpty()) {
+ advancedOcrOptions_ = other.advancedOcrOptions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -454,6 +565,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean enableTextDetectionConfidenceScore_;
/**
*
@@ -512,6 +625,174 @@ public Builder clearEnableTextDetectionConfidenceScore() {
return this;
}
+ private com.google.protobuf.LazyStringList advancedOcrOptions_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureAdvancedOcrOptionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index to set the value at.
+ * @param value The advancedOcrOptions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdvancedOcrOptions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param values The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) {
+ ensureAdvancedOcrOptionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdvancedOcrOptions() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The bytes of the advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java
index 3c2c1d525..df5e59803 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java
@@ -37,4 +37,55 @@ public interface TextDetectionParamsOrBuilder
* @return The enableTextDetectionConfidenceScore.
*/
boolean getEnableTextDetectionConfidenceScore();
+
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ java.util.List getAdvancedOcrOptionsList();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ int getAdvancedOcrOptionsCount();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ java.lang.String getAdvancedOcrOptions(int index);
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index);
}
diff --git a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto
index 5f2111784..ca0b4e86d 100644
--- a/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto
+++ b/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto
@@ -557,6 +557,9 @@ message TextDetectionParams {
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
// score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
+
+ // A list of advanced OCR options to fine-tune OCR behavior.
+ repeated string advanced_ocr_options = 11;
}
// Image context and/or feature-specific parameters.
diff --git a/proto-google-cloud-vision-v1p4beta1/pom.xml b/proto-google-cloud-vision-v1p4beta1/pom.xml
index d979c7df4..3126999b5 100644
--- a/proto-google-cloud-vision-v1p4beta1/pom.xml
+++ b/proto-google-cloud-vision-v1p4beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-vision-v1p4beta1
- 0.89.2
+ 0.90.0
proto-google-cloud-vision-v1p4beta1
PROTO library for proto-google-cloud-vision-v1p4beta1
com.google.cloud
google-cloud-vision-parent
- 3.0.2
+ 3.1.0
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java
index 469eeec6e..5ca697736 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java
@@ -312,145 +312,145 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".cloud.vision.v1p4beta1.CropHint\"(\n\017Crop"
+ "HintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022We"
+ "bDetectionParams\022\033\n\023include_geo_results\030"
- + "\002 \001(\010\"E\n\023TextDetectionParams\022.\n&enable_t"
- + "ext_detection_confidence_score\030\t \001(\010\"\202\004\n"
- + "\014ImageContext\022A\n\rlat_long_rect\030\001 \001(\0132*.g"
- + "oogle.cloud.vision.v1p4beta1.LatLongRect"
- + "\022\026\n\016language_hints\030\002 \003(\t\022I\n\021crop_hints_p"
- + "arams\030\004 \001(\0132..google.cloud.vision.v1p4be"
- + "ta1.CropHintsParams\022U\n\027face_recognition_"
- + "params\030\n \001(\01324.google.cloud.vision.v1p4b"
- + "eta1.FaceRecognitionParams\022Q\n\025product_se"
- + "arch_params\030\005 \001(\01322.google.cloud.vision."
- + "v1p4beta1.ProductSearchParams\022O\n\024web_det"
- + "ection_params\030\006 \001(\01321.google.cloud.visio"
- + "n.v1p4beta1.WebDetectionParams\022Q\n\025text_d"
- + "etection_params\030\014 \001(\01322.google.cloud.vis"
- + "ion.v1p4beta1.TextDetectionParams\"\311\001\n\024An"
- + "notateImageRequest\0223\n\005image\030\001 \001(\0132$.goog"
- + "le.cloud.vision.v1p4beta1.Image\0228\n\010featu"
- + "res\030\002 \003(\0132&.google.cloud.vision.v1p4beta"
- + "1.Feature\022B\n\rimage_context\030\003 \001(\0132+.googl"
- + "e.cloud.vision.v1p4beta1.ImageContext\":\n"
- + "\026ImageAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013"
- + "page_number\030\002 \001(\005\"\277\010\n\025AnnotateImageRespo"
- + "nse\022G\n\020face_annotations\030\001 \003(\0132-.google.c"
- + "loud.vision.v1p4beta1.FaceAnnotation\022M\n\024"
- + "landmark_annotations\030\002 \003(\0132/.google.clou"
- + "d.vision.v1p4beta1.EntityAnnotation\022I\n\020l"
- + "ogo_annotations\030\003 \003(\0132/.google.cloud.vis"
- + "ion.v1p4beta1.EntityAnnotation\022J\n\021label_"
- + "annotations\030\004 \003(\0132/.google.cloud.vision."
- + "v1p4beta1.EntityAnnotation\022^\n\034localized_"
- + "object_annotations\030\026 \003(\01328.google.cloud."
- + "vision.v1p4beta1.LocalizedObjectAnnotati"
- + "on\022I\n\020text_annotations\030\005 \003(\0132/.google.cl"
- + "oud.vision.v1p4beta1.EntityAnnotation\022K\n"
- + "\024full_text_annotation\030\014 \001(\0132-.google.clo"
- + "ud.vision.v1p4beta1.TextAnnotation\022S\n\026sa"
- + "fe_search_annotation\030\006 \001(\01323.google.clou"
- + "d.vision.v1p4beta1.SafeSearchAnnotation\022"
- + "S\n\033image_properties_annotation\030\010 \001(\0132..g"
- + "oogle.cloud.vision.v1p4beta1.ImageProper"
- + "ties\022Q\n\025crop_hints_annotation\030\013 \001(\01322.go"
- + "ogle.cloud.vision.v1p4beta1.CropHintsAnn"
- + "otation\022B\n\rweb_detection\030\r \001(\0132+.google."
- + "cloud.vision.v1p4beta1.WebDetection\022S\n\026p"
- + "roduct_search_results\030\016 \001(\01323.google.clo"
- + "ud.vision.v1p4beta1.ProductSearchResults"
- + "\022!\n\005error\030\t \001(\0132\022.google.rpc.Status\022F\n\007c"
- + "ontext\030\025 \001(\01325.google.cloud.vision.v1p4b"
- + "eta1.ImageAnnotationContext\"h\n\032BatchAnno"
- + "tateImagesRequest\022J\n\010requests\030\001 \003(\01323.go"
- + "ogle.cloud.vision.v1p4beta1.AnnotateImag"
- + "eRequestB\003\340A\002\"f\n\033BatchAnnotateImagesResp"
- + "onse\022G\n\tresponses\030\001 \003(\01324.google.cloud.v"
- + "ision.v1p4beta1.AnnotateImageResponse\"\344\001"
- + "\n\023AnnotateFileRequest\022@\n\014input_config\030\001 "
- + "\001(\0132*.google.cloud.vision.v1p4beta1.Inpu"
- + "tConfig\0228\n\010features\030\002 \003(\0132&.google.cloud"
- + ".vision.v1p4beta1.Feature\022B\n\rimage_conte"
- + "xt\030\003 \001(\0132+.google.cloud.vision.v1p4beta1"
- + ".ImageContext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024Annotat"
- + "eFileResponse\022@\n\014input_config\030\001 \001(\0132*.go"
- + "ogle.cloud.vision.v1p4beta1.InputConfig\022"
- + "G\n\tresponses\030\002 \003(\01324.google.cloud.vision"
- + ".v1p4beta1.AnnotateImageResponse\022\023\n\013tota"
- + "l_pages\030\003 \001(\005\022!\n\005error\030\004 \001(\0132\022.google.rp"
- + "c.Status\"f\n\031BatchAnnotateFilesRequest\022I\n"
- + "\010requests\030\001 \003(\01322.google.cloud.vision.v1"
- + "p4beta1.AnnotateFileRequestB\003\340A\002\"d\n\032Batc"
- + "hAnnotateFilesResponse\022F\n\tresponses\030\001 \003("
- + "\01323.google.cloud.vision.v1p4beta1.Annota"
- + "teFileResponse\"\236\002\n\030AsyncAnnotateFileRequ"
- + "est\022@\n\014input_config\030\001 \001(\0132*.google.cloud"
- + ".vision.v1p4beta1.InputConfig\0228\n\010feature"
- + "s\030\002 \003(\0132&.google.cloud.vision.v1p4beta1."
- + "Feature\022B\n\rimage_context\030\003 \001(\0132+.google."
- + "cloud.vision.v1p4beta1.ImageContext\022B\n\ro"
- + "utput_config\030\004 \001(\0132+.google.cloud.vision"
- + ".v1p4beta1.OutputConfig\"_\n\031AsyncAnnotate"
- + "FileResponse\022B\n\routput_config\030\001 \001(\0132+.go"
- + "ogle.cloud.vision.v1p4beta1.OutputConfig"
- + "\"\266\001\n\037AsyncBatchAnnotateImagesRequest\022J\n\010"
- + "requests\030\001 \003(\01323.google.cloud.vision.v1p"
- + "4beta1.AnnotateImageRequestB\003\340A\002\022G\n\routp"
- + "ut_config\030\002 \001(\0132+.google.cloud.vision.v1"
- + "p4beta1.OutputConfigB\003\340A\002\"f\n AsyncBatchA"
- + "nnotateImagesResponse\022B\n\routput_config\030\001"
- + " \001(\0132+.google.cloud.vision.v1p4beta1.Out"
- + "putConfig\"p\n\036AsyncBatchAnnotateFilesRequ"
- + "est\022N\n\010requests\030\001 \003(\01327.google.cloud.vis"
- + "ion.v1p4beta1.AsyncAnnotateFileRequestB\003"
- + "\340A\002\"n\n\037AsyncBatchAnnotateFilesResponse\022K"
- + "\n\tresponses\030\001 \003(\01328.google.cloud.vision."
- + "v1p4beta1.AsyncAnnotateFileResponse\"o\n\013I"
- + "nputConfig\022<\n\ngcs_source\030\001 \001(\0132(.google."
- + "cloud.vision.v1p4beta1.GcsSource\022\017\n\007cont"
- + "ent\030\003 \001(\014\022\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputCo"
- + "nfig\022F\n\017gcs_destination\030\001 \001(\0132-.google.c"
- + "loud.vision.v1p4beta1.GcsDestination\022\022\n\n"
- + "batch_size\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001"
- + "(\t\"\035\n\016GcsDestination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021Op"
- + "erationMetadata\022E\n\005state\030\001 \001(\01626.google."
- + "cloud.vision.v1p4beta1.OperationMetadata"
- + ".State\022/\n\013create_time\030\005 \001(\0132\032.google.pro"
- + "tobuf.Timestamp\022/\n\013update_time\030\006 \001(\0132\032.g"
- + "oogle.protobuf.Timestamp\"Q\n\005State\022\025\n\021STA"
- + "TE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING"
- + "\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihoo"
- + "d\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNL"
- + "IKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VER"
- + "Y_LIKELY\020\0052\361\007\n\016ImageAnnotator\022\276\001\n\023BatchA"
- + "nnotateImages\0229.google.cloud.vision.v1p4"
- + "beta1.BatchAnnotateImagesRequest\032:.googl"
- + "e.cloud.vision.v1p4beta1.BatchAnnotateIm"
- + "agesResponse\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:"
- + "annotate:\001*\332A\010requests\022\272\001\n\022BatchAnnotate"
- + "Files\0228.google.cloud.vision.v1p4beta1.Ba"
- + "tchAnnotateFilesRequest\0329.google.cloud.v"
- + "ision.v1p4beta1.BatchAnnotateFilesRespon"
- + "se\"/\202\323\344\223\002\036\"\031/v1p4beta1/files:annotate:\001*"
- + "\332A\010requests\022\374\001\n\030AsyncBatchAnnotateImages"
- + "\022>.google.cloud.vision.v1p4beta1.AsyncBa"
- + "tchAnnotateImagesRequest\032\035.google.longru"
- + "nning.Operation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/ima"
- + "ges:asyncBatchAnnotate:\001*\332A\026requests,out"
- + "put_config\312A5\n AsyncBatchAnnotateImagesR"
- + "esponse\022\021OperationMetadata\022\351\001\n\027AsyncBatc"
- + "hAnnotateFiles\022=.google.cloud.vision.v1p"
- + "4beta1.AsyncBatchAnnotateFilesRequest\032\035."
- + "google.longrunning.Operation\"p\202\323\344\223\002(\"#/v"
- + "1p4beta1/files:asyncBatchAnnotate:\001*\332A\010r"
- + "equests\312A4\n\037AsyncBatchAnnotateFilesRespo"
- + "nse\022\021OperationMetadata\032v\312A\025vision.google"
- + "apis.com\322A[https://www.googleapis.com/au"
- + "th/cloud-platform,https://www.googleapis"
- + ".com/auth/cloud-visionB\211\001\n!com.google.cl"
- + "oud.vision.v1p4beta1B\023ImageAnnotatorProt"
- + "oP\001ZCgoogle.golang.org/genproto/googleap"
- + "is/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GC"
- + "VNb\006proto3"
+ + "\002 \001(\010\"c\n\023TextDetectionParams\022.\n&enable_t"
+ + "ext_detection_confidence_score\030\t \001(\010\022\034\n\024"
+ + "advanced_ocr_options\030\013 \003(\t\"\202\004\n\014ImageCont"
+ + "ext\022A\n\rlat_long_rect\030\001 \001(\0132*.google.clou"
+ + "d.vision.v1p4beta1.LatLongRect\022\026\n\016langua"
+ + "ge_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001("
+ + "\0132..google.cloud.vision.v1p4beta1.CropHi"
+ + "ntsParams\022U\n\027face_recognition_params\030\n \001"
+ + "(\01324.google.cloud.vision.v1p4beta1.FaceR"
+ + "ecognitionParams\022Q\n\025product_search_param"
+ + "s\030\005 \001(\01322.google.cloud.vision.v1p4beta1."
+ + "ProductSearchParams\022O\n\024web_detection_par"
+ + "ams\030\006 \001(\01321.google.cloud.vision.v1p4beta"
+ + "1.WebDetectionParams\022Q\n\025text_detection_p"
+ + "arams\030\014 \001(\01322.google.cloud.vision.v1p4be"
+ + "ta1.TextDetectionParams\"\311\001\n\024AnnotateImag"
+ + "eRequest\0223\n\005image\030\001 \001(\0132$.google.cloud.v"
+ + "ision.v1p4beta1.Image\0228\n\010features\030\002 \003(\0132"
+ + "&.google.cloud.vision.v1p4beta1.Feature\022"
+ + "B\n\rimage_context\030\003 \001(\0132+.google.cloud.vi"
+ + "sion.v1p4beta1.ImageContext\":\n\026ImageAnno"
+ + "tationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_numbe"
+ + "r\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022G\n\020fac"
+ + "e_annotations\030\001 \003(\0132-.google.cloud.visio"
+ + "n.v1p4beta1.FaceAnnotation\022M\n\024landmark_a"
+ + "nnotations\030\002 \003(\0132/.google.cloud.vision.v"
+ + "1p4beta1.EntityAnnotation\022I\n\020logo_annota"
+ + "tions\030\003 \003(\0132/.google.cloud.vision.v1p4be"
+ + "ta1.EntityAnnotation\022J\n\021label_annotation"
+ + "s\030\004 \003(\0132/.google.cloud.vision.v1p4beta1."
+ + "EntityAnnotation\022^\n\034localized_object_ann"
+ + "otations\030\026 \003(\01328.google.cloud.vision.v1p"
+ + "4beta1.LocalizedObjectAnnotation\022I\n\020text"
+ + "_annotations\030\005 \003(\0132/.google.cloud.vision"
+ + ".v1p4beta1.EntityAnnotation\022K\n\024full_text"
+ + "_annotation\030\014 \001(\0132-.google.cloud.vision."
+ + "v1p4beta1.TextAnnotation\022S\n\026safe_search_"
+ + "annotation\030\006 \001(\01323.google.cloud.vision.v"
+ + "1p4beta1.SafeSearchAnnotation\022S\n\033image_p"
+ + "roperties_annotation\030\010 \001(\0132..google.clou"
+ + "d.vision.v1p4beta1.ImageProperties\022Q\n\025cr"
+ + "op_hints_annotation\030\013 \001(\01322.google.cloud"
+ + ".vision.v1p4beta1.CropHintsAnnotation\022B\n"
+ + "\rweb_detection\030\r \001(\0132+.google.cloud.visi"
+ + "on.v1p4beta1.WebDetection\022S\n\026product_sea"
+ + "rch_results\030\016 \001(\01323.google.cloud.vision."
+ + "v1p4beta1.ProductSearchResults\022!\n\005error\030"
+ + "\t \001(\0132\022.google.rpc.Status\022F\n\007context\030\025 \001"
+ + "(\01325.google.cloud.vision.v1p4beta1.Image"
+ + "AnnotationContext\"h\n\032BatchAnnotateImages"
+ + "Request\022J\n\010requests\030\001 \003(\01323.google.cloud"
+ + ".vision.v1p4beta1.AnnotateImageRequestB\003"
+ + "\340A\002\"f\n\033BatchAnnotateImagesResponse\022G\n\tre"
+ + "sponses\030\001 \003(\01324.google.cloud.vision.v1p4"
+ + "beta1.AnnotateImageResponse\"\344\001\n\023Annotate"
+ + "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog"
+ + "le.cloud.vision.v1p4beta1.InputConfig\0228\n"
+ + "\010features\030\002 \003(\0132&.google.cloud.vision.v1"
+ + "p4beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+"
+ + ".google.cloud.vision.v1p4beta1.ImageCont"
+ + "ext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024AnnotateFileRespo"
+ + "nse\022@\n\014input_config\030\001 \001(\0132*.google.cloud"
+ + ".vision.v1p4beta1.InputConfig\022G\n\trespons"
+ + "es\030\002 \003(\01324.google.cloud.vision.v1p4beta1"
+ + ".AnnotateImageResponse\022\023\n\013total_pages\030\003 "
+ + "\001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"f"
+ + "\n\031BatchAnnotateFilesRequest\022I\n\010requests\030"
+ + "\001 \003(\01322.google.cloud.vision.v1p4beta1.An"
+ + "notateFileRequestB\003\340A\002\"d\n\032BatchAnnotateF"
+ + "ilesResponse\022F\n\tresponses\030\001 \003(\01323.google"
+ + ".cloud.vision.v1p4beta1.AnnotateFileResp"
+ + "onse\"\236\002\n\030AsyncAnnotateFileRequest\022@\n\014inp"
+ + "ut_config\030\001 \001(\0132*.google.cloud.vision.v1"
+ + "p4beta1.InputConfig\0228\n\010features\030\002 \003(\0132&."
+ + "google.cloud.vision.v1p4beta1.Feature\022B\n"
+ + "\rimage_context\030\003 \001(\0132+.google.cloud.visi"
+ + "on.v1p4beta1.ImageContext\022B\n\routput_conf"
+ + "ig\030\004 \001(\0132+.google.cloud.vision.v1p4beta1"
+ + ".OutputConfig\"_\n\031AsyncAnnotateFileRespon"
+ + "se\022B\n\routput_config\030\001 \001(\0132+.google.cloud"
+ + ".vision.v1p4beta1.OutputConfig\"\266\001\n\037Async"
+ + "BatchAnnotateImagesRequest\022J\n\010requests\030\001"
+ + " \003(\01323.google.cloud.vision.v1p4beta1.Ann"
+ + "otateImageRequestB\003\340A\002\022G\n\routput_config\030"
+ + "\002 \001(\0132+.google.cloud.vision.v1p4beta1.Ou"
+ + "tputConfigB\003\340A\002\"f\n AsyncBatchAnnotateIma"
+ + "gesResponse\022B\n\routput_config\030\001 \001(\0132+.goo"
+ + "gle.cloud.vision.v1p4beta1.OutputConfig\""
+ + "p\n\036AsyncBatchAnnotateFilesRequest\022N\n\010req"
+ + "uests\030\001 \003(\01327.google.cloud.vision.v1p4be"
+ + "ta1.AsyncAnnotateFileRequestB\003\340A\002\"n\n\037Asy"
+ + "ncBatchAnnotateFilesResponse\022K\n\tresponse"
+ + "s\030\001 \003(\01328.google.cloud.vision.v1p4beta1."
+ + "AsyncAnnotateFileResponse\"o\n\013InputConfig"
+ + "\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud.visi"
+ + "on.v1p4beta1.GcsSource\022\017\n\007content\030\003 \001(\014\022"
+ + "\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gc"
+ + "s_destination\030\001 \001(\0132-.google.cloud.visio"
+ + "n.v1p4beta1.GcsDestination\022\022\n\nbatch_size"
+ + "\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsD"
+ + "estination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMet"
+ + "adata\022E\n\005state\030\001 \001(\01626.google.cloud.visi"
+ + "on.v1p4beta1.OperationMetadata.State\022/\n\013"
+ + "create_time\030\005 \001(\0132\032.google.protobuf.Time"
+ + "stamp\022/\n\013update_time\030\006 \001(\0132\032.google.prot"
+ + "obuf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPECI"
+ + "FIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE"
+ + "\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNO"
+ + "WN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n"
+ + "\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005"
+ + "2\361\007\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateIma"
+ + "ges\0229.google.cloud.vision.v1p4beta1.Batc"
+ + "hAnnotateImagesRequest\032:.google.cloud.vi"
+ + "sion.v1p4beta1.BatchAnnotateImagesRespon"
+ + "se\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:annotate:\001"
+ + "*\332A\010requests\022\272\001\n\022BatchAnnotateFiles\0228.go"
+ + "ogle.cloud.vision.v1p4beta1.BatchAnnotat"
+ + "eFilesRequest\0329.google.cloud.vision.v1p4"
+ + "beta1.BatchAnnotateFilesResponse\"/\202\323\344\223\002\036"
+ + "\"\031/v1p4beta1/files:annotate:\001*\332A\010request"
+ + "s\022\374\001\n\030AsyncBatchAnnotateImages\022>.google."
+ + "cloud.vision.v1p4beta1.AsyncBatchAnnotat"
+ + "eImagesRequest\032\035.google.longrunning.Oper"
+ + "ation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/images:asyncB"
+ + "atchAnnotate:\001*\332A\026requests,output_config"
+ + "\312A5\n AsyncBatchAnnotateImagesResponse\022\021O"
+ + "perationMetadata\022\351\001\n\027AsyncBatchAnnotateF"
+ + "iles\022=.google.cloud.vision.v1p4beta1.Asy"
+ + "ncBatchAnnotateFilesRequest\032\035.google.lon"
+ + "grunning.Operation\"p\202\323\344\223\002(\"#/v1p4beta1/f"
+ + "iles:asyncBatchAnnotate:\001*\332A\010requests\312A4"
+ + "\n\037AsyncBatchAnnotateFilesResponse\022\021Opera"
+ + "tionMetadata\032v\312A\025vision.googleapis.com\322A"
+ + "[https://www.googleapis.com/auth/cloud-p"
+ + "latform,https://www.googleapis.com/auth/"
+ + "cloud-visionB\211\001\n!com.google.cloud.vision"
+ + ".v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogl"
+ + "e.golang.org/genproto/googleapis/cloud/v"
+ + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -646,7 +646,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vision_v1p4beta1_TextDetectionParams_descriptor,
new java.lang.String[] {
- "EnableTextDetectionConfidenceScore",
+ "EnableTextDetectionConfidenceScore", "AdvancedOcrOptions",
});
internal_static_google_cloud_vision_v1p4beta1_ImageContext_descriptor =
getDescriptor().getMessageTypes().get(18);
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java
index 3ce07f30d..afdc5a7eb 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java
@@ -38,7 +38,9 @@ private TextDetectionParams(com.google.protobuf.GeneratedMessageV3.Builder> bu
super(builder);
}
- private TextDetectionParams() {}
+ private TextDetectionParams() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -59,6 +61,7 @@ private TextDetectionParams(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
+ int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -74,6 +77,16 @@ private TextDetectionParams(
enableTextDetectionConfidenceScore_ = input.readBool();
break;
}
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ advancedOcrOptions_.add(s);
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -90,6 +103,9 @@ private TextDetectionParams(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -130,6 +146,67 @@ public boolean getEnableTextDetectionConfidenceScore() {
return enableTextDetectionConfidenceScore_;
}
+ public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER = 11;
+ private com.google.protobuf.LazyStringList advancedOcrOptions_;
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -147,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enableTextDetectionConfidenceScore_ != false) {
output.writeBool(9, enableTextDetectionConfidenceScore_);
}
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, advancedOcrOptions_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -161,6 +241,14 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeBoolSize(
9, enableTextDetectionConfidenceScore_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < advancedOcrOptions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(advancedOcrOptions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAdvancedOcrOptionsList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -179,6 +267,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableTextDetectionConfidenceScore() != other.getEnableTextDetectionConfidenceScore())
return false;
+ if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -194,6 +283,10 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getEnableTextDetectionConfidenceScore());
+ if (getAdvancedOcrOptionsCount() > 0) {
+ hash = (37 * hash) + ADVANCED_OCR_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAdvancedOcrOptionsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -343,6 +436,8 @@ public Builder clear() {
super.clear();
enableTextDetectionConfidenceScore_ = false;
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -370,7 +465,13 @@ public com.google.cloud.vision.v1p4beta1.TextDetectionParams build() {
public com.google.cloud.vision.v1p4beta1.TextDetectionParams buildPartial() {
com.google.cloud.vision.v1p4beta1.TextDetectionParams result =
new com.google.cloud.vision.v1p4beta1.TextDetectionParams(this);
+ int from_bitField0_ = bitField0_;
result.enableTextDetectionConfidenceScore_ = enableTextDetectionConfidenceScore_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = advancedOcrOptions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.advancedOcrOptions_ = advancedOcrOptions_;
onBuilt();
return result;
}
@@ -424,6 +525,16 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.TextDetectionParams o
if (other.getEnableTextDetectionConfidenceScore() != false) {
setEnableTextDetectionConfidenceScore(other.getEnableTextDetectionConfidenceScore());
}
+ if (!other.advancedOcrOptions_.isEmpty()) {
+ if (advancedOcrOptions_.isEmpty()) {
+ advancedOcrOptions_ = other.advancedOcrOptions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.addAll(other.advancedOcrOptions_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -454,6 +565,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean enableTextDetectionConfidenceScore_;
/**
*
@@ -512,6 +625,174 @@ public Builder clearEnableTextDetectionConfidenceScore() {
return this;
}
+ private com.google.protobuf.LazyStringList advancedOcrOptions_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureAdvancedOcrOptionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ advancedOcrOptions_ = new com.google.protobuf.LazyStringArrayList(advancedOcrOptions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() {
+ return advancedOcrOptions_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ public int getAdvancedOcrOptionsCount() {
+ return advancedOcrOptions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ public java.lang.String getAdvancedOcrOptions(int index) {
+ return advancedOcrOptions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) {
+ return advancedOcrOptions_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index to set the value at.
+ * @param value The advancedOcrOptions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdvancedOcrOptions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param values The advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAdvancedOcrOptions(java.lang.Iterable values) {
+ ensureAdvancedOcrOptionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, advancedOcrOptions_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdvancedOcrOptions() {
+ advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param value The bytes of the advancedOcrOptions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAdvancedOcrOptionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAdvancedOcrOptionsIsMutable();
+ advancedOcrOptions_.add(value);
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java
index 827e9d697..93df17e0f 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java
@@ -37,4 +37,55 @@ public interface TextDetectionParamsOrBuilder
* @return The enableTextDetectionConfidenceScore.
*/
boolean getEnableTextDetectionConfidenceScore();
+
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return A list containing the advancedOcrOptions.
+ */
+ java.util.List getAdvancedOcrOptionsList();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @return The count of advancedOcrOptions.
+ */
+ int getAdvancedOcrOptionsCount();
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the element to return.
+ * @return The advancedOcrOptions at the given index.
+ */
+ java.lang.String getAdvancedOcrOptions(int index);
+ /**
+ *
+ *
+ *
+ * A list of advanced OCR options to fine-tune OCR behavior.
+ *
+ *
+ * repeated string advanced_ocr_options = 11;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the advancedOcrOptions at the given index.
+ */
+ com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index);
}
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto
index 07217f398..6d7f3dd1f 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto
@@ -628,6 +628,9 @@ message TextDetectionParams {
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
// score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
+
+ // A list of advanced OCR options to fine-tune OCR behavior.
+ repeated string advanced_ocr_options = 11;
}
// Image context and/or feature-specific parameters.
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 51e067917..bdacf7e22 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,13 +29,13 @@
com.google.cloud
google-cloud-vision
- 2.1.2
+ 3.0.1
com.google.cloud
google-cloud-storage
- 2.7.0
+ 2.11.2
net.sourceforge.argparse4j
@@ -62,7 +62,7 @@
com.google.cloud
google-cloud-core
- 2.8.1
+ 2.8.8
test
tests
diff --git a/samples/pom.xml b/samples/pom.xml
index 2e8579fe2..e011cdee7 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -38,7 +38,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 2.8.2
+ 3.0.0
true
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 31f23f904..5f3ac8fac 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -29,13 +29,13 @@
com.google.cloud
google-cloud-vision
- 3.0.2
+ 3.1.0
com.google.cloud
google-cloud-storage
- 2.7.0
+ 2.11.2
net.sourceforge.argparse4j
@@ -62,7 +62,7 @@
com.google.cloud
google-cloud-core
- 2.8.1
+ 2.8.8
test
tests
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
index fa6ebccea..c565722ff 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [START vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
import com.google.cloud.vision.v1.AsyncAnnotateFileRequest;
import com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse;
import com.google.cloud.vision.v1.ImageAnnotatorClient;
@@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr
}
}
}
-// [END
-// vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [END vision_v1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java
index 35bbea966..849827c96 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
+// [START vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
import com.google.cloud.vision.v1.AnnotateImageRequest;
import com.google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse;
import com.google.cloud.vision.v1.ImageAnnotatorClient;
@@ -43,5 +42,4 @@ public static void syncAsyncBatchAnnotateImagesListannotateimagerequestOutputcon
}
}
}
-// [END
-// vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
+// [END vision_v1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
index 2eb2706cf..47a349f16 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [START vision_v1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
import com.google.cloud.vision.v1.AnnotateImageRequest;
import com.google.cloud.vision.v1.BatchAnnotateImagesResponse;
import com.google.cloud.vision.v1.ImageAnnotatorClient;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
index 2d1219663..d044d5d65 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
@@ -21,6 +21,7 @@
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
index 46bc25494..f8b06b4b3 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
+// [START vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetProductsetnameProductname {
@@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameProductname() throws
}
}
}
-// [END
-// vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
+// [END vision_v1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
index 394790781..0a9b8168a 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetProductsetnameString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
index cb719705c..ba2212011 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetStringProductname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
index f504be803..be1bb73c2 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetStringString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
index 430d92237..a276381ff 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
+// [START vision_v1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
import com.google.cloud.vision.v1.LocationName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSet;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
index 47a5e1e30..37a524e02 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
+// [START vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ReferenceImage;
@@ -40,5 +39,4 @@ public static void syncCreateReferenceImageProductnameReferenceimageString() thr
}
}
}
-// [END
-// vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
+// [END vision_v1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
index 29441ca4c..f939351db 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
+// [START vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ReferenceImage;
@@ -40,5 +39,4 @@ public static void syncCreateReferenceImageStringReferenceimageString() throws E
}
}
}
-// [END
-// vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
+// [END vision_v1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java
index 6b7b833f8..5bedcf38f 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.DeleteProductRequest;
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProduct {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
index 7b275f83c..6b83ae61f 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_deleteproduct_productname_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProductProductname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java
index 6fa96db52..079adb148 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_deleteproduct_string_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProductString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
index c52da465f..583a7278a 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.DeleteProductSetRequest;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
index 5868f9d07..9af4eeb6a 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_deleteproductset_productsetname_sync]
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSetProductsetname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
index 894d5847c..2256acace 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_deleteproductset_string_sync]
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSetString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
index c7cab3e26..9d8b7ea02 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.DeleteReferenceImageRequest;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImage {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
index 33162818f..1bc875eb9 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync]
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImageReferenceimagename {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
index 76c405299..d077d2c7f 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_deletereferenceimage_string_sync]
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImageString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
index 6fa5967f1..6972901a8 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
+// [START vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
import com.google.cloud.vision.v1.ImportProductSetsInputConfig;
import com.google.cloud.vision.v1.ImportProductSetsResponse;
import com.google.cloud.vision.v1.LocationName;
@@ -41,5 +40,4 @@ public static void syncImportProductSetsLocationnameImportproductsetsinputconfig
}
}
}
-// [END
-// vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
+// [END vision_v1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
index c24df2aef..9d55154a4 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
+// [START vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
import com.google.cloud.vision.v1.ImportProductSetsInputConfig;
import com.google.cloud.vision.v1.ImportProductSetsResponse;
import com.google.cloud.vision.v1.LocationName;
@@ -40,5 +39,4 @@ public static void syncImportProductSetsStringImportproductsetsinputconfig() thr
}
}
}
-// [END
-// vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
+// [END vision_v1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java
index 44153e164..3cf5383d2 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.LocationName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.PurgeProductsRequest;
+import com.google.protobuf.Empty;
public class SyncPurgeProducts {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java
index 84e592594..e49b08797 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_purgeproducts_locationname_sync]
import com.google.cloud.vision.v1.LocationName;
import com.google.cloud.vision.v1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncPurgeProductsLocationname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java
index 91950a97d..a7d58c007 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java
@@ -19,6 +19,7 @@
// [START vision_v1_generated_productsearchclient_purgeproducts_string_sync]
import com.google.cloud.vision.v1.LocationName;
import com.google.cloud.vision.v1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncPurgeProductsString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
index cec0e738d..170dfa484 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
@@ -21,6 +21,7 @@
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
import com.google.cloud.vision.v1.RemoveProductFromProductSetRequest;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
index 24c3db840..32ba19339 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
+// [START vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetProductsetnameProductname {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameProductname() th
}
}
}
-// [END
-// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
+// [END vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
index 30c9d31af..4a02869c3 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
+// [START vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetProductsetnameString {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameString() throws
}
}
}
-// [END
-// vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
+// [END vision_v1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
index e42100b70..e8133031c 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1.samples;
-// [START
-// vision_v1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
+// [START vision_v1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetStringProductname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
index adcd731ef..76eead3e5 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1.ProductName;
import com.google.cloud.vision.v1.ProductSearchClient;
import com.google.cloud.vision.v1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetStringString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
index 1776beecd..b9d1538f7 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p1beta1.samples;
-// [START
-// vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [START vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
import com.google.cloud.vision.v1p1beta1.AnnotateImageRequest;
import com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse;
import com.google.cloud.vision.v1p1beta1.ImageAnnotatorClient;
@@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce
}
}
}
-// [END
-// vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [END vision_v1p1beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
index 757a420d9..c2608974e 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p2beta1.samples;
-// [START
-// vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [START vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
import com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest;
import com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse;
import com.google.cloud.vision.v1p2beta1.ImageAnnotatorClient;
@@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr
}
}
}
-// [END
-// vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [END vision_v1p2beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
index 11ef012c1..26672a50b 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p2beta1.samples;
-// [START
-// vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [START vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
import com.google.cloud.vision.v1p2beta1.AnnotateImageRequest;
import com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse;
import com.google.cloud.vision.v1p2beta1.ImageAnnotatorClient;
@@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce
}
}
}
-// [END
-// vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [END vision_v1p2beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
index e01fe084f..782ce1355 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [START vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
import com.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest;
import com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse;
import com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient;
@@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr
}
}
}
-// [END
-// vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [END vision_v1p3beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
index a22008908..1dc8a01ba 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [START vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
import com.google.cloud.vision.v1p3beta1.AnnotateImageRequest;
import com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse;
import com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient;
@@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce
}
}
}
-// [END
-// vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [END vision_v1p3beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
index 89026e696..46d06174e 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
@@ -21,6 +21,7 @@
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
index db09e2c8b..3972539cf 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetProductsetnameProductname {
@@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameProductname() throws
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
index 764412e0f..0069a8cd7 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetProductsetnameString {
@@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameString() throws Excep
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
index 154ad305d..b4433e81d 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetStringProductname {
@@ -38,5 +38,4 @@ public static void syncAddProductToProductSetStringProductname() throws Exceptio
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
index 21f18eb16..04c8e04f3 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetStringString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java
index b0e8dd03c..ef1be0043 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync]
import com.google.cloud.vision.v1p3beta1.LocationName;
import com.google.cloud.vision.v1p3beta1.Product;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
index cb47fdd79..bb8181b35 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
import com.google.cloud.vision.v1p3beta1.LocationName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSet;
@@ -39,5 +38,4 @@ public static void syncCreateProductSetLocationnameProductsetString() throws Exc
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java
index a959d0483..72cc3acec 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync]
import com.google.cloud.vision.v1p3beta1.LocationName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSet;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
index 271a9677d..15c9e6114 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ReferenceImage;
@@ -40,5 +39,4 @@ public static void syncCreateReferenceImageProductnameReferenceimageString() thr
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
index 54373eaf2..5e27f6618 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ReferenceImage;
@@ -40,5 +39,4 @@ public static void syncCreateReferenceImageStringReferenceimageString() throws E
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java
index 99daaf239..9229c99f6 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p3beta1.DeleteProductRequest;
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProduct {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
index f8a2650c4..652a91f43 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
@@ -19,6 +19,7 @@
// [START vision_v1p3beta1_generated_productsearchclient_deleteproduct_productname_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProductProductname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java
index f76ab1369..fccc0253d 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java
@@ -19,6 +19,7 @@
// [START vision_v1p3beta1_generated_productsearchclient_deleteproduct_string_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProductString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
index e43bfadea..2c9d2ac08 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
index 854786fad..54de01dea 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
@@ -19,6 +19,7 @@
// [START vision_v1p3beta1_generated_productsearchclient_deleteproductset_productsetname_sync]
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSetProductsetname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
index 9826a2c52..2245897cc 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
@@ -19,6 +19,7 @@
// [START vision_v1p3beta1_generated_productsearchclient_deleteproductset_string_sync]
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSetString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
index dbad79626..fc75058db 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImage {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
index 04e8d18aa..4c4fc0eba 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
@@ -16,10 +16,10 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync]
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImageReferenceimagename {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
index 947dc4824..e7c9525e7 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
@@ -19,6 +19,7 @@
// [START vision_v1p3beta1_generated_productsearchclient_deletereferenceimage_string_sync]
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImageString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
index 2dcaf84b0..0cc58433d 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
import com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig;
import com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse;
import com.google.cloud.vision.v1p3beta1.LocationName;
@@ -41,5 +40,4 @@ public static void syncImportProductSetsLocationnameImportproductsetsinputconfig
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
index de013a595..08b200f9c 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
import com.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig;
import com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse;
import com.google.cloud.vision.v1p3beta1.LocationName;
@@ -40,5 +39,4 @@ public static void syncImportProductSetsStringImportproductsetsinputconfig() thr
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java
index bf7472304..de62fbffe 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync]
import com.google.cloud.vision.v1p3beta1.Product;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
index 8fc234a05..30adc33a9 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
@@ -21,6 +21,7 @@
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
import com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
index d5b1513c1..f7e9c8fc8 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetProductsetnameProductname {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameProductname() th
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
index d305c81a9..79de6ae33 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetProductsetnameString {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameString() throws
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
index 1b4201626..96caddba0 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetStringProductname {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringProductname() throws Exc
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
index 4b9c7b97c..aa8f842a2 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p3beta1.samples;
-// [START
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
+// [START vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
import com.google.cloud.vision.v1p3beta1.ProductName;
import com.google.cloud.vision.v1p3beta1.ProductSearchClient;
import com.google.cloud.vision.v1p3beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetStringString {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringString() throws Exceptio
}
}
}
-// [END
-// vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
+// [END vision_v1p3beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
index cb7448656..ce6f0bb1c 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [START vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
import com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest;
import com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse;
import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient;
@@ -40,5 +39,4 @@ public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() thr
}
}
}
-// [END
-// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
+// [END vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotatefiles_listasyncannotatefilerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java
index 5093f76c8..b38e2f97c 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
+// [START vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
import com.google.cloud.vision.v1p4beta1.AnnotateImageRequest;
import com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse;
import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient;
@@ -43,5 +42,4 @@ public static void syncAsyncBatchAnnotateImagesListannotateimagerequestOutputcon
}
}
}
-// [END
-// vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
+// [END vision_v1p4beta1_generated_imageannotatorclient_asyncbatchannotateimages_listannotateimagerequestoutputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java
index e333d9e36..90b61dbea 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync]
+// [START vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync]
import com.google.cloud.vision.v1p4beta1.AnnotateFileRequest;
import com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse;
import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient;
@@ -39,5 +38,4 @@ public static void syncBatchAnnotateFilesListannotatefilerequest() throws Except
}
}
}
-// [END
-// vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync]
+// [END vision_v1p4beta1_generated_imageannotatorclient_batchannotatefiles_listannotatefilerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
index d51b744e5..df9efcea8 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [START vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
import com.google.cloud.vision.v1p4beta1.AnnotateImageRequest;
import com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse;
import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient;
@@ -39,5 +38,4 @@ public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exce
}
}
}
-// [END
-// vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
+// [END vision_v1p4beta1_generated_imageannotatorclient_batchannotateimages_listannotateimagerequest_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
index 55a74dd24..7f44c8995 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java
@@ -21,6 +21,7 @@
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
index 5e5db0cb4..adfd6e537 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetProductsetnameProductname {
@@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameProductname() throws
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnameproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
index 7061382e5..c24381de8 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetProductsetnameString {
@@ -38,5 +38,4 @@ public static void syncAddProductToProductSetProductsetnameString() throws Excep
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_productsetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
index 6b65870c7..aaf5dd6c4 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetStringProductname {
@@ -38,5 +38,4 @@ public static void syncAddProductToProductSetStringProductname() throws Exceptio
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_addproducttoproductset_stringproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
index e05ad4c60..58213b2d8 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncAddProductToProductSetStringString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java
index c71a989ae..bf3b5ba22 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_createproduct_locationnameproductstring_sync]
import com.google.cloud.vision.v1p4beta1.LocationName;
import com.google.cloud.vision.v1p4beta1.Product;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
index d848f64d0..5d89b0d0b 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
import com.google.cloud.vision.v1p4beta1.LocationName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSet;
@@ -39,5 +38,4 @@ public static void syncCreateProductSetLocationnameProductsetString() throws Exc
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_createproductset_locationnameproductsetstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java
index b06d27799..c134ebbd3 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_createproductset_stringproductsetstring_sync]
import com.google.cloud.vision.v1p4beta1.LocationName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSet;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
index 22cb2f404..41d8c405c 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ReferenceImage;
@@ -40,5 +39,4 @@ public static void syncCreateReferenceImageProductnameReferenceimageString() thr
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_createreferenceimage_productnamereferenceimagestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
index e1fb9ea89..afab3ec05 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ReferenceImage;
@@ -40,5 +39,4 @@ public static void syncCreateReferenceImageStringReferenceimageString() throws E
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_createreferenceimage_stringreferenceimagestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java
index d60d22bfb..cb5c9473c 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p4beta1.DeleteProductRequest;
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProduct {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
index 99017ce7b..52253ab39 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java
@@ -19,6 +19,7 @@
// [START vision_v1p4beta1_generated_productsearchclient_deleteproduct_productname_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProductProductname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java
index 4f8eb4a22..4b419219b 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java
@@ -19,6 +19,7 @@
// [START vision_v1p4beta1_generated_productsearchclient_deleteproduct_string_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncDeleteProductString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
index 9fbc570ca..fac3b9c74 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
index 8de079d5e..6f4688505 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java
@@ -19,6 +19,7 @@
// [START vision_v1p4beta1_generated_productsearchclient_deleteproductset_productsetname_sync]
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSetProductsetname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
index 4c59169fc..6005f2d7e 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java
@@ -19,6 +19,7 @@
// [START vision_v1p4beta1_generated_productsearchclient_deleteproductset_string_sync]
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncDeleteProductSetString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
index b7d0a14e9..96a3109a5 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImage {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
index fe58521e7..6a2d1a0b3 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java
@@ -16,10 +16,10 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_deletereferenceimage_referenceimagename_sync]
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImageReferenceimagename {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
index fc0c0f3f7..68221d8fe 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java
@@ -19,6 +19,7 @@
// [START vision_v1p4beta1_generated_productsearchclient_deletereferenceimage_string_sync]
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ReferenceImageName;
+import com.google.protobuf.Empty;
public class SyncDeleteReferenceImageString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
index 140afdb15..8de004322 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
import com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig;
import com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse;
import com.google.cloud.vision.v1p4beta1.LocationName;
@@ -41,5 +40,4 @@ public static void syncImportProductSetsLocationnameImportproductsetsinputconfig
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_importproductsets_locationnameimportproductsetsinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
index 7a453aaf7..39df9f024 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
import com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig;
import com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse;
import com.google.cloud.vision.v1p4beta1.LocationName;
@@ -40,5 +39,4 @@ public static void syncImportProductSetsStringImportproductsetsinputconfig() thr
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_importproductsets_stringimportproductsetsinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java
index 1fa2f5ed4..8a3a1ef79 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java
@@ -16,8 +16,7 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_listproductsinproductset_productsetname_sync]
import com.google.cloud.vision.v1p4beta1.Product;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java
index c400cdab0..b404c5f8a 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java
@@ -20,6 +20,7 @@
import com.google.cloud.vision.v1p4beta1.LocationName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.PurgeProductsRequest;
+import com.google.protobuf.Empty;
public class SyncPurgeProducts {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java
index 53e829480..8fe93c5a7 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java
@@ -19,6 +19,7 @@
// [START vision_v1p4beta1_generated_productsearchclient_purgeproducts_locationname_sync]
import com.google.cloud.vision.v1p4beta1.LocationName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncPurgeProductsLocationname {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java
index ad560a744..4f0c6ab9d 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java
@@ -19,6 +19,7 @@
// [START vision_v1p4beta1_generated_productsearchclient_purgeproducts_string_sync]
import com.google.cloud.vision.v1p4beta1.LocationName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
+import com.google.protobuf.Empty;
public class SyncPurgeProductsString {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
index 2265378c6..994dec221 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java
@@ -21,6 +21,7 @@
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
import com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSet {
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
index cf8b97a43..83ab46025 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetProductsetnameProductname {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameProductname() th
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnameproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
index 3a8bf678b..970b71c10 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetProductsetnameString {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetProductsetnameString() throws
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_productsetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
index 759e42c30..0bbd161d3 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetStringProductname {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringProductname() throws Exc
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringproductname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
index 80d75a821..29cd6ee1e 100644
--- a/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
+++ b/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java
@@ -16,11 +16,11 @@
package com.google.cloud.vision.v1p4beta1.samples;
-// [START
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
+// [START vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
import com.google.cloud.vision.v1p4beta1.ProductName;
import com.google.cloud.vision.v1p4beta1.ProductSearchClient;
import com.google.cloud.vision.v1p4beta1.ProductSetName;
+import com.google.protobuf.Empty;
public class SyncRemoveProductFromProductSetStringString {
@@ -38,5 +38,4 @@ public static void syncRemoveProductFromProductSetStringString() throws Exceptio
}
}
}
-// [END
-// vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
+// [END vision_v1p4beta1_generated_productsearchclient_removeproductfromproductset_stringstring_sync]
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 33c08035c..611215a50 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -30,7 +30,7 @@
com.google.cloud
libraries-bom
- 25.4.0
+ 26.0.0
pom
import
@@ -66,7 +66,7 @@
com.google.cloud
google-cloud-core
- 2.8.1
+ 2.8.8
test
tests
diff --git a/samples/spring-framework/pom.xml b/samples/spring-framework/pom.xml
index f893deb9f..72bd87ce4 100644
--- a/samples/spring-framework/pom.xml
+++ b/samples/spring-framework/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
1.8
1.8
- 2.7.1
+ 2.7.2