Skip to content

Commit 17b162a

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#509)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9
1 parent 339b087 commit 17b162a

17 files changed

Lines changed: 1020 additions & 1570 deletions

java-workflows/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file:
2727
If you are using Gradle without BOM, add this to your dependencies:
2828

2929
```Groovy
30-
implementation 'com.google.cloud:google-cloud-workflows:2.3.4'
30+
implementation 'com.google.cloud:google-cloud-workflows:2.3.5'
3131
```
3232

3333
If you are using SBT, add this to your dependencies:
3434

3535
```Scala
36-
libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.3.4"
36+
libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.3.5"
3737
```
3838

3939
## Authentication

java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java

Lines changed: 57 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -55,75 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5555
return this.unknownFields;
5656
}
5757

58-
private CreateWorkflowRequest(
59-
com.google.protobuf.CodedInputStream input,
60-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
61-
throws com.google.protobuf.InvalidProtocolBufferException {
62-
this();
63-
if (extensionRegistry == null) {
64-
throw new java.lang.NullPointerException();
65-
}
66-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
67-
com.google.protobuf.UnknownFieldSet.newBuilder();
68-
try {
69-
boolean done = false;
70-
while (!done) {
71-
int tag = input.readTag();
72-
switch (tag) {
73-
case 0:
74-
done = true;
75-
break;
76-
case 10:
77-
{
78-
java.lang.String s = input.readStringRequireUtf8();
79-
80-
parent_ = s;
81-
break;
82-
}
83-
case 18:
84-
{
85-
com.google.cloud.workflows.v1.Workflow.Builder subBuilder = null;
86-
if (workflow_ != null) {
87-
subBuilder = workflow_.toBuilder();
88-
}
89-
workflow_ =
90-
input.readMessage(
91-
com.google.cloud.workflows.v1.Workflow.parser(), extensionRegistry);
92-
if (subBuilder != null) {
93-
subBuilder.mergeFrom(workflow_);
94-
workflow_ = subBuilder.buildPartial();
95-
}
96-
97-
break;
98-
}
99-
case 26:
100-
{
101-
java.lang.String s = input.readStringRequireUtf8();
102-
103-
workflowId_ = s;
104-
break;
105-
}
106-
default:
107-
{
108-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
109-
done = true;
110-
}
111-
break;
112-
}
113-
}
114-
}
115-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
116-
throw e.setUnfinishedMessage(this);
117-
} catch (com.google.protobuf.UninitializedMessageException e) {
118-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
119-
} catch (java.io.IOException e) {
120-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
121-
} finally {
122-
this.unknownFields = unknownFields.build();
123-
makeExtensionsImmutable();
124-
}
125-
}
126-
12758
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
12859
return com.google.cloud.workflows.v1.WorkflowsProto
12960
.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
@@ -332,7 +263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
332263
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
333264
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_);
334265
}
335-
unknownFields.writeTo(output);
266+
getUnknownFields().writeTo(output);
336267
}
337268

338269
@java.lang.Override
@@ -350,7 +281,7 @@ public int getSerializedSize() {
350281
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) {
351282
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_);
352283
}
353-
size += unknownFields.getSerializedSize();
284+
size += getUnknownFields().getSerializedSize();
354285
memoizedSize = size;
355286
return size;
356287
}
@@ -372,7 +303,7 @@ public boolean equals(final java.lang.Object obj) {
372303
if (!getWorkflow().equals(other.getWorkflow())) return false;
373304
}
374305
if (!getWorkflowId().equals(other.getWorkflowId())) return false;
375-
if (!unknownFields.equals(other.unknownFields)) return false;
306+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
376307
return true;
377308
}
378309

@@ -391,7 +322,7 @@ public int hashCode() {
391322
}
392323
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
393324
hash = (53 * hash) + getWorkflowId().hashCode();
394-
hash = (29 * hash) + unknownFields.hashCode();
325+
hash = (29 * hash) + getUnknownFields().hashCode();
395326
memoizedHashCode = hash;
396327
return hash;
397328
}
@@ -522,17 +453,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
522453
}
523454

524455
// Construct using com.google.cloud.workflows.v1.CreateWorkflowRequest.newBuilder()
525-
private Builder() {
526-
maybeForceBuilderInitialization();
527-
}
456+
private Builder() {}
528457

529458
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
530459
super(parent);
531-
maybeForceBuilderInitialization();
532-
}
533-
534-
private void maybeForceBuilderInitialization() {
535-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
536460
}
537461

538462
@java.lang.Override
@@ -643,7 +567,7 @@ public Builder mergeFrom(com.google.cloud.workflows.v1.CreateWorkflowRequest oth
643567
workflowId_ = other.workflowId_;
644568
onChanged();
645569
}
646-
this.mergeUnknownFields(other.unknownFields);
570+
this.mergeUnknownFields(other.getUnknownFields());
647571
onChanged();
648572
return this;
649573
}
@@ -658,18 +582,49 @@ public Builder mergeFrom(
658582
com.google.protobuf.CodedInputStream input,
659583
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
660584
throws java.io.IOException {
661-
com.google.cloud.workflows.v1.CreateWorkflowRequest parsedMessage = null;
585+
if (extensionRegistry == null) {
586+
throw new java.lang.NullPointerException();
587+
}
662588
try {
663-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
589+
boolean done = false;
590+
while (!done) {
591+
int tag = input.readTag();
592+
switch (tag) {
593+
case 0:
594+
done = true;
595+
break;
596+
case 10:
597+
{
598+
parent_ = input.readStringRequireUtf8();
599+
600+
break;
601+
} // case 10
602+
case 18:
603+
{
604+
input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
605+
606+
break;
607+
} // case 18
608+
case 26:
609+
{
610+
workflowId_ = input.readStringRequireUtf8();
611+
612+
break;
613+
} // case 26
614+
default:
615+
{
616+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
617+
done = true; // was an endgroup tag
618+
}
619+
break;
620+
} // default:
621+
} // switch (tag)
622+
} // while (!done)
664623
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
665-
parsedMessage =
666-
(com.google.cloud.workflows.v1.CreateWorkflowRequest) e.getUnfinishedMessage();
667624
throw e.unwrapIOException();
668625
} finally {
669-
if (parsedMessage != null) {
670-
mergeFrom(parsedMessage);
671-
}
672-
}
626+
onChanged();
627+
} // finally
673628
return this;
674629
}
675630

@@ -1165,7 +1120,18 @@ public CreateWorkflowRequest parsePartialFrom(
11651120
com.google.protobuf.CodedInputStream input,
11661121
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11671122
throws com.google.protobuf.InvalidProtocolBufferException {
1168-
return new CreateWorkflowRequest(input, extensionRegistry);
1123+
Builder builder = newBuilder();
1124+
try {
1125+
builder.mergeFrom(input, extensionRegistry);
1126+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1127+
throw e.setUnfinishedMessage(builder.buildPartial());
1128+
} catch (com.google.protobuf.UninitializedMessageException e) {
1129+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1130+
} catch (java.io.IOException e) {
1131+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1132+
.setUnfinishedMessage(builder.buildPartial());
1133+
}
1134+
return builder.buildPartial();
11691135
}
11701136
};
11711137

0 commit comments

Comments
 (0)