diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java index d5f7e4f6e815..285bfec396e6 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java +++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java @@ -303,146 +303,147 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "crop_hints\030\001 \003(\0132 .google.cloud.vision.v" + "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\"\210\003\n\014ImageContext\022:\n\rlat_l" - + "ong_rect\030\001 \001(\0132#.google.cloud.vision.v1." - + "LatLongRect\022\026\n\016language_hints\030\002 \003(\t\022B\n\021c" - + "rop_hints_params\030\004 \001(\0132\'.google.cloud.vi" - + "sion.v1.CropHintsParams\022J\n\025product_searc" - + "h_params\030\005 \001(\0132+.google.cloud.vision.v1." - + "ProductSearchParams\022H\n\024web_detection_par" - + "ams\030\006 \001(\0132*.google.cloud.vision.v1.WebDe" - + "tectionParams\022J\n\025text_detection_params\030\014" - + " \001(\0132+.google.cloud.vision.v1.TextDetect" - + "ionParams\"\264\001\n\024AnnotateImageRequest\022,\n\005im" - + "age\030\001 \001(\0132\035.google.cloud.vision.v1.Image" - + "\0221\n\010features\030\002 \003(\0132\037.google.cloud.vision" - + ".v1.Feature\022;\n\rimage_context\030\003 \001(\0132$.goo" - + "gle.cloud.vision.v1.ImageContext\":\n\026Imag" - + "eAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_" - + "number\030\002 \001(\005\"\344\007\n\025AnnotateImageResponse\022@" - + "\n\020face_annotations\030\001 \003(\0132&.google.cloud." - + "vision.v1.FaceAnnotation\022F\n\024landmark_ann" - + "otations\030\002 \003(\0132(.google.cloud.vision.v1." - + "EntityAnnotation\022B\n\020logo_annotations\030\003 \003" - + "(\0132(.google.cloud.vision.v1.EntityAnnota" - + "tion\022C\n\021label_annotations\030\004 \003(\0132(.google" - + ".cloud.vision.v1.EntityAnnotation\022W\n\034loc" - + "alized_object_annotations\030\026 \003(\01321.google" - + ".cloud.vision.v1.LocalizedObjectAnnotati" - + "on\022B\n\020text_annotations\030\005 \003(\0132(.google.cl" - + "oud.vision.v1.EntityAnnotation\022D\n\024full_t" - + "ext_annotation\030\014 \001(\0132&.google.cloud.visi" - + "on.v1.TextAnnotation\022L\n\026safe_search_anno" - + "tation\030\006 \001(\0132,.google.cloud.vision.v1.Sa" - + "feSearchAnnotation\022L\n\033image_properties_a" - + "nnotation\030\010 \001(\0132\'.google.cloud.vision.v1" - + ".ImageProperties\022J\n\025crop_hints_annotatio" - + "n\030\013 \001(\0132+.google.cloud.vision.v1.CropHin" - + "tsAnnotation\022;\n\rweb_detection\030\r \001(\0132$.go" - + "ogle.cloud.vision.v1.WebDetection\022L\n\026pro" - + "duct_search_results\030\016 \001(\0132,.google.cloud" - + ".vision.v1.ProductSearchResults\022!\n\005error" - + "\030\t \001(\0132\022.google.rpc.Status\022?\n\007context\030\025 " - + "\001(\0132..google.cloud.vision.v1.ImageAnnota" - + "tionContext\"q\n\032BatchAnnotateImagesReques" - + "t\022C\n\010requests\030\001 \003(\0132,.google.cloud.visio" - + "n.v1.AnnotateImageRequestB\003\340A\002\022\016\n\006parent" - + "\030\004 \001(\t\"_\n\033BatchAnnotateImagesResponse\022@\n" - + "\tresponses\030\001 \003(\0132-.google.cloud.vision.v" - + "1.AnnotateImageResponse\"\317\001\n\023AnnotateFile" - + "Request\0229\n\014input_config\030\001 \001(\0132#.google.c" - + "loud.vision.v1.InputConfig\0221\n\010features\030\002" - + " \003(\0132\037.google.cloud.vision.v1.Feature\022;\n" - + "\rimage_context\030\003 \001(\0132$.google.cloud.visi" - + "on.v1.ImageContext\022\r\n\005pages\030\004 \003(\005\"\313\001\n\024An" - + "notateFileResponse\0229\n\014input_config\030\001 \001(\013" - + "2#.google.cloud.vision.v1.InputConfig\022@\n" - + "\tresponses\030\002 \003(\0132-.google.cloud.vision.v" - + "1.AnnotateImageResponse\022\023\n\013total_pages\030\003" - + " \001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"" - + "o\n\031BatchAnnotateFilesRequest\022B\n\010requests" - + "\030\001 \003(\0132+.google.cloud.vision.v1.Annotate" - + "FileRequestB\003\340A\002\022\016\n\006parent\030\003 \001(\t\"]\n\032Batc" - + "hAnnotateFilesResponse\022?\n\tresponses\030\001 \003(" - + "\0132,.google.cloud.vision.v1.AnnotateFileR" - + "esponse\"\202\002\n\030AsyncAnnotateFileRequest\0229\n\014" - + "input_config\030\001 \001(\0132#.google.cloud.vision" - + ".v1.InputConfig\0221\n\010features\030\002 \003(\0132\037.goog" - + "le.cloud.vision.v1.Feature\022;\n\rimage_cont" - + "ext\030\003 \001(\0132$.google.cloud.vision.v1.Image" - + "Context\022;\n\routput_config\030\004 \001(\0132$.google." - + "cloud.vision.v1.OutputConfig\"X\n\031AsyncAnn" - + "otateFileResponse\022;\n\routput_config\030\001 \001(\013" - + "2$.google.cloud.vision.v1.OutputConfig\"\270" - + "\001\n\037AsyncBatchAnnotateImagesRequest\022C\n\010re" - + "quests\030\001 \003(\0132,.google.cloud.vision.v1.An" - + "notateImageRequestB\003\340A\002\022@\n\routput_config" - + "\030\002 \001(\0132$.google.cloud.vision.v1.OutputCo" - + "nfigB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"_\n AsyncBatchA" - + "nnotateImagesResponse\022;\n\routput_config\030\001" - + " \001(\0132$.google.cloud.vision.v1.OutputConf" - + "ig\"y\n\036AsyncBatchAnnotateFilesRequest\022G\n\010" - + "requests\030\001 \003(\01320.google.cloud.vision.v1." - + "AsyncAnnotateFileRequestB\003\340A\002\022\016\n\006parent\030" - + "\004 \001(\t\"g\n\037AsyncBatchAnnotateFilesResponse" - + "\022D\n\tresponses\030\001 \003(\01321.google.cloud.visio" - + "n.v1.AsyncAnnotateFileResponse\"h\n\013InputC" - + "onfig\0225\n\ngcs_source\030\001 \001(\0132!.google.cloud" - + ".vision.v1.GcsSource\022\017\n\007content\030\003 \001(\014\022\021\n" - + "\tmime_type\030\002 \001(\t\"c\n\014OutputConfig\022?\n\017gcs_" - + "destination\030\001 \001(\0132&.google.cloud.vision." - + "v1.GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n" - + "\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestinatio" - + "n\022\013\n\003uri\030\001 \001(\t\"\210\002\n\021OperationMetadata\022>\n\005" - + "state\030\001 \001(\0162/.google.cloud.vision.v1.Ope" - + "rationMetadata.State\022/\n\013create_time\030\005 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" - + "time\030\006 \001(\0132\032.google.protobuf.Timestamp\"Q" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATE" - + "D\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_UNL" - + "IKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006L" - + "IKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\365\n\n\016ImageAnnota" - + "tor\022\223\002\n\023BatchAnnotateImages\0222.google.clo" - + "ud.vision.v1.BatchAnnotateImagesRequest\032" - + "3.google.cloud.vision.v1.BatchAnnotateIm" - + "agesResponse\"\222\001\202\323\344\223\002\200\001\"\023/v1/images:annot" - + "ate:\001*Z8\"3/v1/{parent=projects/*/locatio" - + "ns/*}/images:annotate:\001*Z,\"\'/v1/{parent=" - + "projects/*}/images:annotate:\001*\332A\010request" - + "s\022\214\002\n\022BatchAnnotateFiles\0221.google.cloud." - + "vision.v1.BatchAnnotateFilesRequest\0322.go" - + "ogle.cloud.vision.v1.BatchAnnotateFilesR" - + "esponse\"\216\001\202\323\344\223\002}\"\022/v1/files:annotate:\001*Z" - + "7\"2/v1/{parent=projects/*/locations/*}/f" - + "iles:annotate:\001*Z+\"&/v1/{parent=projects" - + "/*}/files:annotate:\001*\332A\010requests\022\353\002\n\030Asy" - + "ncBatchAnnotateImages\0227.google.cloud.vis" - + "ion.v1.AsyncBatchAnnotateImagesRequest\032\035" - + ".google.longrunning.Operation\"\366\001\202\323\344\223\002\236\001\"" - + "\035/v1/images:asyncBatchAnnotate:\001*ZB\"=/v1" - + "/{parent=projects/*/locations/*}/images:" - + "asyncBatchAnnotate:\001*Z6\"1/v1/{parent=pro" - + "jects/*}/images:asyncBatchAnnotate:\001*\332A\026" - + "requests,output_config\312A5\n AsyncBatchAnn" - + "otateImagesResponse\022\021OperationMetadata\022\327" - + "\002\n\027AsyncBatchAnnotateFiles\0226.google.clou" - + "d.vision.v1.AsyncBatchAnnotateFilesReque" - + "st\032\035.google.longrunning.Operation\"\344\001\202\323\344\223" - + "\002\233\001\"\034/v1/files:asyncBatchAnnotate:\001*ZA\"<" - + "/v1/{parent=projects/*/locations/*}/file" - + "s:asyncBatchAnnotate:\001*Z5\"0/v1/{parent=p" - + "rojects/*}/files:asyncBatchAnnotate:\001*\332A" - + "\010requests\312A4\n\037AsyncBatchAnnotateFilesRes" - + "ponse\022\021OperationMetadata\032v\312A\025vision.goog" - + "leapis.com\322A[https://www.googleapis.com/" - + "auth/cloud-platform,https://www.googleap" - + "is.com/auth/cloud-visionB{\n\032com.google.c" - + "loud.vision.v1B\023ImageAnnotatorProtoP\001Z\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/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java index 1afe753779b1..7d038b80b63b 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextDetectionParamsOrBuilder.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto index a70c7fdc800f..10464b0e0d83 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java index a2d1fae3121b..6bd7d0d6aeb4 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorProto.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java index cb68cab87b99..7a53543f66c9 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParams.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java index 61f5c77a72eb..df752eec72fc 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextDetectionParamsOrBuilder.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto index daf6a2d27583..729a0fa08e6b 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java index 413a66f58689..625320e96b6d 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorProto.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java index e9606418cb37..27ece1398bf1 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParams.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java index e7e7f4f54888..a0a0aac15970 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextDetectionParamsOrBuilder.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto index eaf5abf05dc0..5fc3163c75d6 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java index c3faa0587c21..4de97a5611e2 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorProto.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java index 7f3d9ba5c2c2..cd18a9ab82a2 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParams.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java index 3c2c1d5252e4..df5e59803d7e 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextDetectionParamsOrBuilder.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto index 5f21117847b9..ca0b4e86d5b9 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java index 469eeec6ed6b..5ca697736e98 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java index 3ce07f30d423..afdc5a7ebb3a 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParams.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java index 827e9d697aa8..93df17e0ff4d 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextDetectionParamsOrBuilder.java +++ b/java-vision/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/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto index 07217f39820b..6d7f3dd1f621 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index fa6ebccea8b9..c565722ffce2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java index 35bbea966223..849827c96aec 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 2eb2706cf931..47a349f16db5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 2d1219663f5c..d044d5d658e1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index 46bc25494949..f8b06b4b3a96 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 394790781a7a..0a9b8168a472 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index cb719705c49d..ba221201103e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index f504be803f2d..be1bb73c28b8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index 430d9223756b..a276381ff4ea 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 47a5e1e30d1b..37a524e0282b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index 29441ca4c6c4..f939351db8e9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java index 6b7b833f8d46..5bedcf38ff6f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index 7b275f83cc56..6b83ae61fd4f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java index 6fa96db5206d..079adb14826c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index c52da465f5a8..583a7278a274 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 5868f9d07153..9af4eeb6a956 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 894d5847c3cd..2256acace3d7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index c7cab3e26b14..9d8b7ea02940 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index 33162818f297..1bc875eb98fc 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index 76c405299fde..d077d2c7f8ff 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 6fa5967f14bc..6972901a8801 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index c24df2aef1f4..9d55154a48b6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java index 44153e164a39..3cf5383d2921 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java index 84e59259457a..e49b08797fe9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java index 91950a97db22..a7d58c00700f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index cec0e738d063..170dfa48467d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index 24c3db840551..32ba1933971f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index 30c9d31af748..4a02869c37bb 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index e42100b70502..e8133031c73e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index adcd731efce4..76eead3e51eb 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 1776beecd76c..b9d1538f7e49 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index 757a420d94c5..c2608974e214 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 11ef012c1f40..26672a50b15a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index e01fe084f773..782ce13559ec 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index a22008908a31..1dc8a01baeaf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 89026e696e1c..46d06174e548 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index db09e2c8b6d5..3972539cffe4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 764412e0f7a9..0069a8cd7dbf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index 154ad305dc08..b4433e81d9ca 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index 21f18eb165d3..04c8e04f35ba 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java index b0e8dd03c551..ef1be004338d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index cb47fdd7938c..bb8181b352d3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java index a959d0483799..72cc3acec7b5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 271a9677d1e1..15c9e6114dae 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index 54373eaf2c67..5e27f661815c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java index 99daaf23968a..9229c99f6ea0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index f8a2650c4d23..652a91f438b4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java index f76ab13695b3..fccc0253d36b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index e43bfadea47f..2c9d2ac08a02 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 854786fad3a5..54de01dea835 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 9826a2c5202e..2245897cca4c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index dbad796264b7..fc75058db7a8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index 04e8d18aa925..4c4fc0eba8ff 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index 947dc48249d4..e7c9525e7b6c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 2dcaf84b0354..0cc58433dccc 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index de013a5958e7..08b200f9c699 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java index bf74723044e4..de62fbffeec7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index 8fc234a0592a..30adc33a9256 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index d5b1513c1f27..f7e9c8fc8eb5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index d305c81a925c..79de6ae33f41 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index 1b420162687c..96caddba0c84 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index 4b9c7b97cadb..aa8f842a2e4c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index cb7448656a47..ce6f0bb1c0b0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java index 5093f76c8071..b38e2f97c703 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java index e333d9e3600e..90b61dbea682 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index d51b744e5cea..df9efcea8541 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 55a74dd24ae0..7f44c8995c9a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index 5e5db0cb4d40..adfd6e5379c6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 7061382e5739..c24381de8cd7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index 6b65870c7e6e..aaf5dd6c4902 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index e05ad4c6040e..58213b2d866d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java index c71a989ae6a4..bf3b5ba22e9c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index d848f64d0413..5d89b0d0b0d7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java index b06d277994a6..c134ebbd3f0a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 22cb2f40496b..41d8c405c6e2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index e1fb9ea89357..afab3ec05393 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java index d60d22bfb118..cb5c9473cf07 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index 99017ce7b2b3..52253ab39be2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java index 4f8eb4a22859..4b419219bb15 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index 9fbc570caf2c..fac3b9c74612 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 8de079d5e5d5..6f4688505c98 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 4c59169fc583..6005f2d7e47f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index b7d0a14e991f..96a3109a597f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index fe58521e7b96..6a2d1a0b3daf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index fc0c0f3f7b35..68221d8fedc4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 140afdb1521f..8de0043223c7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index 7a453aaf7919..39df9f024ee1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java index 1fa2f5ed4e0c..8a3a1ef797c3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java index c400cdab03c6..b404c5f8a50e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java index 53e829480392..8fe93c5a722a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java index ad560a744cb2..4f0c6ab9d984 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index 2265378c6d28..994dec221b4b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index cf8b97a43aad..83ab46025a02 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index 3a8bf678b12e..970b71c10704 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index 759e42c304b5..0bbd161d395f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/java-vision/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/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index 80d75a821c7f..29cd6ee1efaa 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/java-vision/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]