WIP: upgrade deps

This commit is contained in:
Nex Zhu
2025-03-21 19:34:08 +08:00
parent 65e70efbb9
commit e6c1ca0e06
49 changed files with 5523 additions and 5450 deletions

View File

@@ -1,6 +1,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
/**
@@ -31,60 +32,6 @@ private static final long serialVersionUID = 0L;
return new CustomHttpPattern();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomHttpPattern(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
kind_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor;
@@ -99,7 +46,8 @@ private static final long serialVersionUID = 0L;
}
public static final int KIND_FIELD_NUMBER = 1;
private volatile java.lang.Object kind_;
@SuppressWarnings("serial")
private volatile java.lang.Object kind_ = "";
/**
* <pre>
* The name of this custom HTTP verb.
@@ -145,7 +93,8 @@ private static final long serialVersionUID = 0L;
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
@SuppressWarnings("serial")
private volatile java.lang.Object path_ = "";
/**
* <pre>
* The path matched by this custom verb.
@@ -204,13 +153,13 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getKindBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_);
}
if (!getPathBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
unknownFields.writeTo(output);
getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -219,13 +168,13 @@ private static final long serialVersionUID = 0L;
if (size != -1) return size;
size = 0;
if (!getKindBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_);
}
if (!getPathBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += unknownFields.getSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -244,7 +193,7 @@ private static final long serialVersionUID = 0L;
.equals(other.getKind())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -259,7 +208,7 @@ private static final long serialVersionUID = 0L;
hash = (53 * hash) + getKind().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -308,11 +257,13 @@ private static final long serialVersionUID = 0L;
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.CustomHttpPattern parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.CustomHttpPattern parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -380,26 +331,20 @@ private static final long serialVersionUID = 0L;
// Construct using com.google.api.CustomHttpPattern.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
kind_ = "";
path_ = "";
return this;
}
@@ -426,12 +371,21 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.api.CustomHttpPattern buildPartial() {
com.google.api.CustomHttpPattern result = new com.google.api.CustomHttpPattern(this);
result.kind_ = kind_;
result.path_ = path_;
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.api.CustomHttpPattern result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.kind_ = kind_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.path_ = path_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -478,13 +432,15 @@ private static final long serialVersionUID = 0L;
if (other == com.google.api.CustomHttpPattern.getDefaultInstance()) return this;
if (!other.getKind().isEmpty()) {
kind_ = other.kind_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -499,19 +455,43 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.api.CustomHttpPattern parsedMessage = null;
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
kind_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
path_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.api.CustomHttpPattern) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object kind_ = "";
/**
@@ -566,11 +546,9 @@ private static final long serialVersionUID = 0L;
*/
public Builder setKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
if (value == null) { throw new NullPointerException(); }
kind_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -583,8 +561,8 @@ private static final long serialVersionUID = 0L;
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = getDefaultInstance().getKind();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -599,12 +577,10 @@ private static final long serialVersionUID = 0L;
*/
public Builder setKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
kind_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -662,11 +638,9 @@ private static final long serialVersionUID = 0L;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
if (value == null) { throw new NullPointerException(); }
path_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -679,8 +653,8 @@ private static final long serialVersionUID = 0L;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -695,12 +669,10 @@ private static final long serialVersionUID = 0L;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
path_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -737,7 +709,18 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomHttpPattern(input, extensionRegistry);
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};