fix: build.gradle duplicate classes bugs

This commit is contained in:
CaiHQ 2025-03-21 19:53:39 +08:00
parent e6c1ca0e06
commit c9832f4de9
50 changed files with 5 additions and 49530 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
.idea
# Created by https://www.gitignore.io/api/java,gradle,windows,osx,linux
### Java ###

View File

@ -14,7 +14,7 @@ plugins {
}
group = 'org.bdware'
version = 'dev-221113'
version = 'dev-250321'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
@ -26,6 +26,7 @@ def grpc_java_version = '1.71.0'
def junit_version = '5.12.1'
tasks.withType(JavaCompile) {
options.warnings = false
options.encoding = "UTF-8"
}
@ -64,12 +65,12 @@ protobuf {
artifact = 'io.grpc:protoc-gen-grpc-java:' + grpc_java_version
}
}
generatedFilesBaseDir = "$projectDir/src"
// generatedFilesBaseDir = "$projectDir/src"
generateProtoTasks {
all().each { task ->
task.plugins {
grpc {
outputSubDir = 'java'
outputSubDir = "java"
}
}
}

View File

@ -1,64 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/annotations.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
public final class AnnotationsProto {
private AnnotationsProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(com.google.api.AnnotationsProto.http);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public static final int HTTP_FIELD_NUMBER = 72295728;
/**
* <pre>
* See `HttpRule`.
* </pre>
*
* <code>extend .google.protobuf.MethodOptions { ... }</code>
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MethodOptions,
com.google.api.HttpRule> http = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
com.google.api.HttpRule.class,
com.google.api.HttpRule.getDefaultInstance());
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034google/api/annotations.proto\022\ngoogle.a" +
"pi\032\025google/api/http.proto\032 google/protob" +
"uf/descriptor.proto:E\n\004http\022\036.google.pro" +
"tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap" +
"i.HttpRuleBn\n\016com.google.apiB\020Annotation" +
"sProtoP\001ZAgoogle.golang.org/genproto/goo" +
"gleapis/api/annotations;annotations\242\002\004GA" +
"PIb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.HttpProto.getDescriptor(),
com.google.protobuf.DescriptorProtos.getDescriptor(),
});
http.internalInit(descriptor.getExtensions().get(0));
com.google.api.HttpProto.getDescriptor();
com.google.protobuf.DescriptorProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,742 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
/**
* <pre>
* A custom pattern is used for defining custom HTTP verb.
* </pre>
*
* Protobuf type {@code google.api.CustomHttpPattern}
*/
public final class CustomHttpPattern extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.CustomHttpPattern)
CustomHttpPatternOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomHttpPattern.newBuilder() to construct.
private CustomHttpPattern(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CustomHttpPattern() {
kind_ = "";
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CustomHttpPattern();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.api.CustomHttpPattern.class, com.google.api.CustomHttpPattern.Builder.class);
}
public static final int KIND_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object kind_ = "";
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @return The kind.
*/
@java.lang.Override
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
kind_ = s;
return s;
}
}
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @return The bytes for kind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object path_ = "";
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
}
}
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.api.CustomHttpPattern)) {
return super.equals(obj);
}
com.google.api.CustomHttpPattern other = (com.google.api.CustomHttpPattern) obj;
if (!getKind()
.equals(other.getKind())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.api.CustomHttpPattern parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.CustomHttpPattern parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.api.CustomHttpPattern parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.CustomHttpPattern parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.api.CustomHttpPattern parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.CustomHttpPattern parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.api.CustomHttpPattern parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.api.CustomHttpPattern parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
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)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.CustomHttpPattern parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.api.CustomHttpPattern parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.api.CustomHttpPattern prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* A custom pattern is used for defining custom HTTP verb.
* </pre>
*
* Protobuf type {@code google.api.CustomHttpPattern}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:google.api.CustomHttpPattern)
com.google.api.CustomHttpPatternOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.api.CustomHttpPattern.class, com.google.api.CustomHttpPattern.Builder.class);
}
// Construct using com.google.api.CustomHttpPattern.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
kind_ = "";
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor;
}
@java.lang.Override
public com.google.api.CustomHttpPattern getDefaultInstanceForType() {
return com.google.api.CustomHttpPattern.getDefaultInstance();
}
@java.lang.Override
public com.google.api.CustomHttpPattern build() {
com.google.api.CustomHttpPattern result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.api.CustomHttpPattern buildPartial() {
com.google.api.CustomHttpPattern result = new com.google.api.CustomHttpPattern(this);
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();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.api.CustomHttpPattern) {
return mergeFrom((com.google.api.CustomHttpPattern)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.api.CustomHttpPattern other) {
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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object kind_ = "";
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @return The kind.
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
kind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @return The bytes for kind.
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
kind_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = getDefaultInstance().getKind();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @param value The bytes for kind to set.
* @return This builder for chaining.
*/
public Builder setKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
kind_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
path_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
path_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.api.CustomHttpPattern)
}
// @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
private static final com.google.api.CustomHttpPattern DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.api.CustomHttpPattern();
}
public static com.google.api.CustomHttpPattern getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CustomHttpPattern>
PARSER = new com.google.protobuf.AbstractParser<CustomHttpPattern>() {
@java.lang.Override
public CustomHttpPattern parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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();
}
};
public static com.google.protobuf.Parser<CustomHttpPattern> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CustomHttpPattern> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.api.CustomHttpPattern getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -1,50 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
public interface CustomHttpPatternOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.CustomHttpPattern)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @return The kind.
*/
java.lang.String getKind();
/**
* <pre>
* The name of this custom HTTP verb.
* </pre>
*
* <code>string kind = 1;</code>
* @return The bytes for kind.
*/
com.google.protobuf.ByteString
getKindBytes();
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @return The path.
*/
java.lang.String getPath();
/**
* <pre>
* The path matched by this custom verb.
* </pre>
*
* <code>string path = 2;</code>
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,89 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/httpbody.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
public interface HttpBodyOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.HttpBody)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The HTTP Content-Type header value specifying the content type of the body.
* </pre>
*
* <code>string content_type = 1;</code>
* @return The contentType.
*/
java.lang.String getContentType();
/**
* <pre>
* The HTTP Content-Type header value specifying the content type of the body.
* </pre>
*
* <code>string content_type = 1;</code>
* @return The bytes for contentType.
*/
com.google.protobuf.ByteString
getContentTypeBytes();
/**
* <pre>
* The HTTP request/response body as raw binary.
* </pre>
*
* <code>bytes data = 2;</code>
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
* <pre>
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
* </pre>
*
* <code>repeated .google.protobuf.Any extensions = 3;</code>
*/
java.util.List<com.google.protobuf.Any>
getExtensionsList();
/**
* <pre>
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
* </pre>
*
* <code>repeated .google.protobuf.Any extensions = 3;</code>
*/
com.google.protobuf.Any getExtensions(int index);
/**
* <pre>
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
* </pre>
*
* <code>repeated .google.protobuf.Any extensions = 3;</code>
*/
int getExtensionsCount();
/**
* <pre>
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
* </pre>
*
* <code>repeated .google.protobuf.Any extensions = 3;</code>
*/
java.util.List<? extends com.google.protobuf.AnyOrBuilder>
getExtensionsOrBuilderList();
/**
* <pre>
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
* </pre>
*
* <code>repeated .google.protobuf.Any extensions = 3;</code>
*/
com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(
int index);
}

View File

@ -1,55 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/httpbody.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
public final class HttpBodyProto {
private HttpBodyProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_HttpBody_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_HttpBody_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031google/api/httpbody.proto\022\ngoogle.api\032" +
"\031google/protobuf/any.proto\"X\n\010HttpBody\022\024" +
"\n\014content_type\030\001 \001(\t\022\014\n\004data\030\002 \001(\014\022(\n\nex" +
"tensions\030\003 \003(\0132\024.google.protobuf.AnyBh\n\016" +
"com.google.apiB\rHttpBodyProtoP\001Z;google." +
"golang.org/genproto/googleapis/api/httpb" +
"ody;httpbody\370\001\001\242\002\004GAPIb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.AnyProto.getDescriptor(),
});
internal_static_google_api_HttpBody_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_google_api_HttpBody_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_HttpBody_descriptor,
new java.lang.String[] { "ContentType", "Data", "Extensions", });
com.google.protobuf.AnyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,79 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
public interface HttpOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.Http)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* A list of HTTP configuration rules that apply to individual API methods.
*
* **NOTE:** All service configuration rules follow "last one wins" order.
* </pre>
*
* <code>repeated .google.api.HttpRule rules = 1;</code>
*/
java.util.List<com.google.api.HttpRule>
getRulesList();
/**
* <pre>
* A list of HTTP configuration rules that apply to individual API methods.
*
* **NOTE:** All service configuration rules follow "last one wins" order.
* </pre>
*
* <code>repeated .google.api.HttpRule rules = 1;</code>
*/
com.google.api.HttpRule getRules(int index);
/**
* <pre>
* A list of HTTP configuration rules that apply to individual API methods.
*
* **NOTE:** All service configuration rules follow "last one wins" order.
* </pre>
*
* <code>repeated .google.api.HttpRule rules = 1;</code>
*/
int getRulesCount();
/**
* <pre>
* A list of HTTP configuration rules that apply to individual API methods.
*
* **NOTE:** All service configuration rules follow "last one wins" order.
* </pre>
*
* <code>repeated .google.api.HttpRule rules = 1;</code>
*/
java.util.List<? extends com.google.api.HttpRuleOrBuilder>
getRulesOrBuilderList();
/**
* <pre>
* A list of HTTP configuration rules that apply to individual API methods.
*
* **NOTE:** All service configuration rules follow "last one wins" order.
* </pre>
*
* <code>repeated .google.api.HttpRule rules = 1;</code>
*/
com.google.api.HttpRuleOrBuilder getRulesOrBuilder(
int index);
/**
* <pre>
* When set to true, URL path parmeters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
*
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
* </pre>
*
* <code>bool fully_decode_reserved_expansion = 2;</code>
* @return The fullyDecodeReservedExpansion.
*/
boolean getFullyDecodeReservedExpansion();
}

View File

@ -1,82 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
public final class HttpProto {
private HttpProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_Http_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_Http_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_HttpRule_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_HttpRule_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_CustomHttpPattern_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_CustomHttpPattern_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025google/api/http.proto\022\ngoogle.api\"T\n\004H" +
"ttp\022#\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" +
"\022\'\n\037fully_decode_reserved_expansion\030\002 \001(" +
"\010\"\201\002\n\010HttpRule\022\020\n\010selector\030\001 \001(\t\022\r\n\003get\030" +
"\002 \001(\tH\000\022\r\n\003put\030\003 \001(\tH\000\022\016\n\004post\030\004 \001(\tH\000\022\020" +
"\n\006delete\030\005 \001(\tH\000\022\017\n\005patch\030\006 \001(\tH\000\022/\n\006cus" +
"tom\030\010 \001(\0132\035.google.api.CustomHttpPattern" +
"H\000\022\014\n\004body\030\007 \001(\t\022\025\n\rresponse_body\030\014 \001(\t\022" +
"1\n\023additional_bindings\030\013 \003(\0132\024.google.ap" +
"i.HttpRuleB\t\n\007pattern\"/\n\021CustomHttpPatte" +
"rn\022\014\n\004kind\030\001 \001(\t\022\014\n\004path\030\002 \001(\tBj\n\016com.go" +
"ogle.apiB\tHttpProtoP\001ZAgoogle.golang.org" +
"/genproto/googleapis/api/annotations;ann" +
"otations\370\001\001\242\002\004GAPIb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_google_api_Http_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_google_api_Http_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_Http_descriptor,
new java.lang.String[] { "Rules", "FullyDecodeReservedExpansion", });
internal_static_google_api_HttpRule_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_google_api_HttpRule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_HttpRule_descriptor,
new java.lang.String[] { "Selector", "Get", "Put", "Post", "Delete", "Patch", "Custom", "Body", "ResponseBody", "AdditionalBindings", "Pattern", });
internal_static_google_api_CustomHttpPattern_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_google_api_CustomHttpPattern_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_CustomHttpPattern_descriptor,
new java.lang.String[] { "Kind", "Path", });
}
// @@protoc_insertion_point(outer_class_scope)
}

File diff suppressed because it is too large Load Diff

View File

