chore: Migrate java-vision to the Java microgenerator

Committer: @miraleung
PiperOrigin-RevId: 344845074
This commit is contained in:
Google APIs 2020-11-30 10:51:19 -08:00 committed by Copybara-Service
parent 9505d0ac32
commit d52da58686
10 changed files with 35 additions and 45 deletions

View File

@ -44,12 +44,13 @@ proto_library_with_info(
##############################################################################
# Java
# DO NOT OVERRIDE this Java microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
java_gapic_assembly_gradle_pkg = "java_gapic_assembly_gradle_pkg2",
java_gapic_library = "java_gapic_library2",
java_gapic_test = "java_gapic_test2",
"java_grpc_library",
"java_proto_library",
)
@ -67,11 +68,10 @@ java_grpc_library(
java_gapic_library(
name = "vision_java_gapic",
src = ":vision_proto_with_info",
srcs = [":vision_proto_with_info"],
gapic_yaml = "vision_gapic.yaml",
grpc_service_config = "vision_grpc_service_config.json",
package = "google.cloud.vision.v1",
service_yaml = "vision_v1.yaml",
test_deps = [
":vision_java_grpc",
],

View File

@ -1,9 +1,6 @@
type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
language_settings:
java:
package_name: com.google.cloud.vision.v1
release_level: GA
python:
package_name: google.cloud.vision_v1.gapic
go:
@ -66,22 +63,23 @@ interfaces:
collection: page.blocks
variable: block
body:
- print: ["\nBlock confidence: %s", block.confidence]
- print: ["
Block confidence: %s", block.confidence]
- loop:
collection: block.paragraphs
variable: par
body:
- print: ["\tParagraph confidence: %s", par.confidence]
- print: [" Paragraph confidence: %s", par.confidence]
- loop:
collection: par.words
variable: word
body:
- print: ["\t\tWord confidence: %s", word.confidence]
- print: [" Word confidence: %s", word.confidence]
- loop:
collection: word.symbols
variable: symbol
body:
- print: ["\t\t\tSymbol: %s, (confidence: %s)", symbol.text, symbol.confidence]
- print: [" Symbol: %s, (confidence: %s)", symbol.text, symbol.confidence]
- id: vision_batch_annotate_files
description: "Perform batch file annotation"
parameters:
@ -115,22 +113,23 @@ interfaces:
collection: page.blocks
variable: block
body:
- print: ["\nBlock confidence: %s", block.confidence]
- print: ["
Block confidence: %s", block.confidence]
- loop:
collection: block.paragraphs
variable: par
body:
- print: ["\tParagraph confidence: %s", par.confidence]
- print: [" Paragraph confidence: %s", par.confidence]
- loop:
collection: par.words
variable: word
body:
- print: ["\t\tWord confidence: %s", word.confidence]
- print: [" Word confidence: %s", word.confidence]
- loop:
collection: word.symbols
variable: symbol
body:
- print: ["\t\t\tSymbol: %s, (confidence: %s)", symbol.text, symbol.confidence]
- print: [" Symbol: %s, (confidence: %s)", symbol.text, symbol.confidence]
- name: AsyncBatchAnnotateImages
long_running:
initial_poll_delay_millis: 20000

View File

@ -37,12 +37,13 @@ proto_library_with_info(
##############################################################################
# Java
# DO NOT OVERRIDE this Java microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
java_gapic_assembly_gradle_pkg = "java_gapic_assembly_gradle_pkg2",
java_gapic_library = "java_gapic_library2",
java_gapic_test = "java_gapic_test2",
"java_grpc_library",
"java_proto_library",
)
@ -60,11 +61,9 @@ java_grpc_library(
java_gapic_library(
name = "vision_java_gapic",
src = ":vision_proto_with_info",
gapic_yaml = "vision_gapic.yaml",
srcs = [":vision_proto_with_info"],
grpc_service_config = "vision_grpc_service_config.json",
package = "google.cloud.vision.v1p1beta1",
service_yaml = "//google/cloud/vision:vision_v1p1beta1.yaml",
test_deps = [
":vision_java_grpc",
],

View File

@ -1,8 +1,6 @@
type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
language_settings:
java:
package_name: com.google.cloud.vision.v1p1beta1
python:
package_name: google.cloud.vision_v1p1beta1.gapic
go:

View File

@ -39,12 +39,13 @@ proto_library_with_info(
##############################################################################
# Java
# DO NOT OVERRIDE this Java microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
java_gapic_assembly_gradle_pkg = "java_gapic_assembly_gradle_pkg2",
java_gapic_library = "java_gapic_library2",
java_gapic_test = "java_gapic_test2",
"java_grpc_library",
"java_proto_library",
)
@ -62,11 +63,10 @@ java_grpc_library(
java_gapic_library(
name = "vision_java_gapic",
src = ":vision_proto_with_info",
srcs = [":vision_proto_with_info"],
gapic_yaml = "vision_gapic.yaml",
grpc_service_config = "vision_grpc_service_config.json",
package = "google.cloud.vision.v1p2beta1",
service_yaml = "//google/cloud/vision:vision_v1p2beta1.yaml",
test_deps = [
":vision_java_grpc",
],

View File

@ -1,8 +1,6 @@
type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
language_settings:
java:
package_name: com.google.cloud.vision.v1p2beta1
python:
package_name: google.cloud.vision_v1p2beta1.gapic
go:

View File

@ -44,12 +44,13 @@ proto_library_with_info(
##############################################################################
# Java
# DO NOT OVERRIDE this Java microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
java_gapic_assembly_gradle_pkg = "java_gapic_assembly_gradle_pkg2",
java_gapic_library = "java_gapic_library2",
java_gapic_test = "java_gapic_test2",
"java_grpc_library",
"java_proto_library",
)
@ -67,11 +68,10 @@ java_grpc_library(
java_gapic_library(
name = "vision_java_gapic",
src = ":vision_proto_with_info",
srcs = [":vision_proto_with_info"],
gapic_yaml = "vision_gapic.yaml",
grpc_service_config = "vision_grpc_service_config.json",
package = "google.cloud.vision.v1p3beta1",
service_yaml = "//google/cloud/vision:vision_v1p3beta1.yaml",
test_deps = [
":vision_java_grpc",
],

View File

@ -1,8 +1,6 @@
type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
language_settings:
java:
package_name: com.google.cloud.vision.v1p3beta1
python:
package_name: google.cloud.vision_v1p3beta1.gapic
go:

View File

@ -45,12 +45,13 @@ proto_library_with_info(
##############################################################################
# Java
# DO NOT OVERRIDE this Java microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
java_gapic_assembly_gradle_pkg = "java_gapic_assembly_gradle_pkg2",
java_gapic_library = "java_gapic_library2",
java_gapic_test = "java_gapic_test2",
"java_grpc_library",
"java_proto_library",
)
@ -68,11 +69,10 @@ java_grpc_library(
java_gapic_library(
name = "vision_java_gapic",
src = ":vision_proto_with_info",
srcs = [":vision_proto_with_info"],
gapic_yaml = "vision_gapic.yaml",
grpc_service_config = "vision_grpc_service_config.json",
package = "google.cloud.vision.v1p4beta1",
service_yaml = "//google/cloud/vision:vision_v1p4beta1.yaml",
test_deps = [
":vision_java_grpc",
],

View File

@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
# The settings of generated code in a specific language.
language_settings:
java:
package_name: com.google.cloud.vision.v1p4beta1
python:
package_name: google.cloud.vision_v1p4beta1.gapic
go: