Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 30ad379

Browse filesBrowse files
chore(bazel): update protobuf to v3.21.7 (#787)
- [ ] 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 329d237 commit 30ad379
Copy full SHA for 30ad379

20 files changed

+1110
-1675
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-texttospeech'
5757
If you are using Gradle without BOM, add this to your dependencies:
5858

5959
```Groovy
60-
implementation 'com.google.cloud:google-cloud-texttospeech:2.4.7'
60+
implementation 'com.google.cloud:google-cloud-texttospeech:2.4.8'
6161
```
6262

6363
If you are using SBT, add this to your dependencies:
6464

6565
```Scala
66-
libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.4.7"
66+
libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.4.8"
6767
```
6868

6969
## Authentication

‎proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java

Copy file name to clipboardExpand all lines: proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java
+76-101Lines changed: 76 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -53,86 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353
return this.unknownFields;
5454
}
5555

56-
private AudioConfig(
57-
com.google.protobuf.CodedInputStream input,
58-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
59-
throws com.google.protobuf.InvalidProtocolBufferException {
60-
this();
61-
if (extensionRegistry == null) {
62-
throw new java.lang.NullPointerException();
63-
}
64-
int mutable_bitField0_ = 0;
65-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
66-
com.google.protobuf.UnknownFieldSet.newBuilder();
67-
try {
68-
boolean done = false;
69-
while (!done) {
70-
int tag = input.readTag();
71-
switch (tag) {
72-
case 0:
73-
done = true;
74-
break;
75-
case 8:
76-
{
77-
int rawValue = input.readEnum();
78-
79-
audioEncoding_ = rawValue;
80-
break;
81-
}
82-
case 17:
83-
{
84-
speakingRate_ = input.readDouble();
85-
break;
86-
}
87-
case 25:
88-
{
89-
pitch_ = input.readDouble();
90-
break;
91-
}
92-
case 33:
93-
{
94-
volumeGainDb_ = input.readDouble();
95-
break;
96-
}
97-
case 40:
98-
{
99-
sampleRateHertz_ = input.readInt32();
100-
break;
101-
}
102-
case 50:
103-
{
104-
java.lang.String s = input.readStringRequireUtf8();
105-
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
106-
effectsProfileId_ = new com.google.protobuf.LazyStringArrayList();
107-
mutable_bitField0_ |= 0x00000001;
108-
}
109-
effectsProfileId_.add(s);
110-
break;
111-
}
112-
default:
113-
{
114-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
115-
done = true;
116-
}
117-
break;
118-
}
119-
}
120-
}
121-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
122-
throw e.setUnfinishedMessage(this);
123-
} catch (com.google.protobuf.UninitializedMessageException e) {
124-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
125-
} catch (java.io.IOException e) {
126-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
127-
} finally {
128-
if (((mutable_bitField0_ & 0x00000001) != 0)) {
129-
effectsProfileId_ = effectsProfileId_.getUnmodifiableView();
130-
}
131-
this.unknownFields = unknownFields.build();
132-
makeExtensionsImmutable();
133-
}
134-
}
135-
13656
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
13757
return com.google.cloud.texttospeech.v1.TextToSpeechProto
13858
.internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor;
@@ -406,7 +326,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
406326
for (int i = 0; i < effectsProfileId_.size(); i++) {
407327
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, effectsProfileId_.getRaw(i));
408328
}
409-
unknownFields.writeTo(output);
329+
getUnknownFields().writeTo(output);
410330
}
411331

412332
@java.lang.Override
@@ -439,7 +359,7 @@ public int getSerializedSize() {
439359
size += dataSize;
440360
size += 1 * getEffectsProfileIdList().size();
441361
}
442-
size += unknownFields.getSerializedSize();
362+
size += getUnknownFields().getSerializedSize();
443363
memoizedSize = size;
444364
return size;
445365
}
@@ -464,7 +384,7 @@ public boolean equals(final java.lang.Object obj) {
464384
!= java.lang.Double.doubleToLongBits(other.getVolumeGainDb())) return false;
465385
if (getSampleRateHertz() != other.getSampleRateHertz()) return false;
466386
if (!getEffectsProfileIdList().equals(other.getEffectsProfileIdList())) return false;
467-
if (!unknownFields.equals(other.unknownFields)) return false;
387+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
468388
return true;
469389
}
470390

@@ -497,7 +417,7 @@ public int hashCode() {
497417
hash = (37 * hash) + EFFECTS_PROFILE_ID_FIELD_NUMBER;
498418
hash = (53 * hash) + getEffectsProfileIdList().hashCode();
499419
}
500-
hash = (29 * hash) + unknownFields.hashCode();
420+
hash = (29 * hash) + getUnknownFields().hashCode();
501421
memoizedHashCode = hash;
502422
return hash;
503423
}
@@ -626,17 +546,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
626546
}
627547

628548
// Construct using com.google.cloud.texttospeech.v1.AudioConfig.newBuilder()
629-
private Builder() {
630-
maybeForceBuilderInitialization();
631-
}
549+
private Builder() {}
632550

633551
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
634552
super(parent);
635-
maybeForceBuilderInitialization();
636-
}
637-
638-
private void maybeForceBuilderInitialization() {
639-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
640553
}
641554

642555
@java.lang.Override
@@ -766,7 +679,7 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1.AudioConfig other) {
766679
}
767680
onChanged();
768681
}
769-
this.mergeUnknownFields(other.unknownFields);
682+
this.mergeUnknownFields(other.getUnknownFields());
770683
onChanged();
771684
return this;
772685
}
@@ -781,17 +694,68 @@ public Builder mergeFrom(
781694
com.google.protobuf.CodedInputStream input,
782695
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
783696
throws java.io.IOException {
784-
com.google.cloud.texttospeech.v1.AudioConfig parsedMessage = null;
697+
if (extensionRegistry == null) {
698+
throw new java.lang.NullPointerException();
699+
}
785700
try {
786-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
701+
boolean done = false;
702+
while (!done) {
703+
int tag = input.readTag();
704+
switch (tag) {
705+
case 0:
706+
done = true;
707+
break;
708+
case 8:
709+
{
710+
audioEncoding_ = input.readEnum();
711+
712+
break;
713+
} // case 8
714+
case 17:
715+
{
716+
speakingRate_ = input.readDouble();
717+
718+
break;
719+
} // case 17
720+
case 25:
721+
{
722+
pitch_ = input.readDouble();
723+
724+
break;
725+
} // case 25
726+
case 33:
727+
{
728+
volumeGainDb_ = input.readDouble();
729+
730+
break;
731+
} // case 33
732+
case 40:
733+
{
734+
sampleRateHertz_ = input.readInt32();
735+
736+
break;
737+
} // case 40
738+
case 50:
739+
{
740+
java.lang.String s = input.readStringRequireUtf8();
741+
ensureEffectsProfileIdIsMutable();
742+
effectsProfileId_.add(s);
743+
break;
744+
} // case 50
745+
default:
746+
{
747+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
748+
done = true; // was an endgroup tag
749+
}
750+
break;
751+
} // default:
752+
} // switch (tag)
753+
} // while (!done)
787754
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
788-
parsedMessage = (com.google.cloud.texttospeech.v1.AudioConfig) e.getUnfinishedMessage();
789755
throw e.unwrapIOException();
790756
} finally {
791-
if (parsedMessage != null) {
792-
mergeFrom(parsedMessage);
793-
}
794-
}
757+
onChanged();
758+
} // finally
795759
return this;
796760
}
797761

@@ -1441,7 +1405,18 @@ public AudioConfig parsePartialFrom(
14411405
com.google.protobuf.CodedInputStream input,
14421406
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
14431407
throws com.google.protobuf.InvalidProtocolBufferException {
1444-
return new AudioConfig(input, extensionRegistry);
1408+
Builder builder = newBuilder();
1409+
try {
1410+
builder.mergeFrom(input, extensionRegistry);
1411+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1412+
throw e.setUnfinishedMessage(builder.buildPartial());
1413+
} catch (com.google.protobuf.UninitializedMessageException e) {
1414+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1415+
} catch (java.io.IOException e) {
1416+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1417+
.setUnfinishedMessage(builder.buildPartial());
1418+
}
1419+
return builder.buildPartial();
14451420
}
14461421
};
14471422

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.