@ -1,321 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
// Protobuf Java Version: 3.25.6
package com.google.api;
public interface HttpRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.HttpRule)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Selects methods to which this rule applies.
*
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
* </pre>
*
* <code>string selector = 1;</code>
* @return The selector.
*/
java.lang.String getSelector();
/**
* <pre>
* Selects methods to which this rule applies.
*
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
* </pre>
*
* <code>string selector = 1;</code>
* @return The bytes for selector.
*/
com.google.protobuf.ByteString
getSelectorBytes();
/**
* <pre>
* Used for listing and getting information about resources.
* </pre>
*
* <code>string get = 2;</code>
* @return Whether the get field is set.
*/
boolean hasGet();
/**
* <pre>
* Used for listing and getting information about resources.
* </pre>
*
* <code>string get = 2;</code>
* @return The get.
*/
java.lang.String getGet();
/**
* <pre>
* Used for listing and getting information about resources.
* </pre>
*
* <code>string get = 2;</code>
* @return The bytes for get.
*/
com.google.protobuf.ByteString
getGetBytes();
/**
* <pre>
* Used for updating a resource.
* </pre>
*
* <code>string put = 3;</code>
* @return Whether the put field is set.
*/
boolean hasPut();
/**
* <pre>
* Used for updating a resource.
* </pre>
*
* <code>string put = 3;</code>
* @return The put.
*/
java.lang.String getPut();
/**
* <pre>
* Used for updating a resource.
* </pre>
*
* <code>string put = 3;</code>
* @return The bytes for put.
*/
com.google.protobuf.ByteString
getPutBytes();
/**
* <pre>
* Used for creating a resource.
* </pre>
*
* <code>string post = 4;</code>
* @return Whether the post field is set.
*/
boolean hasPost();
/**
* <pre>
* Used for creating a resource.
* </pre>
*
* <code>string post = 4;</code>
* @return The post.
*/
java.lang.String getPost();
/**
* <pre>
* Used for creating a resource.
* </pre>
*
* <code>string post = 4;</code>
* @return The bytes for post.
*/
com.google.protobuf.ByteString
getPostBytes();
/**
* <pre>
* Used for deleting a resource.
* </pre>
*
* <code>string delete = 5;</code>
* @return Whether the delete field is set.
*/
boolean hasDelete();
/**
* <pre>
* Used for deleting a resource.
* </pre>
*
* <code>string delete = 5;</code>
* @return The delete.
*/
java.lang.String getDelete();
/**
* <pre>
* Used for deleting a resource.
* </pre>
*
* <code>string delete = 5;</code>
* @return The bytes for delete.
*/
com.google.protobuf.ByteString
getDeleteBytes();
/**
* <pre>
* Used for updating a resource.
* </pre>
*
* <code>string patch = 6;</code>
* @return Whether the patch field is set.
*/
boolean hasPatch();
/**
* <pre>
* Used for updating a resource.
* </pre>
*
* <code>string patch = 6;</code>
* @return The patch.
*/
java.lang.String getPatch();
/**
* <pre>
* Used for updating a resource.
* </pre>
*
* <code>string patch = 6;</code>
* @return The bytes for patch.
*/
com.google.protobuf.ByteString
getPatchBytes();
/**
* <pre>
* The custom pattern is used for specifying an HTTP method that is not
* included in the `pattern` field, such as HEAD, or "*" to leave the
* HTTP method unspecified for this rule. The wild-card rule is useful
* for services that provide content to Web (HTML) clients.
* </pre>
*
* <code>.google.api.CustomHttpPattern custom = 8;</code>
* @return Whether the custom field is set.
*/
boolean hasCustom();
/**
* <pre>
* The custom pattern is used for specifying an HTTP method that is not
* included in the `pattern` field, such as HEAD, or "*" to leave the
* HTTP method unspecified for this rule. The wild-card rule is useful
* for services that provide content to Web (HTML) clients.
* </pre>
*
* <code>.google.api.CustomHttpPattern custom = 8;</code>
* @return The custom.
*/
com.google.api.CustomHttpPattern getCustom();
/**
* <pre>
* The custom pattern is used for specifying an HTTP method that is not
* included in the `pattern` field, such as HEAD, or "*" to leave the
* HTTP method unspecified for this rule. The wild-card rule is useful
* for services that provide content to Web (HTML) clients.
* </pre>
*
* <code>.google.api.CustomHttpPattern custom = 8;</code>
*/
com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder();
/**
* <pre>
* The name of the request field whose value is mapped to the HTTP body, or
* `*` for mapping all fields not captured by the path pattern to the HTTP
* body. NOTE: the referred field must not be a repeated field and must be
* present at the top-level of request message type.
* </pre>
*
* <code>string body = 7;</code>
* @return The body.
*/
java.lang.String getBody();
/**
* <pre>
* The name of the request field whose value is mapped to the HTTP body, or
* `*` for mapping all fields not captured by the path pattern to the HTTP
* body. NOTE: the referred field must not be a repeated field and must be
* present at the top-level of request message type.
* </pre>
*
* <code>string body = 7;</code>
* @return The bytes for body.
*/
com.google.protobuf.ByteString
getBodyBytes();
/**
* <pre>
* Optional. The name of the response field whose value is mapped to the HTTP
* body of response. Other response fields are ignored. When
* not set, the response message will be used as HTTP body of response.
* </pre>
*
* <code>string response_body = 12;</code>
* @return The responseBody.
*/
java.lang.String getResponseBody();
/**
* <pre>
* Optional. The name of the response field whose value is mapped to the HTTP
* body of response. Other response fields are ignored. When
* not set, the response message will be used as HTTP body of response.
* </pre>
*
* <code>string response_body = 12;</code>
* @return The bytes for responseBody.
*/
com.google.protobuf.ByteString
getResponseBodyBytes();
/**
* <pre>
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
* the nesting may only be one level deep).
* </pre>
*
* <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
*/
java.util.List<com.google.api.HttpRule>
getAdditionalBindingsList();
/**
* <pre>
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
* the nesting may only be one level deep).
* </pre>
*
* <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
*/
com.google.api.HttpRule getAdditionalBindings(int index);
/**
* <pre>
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
* the nesting may only be one level deep).
* </pre>
*
* <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
*/
int getAdditionalBindingsCount();
/**
* <pre>
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
* the nesting may only be one level deep).
* </pre>
*
* <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
*/
java.util.List<? extends com.google.api.HttpRuleOrBuilder>
getAdditionalBindingsOrBuilderList();
/**
* <pre>
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
* the nesting may only be one level deep).
* </pre>
*
* <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
*/
com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(
int index);
com.google.api.HttpRule.PatternCase getPatternCase();
}

View File

@ -1,423 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
// Protobuf Java Version: 3.25.6
package com.google.protobuf;
/**
* <pre>
* A generic empty message that you can re-use to avoid defining duplicated
* empty messages in your APIs. A typical example is to use it as the request
* or the response type of an API method. For instance:
*
* service Foo {
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
* }
*
* The JSON representation for `Empty` is empty JSON object `{}`.
* </pre>
*
* Protobuf type {@code google.protobuf.Empty}
*/
public final class Empty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.protobuf.Empty)
EmptyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Empty.newBuilder() to construct.
private Empty(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Empty() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Empty();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.Empty.class, com.google.protobuf.Empty.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.Empty)) {
return super.equals(obj);
}
com.google.protobuf.Empty other = (com.google.protobuf.Empty) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.Empty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Empty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Empty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Empty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Empty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Empty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Empty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.Empty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.Empty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.Empty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.Empty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.Empty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.Empty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* A generic empty message that you can re-use to avoid defining duplicated
* empty messages in your APIs. A typical example is to use it as the request
* or the response type of an API method. For instance:
*
* service Foo {
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
* }
*
* The JSON representation for `Empty` is empty JSON object `{}`.
* </pre>
*
* Protobuf type {@code google.protobuf.Empty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:google.protobuf.Empty)
com.google.protobuf.EmptyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.Empty.class, com.google.protobuf.Empty.Builder.class);
}
// Construct using com.google.protobuf.Empty.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor;
}
@java.lang.Override
public com.google.protobuf.Empty getDefaultInstanceForType() {
return com.google.protobuf.Empty.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.Empty build() {
com.google.protobuf.Empty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.Empty buildPartial() {
com.google.protobuf.Empty result = new com.google.protobuf.Empty(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.Empty) {
return mergeFrom((com.google.protobuf.Empty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.Empty other) {
if (other == com.google.protobuf.Empty.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.protobuf.Empty)
}
// @@protoc_insertion_point(class_scope:google.protobuf.Empty)
private static final com.google.protobuf.Empty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.Empty();
}
public static com.google.protobuf.Empty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Empty>
PARSER = new com.google.protobuf.AbstractParser<Empty>() {
@java.lang.Override
public Empty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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();
}
};
public static com.google.protobuf.Parser<Empty> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Empty> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Empty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -1,10 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
// Protobuf Java Version: 3.25.6
package com.google.protobuf;
public interface EmptyOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.protobuf.Empty)
com.google.protobuf.MessageOrBuilder {
}

View File

@ -1,51 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
// Protobuf Java Version: 3.25.6
package com.google.protobuf;
public final class EmptyProto {
private EmptyProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_protobuf_Empty_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_protobuf_Empty_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033google/protobuf/empty.proto\022\017google.pr" +
"otobuf\"\007\n\005EmptyBv\n\023com.google.protobufB\n" +
"EmptyProtoP\001Z\'github.com/golang/protobuf" +
"/ptypes/empty\370\001\001\242\002\003GPB\252\002\036Google.Protobuf" +
".WellKnownTypesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_google_protobuf_Empty_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_google_protobuf_Empty_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_protobuf_Empty_descriptor,
new java.lang.String[] { });
}
// @@protoc_insertion_point(outer_class_scope)
}

File diff suppressed because it is too large Load Diff

View File

@ -1,54 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface BadRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.BadRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code>
*/
java.util.List<com.google.rpc.BadRequest.FieldViolation>
getFieldViolationsList();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code>
*/
com.google.rpc.BadRequest.FieldViolation getFieldViolations(int index);
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code>
*/
int getFieldViolationsCount();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code>
*/
java.util.List<? extends com.google.rpc.BadRequest.FieldViolationOrBuilder>
getFieldViolationsOrBuilderList();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;</code>
*/
com.google.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder(
int index);
}

View File

