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

Commit 7d83bfd

Browse files
chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen (#662)
- [x] Regenerate this pull request now. PiperOrigin-RevId: 403132955 Source-Link: googleapis/googleapis@d2977af Source-Link: https://github.com/googleapis/googleapis-gen/commit/99bb13c813c0e9c2682d03a8b3c3bcb382a909c9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9
1 parent 1b2b6a1 commit 7d83bfd

File tree

62 files changed

+338
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+338
-330
lines changed

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ public static List<String> getDefaultServiceScopes() {
165165

166166
/** Returns a builder for the default credentials for this service. */
167167
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
168-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
168+
return GoogleCredentialsProvider.newBuilder()
169+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
170+
.setUseJwtAccessWithScope(true);
169171
}
170172

171173
/** Returns a builder for the default ChannelProvider for this service. */

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ public static List<String> getDefaultServiceScopes() {
142142

143143
/** Returns a builder for the default credentials for this service. */
144144
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
145-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
145+
return GoogleCredentialsProvider.newBuilder()
146+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
147+
.setUseJwtAccessWithScope(true);
146148
}
147149

148150
/** Returns a builder for the default ChannelProvider for this service. */

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ public static List<String> getDefaultServiceScopes() {
150150

151151
/** Returns a builder for the default credentials for this service. */
152152
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
153-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
153+
return GoogleCredentialsProvider.newBuilder()
154+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
155+
.setUseJwtAccessWithScope(true);
154156
}
155157

156158
/** Returns a builder for the default ChannelProvider for this service. */

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ public static List<String> getDefaultServiceScopes() {
314314

315315
/** Returns a builder for the default credentials for this service. */
316316
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
317-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
317+
return GoogleCredentialsProvider.newBuilder()
318+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
319+
.setUseJwtAccessWithScope(true);
318320
}
319321

320322
/** Returns a builder for the default ChannelProvider for this service. */

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -899,13 +899,13 @@ public final boolean isInitialized() {
899899

900900
@java.lang.Override
901901
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
902-
if (!getInputGcsSourceBytes().isEmpty()) {
902+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputGcsSource_)) {
903903
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputGcsSource_);
904904
}
905905
if (status_ != null) {
906906
output.writeMessage(2, getStatus());
907907
}
908-
if (!getOutputGcsDestinationBytes().isEmpty()) {
908+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputGcsDestination_)) {
909909
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputGcsDestination_);
910910
}
911911
if (humanReviewStatus_ != null) {
@@ -920,13 +920,13 @@ public int getSerializedSize() {
920920
if (size != -1) return size;
921921

922922
size = 0;
923-
if (!getInputGcsSourceBytes().isEmpty()) {
923+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputGcsSource_)) {
924924
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputGcsSource_);
925925
}
926926
if (status_ != null) {
927927
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus());
928928
}
929-
if (!getOutputGcsDestinationBytes().isEmpty()) {
929+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputGcsDestination_)) {
930930
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputGcsDestination_);
931931
}
932932
if (humanReviewStatus_ != null) {
@@ -2236,7 +2236,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
22362236
.getNumber()) {
22372237
output.writeEnum(1, state_);
22382238
}
2239-
if (!getStateMessageBytes().isEmpty()) {
2239+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) {
22402240
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stateMessage_);
22412241
}
22422242
if (createTime_ != null) {
@@ -2262,7 +2262,7 @@ public int getSerializedSize() {
22622262
.getNumber()) {
22632263
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
22642264
}
2265-
if (!getStateMessageBytes().isEmpty()) {
2265+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) {
22662266
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_);
22672267
}
22682268
if (createTime_ != null) {

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public final boolean isInitialized() {
334334

335335
@java.lang.Override
336336
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
337-
if (!getNameBytes().isEmpty()) {
337+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
338338
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
339339
}
340340
if (skipHumanReview_ != false) {
@@ -355,7 +355,7 @@ public int getSerializedSize() {
355355
if (size != -1) return size;
356356

357357
size = 0;
358-
if (!getNameBytes().isEmpty()) {
358+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
359359
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
360360
}
361361
if (skipHumanReview_ != false) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
572572
.getNumber()) {
573573
output.writeEnum(1, state_);
574574
}
575-
if (!getStateMessageBytes().isEmpty()) {
575+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) {
576576
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stateMessage_);
577577
}
578578
if (createTime_ != null) {
@@ -595,7 +595,7 @@ public int getSerializedSize() {
595595
.getNumber()) {
596596
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
597597
}
598-
if (!getStateMessageBytes().isEmpty()) {
598+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) {
599599
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_);
600600
}
601601
if (createTime_ != null) {

0 commit comments

Comments
 (0)