Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit aad8db8

Browse files
feat: Move CommonOperationMetadata into a separate proto file for potential reuse (#502)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/bf7c51e5-9176-4ea8-85ad-2dfd800a6eef/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 377114643 Source-Link: googleapis/googleapis@204809d PiperOrigin-RevId: 377081269 Source-Link: googleapis/googleapis@a5f96d0
1 parent 07cef28 commit aad8db8

File tree

14 files changed

+294
-197
lines changed

14 files changed

+294
-197
lines changed

google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343

4444
@Generated("by gapic-generator-java")
4545
public class DocumentProcessorServiceClientTest {
46+
private static MockDocumentProcessorService mockDocumentProcessorService;
4647
private static MockServiceHelper mockServiceHelper;
4748
private DocumentProcessorServiceClient client;
48-
private static MockDocumentProcessorService mockDocumentProcessorService;
4949
private LocalChannelProvider channelProvider;
5050

5151
@BeforeClass

google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343

4444
@Generated("by gapic-generator-java")
4545
public class DocumentProcessorServiceClientTest {
46+
private static MockDocumentProcessorService mockDocumentProcessorService;
4647
private static MockServiceHelper mockServiceHelper;
4748
private DocumentProcessorServiceClient client;
48-
private static MockDocumentProcessorService mockDocumentProcessorService;
4949
private LocalChannelProvider channelProvider;
5050

5151
@BeforeClass

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
17-
// source: google/cloud/documentai/v1beta3/document_processor_service.proto
17+
// source: google/cloud/documentai/v1beta3/operation_metadata.proto
1818

1919
package com.google.cloud.documentai.v1beta3;
2020

@@ -135,14 +135,14 @@ private CommonOperationMetadata(
135135
}
136136

137137
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
138-
return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
138+
return com.google.cloud.documentai.v1beta3.OperationMetadataProto
139139
.internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
140140
}
141141

142142
@java.lang.Override
143143
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
144144
internalGetFieldAccessorTable() {
145-
return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
145+
return com.google.cloud.documentai.v1beta3.OperationMetadataProto
146146
.internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable
147147
.ensureFieldAccessorsInitialized(
148148
com.google.cloud.documentai.v1beta3.CommonOperationMetadata.class,
@@ -768,14 +768,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
768768
// @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.CommonOperationMetadata)
769769
com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder {
770770
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
771-
return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
771+
return com.google.cloud.documentai.v1beta3.OperationMetadataProto
772772
.internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
773773
}
774774

775775
@java.lang.Override
776776
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
777777
internalGetFieldAccessorTable() {
778-
return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
778+
return com.google.cloud.documentai.v1beta3.OperationMetadataProto
779779
.internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable
780780
.ensureFieldAccessorsInitialized(
781781
com.google.cloud.documentai.v1beta3.CommonOperationMetadata.class,
@@ -820,7 +820,7 @@ public Builder clear() {
820820

821821
@java.lang.Override
822822
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
823-
return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
823+
return com.google.cloud.documentai.v1beta3.OperationMetadataProto
824824
.internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
825825
}
826826

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
17-
// source: google/cloud/documentai/v1beta3/document_processor_service.proto
17+
// source: google/cloud/documentai/v1beta3/operation_metadata.proto
1818

1919
package com.google.cloud.documentai.v1beta3;
2020

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java

Lines changed: 114 additions & 131 deletions
Large diffs are not rendered by default.

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public float getX() {
138138
*
139139
*
140140
* <pre>
141-
* Y coordinate.
141+
* Y coordinate (starts from the top of the image).
142142
* </pre>
143143
*
144144
* <code>float y = 2;</code>
@@ -543,7 +543,7 @@ public Builder clearX() {
543543
*
544544
*
545545
* <pre>
546-
* Y coordinate.
546+
* Y coordinate (starts from the top of the image).
547547
* </pre>
548548
*
549549
* <code>float y = 2;</code>
@@ -558,7 +558,7 @@ public float getY() {
558558
*
559559
*
560560
* <pre>
561-
* Y coordinate.
561+
* Y coordinate (starts from the top of the image).
562562
* </pre>
563563
*
564564
* <code>float y = 2;</code>
@@ -576,7 +576,7 @@ public Builder setY(float value) {
576576
*
577577
*
578578
* <pre>
579-
* Y coordinate.
579+
* Y coordinate (starts from the top of the image).
580580
* </pre>
581581
*
582582
* <code>float y = 2;</code>

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface NormalizedVertexOrBuilder
4040
*
4141
*
4242
* <pre>
43-
* Y coordinate.
43+
* Y coordinate (starts from the top of the image).
4444
* </pre>
4545
*
4646
* <code>float y = 2;</code>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
// Generated by the protocol buffer compiler. DO NOT EDIT!
17+
// source: google/cloud/documentai/v1beta3/operation_metadata.proto
18+
19+
package com.google.cloud.documentai.v1beta3;
20+
21+
public final class OperationMetadataProto {
22+
private OperationMetadataProto() {}
23+
24+
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
25+
26+
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
27+
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
28+
}
29+
30+
static final com.google.protobuf.Descriptors.Descriptor
31+
internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
32+
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
33+
internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable;
34+
35+
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
36+
return descriptor;
37+
}
38+
39+
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
40+
41+
static {
42+
java.lang.String[] descriptorData = {
43+
"\n8google/cloud/documentai/v1beta3/operat"
44+
+ "ion_metadata.proto\022\037google.cloud.documen"
45+
+ "tai.v1beta3\032\037google/protobuf/timestamp.p"
46+
+ "roto\032\034google/api/annotations.proto\"\310\002\n\027C"
47+
+ "ommonOperationMetadata\022M\n\005state\030\001 \001(\0162>."
48+
+ "google.cloud.documentai.v1beta3.CommonOp"
49+
+ "erationMetadata.State\022\025\n\rstate_message\030\002"
50+
+ " \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google.proto"
51+
+ "buf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032.goo"
52+
+ "gle.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE"
53+
+ "_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCELLIN"
54+
+ "G\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCEL"
55+
+ "LED\020\005B\363\001\n#com.google.cloud.documentai.v1"
56+
+ "beta3B\026OperationMetadataProtoP\001ZIgoogle."
57+
+ "golang.org/genproto/googleapis/cloud/doc"
58+
+ "umentai/v1beta3;documentai\252\002\037Google.Clou"
59+
+ "d.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Docu"
60+
+ "mentAI\\V1beta3\352\002\"Google::Cloud::Document"
61+
+ "AI::V1beta3b\006proto3"
62+
};
63+
descriptor =
64+
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
65+
descriptorData,
66+
new com.google.protobuf.Descriptors.FileDescriptor[] {
67+
com.google.protobuf.TimestampProto.getDescriptor(),
68+
com.google.api.AnnotationsProto.getDescriptor(),
69+
});
70+
internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor =
71+
getDescriptor().getMessageTypes().get(0);
72+
internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable =
73+
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
74+
internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor,
75+
new java.lang.String[] {
76+
"State", "StateMessage", "CreateTime", "UpdateTime",
77+
});
78+
com.google.protobuf.TimestampProto.getDescriptor();
79+
com.google.api.AnnotationsProto.getDescriptor();
80+
}
81+
82+
// @@protoc_insertion_point(outer_class_scope)
83+
}

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Vertex.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public int getX() {
137137
*
138138
*
139139
* <pre>
140-
* Y coordinate.
140+
* Y coordinate (starts from the top of the image).
141141
* </pre>
142142
*
143143
* <code>int32 y = 2;</code>
@@ -537,7 +537,7 @@ public Builder clearX() {
537537
*
538538
*
539539
* <pre>
540-
* Y coordinate.
540+
* Y coordinate (starts from the top of the image).
541541
* </pre>
542542
*
543543
* <code>int32 y = 2;</code>
@@ -552,7 +552,7 @@ public int getY() {
552552
*
553553
*
554554
* <pre>
555-
* Y coordinate.
555+
* Y coordinate (starts from the top of the image).
556556
* </pre>
557557
*
558558
* <code>int32 y = 2;</code>
@@ -570,7 +570,7 @@ public Builder setY(int value) {
570570
*
571571
*
572572
* <pre>
573-
* Y coordinate.
573+
* Y coordinate (starts from the top of the image).
574574
* </pre>
575575
*
576576
* <code>int32 y = 2;</code>

proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface VertexOrBuilder
4040
*
4141
*
4242
* <pre>
43-
* Y coordinate.
43+
* Y coordinate (starts from the top of the image).
4444
* </pre>
4545
*
4646
* <code>int32 y = 2;</code>

0 commit comments

Comments
 (0)