@ -1,599 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/code.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
/**
* <pre>
* The canonical error codes for Google APIs.
*
*
* Sometimes multiple error codes may apply. Services should return
* the most specific error code that applies. For example, prefer
* `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
* Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
* </pre>
*
* Protobuf enum {@code google.rpc.Code}
*/
public enum Code
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <pre>
* Not an error; returned on success
*
* HTTP Mapping: 200 OK
* </pre>
*
* <code>OK = 0;</code>
*/
OK(0),
/**
* <pre>
* The operation was cancelled, typically by the caller.
*
* HTTP Mapping: 499 Client Closed Request
* </pre>
*
* <code>CANCELLED = 1;</code>
*/
CANCELLED(1),
/**
* <pre>
* Unknown error. For example, this error may be returned when
* a `Status` value received from another address space belongs to
* an error space that is not known in this address space. Also
* errors raised by APIs that do not return enough error information
* may be converted to this error.
*
* HTTP Mapping: 500 Internal Server Error
* </pre>
*
* <code>UNKNOWN = 2;</code>
*/
UNKNOWN(2),
/**
* <pre>
* The client specified an invalid argument. Note that this differs
* from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
* that are problematic regardless of the state of the system
* (e.g., a malformed file name).
*
* HTTP Mapping: 400 Bad Request
* </pre>
*
* <code>INVALID_ARGUMENT = 3;</code>
*/
INVALID_ARGUMENT(3),
/**
* <pre>
* The deadline expired before the operation could complete. For operations
* that change the state of the system, this error may be returned
* even if the operation has completed successfully. For example, a
* successful response from a server could have been delayed long
* enough for the deadline to expire.
*
* HTTP Mapping: 504 Gateway Timeout
* </pre>
*
* <code>DEADLINE_EXCEEDED = 4;</code>
*/
DEADLINE_EXCEEDED(4),
/**
* <pre>
* Some requested entity (e.g., file or directory) was not found.
*
* Note to server developers: if a request is denied for an entire class
* of users, such as gradual feature rollout or undocumented whitelist,
* `NOT_FOUND` may be used. If a request is denied for some users within
* a class of users, such as user-based access control, `PERMISSION_DENIED`
* must be used.
*
* HTTP Mapping: 404 Not Found
* </pre>
*
* <code>NOT_FOUND = 5;</code>
*/
NOT_FOUND(5),
/**
* <pre>
* The entity that a client attempted to create (e.g., file or directory)
* already exists.
*
* HTTP Mapping: 409 Conflict
* </pre>
*
* <code>ALREADY_EXISTS = 6;</code>
*/
ALREADY_EXISTS(6),
/**
* <pre>
* The caller does not have permission to execute the specified
* operation. `PERMISSION_DENIED` must not be used for rejections
* caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
* instead for those errors). `PERMISSION_DENIED` must not be
* used if the caller can not be identified (use `UNAUTHENTICATED`
* instead for those errors). This error code does not imply the
* request is valid or the requested entity exists or satisfies
* other pre-conditions.
*
* HTTP Mapping: 403 Forbidden
* </pre>
*
* <code>PERMISSION_DENIED = 7;</code>
*/
PERMISSION_DENIED(7),
/**
* <pre>
* The request does not have valid authentication credentials for the
* operation.
*
* HTTP Mapping: 401 Unauthorized
* </pre>
*
* <code>UNAUTHENTICATED = 16;</code>
*/
UNAUTHENTICATED(16),
/**
* <pre>
* Some resource has been exhausted, perhaps a per-user quota, or
* perhaps the entire file system is out of space.
*
* HTTP Mapping: 429 Too Many Requests
* </pre>
*
* <code>RESOURCE_EXHAUSTED = 8;</code>
*/
RESOURCE_EXHAUSTED(8),
/**
* <pre>
* The operation was rejected because the system is not in a state
* required for the operation's execution. For example, the directory
* to be deleted is non-empty, an rmdir operation is applied to
* a non-directory, etc.
*
* Service implementors can use the following guidelines to decide
* between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
* (a) Use `UNAVAILABLE` if the client can retry just the failing call.
* (b) Use `ABORTED` if the client should retry at a higher level
* (e.g., when a client-specified test-and-set fails, indicating the
* client should restart a read-modify-write sequence).
* (c) Use `FAILED_PRECONDITION` if the client should not retry until
* the system state has been explicitly fixed. E.g., if an "rmdir"
* fails because the directory is non-empty, `FAILED_PRECONDITION`
* should be returned since the client should not retry unless
* the files are deleted from the directory.
*
* HTTP Mapping: 400 Bad Request
* </pre>
*
* <code>FAILED_PRECONDITION = 9;</code>
*/
FAILED_PRECONDITION(9),
/**
* <pre>
* The operation was aborted, typically due to a concurrency issue such as
* a sequencer check failure or transaction abort.
*
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
*
* HTTP Mapping: 409 Conflict
* </pre>
*
* <code>ABORTED = 10;</code>
*/
ABORTED(10),
/**
* <pre>
* The operation was attempted past the valid range. E.g., seeking or
* reading past end-of-file.
*
* Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
* be fixed if the system state changes. For example, a 32-bit file
* system will generate `INVALID_ARGUMENT` if asked to read at an
* offset that is not in the range [0,2^32-1], but it will generate
* `OUT_OF_RANGE` if asked to read from an offset past the current
* file size.
*
* There is a fair bit of overlap between `FAILED_PRECONDITION` and
* `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
* error) when it applies so that callers who are iterating through
* a space can easily look for an `OUT_OF_RANGE` error to detect when
* they are done.
*
* HTTP Mapping: 400 Bad Request
* </pre>
*
* <code>OUT_OF_RANGE = 11;</code>
*/
OUT_OF_RANGE(11),
/**
* <pre>
* The operation is not implemented or is not supported/enabled in this
* service.
*
* HTTP Mapping: 501 Not Implemented
* </pre>
*
* <code>UNIMPLEMENTED = 12;</code>
*/
UNIMPLEMENTED(12),
/**
* <pre>
* Internal errors. This means that some invariants expected by the
* underlying system have been broken. This error code is reserved
* for serious errors.
*
* HTTP Mapping: 500 Internal Server Error
* </pre>
*
* <code>INTERNAL = 13;</code>
*/
INTERNAL(13),
/**
* <pre>
* The service is currently unavailable. This is most likely a
* transient condition, which can be corrected by retrying with
* a backoff.
*
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
*
* HTTP Mapping: 503 Service Unavailable
* </pre>
*
* <code>UNAVAILABLE = 14;</code>
*/
UNAVAILABLE(14),
/**
* <pre>
* Unrecoverable data loss or corruption.
*
* HTTP Mapping: 500 Internal Server Error
* </pre>
*
* <code>DATA_LOSS = 15;</code>
*/
DATA_LOSS(15),
UNRECOGNIZED(-1),
;
/**
* <pre>
* Not an error; returned on success
*
* HTTP Mapping: 200 OK
* </pre>
*
* <code>OK = 0;</code>
*/
public static final int OK_VALUE = 0;
/**
* <pre>
* The operation was cancelled, typically by the caller.
*
* HTTP Mapping: 499 Client Closed Request
* </pre>
*
* <code>CANCELLED = 1;</code>
*/
public static final int CANCELLED_VALUE = 1;
/**
* <pre>
* Unknown error. For example, this error may be returned when
* a `Status` value received from another address space belongs to
* an error space that is not known in this address space. Also
* errors raised by APIs that do not return enough error information
* may be converted to this error.
*
* HTTP Mapping: 500 Internal Server Error
* </pre>
*
* <code>UNKNOWN = 2;</code>
*/
public static final int UNKNOWN_VALUE = 2;
/**
* <pre>
* The client specified an invalid argument. Note that this differs
* from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
* that are problematic regardless of the state of the system
* (e.g., a malformed file name).
*
* HTTP Mapping: 400 Bad Request
* </pre>
*
* <code>INVALID_ARGUMENT = 3;</code>
*/
public static final int INVALID_ARGUMENT_VALUE = 3;
/**
* <pre>
* The deadline expired before the operation could complete. For operations
* that change the state of the system, this error may be returned
* even if the operation has completed successfully. For example, a
* successful response from a server could have been delayed long
* enough for the deadline to expire.
*
* HTTP Mapping: 504 Gateway Timeout
* </pre>
*
* <code>DEADLINE_EXCEEDED = 4;</code>
*/
public static final int DEADLINE_EXCEEDED_VALUE = 4;
/**
* <pre>
* Some requested entity (e.g., file or directory) was not found.
*
* Note to server developers: if a request is denied for an entire class
* of users, such as gradual feature rollout or undocumented whitelist,
* `NOT_FOUND` may be used. If a request is denied for some users within
* a class of users, such as user-based access control, `PERMISSION_DENIED`
* must be used.
*
* HTTP Mapping: 404 Not Found
* </pre>
*
* <code>NOT_FOUND = 5;</code>
*/
public static final int NOT_FOUND_VALUE = 5;
/**
* <pre>
* The entity that a client attempted to create (e.g., file or directory)
* already exists.
*
* HTTP Mapping: 409 Conflict
* </pre>
*
* <code>ALREADY_EXISTS = 6;</code>
*/
public static final int ALREADY_EXISTS_VALUE = 6;
/**
* <pre>
* The caller does not have permission to execute the specified
* operation. `PERMISSION_DENIED` must not be used for rejections
* caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
* instead for those errors). `PERMISSION_DENIED` must not be
* used if the caller can not be identified (use `UNAUTHENTICATED`
* instead for those errors). This error code does not imply the
* request is valid or the requested entity exists or satisfies
* other pre-conditions.
*
* HTTP Mapping: 403 Forbidden
* </pre>
*
* <code>PERMISSION_DENIED = 7;</code>
*/
public static final int PERMISSION_DENIED_VALUE = 7;
/**
* <pre>
* The request does not have valid authentication credentials for the
* operation.
*
* HTTP Mapping: 401 Unauthorized
* </pre>
*
* <code>UNAUTHENTICATED = 16;</code>
*/
public static final int UNAUTHENTICATED_VALUE = 16;
/**
* <pre>
* Some resource has been exhausted, perhaps a per-user quota, or
* perhaps the entire file system is out of space.
*
* HTTP Mapping: 429 Too Many Requests
* </pre>
*
* <code>RESOURCE_EXHAUSTED = 8;</code>
*/
public static final int RESOURCE_EXHAUSTED_VALUE = 8;
/**
* <pre>
* The operation was rejected because the system is not in a state
* required for the operation's execution. For example, the directory
* to be deleted is non-empty, an rmdir operation is applied to
* a non-directory, etc.
*
* Service implementors can use the following guidelines to decide
* between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
* (a) Use `UNAVAILABLE` if the client can retry just the failing call.
* (b) Use `ABORTED` if the client should retry at a higher level
* (e.g., when a client-specified test-and-set fails, indicating the
* client should restart a read-modify-write sequence).
* (c) Use `FAILED_PRECONDITION` if the client should not retry until
* the system state has been explicitly fixed. E.g., if an "rmdir"
* fails because the directory is non-empty, `FAILED_PRECONDITION`
* should be returned since the client should not retry unless
* the files are deleted from the directory.
*
* HTTP Mapping: 400 Bad Request
* </pre>
*
* <code>FAILED_PRECONDITION = 9;</code>
*/
public static final int FAILED_PRECONDITION_VALUE = 9;
/**
* <pre>
* The operation was aborted, typically due to a concurrency issue such as
* a sequencer check failure or transaction abort.
*
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
*
* HTTP Mapping: 409 Conflict
* </pre>
*
* <code>ABORTED = 10;</code>
*/
public static final int ABORTED_VALUE = 10;
/**
* <pre>
* The operation was attempted past the valid range. E.g., seeking or
* reading past end-of-file.
*
* Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
* be fixed if the system state changes. For example, a 32-bit file
* system will generate `INVALID_ARGUMENT` if asked to read at an
* offset that is not in the range [0,2^32-1], but it will generate
* `OUT_OF_RANGE` if asked to read from an offset past the current
* file size.
*
* There is a fair bit of overlap between `FAILED_PRECONDITION` and
* `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
* error) when it applies so that callers who are iterating through
* a space can easily look for an `OUT_OF_RANGE` error to detect when
* they are done.
*
* HTTP Mapping: 400 Bad Request
* </pre>
*
* <code>OUT_OF_RANGE = 11;</code>
*/
public static final int OUT_OF_RANGE_VALUE = 11;
/**
* <pre>
* The operation is not implemented or is not supported/enabled in this
* service.
*
* HTTP Mapping: 501 Not Implemented
* </pre>
*
* <code>UNIMPLEMENTED = 12;</code>
*/
public static final int UNIMPLEMENTED_VALUE = 12;
/**
* <pre>
* Internal errors. This means that some invariants expected by the
* underlying system have been broken. This error code is reserved
* for serious errors.
*
* HTTP Mapping: 500 Internal Server Error
* </pre>
*
* <code>INTERNAL = 13;</code>
*/
public static final int INTERNAL_VALUE = 13;
/**
* <pre>
* The service is currently unavailable. This is most likely a
* transient condition, which can be corrected by retrying with
* a backoff.
*
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
*
* HTTP Mapping: 503 Service Unavailable
* </pre>
*
* <code>UNAVAILABLE = 14;</code>
*/
public static final int UNAVAILABLE_VALUE = 14;
/**
* <pre>
* Unrecoverable data loss or corruption.
*
* HTTP Mapping: 500 Internal Server Error
* </pre>
*
* <code>DATA_LOSS = 15;</code>
*/
public static final int DATA_LOSS_VALUE = 15;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Code valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Code forNumber(int value) {
switch (value) {
case 0: return OK;
case 1: return CANCELLED;
case 2: return UNKNOWN;
case 3: return INVALID_ARGUMENT;
case 4: return DEADLINE_EXCEEDED;
case 5: return NOT_FOUND;
case 6: return ALREADY_EXISTS;
case 7: return PERMISSION_DENIED;
case 16: return UNAUTHENTICATED;
case 8: return RESOURCE_EXHAUSTED;
case 9: return FAILED_PRECONDITION;
case 10: return ABORTED;
case 11: return OUT_OF_RANGE;
case 12: return UNIMPLEMENTED;
case 13: return INTERNAL;
case 14: return UNAVAILABLE;
case 15: return DATA_LOSS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Code>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Code> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Code>() {
public Code findValueByNumber(int number) {
return Code.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.rpc.CodeProto.getDescriptor().getEnumTypes().get(0);
}
private static final Code[] VALUES = values();
public static Code valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Code(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.rpc.Code)
}

View File

@ -1,47 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/code.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public final class CodeProto {
private CodeProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025google/rpc/code.proto\022\ngoogle.rpc*\267\002\n\004" +
"Code\022\006\n\002OK\020\000\022\r\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002" +
"\022\024\n\020INVALID_ARGUMENT\020\003\022\025\n\021DEADLINE_EXCEE" +
"DED\020\004\022\r\n\tNOT_FOUND\020\005\022\022\n\016ALREADY_EXISTS\020\006" +
"\022\025\n\021PERMISSION_DENIED\020\007\022\023\n\017UNAUTHENTICAT" +
"ED\020\020\022\026\n\022RESOURCE_EXHAUSTED\020\010\022\027\n\023FAILED_P" +
"RECONDITION\020\t\022\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RAN" +
"GE\020\013\022\021\n\rUNIMPLEMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n" +
"\013UNAVAILABLE\020\016\022\r\n\tDATA_LOSS\020\017BX\n\016com.goo" +
"gle.rpcB\tCodeProtoP\001Z3google.golang.org/" +
"genproto/googleapis/rpc/code;code\242\002\003RPCb" +
"\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,819 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
/**
* <pre>
* Describes additional debugging info.
* </pre>
*
* Protobuf type {@code google.rpc.DebugInfo}
*/
public final class DebugInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.DebugInfo)
DebugInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DebugInfo.newBuilder() to construct.
private DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DebugInfo() {
stackEntries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
detail_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DebugInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.DebugInfo.class, com.google.rpc.DebugInfo.Builder.class);
}
public static final int STACK_ENTRIES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList stackEntries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @return A list containing the stackEntries.
*/
public com.google.protobuf.ProtocolStringList
getStackEntriesList() {
return stackEntries_;
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @return The count of stackEntries.
*/
public int getStackEntriesCount() {
return stackEntries_.size();
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param index The index of the element to return.
* @return The stackEntries at the given index.
*/
public java.lang.String getStackEntries(int index) {
return stackEntries_.get(index);
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param index The index of the value to return.
* @return The bytes of the stackEntries at the given index.
*/
public com.google.protobuf.ByteString
getStackEntriesBytes(int index) {
return stackEntries_.getByteString(index);
}
public static final int DETAIL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object detail_ = "";
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @return The detail.
*/
@java.lang.Override
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detail_ = s;
return s;
}
}
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @return The bytes for detail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < stackEntries_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackEntries_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < stackEntries_.size(); i++) {
dataSize += computeStringSizeNoTag(stackEntries_.getRaw(i));
}
size += dataSize;
size += 1 * getStackEntriesList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.rpc.DebugInfo)) {
return super.equals(obj);
}
com.google.rpc.DebugInfo other = (com.google.rpc.DebugInfo) obj;
if (!getStackEntriesList()
.equals(other.getStackEntriesList())) return false;
if (!getDetail()
.equals(other.getDetail())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getStackEntriesCount() > 0) {
hash = (37 * hash) + STACK_ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getStackEntriesList().hashCode();
}
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.rpc.DebugInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.DebugInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.DebugInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.DebugInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.DebugInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.DebugInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.DebugInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.DebugInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.DebugInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.rpc.DebugInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.DebugInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.DebugInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.rpc.DebugInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Describes additional debugging info.
* </pre>
*
* Protobuf type {@code google.rpc.DebugInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:google.rpc.DebugInfo)
com.google.rpc.DebugInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.DebugInfo.class, com.google.rpc.DebugInfo.Builder.class);
}
// Construct using com.google.rpc.DebugInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
stackEntries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
detail_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor;
}
@java.lang.Override
public com.google.rpc.DebugInfo getDefaultInstanceForType() {
return com.google.rpc.DebugInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.rpc.DebugInfo build() {
com.google.rpc.DebugInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.rpc.DebugInfo buildPartial() {
com.google.rpc.DebugInfo result = new com.google.rpc.DebugInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.rpc.DebugInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
stackEntries_.makeImmutable();
result.stackEntries_ = stackEntries_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.detail_ = detail_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.rpc.DebugInfo) {
return mergeFrom((com.google.rpc.DebugInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.rpc.DebugInfo other) {
if (other == com.google.rpc.DebugInfo.getDefaultInstance()) return this;
if (!other.stackEntries_.isEmpty()) {
if (stackEntries_.isEmpty()) {
stackEntries_ = other.stackEntries_;
bitField0_ |= 0x00000001;
} else {
ensureStackEntriesIsMutable();
stackEntries_.addAll(other.stackEntries_);
}
onChanged();
}
if (!other.getDetail().isEmpty()) {
detail_ = other.detail_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureStackEntriesIsMutable();
stackEntries_.add(s);
break;
} // case 10
case 18: {
detail_ = 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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList stackEntries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureStackEntriesIsMutable() {
if (!stackEntries_.isModifiable()) {
stackEntries_ = new com.google.protobuf.LazyStringArrayList(stackEntries_);
}
bitField0_ |= 0x00000001;
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @return A list containing the stackEntries.
*/
public com.google.protobuf.ProtocolStringList
getStackEntriesList() {
stackEntries_.makeImmutable();
return stackEntries_;
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @return The count of stackEntries.
*/
public int getStackEntriesCount() {
return stackEntries_.size();
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param index The index of the element to return.
* @return The stackEntries at the given index.
*/
public java.lang.String getStackEntries(int index) {
return stackEntries_.get(index);
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param index The index of the value to return.
* @return The bytes of the stackEntries at the given index.
*/
public com.google.protobuf.ByteString
getStackEntriesBytes(int index) {
return stackEntries_.getByteString(index);
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param index The index to set the value at.
* @param value The stackEntries to set.
* @return This builder for chaining.
*/
public Builder setStackEntries(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStackEntriesIsMutable();
stackEntries_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param value The stackEntries to add.
* @return This builder for chaining.
*/
public Builder addStackEntries(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStackEntriesIsMutable();
stackEntries_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param values The stackEntries to add.
* @return This builder for chaining.
*/
public Builder addAllStackEntries(
java.lang.Iterable<java.lang.String> values) {
ensureStackEntriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stackEntries_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @return This builder for chaining.
*/
public Builder clearStackEntries() {
stackEntries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param value The bytes of the stackEntries to add.
* @return This builder for chaining.
*/
public Builder addStackEntriesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureStackEntriesIsMutable();
stackEntries_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object detail_ = "";
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @return The detail.
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @return The bytes for detail.
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @param value The detail to set.
* @return This builder for chaining.
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
detail_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @return This builder for chaining.
*/
public Builder clearDetail() {
detail_ = getDefaultInstance().getDetail();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @param value The bytes for detail to set.
* @return This builder for chaining.
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
detail_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.DebugInfo)
}
// @@protoc_insertion_point(class_scope:google.rpc.DebugInfo)
private static final com.google.rpc.DebugInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.rpc.DebugInfo();
}
public static com.google.rpc.DebugInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DebugInfo>
PARSER = new com.google.protobuf.AbstractParser<DebugInfo>() {
@java.lang.Override
public DebugInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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();
}
};
public static com.google.protobuf.Parser<DebugInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DebugInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.rpc.DebugInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -1,71 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface DebugInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.DebugInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @return A list containing the stackEntries.
*/
java.util.List<java.lang.String>
getStackEntriesList();
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @return The count of stackEntries.
*/
int getStackEntriesCount();
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param index The index of the element to return.
* @return The stackEntries at the given index.
*/
java.lang.String getStackEntries(int index);
/**
* <pre>
* The stack trace entries indicating where the error occurred.
* </pre>
*
* <code>repeated string stack_entries = 1;</code>
* @param index The index of the value to return.
* @return The bytes of the stackEntries at the given index.
*/
com.google.protobuf.ByteString
getStackEntriesBytes(int index);
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @return The detail.
*/
java.lang.String getDetail();
/**
* <pre>
* Additional debugging information provided by the server.
* </pre>
*
* <code>string detail = 2;</code>
* @return The bytes for detail.
*/
com.google.protobuf.ByteString
getDetailBytes();
}

View File

@ -1,206 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public final class ErrorDetailsProto {
private ErrorDetailsProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_RetryInfo_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_RetryInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_DebugInfo_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_DebugInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_QuotaFailure_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_QuotaFailure_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_QuotaFailure_Violation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_PreconditionFailure_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_PreconditionFailure_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_BadRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_BadRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_BadRequest_FieldViolation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_RequestInfo_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_RequestInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_ResourceInfo_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_ResourceInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_Help_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_Help_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_Help_Link_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_Help_Link_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_LocalizedMessage_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_LocalizedMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\036google/rpc/error_details.proto\022\ngoogle" +
".rpc\032\036google/protobuf/duration.proto\";\n\t" +
"RetryInfo\022.\n\013retry_delay\030\001 \001(\0132\031.google." +
"protobuf.Duration\"2\n\tDebugInfo\022\025\n\rstack_" +
"entries\030\001 \003(\t\022\016\n\006detail\030\002 \001(\t\"y\n\014QuotaFa" +
"ilure\0226\n\nviolations\030\001 \003(\0132\".google.rpc.Q" +
"uotaFailure.Violation\0321\n\tViolation\022\017\n\007su" +
"bject\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"\225\001\n\023Pre" +
"conditionFailure\022=\n\nviolations\030\001 \003(\0132).g" +
"oogle.rpc.PreconditionFailure.Violation\032" +
"?\n\tViolation\022\014\n\004type\030\001 \001(\t\022\017\n\007subject\030\002 " +
"\001(\t\022\023\n\013description\030\003 \001(\t\"\203\001\n\nBadRequest\022" +
"?\n\020field_violations\030\001 \003(\0132%.google.rpc.B" +
"adRequest.FieldViolation\0324\n\016FieldViolati" +
"on\022\r\n\005field\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"7" +
"\n\013RequestInfo\022\022\n\nrequest_id\030\001 \001(\t\022\024\n\014ser" +
"ving_data\030\002 \001(\t\"`\n\014ResourceInfo\022\025\n\rresou" +
"rce_type\030\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\r\n" +
"\005owner\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\"V\n\004Hel" +
"p\022$\n\005links\030\001 \003(\0132\025.google.rpc.Help.Link\032" +
"(\n\004Link\022\023\n\013description\030\001 \001(\t\022\013\n\003url\030\002 \001(" +
"\t\"3\n\020LocalizedMessage\022\016\n\006locale\030\001 \001(\t\022\017\n" +
"\007message\030\002 \001(\tBl\n\016com.google.rpcB\021ErrorD" +
"etailsProtoP\001Z?google.golang.org/genprot" +
"o/googleapis/rpc/errdetails;errdetails\242\002" +
"\003RPCb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DurationProto.getDescriptor(),
});
internal_static_google_rpc_RetryInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_google_rpc_RetryInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_RetryInfo_descriptor,
new java.lang.String[] { "RetryDelay", });
internal_static_google_rpc_DebugInfo_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_google_rpc_DebugInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_DebugInfo_descriptor,
new java.lang.String[] { "StackEntries", "Detail", });
internal_static_google_rpc_QuotaFailure_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_google_rpc_QuotaFailure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_QuotaFailure_descriptor,
new java.lang.String[] { "Violations", });
internal_static_google_rpc_QuotaFailure_Violation_descriptor =
internal_static_google_rpc_QuotaFailure_descriptor.getNestedTypes().get(0);
internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_QuotaFailure_Violation_descriptor,
new java.lang.String[] { "Subject", "Description", });
internal_static_google_rpc_PreconditionFailure_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_google_rpc_PreconditionFailure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_PreconditionFailure_descriptor,
new java.lang.String[] { "Violations", });
internal_static_google_rpc_PreconditionFailure_Violation_descriptor =
internal_static_google_rpc_PreconditionFailure_descriptor.getNestedTypes().get(0);
internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_PreconditionFailure_Violation_descriptor,
new java.lang.String[] { "Type", "Subject", "Description", });
internal_static_google_rpc_BadRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_google_rpc_BadRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_BadRequest_descriptor,
new java.lang.String[] { "FieldViolations", });
internal_static_google_rpc_BadRequest_FieldViolation_descriptor =
internal_static_google_rpc_BadRequest_descriptor.getNestedTypes().get(0);
internal_static_google_rpc_BadRequest_FieldViolation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_BadRequest_FieldViolation_descriptor,
new java.lang.String[] { "Field", "Description", });
internal_static_google_rpc_RequestInfo_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_google_rpc_RequestInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_RequestInfo_descriptor,
new java.lang.String[] { "RequestId", "ServingData", });
internal_static_google_rpc_ResourceInfo_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_google_rpc_ResourceInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_ResourceInfo_descriptor,
new java.lang.String[] { "ResourceType", "ResourceName", "Owner", "Description", });
internal_static_google_rpc_Help_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_google_rpc_Help_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_Help_descriptor,
new java.lang.String[] { "Links", });
internal_static_google_rpc_Help_Link_descriptor =
internal_static_google_rpc_Help_descriptor.getNestedTypes().get(0);
internal_static_google_rpc_Help_Link_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_Help_Link_descriptor,
new java.lang.String[] { "Description", "Url", });
internal_static_google_rpc_LocalizedMessage_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_google_rpc_LocalizedMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_LocalizedMessage_descriptor,
new java.lang.String[] { "Locale", "Message", });
com.google.protobuf.DurationProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

File diff suppressed because it is too large Load Diff

View File

@ -1,54 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface HelpOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.Help)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* URL(s) pointing to additional information on handling the current error.
* </pre>
*
* <code>repeated .google.rpc.Help.Link links = 1;</code>
*/
java.util.List<com.google.rpc.Help.Link>
getLinksList();
/**
* <pre>
* URL(s) pointing to additional information on handling the current error.
* </pre>
*
* <code>repeated .google.rpc.Help.Link links = 1;</code>
*/
com.google.rpc.Help.Link getLinks(int index);
/**
* <pre>
* URL(s) pointing to additional information on handling the current error.
* </pre>
*
* <code>repeated .google.rpc.Help.Link links = 1;</code>
*/
int getLinksCount();
/**
* <pre>
* URL(s) pointing to additional information on handling the current error.
* </pre>
*
* <code>repeated .google.rpc.Help.Link links = 1;</code>
*/
java.util.List<? extends com.google.rpc.Help.LinkOrBuilder>
getLinksOrBuilderList();
/**
* <pre>
* URL(s) pointing to additional information on handling the current error.
* </pre>
*
* <code>repeated .google.rpc.Help.Link links = 1;</code>
*/
com.google.rpc.Help.LinkOrBuilder getLinksOrBuilder(
int index);
}

View File

@ -1,758 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
/**
* <pre>
* Provides a localized error message that is safe to return to the user
* which can be attached to an RPC error.
* </pre>
*
* Protobuf type {@code google.rpc.LocalizedMessage}
*/
public final class LocalizedMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.LocalizedMessage)
LocalizedMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocalizedMessage.newBuilder() to construct.
private LocalizedMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private LocalizedMessage() {
locale_ = "";
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocalizedMessage();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.LocalizedMessage.class, com.google.rpc.LocalizedMessage.Builder.class);
}
public static final int LOCALE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object locale_ = "";
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @return The locale.
*/
@java.lang.Override
public java.lang.String getLocale() {
java.lang.Object ref = locale_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locale_ = s;
return s;
}
}
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @return The bytes for locale.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocaleBytes() {
java.lang.Object ref = locale_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locale_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, locale_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.rpc.LocalizedMessage)) {
return super.equals(obj);
}
com.google.rpc.LocalizedMessage other = (com.google.rpc.LocalizedMessage) obj;
if (!getLocale()
.equals(other.getLocale())) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LOCALE_FIELD_NUMBER;
hash = (53 * hash) + getLocale().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.rpc.LocalizedMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.LocalizedMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.LocalizedMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.LocalizedMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.LocalizedMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.LocalizedMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.LocalizedMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.LocalizedMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.LocalizedMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.rpc.LocalizedMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.LocalizedMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.LocalizedMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.rpc.LocalizedMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Provides a localized error message that is safe to return to the user
* which can be attached to an RPC error.
* </pre>
*
* Protobuf type {@code google.rpc.LocalizedMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:google.rpc.LocalizedMessage)
com.google.rpc.LocalizedMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.LocalizedMessage.class, com.google.rpc.LocalizedMessage.Builder.class);
}
// Construct using com.google.rpc.LocalizedMessage.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
locale_ = "";
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
}
@java.lang.Override
public com.google.rpc.LocalizedMessage getDefaultInstanceForType() {
return com.google.rpc.LocalizedMessage.getDefaultInstance();
}
@java.lang.Override
public com.google.rpc.LocalizedMessage build() {
com.google.rpc.LocalizedMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.rpc.LocalizedMessage buildPartial() {
com.google.rpc.LocalizedMessage result = new com.google.rpc.LocalizedMessage(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.rpc.LocalizedMessage result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.locale_ = locale_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.message_ = message_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.rpc.LocalizedMessage) {
return mergeFrom((com.google.rpc.LocalizedMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.rpc.LocalizedMessage other) {
if (other == com.google.rpc.LocalizedMessage.getDefaultInstance()) return this;
if (!other.getLocale().isEmpty()) {
locale_ = other.locale_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
locale_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
message_ = 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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object locale_ = "";
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @return The locale.
*/
public java.lang.String getLocale() {
java.lang.Object ref = locale_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locale_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @return The bytes for locale.
*/
public com.google.protobuf.ByteString
getLocaleBytes() {
java.lang.Object ref = locale_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @param value The locale to set.
* @return This builder for chaining.
*/
public Builder setLocale(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
locale_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @return This builder for chaining.
*/
public Builder clearLocale() {
locale_ = getDefaultInstance().getLocale();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @param value The bytes for locale to set.
* @return This builder for chaining.
*/
public Builder setLocaleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
locale_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.LocalizedMessage)
}
// @@protoc_insertion_point(class_scope:google.rpc.LocalizedMessage)
private static final com.google.rpc.LocalizedMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.rpc.LocalizedMessage();
}
public static com.google.rpc.LocalizedMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<LocalizedMessage>
PARSER = new com.google.protobuf.AbstractParser<LocalizedMessage>() {
@java.lang.Override
public LocalizedMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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();
}
};
public static com.google.protobuf.Parser<LocalizedMessage> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<LocalizedMessage> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.rpc.LocalizedMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -1,54 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface LocalizedMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.LocalizedMessage)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @return The locale.
*/
java.lang.String getLocale();
/**
* <pre>
* The locale used following the specification defined at
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
* Examples are: "en-US", "fr-CH", "es-MX"
* </pre>
*
* <code>string locale = 1;</code>
* @return The bytes for locale.
*/
com.google.protobuf.ByteString
getLocaleBytes();
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @return The message.
*/
java.lang.String getMessage();
/**
* <pre>
* The localized error message in the above locale.
* </pre>
*
* <code>string message = 2;</code>
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}

File diff suppressed because it is too large Load Diff

View File

@ -1,54 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface PreconditionFailureOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.PreconditionFailure)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Describes all precondition violations.
* </pre>
*
* <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
*/
java.util.List<com.google.rpc.PreconditionFailure.Violation>
getViolationsList();
/**
* <pre>
* Describes all precondition violations.
* </pre>
*
* <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
*/
com.google.rpc.PreconditionFailure.Violation getViolations(int index);
/**
* <pre>
* Describes all precondition violations.
* </pre>
*
* <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
*/
int getViolationsCount();
/**
* <pre>
* Describes all precondition violations.
* </pre>
*
* <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
*/
java.util.List<? extends com.google.rpc.PreconditionFailure.ViolationOrBuilder>
getViolationsOrBuilderList();
/**
* <pre>
* Describes all precondition violations.
* </pre>
*
* <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
*/
com.google.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(
int index);
}

File diff suppressed because it is too large Load Diff

View File

@ -1,54 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface QuotaFailureOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.QuotaFailure)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Describes all quota violations.
* </pre>
*
* <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code>
*/
java.util.List<com.google.rpc.QuotaFailure.Violation>
getViolationsList();
/**
* <pre>
* Describes all quota violations.
* </pre>
*
* <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code>
*/
com.google.rpc.QuotaFailure.Violation getViolations(int index);
/**
* <pre>
* Describes all quota violations.
* </pre>
*
* <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code>
*/
int getViolationsCount();
/**
* <pre>
* Describes all quota violations.
* </pre>
*
* <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code>
*/
java.util.List<? extends com.google.rpc.QuotaFailure.ViolationOrBuilder>
getViolationsOrBuilderList();
/**
* <pre>
* Describes all quota violations.
* </pre>
*
* <code>repeated .google.rpc.QuotaFailure.Violation violations = 1;</code>
*/
com.google.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(
int index);
}

View File

@ -1,758 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
/**
* <pre>
* Contains metadata about the request that clients can attach when filing a bug
* or providing other forms of feedback.
* </pre>
*
* Protobuf type {@code google.rpc.RequestInfo}
*/
public final class RequestInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.RequestInfo)
RequestInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestInfo.newBuilder() to construct.
private RequestInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private RequestInfo() {
requestId_ = "";
servingData_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.RequestInfo.class, com.google.rpc.RequestInfo.Builder.class);
}
public static final int REQUEST_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object requestId_ = "";
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @return The requestId.
*/
@java.lang.Override
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestId_ = s;
return s;
}
}
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @return The bytes for requestId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVING_DATA_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object servingData_ = "";
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @return The servingData.
*/
@java.lang.Override
public java.lang.String getServingData() {
java.lang.Object ref = servingData_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
servingData_ = s;
return s;
}
}
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @return The bytes for servingData.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServingDataBytes() {
java.lang.Object ref = servingData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
servingData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingData_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, servingData_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingData_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, servingData_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.rpc.RequestInfo)) {
return super.equals(obj);
}
com.google.rpc.RequestInfo other = (com.google.rpc.RequestInfo) obj;
if (!getRequestId()
.equals(other.getRequestId())) return false;
if (!getServingData()
.equals(other.getServingData())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + getRequestId().hashCode();
hash = (37 * hash) + SERVING_DATA_FIELD_NUMBER;
hash = (53 * hash) + getServingData().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.rpc.RequestInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.RequestInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.RequestInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.RequestInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.RequestInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.RequestInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.RequestInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.RequestInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.RequestInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.rpc.RequestInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.RequestInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.RequestInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.rpc.RequestInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Contains metadata about the request that clients can attach when filing a bug
* or providing other forms of feedback.
* </pre>
*
* Protobuf type {@code google.rpc.RequestInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:google.rpc.RequestInfo)
com.google.rpc.RequestInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.RequestInfo.class, com.google.rpc.RequestInfo.Builder.class);
}
// Construct using com.google.rpc.RequestInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
requestId_ = "";
servingData_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor;
}
@java.lang.Override
public com.google.rpc.RequestInfo getDefaultInstanceForType() {
return com.google.rpc.RequestInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.rpc.RequestInfo build() {
com.google.rpc.RequestInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.rpc.RequestInfo buildPartial() {
com.google.rpc.RequestInfo result = new com.google.rpc.RequestInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.rpc.RequestInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.requestId_ = requestId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.servingData_ = servingData_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.rpc.RequestInfo) {
return mergeFrom((com.google.rpc.RequestInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.rpc.RequestInfo other) {
if (other == com.google.rpc.RequestInfo.getDefaultInstance()) return this;
if (!other.getRequestId().isEmpty()) {
requestId_ = other.requestId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getServingData().isEmpty()) {
servingData_ = other.servingData_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
requestId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
servingData_ = 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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object requestId_ = "";
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @return The requestId.
*/
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @return The bytes for requestId.
*/
public com.google.protobuf.ByteString
getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @param value The requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
requestId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearRequestId() {
requestId_ = getDefaultInstance().getRequestId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @param value The bytes for requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
requestId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object servingData_ = "";
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @return The servingData.
*/
public java.lang.String getServingData() {
java.lang.Object ref = servingData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
servingData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @return The bytes for servingData.
*/
public com.google.protobuf.ByteString
getServingDataBytes() {
java.lang.Object ref = servingData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
servingData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @param value The servingData to set.
* @return This builder for chaining.
*/
public Builder setServingData(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
servingData_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @return This builder for chaining.
*/
public Builder clearServingData() {
servingData_ = getDefaultInstance().getServingData();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @param value The bytes for servingData to set.
* @return This builder for chaining.
*/
public Builder setServingDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
servingData_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.RequestInfo)
}
// @@protoc_insertion_point(class_scope:google.rpc.RequestInfo)
private static final com.google.rpc.RequestInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.rpc.RequestInfo();
}
public static com.google.rpc.RequestInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<RequestInfo>
PARSER = new com.google.protobuf.AbstractParser<RequestInfo>() {
@java.lang.Override
public RequestInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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();
}
};
public static com.google.protobuf.Parser<RequestInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<RequestInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.rpc.RequestInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -1,54 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface RequestInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.RequestInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @return The requestId.
*/
java.lang.String getRequestId();
/**
* <pre>
* An opaque string that should only be interpreted by the service generating
* it. For example, it can be used to identify requests in the service's logs.
* </pre>
*
* <code>string request_id = 1;</code>
* @return The bytes for requestId.
*/
com.google.protobuf.ByteString
getRequestIdBytes();
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @return The servingData.
*/
java.lang.String getServingData();
/**
* <pre>
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
* </pre>
*
* <code>string serving_data = 2;</code>
* @return The bytes for servingData.
*/
com.google.protobuf.ByteString
getServingDataBytes();
}

File diff suppressed because it is too large Load Diff

View File

@ -1,106 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface ResourceInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.ResourceInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* A name for the type of resource being accessed, e.g. "sql table",
* "cloud storage bucket", "file", "Google calendar"; or the type URL
* of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
* </pre>
*
* <code>string resource_type = 1;</code>
* @return The resourceType.
*/
java.lang.String getResourceType();
/**
* <pre>
* A name for the type of resource being accessed, e.g. "sql table",
* "cloud storage bucket", "file", "Google calendar"; or the type URL
* of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
* </pre>
*
* <code>string resource_type = 1;</code>
* @return The bytes for resourceType.
*/
com.google.protobuf.ByteString
getResourceTypeBytes();
/**
* <pre>
* The name of the resource being accessed. For example, a shared calendar
* name: "example.com_4fghdhgsrgh&#64;group.calendar.google.com", if the current
* error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
* </pre>
*
* <code>string resource_name = 2;</code>
* @return The resourceName.
*/
java.lang.String getResourceName();
/**
* <pre>
* The name of the resource being accessed. For example, a shared calendar
* name: "example.com_4fghdhgsrgh&#64;group.calendar.google.com", if the current
* error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
* </pre>
*
* <code>string resource_name = 2;</code>
* @return The bytes for resourceName.
*/
com.google.protobuf.ByteString
getResourceNameBytes();
/**
* <pre>
* The owner of the resource (optional).
* For example, "user:&lt;owner email&gt;" or "project:&lt;Google developer project
* id&gt;".
* </pre>
*
* <code>string owner = 3;</code>
* @return The owner.
*/
java.lang.String getOwner();
/**
* <pre>
* The owner of the resource (optional).
* For example, "user:&lt;owner email&gt;" or "project:&lt;Google developer project
* id&gt;".
* </pre>
*
* <code>string owner = 3;</code>
* @return The bytes for owner.
*/
com.google.protobuf.ByteString
getOwnerBytes();
/**
* <pre>
* Describes what error is encountered when accessing this resource.
* For example, updating a cloud project may require the `writer` permission
* on the developer console project.
* </pre>
*
* <code>string description = 4;</code>
* @return The description.
*/
java.lang.String getDescription();
/**
* <pre>
* Describes what error is encountered when accessing this resource.
* For example, updating a cloud project may require the `writer` permission
* on the developer console project.
* </pre>
*
* <code>string description = 4;</code>
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}

View File

@ -1,679 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
/**
* <pre>
* Describes when the clients can retry a failed request. Clients could ignore
* the recommendation here or retry when this information is missing from error
* responses.
*
* It's always recommended that clients should use exponential backoff when
* retrying.
*
* Clients should wait until `retry_delay` amount of time has passed since
* receiving the error response before retrying. If retrying requests also
* fail, clients should use an exponential backoff scheme to gradually increase
* the delay between retries based on `retry_delay`, until either a maximum
* number of retires have been reached or a maximum retry delay cap has been
* reached.
* </pre>
*
* Protobuf type {@code google.rpc.RetryInfo}
*/
public final class RetryInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.RetryInfo)
RetryInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RetryInfo.newBuilder() to construct.
private RetryInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private RetryInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RetryInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.RetryInfo.class, com.google.rpc.RetryInfo.Builder.class);
}
private int bitField0_;
public static final int RETRY_DELAY_FIELD_NUMBER = 1;
private com.google.protobuf.Duration retryDelay_;
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
* @return Whether the retryDelay field is set.
*/
@java.lang.Override
public boolean hasRetryDelay() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
* @return The retryDelay.
*/
@java.lang.Override
public com.google.protobuf.Duration getRetryDelay() {
return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_;
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() {
return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRetryDelay());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRetryDelay());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.rpc.RetryInfo)) {
return super.equals(obj);
}
com.google.rpc.RetryInfo other = (com.google.rpc.RetryInfo) obj;
if (hasRetryDelay() != other.hasRetryDelay()) return false;
if (hasRetryDelay()) {
if (!getRetryDelay()
.equals(other.getRetryDelay())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRetryDelay()) {
hash = (37 * hash) + RETRY_DELAY_FIELD_NUMBER;
hash = (53 * hash) + getRetryDelay().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.rpc.RetryInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.RetryInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.RetryInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.RetryInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.RetryInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.rpc.RetryInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.rpc.RetryInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.RetryInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.RetryInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.rpc.RetryInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.rpc.RetryInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.rpc.RetryInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.rpc.RetryInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Describes when the clients can retry a failed request. Clients could ignore
* the recommendation here or retry when this information is missing from error
* responses.
*
* It's always recommended that clients should use exponential backoff when
* retrying.
*
* Clients should wait until `retry_delay` amount of time has passed since
* receiving the error response before retrying. If retrying requests also
* fail, clients should use an exponential backoff scheme to gradually increase
* the delay between retries based on `retry_delay`, until either a maximum
* number of retires have been reached or a maximum retry delay cap has been
* reached.
* </pre>
*
* Protobuf type {@code google.rpc.RetryInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:google.rpc.RetryInfo)
com.google.rpc.RetryInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.RetryInfo.class, com.google.rpc.RetryInfo.Builder.class);
}
// Construct using com.google.rpc.RetryInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRetryDelayFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
retryDelay_ = null;
if (retryDelayBuilder_ != null) {
retryDelayBuilder_.dispose();
retryDelayBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor;
}
@java.lang.Override
public com.google.rpc.RetryInfo getDefaultInstanceForType() {
return com.google.rpc.RetryInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.rpc.RetryInfo build() {
com.google.rpc.RetryInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.rpc.RetryInfo buildPartial() {
com.google.rpc.RetryInfo result = new com.google.rpc.RetryInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.rpc.RetryInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.retryDelay_ = retryDelayBuilder_ == null
? retryDelay_
: retryDelayBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.rpc.RetryInfo) {
return mergeFrom((com.google.rpc.RetryInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.rpc.RetryInfo other) {
if (other == com.google.rpc.RetryInfo.getDefaultInstance()) return this;
if (other.hasRetryDelay()) {
mergeRetryDelay(other.getRetryDelay());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getRetryDelayFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Duration retryDelay_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retryDelayBuilder_;
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
* @return Whether the retryDelay field is set.
*/
public boolean hasRetryDelay() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
* @return The retryDelay.
*/
public com.google.protobuf.Duration getRetryDelay() {
if (retryDelayBuilder_ == null) {
return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_;
} else {
return retryDelayBuilder_.getMessage();
}
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
public Builder setRetryDelay(com.google.protobuf.Duration value) {
if (retryDelayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
retryDelay_ = value;
} else {
retryDelayBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
public Builder setRetryDelay(
com.google.protobuf.Duration.Builder builderForValue) {
if (retryDelayBuilder_ == null) {
retryDelay_ = builderForValue.build();
} else {
retryDelayBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
public Builder mergeRetryDelay(com.google.protobuf.Duration value) {
if (retryDelayBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
retryDelay_ != null &&
retryDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
getRetryDelayBuilder().mergeFrom(value);
} else {
retryDelay_ = value;
}
} else {
retryDelayBuilder_.mergeFrom(value);
}
if (retryDelay_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
public Builder clearRetryDelay() {
bitField0_ = (bitField0_ & ~0x00000001);
retryDelay_ = null;
if (retryDelayBuilder_ != null) {
retryDelayBuilder_.dispose();
retryDelayBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
public com.google.protobuf.Duration.Builder getRetryDelayBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRetryDelayFieldBuilder().getBuilder();
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() {
if (retryDelayBuilder_ != null) {
return retryDelayBuilder_.getMessageOrBuilder();
} else {
return retryDelay_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : retryDelay_;
}
}
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getRetryDelayFieldBuilder() {
if (retryDelayBuilder_ == null) {
retryDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getRetryDelay(),
getParentForChildren(),
isClean());
retryDelay_ = null;
}
return retryDelayBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.RetryInfo)
}
// @@protoc_insertion_point(class_scope:google.rpc.RetryInfo)
private static final com.google.rpc.RetryInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.rpc.RetryInfo();
}
public static com.google.rpc.RetryInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<RetryInfo>
PARSER = new com.google.protobuf.AbstractParser<RetryInfo>() {
@java.lang.Override
public RetryInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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();
}
};
public static com.google.protobuf.Parser<RetryInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<RetryInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.rpc.RetryInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -1,37 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface RetryInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.RetryInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
* @return Whether the retryDelay field is set.
*/
boolean hasRetryDelay();
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
* @return The retryDelay.
*/
com.google.protobuf.Duration getRetryDelay();
/**
* <pre>
* Clients should wait at least this long between retrying the same request.
* </pre>
*
* <code>.google.protobuf.Duration retry_delay = 1;</code>
*/
com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder();
}

File diff suppressed because it is too large Load Diff

View File

@ -1,93 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/status.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public interface StatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.Status)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
* </pre>
*
* <code>int32 code = 1;</code>
* @return The code.
*/
int getCode();
/**
* <pre>
* A developer-facing error message, which should be in English. Any
* user-facing error message should be localized and sent in the
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
* </pre>
*
* <code>string message = 2;</code>
* @return The message.
*/
java.lang.String getMessage();
/**
* <pre>
* A developer-facing error message, which should be in English. Any
* user-facing error message should be localized and sent in the
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
* </pre>
*
* <code>string message = 2;</code>
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* <pre>
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
* </pre>
*
* <code>repeated .google.protobuf.Any details = 3;</code>
*/
java.util.List<com.google.protobuf.Any>
getDetailsList();
/**
* <pre>
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
* </pre>
*
* <code>repeated .google.protobuf.Any details = 3;</code>
*/
com.google.protobuf.Any getDetails(int index);
/**
* <pre>
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
* </pre>
*
* <code>repeated .google.protobuf.Any details = 3;</code>
*/
int getDetailsCount();
/**
* <pre>
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
* </pre>
*
* <code>repeated .google.protobuf.Any details = 3;</code>
*/
java.util.List<? extends com.google.protobuf.AnyOrBuilder>
getDetailsOrBuilderList();
/**
* <pre>
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
* </pre>
*
* <code>repeated .google.protobuf.Any details = 3;</code>
*/
com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(
int index);
}

View File

@ -1,55 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/status.proto
// Protobuf Java Version: 3.25.6
package com.google.rpc;
public final class StatusProto {
private StatusProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_rpc_Status_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_rpc_Status_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g" +
"oogle/protobuf/any.proto\"N\n\006Status\022\014\n\004co" +
"de\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\022%\n\007details\030\003 \003" +
"(\0132\024.google.protobuf.AnyB^\n\016com.google.r" +
"pcB\013StatusProtoP\001Z7google.golang.org/gen" +
"proto/googleapis/rpc/status;status\242\002\003RPC" +
"b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.AnyProto.getDescriptor(),
});
internal_static_google_rpc_Status_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_google_rpc_Status_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_rpc_Status_descriptor,
new java.lang.String[] { "Code", "Message", "Details", });
com.google.protobuf.AnyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,752 +0,0 @@
package org.bdware.bdledger.api.grpc;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.protobuf.ByteString;
import com.google.protobuf.Empty;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.Metadata;
import io.grpc.StatusRuntimeException;
import io.grpc.stub.MetadataUtils;
import org.bdware.bdledger.api.grpc.pb.CommonProto.TransactionType;
import org.bdware.bdledger.api.grpc.pb.LedgerGrpc;
import org.bdware.bdledger.api.grpc.pb.LedgerProto.*;
import org.bdware.bdledger.api.grpc.pb.NodeGrpc;
import org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse;
import org.bdware.bdledger.api.grpc.pb.QueryGrpc;
import org.bdware.bdledger.api.grpc.pb.QueryProto.*;
import java.time.ZonedDateTime;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* 事务账本客户端
*
* <p>如有更灵活的需求可直接使用{@link org.bdware.bdledger.api.grpc.pb.LedgerGrpc}
*
* @author nex
* @see <a href="#">事务账本API</a>
*/
public class Client {
private static final Logger logger = Logger.getLogger(Client.class.getName());
private ManagedChannel channel;
private NodeGrpc.NodeFutureStub nodeFutureStub;
private NodeGrpc.NodeBlockingStub nodeBlockingStub;
private LedgerGrpc.LedgerFutureStub ledgerFutureStub;
private LedgerGrpc.LedgerBlockingStub ledgerBlockingStub;
private QueryGrpc.QueryFutureStub queryFutureStub;
private QueryGrpc.QueryBlockingStub queryBlockingStub;
// private final ManagedChannel channel;
// private final NodeGrpc.NodeFutureStub nodeFutureStub;
// private final NodeGrpc.NodeBlockingStub nodeBlockingStub;
// private final LedgerGrpc.LedgerFutureStub ledgerFutureStub;
// private final LedgerGrpc.LedgerBlockingStub ledgerBlockingStub;
// private final QueryGrpc.QueryFutureStub queryFutureStub;
// private final QueryGrpc.QueryBlockingStub queryBlockingStub;
/**
* 构造客户端来向{@code host:port} BDLedger节点发请求
*/
public Client(String host, int port) {
this(ManagedChannelBuilder.forAddress(host, port).usePlaintext(), null);
}
/**
* 构造客户端使用{@code token}作access token来向{@code host:port} BDLedger节点发请求
*/
public Client(String host, int port, String token) {
this(ManagedChannelBuilder.forAddress(host, port).usePlaintext(), token);
}
/**
* 用已有的{@link io.grpc.Channel}对象构造客户端来向BDLedger节点发请求
*/
public Client(ManagedChannelBuilder<?> channelBuilder, String token) {
channel = channelBuilder.build();
nodeFutureStub = NodeGrpc.newFutureStub(channel);
nodeBlockingStub = NodeGrpc.newBlockingStub(channel);
ledgerFutureStub = LedgerGrpc.newFutureStub(channel);
ledgerBlockingStub = LedgerGrpc.newBlockingStub(channel);
queryFutureStub = QueryGrpc.newFutureStub(channel);
queryBlockingStub = QueryGrpc.newBlockingStub(channel);
if (token != null) {
Metadata fixedHeaders = new Metadata();
fixedHeaders.put(Metadata.Key.of("authorization", Metadata.ASCII_STRING_MARSHALLER), "bearer " + token);
nodeFutureStub = MetadataUtils.attachHeaders(nodeFutureStub, fixedHeaders);
nodeBlockingStub = MetadataUtils.attachHeaders(nodeBlockingStub, fixedHeaders);
ledgerFutureStub = MetadataUtils.attachHeaders(ledgerFutureStub, fixedHeaders);
ledgerBlockingStub = MetadataUtils.attachHeaders(ledgerBlockingStub, fixedHeaders);
queryFutureStub = MetadataUtils.attachHeaders(queryFutureStub, fixedHeaders);
queryBlockingStub = MetadataUtils.attachHeaders(queryBlockingStub, fixedHeaders);
}
}
/**
* 关闭客户端的网络连接
*/
public void shutdown() throws InterruptedException {
channel.shutdown().awaitTermination(5, TimeUnit.SECONDS);
}
/**
* <a
* href="#">查询BDLedger节点版本</a>
* 非阻塞
*/
public ListenableFuture<ClientVersionResponse> clientVersion() {
info("*** clientVersion");
try {
return nodeFutureStub.clientVersion(Empty.getDefaultInstance());
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">查询BDLedger节点版本</a>
* 阻塞
*/
public ClientVersionResponse clientVersionSync() {
info("*** clientVersionSync");
try {
return nodeBlockingStub.clientVersion(Empty.getDefaultInstance());
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
/**
* <a href="#">创建账本</a>
* 非阻塞
*/
public ListenableFuture<CreateLedgerResponse> createLedger(String name) {
info("*** createLedger: name={0}", name);
try {
return ledgerFutureStub.createLedger(createLedgerRequest(name));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a href="#">创建账本</a>
* 阻塞
*/
public CreateLedgerResponse createLedgerSync(String name) {
info("*** createLedgerSync: name={0}", name);
try {
return ledgerBlockingStub.createLedger(createLedgerRequest(name));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private CreateLedgerRequest createLedgerRequest(String name) {
return CreateLedgerRequest.newBuilder().setName(name).build();
}
/**
* <a href="#">返回账本列表</a>
* 非阻塞
*/
public ListenableFuture<GetLedgersResponse> getLedgers() {
info("*** getLedgers");
try {
return ledgerFutureStub.getLedgers(Empty.getDefaultInstance());
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a href="#">返回账本列表</a>
* 阻塞
*/
public GetLedgersResponse getLedgersSync() {
info("*** getLedgersSync");
try {
return ledgerBlockingStub.getLedgers(Empty.getDefaultInstance());
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
/**
* <a
* href="#">发送新事务</a>
* 非阻塞
*/
public ListenableFuture<SendTransactionResponse> sendTransaction(
String ledger, TransactionType type, String from, long nonce, String to, byte[] data) {
info(
"*** sendTransaction: ledger={0} type={1} from={2} to={3} data={4}",
ledger, type, from, to, data);
try {
return ledgerFutureStub.sendTransaction(SendTransactionRequest(ledger, type, from, nonce, to, data));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">发送新事务</a>
* 阻塞
*/
public SendTransactionResponse sendTransactionSync(
String ledger, TransactionType type, String from, long nonce, String to, byte[] data) {
info(
"*** sendTransactionSync: ledger={0} type={1} from={2} to={3} data={4}",
ledger, type, from, to, data);
try {
return ledgerBlockingStub.sendTransaction(SendTransactionRequest(ledger, type, from, nonce, to, data));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private SendTransactionRequest SendTransactionRequest(
String ledger, TransactionType type, String from, long nonce, String to, byte[] data) {
SendTransactionRequest.Transaction.Builder txBuilder =
SendTransactionRequest.Transaction.newBuilder().setType(type);
if (from != null) {
txBuilder.setFrom(ByteString.copyFrom(Utils.hexStringToByteArray(from)));
}
txBuilder.setNonce(nonce);
if (to != null) {
txBuilder.setTo(ByteString.copyFrom(Utils.hexStringToByteArray(to)));
}
if (data != null) {
txBuilder.setData(ByteString.copyFrom(data));
}
return SendTransactionRequest.newBuilder().setLedger(ledger).setTransaction(txBuilder).build();
}
/**
* <a
* href="#">返回哈希所指定的区块</a>
* 非阻塞
*/
public ListenableFuture<GetBlockByHashResponse> getBlockByHash(
String ledger, String hash, boolean fullTransactions) {
info(
"*** getBlockByHash: ledger={0} hash={1} fullTransactions={2}",
ledger, hash, fullTransactions);
try {
return queryFutureStub.getBlockByHash(getBlockByHashRequest(ledger, hash, fullTransactions));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回哈希所指定的区块</a>
* 阻塞
*/
public GetBlockByHashResponse getBlockByHashSync(String ledger, String hash, boolean fullTransactions) {
info(
"*** getBlockByHashSync: ledger={0} hash={1} fullTransactions={2}",
ledger, hash, fullTransactions);
try {
return queryBlockingStub.getBlockByHash(getBlockByHashRequest(ledger, hash, fullTransactions));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private GetBlockByHashRequest getBlockByHashRequest(
String ledger, String hash, boolean fullTransactions) {
GetBlockByHashRequest.Builder reqBuilder =
GetBlockByHashRequest.newBuilder().setLedger(ledger).setFullTransactions(fullTransactions);
if (hash != null) {
reqBuilder.setHash(ByteString.copyFrom(Utils.hexStringToByteArray(hash)));
}
return reqBuilder.build();
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 非阻塞
*/
public ListenableFuture<GetBlocksResponse> getBlocks(String ledger, ZonedDateTime startDateTime, IncludeTransactions includeTransactions) {
return getBlocks(ledger, startDateTime.toEpochSecond(), includeTransactions);
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 非阻塞
*/
public ListenableFuture<GetBlocksResponse> getBlocks(String ledger, ZonedDateTime startDateTime, ZonedDateTime endDateTime, IncludeTransactions includeTransactions) {
return getBlocks(ledger, startDateTime.toEpochSecond(), endDateTime.toEpochSecond(), includeTransactions);
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 阻塞
*/
public GetBlocksResponse getBlocksSync(String ledger, ZonedDateTime startDateTime, IncludeTransactions includeTransactions) {
return getBlocksSync(ledger, startDateTime.toEpochSecond(), includeTransactions);
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 阻塞
*/
public GetBlocksResponse getBlocksSync(String ledger, ZonedDateTime startDateTime, ZonedDateTime endDateTime, IncludeTransactions includeTransactions) {
return getBlocksSync(ledger, startDateTime.toEpochSecond(), endDateTime.toEpochSecond(), includeTransactions);
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 非阻塞
*/
public ListenableFuture<GetBlocksResponse> getBlocks(String ledger, long startUnixTime, IncludeTransactions includeTransactions) {
return getBlocks(ledger, startUnixTime, -1, includeTransactions);
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 非阻塞
*/
public ListenableFuture<GetBlocksResponse> getBlocks(String ledger, long startUnixTime, long endUnixTime, IncludeTransactions includeTransactions) {
info(
"*** getBlocks: ledger={0} startUnixTime={1} endUnixTime={2}",
ledger, startUnixTime, endUnixTime);
try {
return queryFutureStub.getBlocks(blocksRequest(ledger, startUnixTime, endUnixTime, includeTransactions));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 阻塞
*/
public GetBlocksResponse getBlocksSync(String ledger, long startUnixTime, IncludeTransactions includeTransactions) {
return getBlocksSync(ledger, startUnixTime, -1, includeTransactions);
}
/**
* <a
* href="#">返回时间范围内的区块</a>
* 阻塞
*/
public GetBlocksResponse getBlocksSync(String ledger, long startUnixTime, long endUnixTime, IncludeTransactions includeTransactions) {
info(
"*** getBlocksSync: ledger={0} startUnixTime={1} endUnixTime={2}",
ledger, startUnixTime, endUnixTime);
try {
return queryBlockingStub.getBlocks(blocksRequest(ledger, startUnixTime, endUnixTime, includeTransactions));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
/**
* <a
* href="#">返回账本中的区块数量</a>
* 非阻塞
*/
public ListenableFuture<CountBlocksResponse> countBlocks(String ledger) {
info("*** blockNumber: ledger={0}", ledger);
try {
return queryFutureStub.countBlocks(blocksRequest(ledger, -1, -1, null));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回账本中的区块数量</a>
* 阻塞
*/
public CountBlocksResponse countBlocksSync(String ledger) {
info("*** blockNumberSync: ledger={0}", ledger);
try {
return queryBlockingStub.countBlocks(blocksRequest(ledger, -1, -1, null));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private BlocksRequest blocksRequest(String ledger, long startTimestamp, long endTimestamp, IncludeTransactions includeTransactions) {
BlocksRequest.Builder reqBuilder =
BlocksRequest.newBuilder().setLedger(ledger);
if (startTimestamp != -1) {
reqBuilder.setStartTimestamp(startTimestamp);
}
if (endTimestamp != -1) {
reqBuilder.setEndTimestamp(endTimestamp);
}
if (includeTransactions == null) {
includeTransactions = IncludeTransactions.NONE;
}
reqBuilder.setIncludeTransactions(includeTransactions);
return reqBuilder.build();
}
/**
* <a
* href="#">返回时间戳最新的若干区块</a>
* 非阻塞
*/
public ListenableFuture<GetBlocksResponse> getRecentBlocks(String ledger, int count, IncludeTransactions includeTransactions) {
info(
"*** getRecentBlocks: ledger={0} count={1} includeTransactions={2}",
ledger, count, includeTransactions);
try {
return queryFutureStub.getRecentBlocks(getRecentBlocksRequest(ledger, count, includeTransactions));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回时间戳最新的若干区块</a>
* 阻塞
*/
public GetBlocksResponse getRecentBlocksSync(String ledger, int count, IncludeTransactions includeTransactions) {
info(
"*** getRecentBlocksSync: ledger={0} count={1} includeTransactions={2}",
ledger, count, includeTransactions);
try {
return queryBlockingStub.getRecentBlocks(getRecentBlocksRequest(ledger, count, includeTransactions));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private RecentBlocksRequest getRecentBlocksRequest(String ledger, int count, IncludeTransactions includeTransactions) {
RecentBlocksRequest.Builder reqBuilder =
RecentBlocksRequest.newBuilder()
.setLedger(ledger)
.setCount(count);
if (includeTransactions == null) {
includeTransactions = IncludeTransactions.NONE;
}
reqBuilder.setIncludeTransactions(includeTransactions);
return reqBuilder.build();
}
/**
* <a
* href="#">返回哈希所指定的事务</a>
* 非阻塞
*/
public ListenableFuture<GetTransactionByHashResponse> getTransactionByHash(String ledger, String hash) {
info("*** getTransactionByHash: ledger={0} hash={1}", ledger, hash);
try {
return queryFutureStub.getTransactionByHash(getTransactionByHashRequest(ledger, hash));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回哈希所指定的事务</a>
* 阻塞
*/
public GetTransactionByHashResponse getTransactionByHashSync(String ledger, String hash) {
info("*** getTransactionByHashSync: ledger={0} hash={1}", ledger, hash);
try {
return queryBlockingStub.getTransactionByHash(getTransactionByHashRequest(ledger, hash));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private GetTransactionByHashRequest getTransactionByHashRequest(String ledger, String hash) {
GetTransactionByHashRequest.Builder reqBuilder =
GetTransactionByHashRequest.newBuilder().setLedger(ledger);
if (hash != null) {
reqBuilder.setHash(ByteString.copyFrom(Utils.hexStringToByteArray(hash)));
}
return reqBuilder.build();
}
/**
* <a
* href="#">返回区块的哈希与事务的index所指定的事务</a>
* 非阻塞
*/
public ListenableFuture<GetTransactionByBlockHashAndIndexResponse> getTransactionByBlockHashAndIndex(
String ledger, String blockHash, int index) {
info(
"*** getTransactionByBlockHashAndIndex: ledger={0} blockHash={1} index={2}",
ledger, blockHash, index);
try {
return queryFutureStub.getTransactionByBlockHashAndIndex(
getTransactionByBlockHashAndIndexRequest(ledger, blockHash, index));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回区块的哈希与事务的index所指定的事务</a>
* 阻塞
*/
public GetTransactionByBlockHashAndIndexResponse getTransactionByBlockHashAndIndexSync(
String ledger, String blockHash, int index) {
info(
"*** getTransactionByBlockHashAndIndexSync: ledger={0} blockHash={1} index={2}",
ledger, blockHash, index);
try {
return queryBlockingStub.getTransactionByBlockHashAndIndex(
getTransactionByBlockHashAndIndexRequest(ledger, blockHash, index));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private GetTransactionByBlockHashAndIndexRequest getTransactionByBlockHashAndIndexRequest(
String ledger, String blockHash, int index) {
GetTransactionByBlockHashAndIndexRequest.Builder reqBuilder =
GetTransactionByBlockHashAndIndexRequest.newBuilder().setLedger(ledger).setIndex(index);
if (blockHash != null) {
reqBuilder.setBlockHash(ByteString.copyFrom(Utils.hexStringToByteArray(blockHash)));
}
return reqBuilder.build();
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 非阻塞
*/
public ListenableFuture<GetTransactionsResponse> getTransactions(String ledger, ZonedDateTime startDateTime) {
return getTransactions(ledger, startDateTime.toEpochSecond());
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 非阻塞
*/
public ListenableFuture<GetTransactionsResponse> getTransactions(String ledger, ZonedDateTime startDateTime, ZonedDateTime endDateTime) {
return getTransactions(ledger, startDateTime.toEpochSecond(), endDateTime.toEpochSecond());
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 阻塞
*/
public GetTransactionsResponse getTransactionsSync(String ledger, ZonedDateTime startDateTime) {
return getTransactionsSync(ledger, startDateTime.toEpochSecond());
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 阻塞
*/
public GetTransactionsResponse getTransactionsSync(String ledger, ZonedDateTime startDateTime, ZonedDateTime endDateTime) {
return getTransactionsSync(ledger, startDateTime.toEpochSecond(), endDateTime.toEpochSecond());
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 非阻塞
*/
public ListenableFuture<GetTransactionsResponse> getTransactions(String ledger, long startUnixTime) {
return getTransactions(ledger, startUnixTime, -1);
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 非阻塞
*/
public ListenableFuture<GetTransactionsResponse> getTransactions(String ledger, long startUnixTime, long endUnixTime) {
info(
"*** getTransactions: ledger={0} startUnixTime={1} endUnixTime={2}",
ledger, startUnixTime, endUnixTime);
try {
return queryFutureStub.getTransactions(transactionsRequest(ledger, startUnixTime, endUnixTime));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 阻塞
*/
public GetTransactionsResponse getTransactionsSync(String ledger, long startUnixTime) {
return getTransactionsSync(ledger, startUnixTime, -1);
}
/**
* <a
* href="#">返回时间范围内的事务</a>
* 阻塞
*/
public GetTransactionsResponse getTransactionsSync(String ledger, long startUnixTime, long endUnixTime) {
info(
"*** getTransactionsSync: ledger={0} startUnixTime={1} endUnixTime={2}",
ledger, startUnixTime, endUnixTime);
try {
return queryBlockingStub.getTransactions(transactionsRequest(ledger, startUnixTime, endUnixTime));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
/**
* <a
* href="#">返回账本中的事务数量</a>
* 非阻塞
*/
public ListenableFuture<CountTransactionsResponse> countTransactions(String ledger) {
info("*** blockNumber: ledger={0}", ledger);
try {
return queryFutureStub.countTransactions(transactionsRequest(ledger, -1, -1));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
return null;
}
}
/**
* <a
* href="#">返回账本中的事务数量</a>
* 阻塞
*/
public CountTransactionsResponse countTransactionsSync(String ledger) {
info("*** blockNumberSync: ledger={0}", ledger);
try {
return queryBlockingStub.countTransactions(transactionsRequest(ledger, -1, -1));
} catch (StatusRuntimeException e) {
warning("RPC failed: {0}", e.getStatus());
throw e;
}
}
private TransactionsRequest transactionsRequest(String ledger, long startTimestamp, long endTimestamp) {
TransactionsRequest.Builder reqBuilder =
TransactionsRequest.newBuilder().setLedger(ledger);
if (startTimestamp != -1) {
reqBuilder.setStartTimestamp(startTimestamp);
}
if (endTimestamp != -1) {
reqBuilder.setEndTimestamp(endTimestamp);
}
return reqBuilder.build();
}
private void info(String msg, Object... params) {
logger.log(Level.INFO, msg, params);
}
private void warning(String msg, Object... params) {
logger.log(Level.WARNING, msg, params);
}
}

View File

@ -1,26 +0,0 @@
package org.bdware.bdledger.api.grpc;
public class Utils {
public static byte[] hexStringToByteArray(String s) {
if (s.startsWith("0x")) {
s = s.substring(2);
}
int l = s.length();
byte[] data = new byte[l / 2];
for (int i = 0; i < l; i += 2) {
data[i / 2] =
(byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i + 1), 16));
}
return data;
}
public static String byteArrayToHexString(byte[] bs) {
StringBuilder data = new StringBuilder();
for (byte b : bs) {
data.append(Integer.toHexString((b >> 4) & 0xf));
data.append(Integer.toHexString(b & 0xf));
}
return data.toString();
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,569 +0,0 @@
package org.bdware.bdledger.api.grpc.pb;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.71.0)",
comments = "Source: bdware/bdledger/api/ledger.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class LedgerGrpc {
private LedgerGrpc() {}
public static final java.lang.String SERVICE_NAME = "bdware.bdledger.api.Ledger";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest,
org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse> getCreateLedgerMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateLedger",
requestType = org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest.class,
responseType = org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest,
org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse> getCreateLedgerMethod() {
io.grpc.MethodDescriptor<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest, org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse> getCreateLedgerMethod;
if ((getCreateLedgerMethod = LedgerGrpc.getCreateLedgerMethod) == null) {
synchronized (LedgerGrpc.class) {
if ((getCreateLedgerMethod = LedgerGrpc.getCreateLedgerMethod) == null) {
LedgerGrpc.getCreateLedgerMethod = getCreateLedgerMethod =
io.grpc.MethodDescriptor.<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest, org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLedger"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse.getDefaultInstance()))
.setSchemaDescriptor(new LedgerMethodDescriptorSupplier("CreateLedger"))
.build();
}
}
}
return getCreateLedgerMethod;
}
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse> getGetLedgersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLedgers",
requestType = com.google.protobuf.Empty.class,
responseType = org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse> getGetLedgersMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse> getGetLedgersMethod;
if ((getGetLedgersMethod = LedgerGrpc.getGetLedgersMethod) == null) {
synchronized (LedgerGrpc.class) {
if ((getGetLedgersMethod = LedgerGrpc.getGetLedgersMethod) == null) {
LedgerGrpc.getGetLedgersMethod = getGetLedgersMethod =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLedgers"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse.getDefaultInstance()))
.setSchemaDescriptor(new LedgerMethodDescriptorSupplier("GetLedgers"))
.build();
}
}
}
return getGetLedgersMethod;
}
private static volatile io.grpc.MethodDescriptor<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest,
org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse> getSendTransactionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SendTransaction",
requestType = org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest.class,
responseType = org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest,
org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse> getSendTransactionMethod() {
io.grpc.MethodDescriptor<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest, org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse> getSendTransactionMethod;
if ((getSendTransactionMethod = LedgerGrpc.getSendTransactionMethod) == null) {
synchronized (LedgerGrpc.class) {
if ((getSendTransactionMethod = LedgerGrpc.getSendTransactionMethod) == null) {
LedgerGrpc.getSendTransactionMethod = getSendTransactionMethod =
io.grpc.MethodDescriptor.<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest, org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTransaction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new LedgerMethodDescriptorSupplier("SendTransaction"))
.build();
}
}
}
return getSendTransactionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static LedgerStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LedgerStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<LedgerStub>() {
@java.lang.Override
public LedgerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerStub(channel, callOptions);
}
};
return LedgerStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports all types of calls on the service
*/
public static LedgerBlockingV2Stub newBlockingV2Stub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LedgerBlockingV2Stub> factory =
new io.grpc.stub.AbstractStub.StubFactory<LedgerBlockingV2Stub>() {
@java.lang.Override
public LedgerBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerBlockingV2Stub(channel, callOptions);
}
};
return LedgerBlockingV2Stub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static LedgerBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LedgerBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<LedgerBlockingStub>() {
@java.lang.Override
public LedgerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerBlockingStub(channel, callOptions);
}
};
return LedgerBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static LedgerFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<LedgerFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<LedgerFutureStub>() {
@java.lang.Override
public LedgerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerFutureStub(channel, callOptions);
}
};
return LedgerFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
* <pre>
**
* Create a new ledger
* 创建一个新账本
* </pre>
*/
default void createLedger(org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLedgerMethod(), responseObserver);
}
/**
* <pre>
**
* Get all ledgers
* 查询所有帐本列表
* </pre>
*/
default void getLedgers(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLedgersMethod(), responseObserver);
}
/**
* <pre>
**
* Send a new transaction
* 发送一个新事务
* </pre>
*/
default void sendTransaction(org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTransactionMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Ledger.
*/
public static abstract class LedgerImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return LedgerGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Ledger.
*/
public static final class LedgerStub
extends io.grpc.stub.AbstractAsyncStub<LedgerStub> {
private LedgerStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LedgerStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerStub(channel, callOptions);
}
/**
* <pre>
**
* Create a new ledger
* 创建一个新账本
* </pre>
*/
public void createLedger(org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateLedgerMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
**
* Get all ledgers
* 查询所有帐本列表
* </pre>
*/
public void getLedgers(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
**
* Send a new transaction
* 发送一个新事务
* </pre>
*/
public void sendTransaction(org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Ledger.
*/
public static final class LedgerBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<LedgerBlockingV2Stub> {
private LedgerBlockingV2Stub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LedgerBlockingV2Stub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerBlockingV2Stub(channel, callOptions);
}
/**
* <pre>
**
* Create a new ledger
* 创建一个新账本
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse createLedger(org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateLedgerMethod(), getCallOptions(), request);
}
/**
* <pre>
**
* Get all ledgers
* 查询所有帐本列表
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse getLedgers(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetLedgersMethod(), getCallOptions(), request);
}
/**
* <pre>
**
* Send a new transaction
* 发送一个新事务
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse sendTransaction(org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSendTransactionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do limited synchronous rpc calls to service Ledger.
*/
public static final class LedgerBlockingStub
extends io.grpc.stub.AbstractBlockingStub<LedgerBlockingStub> {
private LedgerBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LedgerBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerBlockingStub(channel, callOptions);
}
/**
* <pre>
**
* Create a new ledger
* 创建一个新账本
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse createLedger(org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateLedgerMethod(), getCallOptions(), request);
}
/**
* <pre>
**
* Get all ledgers
* 查询所有帐本列表
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse getLedgers(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetLedgersMethod(), getCallOptions(), request);
}
/**
* <pre>
**
* Send a new transaction
* 发送一个新事务
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse sendTransaction(org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSendTransactionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Ledger.
*/
public static final class LedgerFutureStub
extends io.grpc.stub.AbstractFutureStub<LedgerFutureStub> {
private LedgerFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LedgerFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LedgerFutureStub(channel, callOptions);
}
/**
* <pre>
**
* Create a new ledger
* 创建一个新账本
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse> createLedger(
org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateLedgerMethod(), getCallOptions()), request);
}
/**
* <pre>
**
* Get all ledgers
* 查询所有帐本列表
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse> getLedgers(
com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), request);
}
/**
* <pre>
**
* Send a new transaction
* 发送一个新事务
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse> sendTransaction(
org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_LEDGER = 0;
private static final int METHODID_GET_LEDGERS = 1;
private static final int METHODID_SEND_TRANSACTION = 2;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_CREATE_LEDGER:
serviceImpl.createLedger((org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest) request,
(io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse>) responseObserver);
break;
case METHODID_GET_LEDGERS:
serviceImpl.getLedgers((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse>) responseObserver);
break;
case METHODID_SEND_TRANSACTION:
serviceImpl.sendTransaction((org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest) request,
(io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateLedgerMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerRequest,
org.bdware.bdledger.api.grpc.pb.LedgerProto.CreateLedgerResponse>(
service, METHODID_CREATE_LEDGER)))
.addMethod(
getGetLedgersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
org.bdware.bdledger.api.grpc.pb.LedgerProto.GetLedgersResponse>(
service, METHODID_GET_LEDGERS)))
.addMethod(
getSendTransactionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionRequest,
org.bdware.bdledger.api.grpc.pb.LedgerProto.SendTransactionResponse>(
service, METHODID_SEND_TRANSACTION)))
.build();
}
private static abstract class LedgerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
LedgerBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.bdware.bdledger.api.grpc.pb.LedgerProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Ledger");
}
}
private static final class LedgerFileDescriptorSupplier
extends LedgerBaseDescriptorSupplier {
LedgerFileDescriptorSupplier() {}
}
private static final class LedgerMethodDescriptorSupplier
extends LedgerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
LedgerMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (LedgerGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new LedgerFileDescriptorSupplier())
.addMethod(getCreateLedgerMethod())
.addMethod(getGetLedgersMethod())
.addMethod(getSendTransactionMethod())
.build();
}
}
}
return result;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,357 +0,0 @@
package org.bdware.bdledger.api.grpc.pb;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.71.0)",
comments = "Source: bdware/bdledger/api/node.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class NodeGrpc {
private NodeGrpc() {}
public static final java.lang.String SERVICE_NAME = "bdware.bdledger.api.Node";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse> getClientVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ClientVersion",
requestType = com.google.protobuf.Empty.class,
responseType = org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse> getClientVersionMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse> getClientVersionMethod;
if ((getClientVersionMethod = NodeGrpc.getClientVersionMethod) == null) {
synchronized (NodeGrpc.class) {
if ((getClientVersionMethod = NodeGrpc.getClientVersionMethod) == null) {
NodeGrpc.getClientVersionMethod = getClientVersionMethod =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ClientVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.getDefaultInstance()))
.setSchemaDescriptor(new NodeMethodDescriptorSupplier("ClientVersion"))
.build();
}
}
}
return getClientVersionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static NodeStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<NodeStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<NodeStub>() {
@java.lang.Override
public NodeStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeStub(channel, callOptions);
}
};
return NodeStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports all types of calls on the service
*/
public static NodeBlockingV2Stub newBlockingV2Stub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<NodeBlockingV2Stub> factory =
new io.grpc.stub.AbstractStub.StubFactory<NodeBlockingV2Stub>() {
@java.lang.Override
public NodeBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeBlockingV2Stub(channel, callOptions);
}
};
return NodeBlockingV2Stub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static NodeBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<NodeBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<NodeBlockingStub>() {
@java.lang.Override
public NodeBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeBlockingStub(channel, callOptions);
}
};
return NodeBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static NodeFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<NodeFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<NodeFutureStub>() {
@java.lang.Override
public NodeFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeFutureStub(channel, callOptions);
}
};
return NodeFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
* <pre>
**
* Get BDLedger node version
* 查询BDLedger节点版本
* </pre>
*/
default void clientVersion(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getClientVersionMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Node.
*/
public static abstract class NodeImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return NodeGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Node.
*/
public static final class NodeStub
extends io.grpc.stub.AbstractAsyncStub<NodeStub> {
private NodeStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NodeStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeStub(channel, callOptions);
}
/**
* <pre>
**
* Get BDLedger node version
* 查询BDLedger节点版本
* </pre>
*/
public void clientVersion(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Node.
*/
public static final class NodeBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<NodeBlockingV2Stub> {
private NodeBlockingV2Stub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NodeBlockingV2Stub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeBlockingV2Stub(channel, callOptions);
}
/**
* <pre>
**
* Get BDLedger node version
* 查询BDLedger节点版本
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getClientVersionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do limited synchronous rpc calls to service Node.
*/
public static final class NodeBlockingStub
extends io.grpc.stub.AbstractBlockingStub<NodeBlockingStub> {
private NodeBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NodeBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeBlockingStub(channel, callOptions);
}
/**
* <pre>
**
* Get BDLedger node version
* 查询BDLedger节点版本
* </pre>
*/
public org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getClientVersionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Node.
*/
public static final class NodeFutureStub
extends io.grpc.stub.AbstractFutureStub<NodeFutureStub> {
private NodeFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NodeFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NodeFutureStub(channel, callOptions);
}
/**
* <pre>
**
* Get BDLedger node version
* 查询BDLedger节点版本
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse> clientVersion(
com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CLIENT_VERSION = 0;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_CLIENT_VERSION:
serviceImpl.clientVersion((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver<org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getClientVersionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse>(
service, METHODID_CLIENT_VERSION)))
.build();
}
private static abstract class NodeBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
NodeBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.bdware.bdledger.api.grpc.pb.NodeProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Node");
}
}
private static final class NodeFileDescriptorSupplier
extends NodeBaseDescriptorSupplier {
NodeFileDescriptorSupplier() {}
}
private static final class NodeMethodDescriptorSupplier
extends NodeBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
NodeMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (NodeGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new NodeFileDescriptorSupplier())
.addMethod(getClientVersionMethod())
.build();
}
}
}
return result;
}
}

View File

@ -1,653 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdware/bdledger/api/node.proto
// Protobuf Java Version: 3.25.6
package org.bdware.bdledger.api.grpc.pb;
public final class NodeProto {
private NodeProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ClientVersionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdware.bdledger.api.ClientVersionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @return The version.
*/
java.lang.String getVersion();
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
}
/**
* Protobuf type {@code bdware.bdledger.api.ClientVersionResponse}
*/
public static final class ClientVersionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdware.bdledger.api.ClientVersionResponse)
ClientVersionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientVersionResponse.newBuilder() to construct.
private ClientVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientVersionResponse() {
version_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientVersionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.bdware.bdledger.api.grpc.pb.NodeProto.internal_static_bdware_bdledger_api_ClientVersionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.bdware.bdledger.api.grpc.pb.NodeProto.internal_static_bdware_bdledger_api_ClientVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.class, org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object version_ = "";
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
}
}
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse)) {
return super.equals(obj);
}
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse other = (org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code bdware.bdledger.api.ClientVersionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdware.bdledger.api.ClientVersionResponse)
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.bdware.bdledger.api.grpc.pb.NodeProto.internal_static_bdware_bdledger_api_ClientVersionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.bdware.bdledger.api.grpc.pb.NodeProto.internal_static_bdware_bdledger_api_ClientVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.class, org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.Builder.class);
}
// Construct using org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.bdware.bdledger.api.grpc.pb.NodeProto.internal_static_bdware_bdledger_api_ClientVersionResponse_descriptor;
}
@java.lang.Override
public org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse getDefaultInstanceForType() {
return org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.getDefaultInstance();
}
@java.lang.Override
public org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse build() {
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse buildPartial() {
org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse result = new org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = version_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse) {
return mergeFrom((org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse other) {
if (other == org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
version_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object version_ = "";
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* Client version
* 节点客户端版本
* </pre>
*
* <code>string version = 1;</code>
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bdware.bdledger.api.ClientVersionResponse)
}
// @@protoc_insertion_point(class_scope:bdware.bdledger.api.ClientVersionResponse)
private static final org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse();
}
public static org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ClientVersionResponse>
PARSER = new com.google.protobuf.AbstractParser<ClientVersionResponse>() {
@java.lang.Override
public ClientVersionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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();
}
};
public static com.google.protobuf.Parser<ClientVersionResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ClientVersionResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.bdware.bdledger.api.grpc.pb.NodeProto.ClientVersionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdware_bdledger_api_ClientVersionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdware_bdledger_api_ClientVersionResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\036bdware/bdledger/api/node.proto\022\023bdware" +
".bdledger.api\032\033google/protobuf/empty.pro" +
"to\"(\n\025ClientVersionResponse\022\017\n\007version\030\001" +
" \001(\t2[\n\004Node\022S\n\rClientVersion\022\026.google.p" +
"rotobuf.Empty\032*.bdware.bdledger.api.Clie" +
"ntVersionResponseBW\n\037org.bdware.bdledger" +
".api.grpc.pbB\tNodeProtoZ)bdware.org/bdle" +
"dger/pkg/api/grpc/pb;apipbb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.EmptyProto.getDescriptor(),
});
internal_static_bdware_bdledger_api_ClientVersionResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bdware_bdledger_api_ClientVersionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdware_bdledger_api_ClientVersionResponse_descriptor,
new java.lang.String[] { "Version", });
com.google.protobuf.EmptyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff