proto.tibc.core.routing.v1.QueryOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irita-sdk Show documentation
Show all versions of irita-sdk Show documentation
Irita open alliance chain SDK (java)
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tibc/core/routing/v1/query.proto
package proto.tibc.core.routing.v1;
public final class QueryOuterClass {
private QueryOuterClass() {}
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 QueryRoutingRulesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.routing.v1.QueryRoutingRulesRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* QueryRoutingRulesRequest is the request type for the
* RoutingRules RPC method
*
*
* Protobuf type {@code tibc.core.routing.v1.QueryRoutingRulesRequest}
*/
public static final class QueryRoutingRulesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.routing.v1.QueryRoutingRulesRequest)
QueryRoutingRulesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRoutingRulesRequest.newBuilder() to construct.
private QueryRoutingRulesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRoutingRulesRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRoutingRulesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryRoutingRulesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest.class, proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest.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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest)) {
return super.equals(obj);
}
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest other = (proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest) obj;
if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest 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 proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest 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 proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest 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(proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest 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;
}
/**
*
* QueryRoutingRulesRequest is the request type for the
* RoutingRules RPC method
*
*
* Protobuf type {@code tibc.core.routing.v1.QueryRoutingRulesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.routing.v1.QueryRoutingRulesRequest)
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest.class, proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest.Builder.class);
}
// Construct using proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_descriptor;
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest getDefaultInstanceForType() {
return proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest build() {
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest buildPartial() {
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest result = new proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest(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 proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest) {
return mergeFrom((proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest other) {
if (other == proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
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 {
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:tibc.core.routing.v1.QueryRoutingRulesRequest)
}
// @@protoc_insertion_point(class_scope:tibc.core.routing.v1.QueryRoutingRulesRequest)
private static final proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest();
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRoutingRulesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryRoutingRulesRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryRoutingRulesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.routing.v1.QueryRoutingRulesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @return A list containing the rules.
*/
java.util.List
getRulesList();
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @return The count of rules.
*/
int getRulesCount();
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param index The index of the element to return.
* @return The rules at the given index.
*/
java.lang.String getRules(int index);
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param index The index of the value to return.
* @return The bytes of the rules at the given index.
*/
com.google.protobuf.ByteString
getRulesBytes(int index);
}
/**
*
* QueryRoutingRulesResponse defines the routing rules query response
*
*
* Protobuf type {@code tibc.core.routing.v1.QueryRoutingRulesResponse}
*/
public static final class QueryRoutingRulesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.routing.v1.QueryRoutingRulesResponse)
QueryRoutingRulesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRoutingRulesResponse.newBuilder() to construct.
private QueryRoutingRulesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRoutingRulesResponse() {
rules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRoutingRulesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryRoutingRulesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
rules_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
rules_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
rules_ = rules_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse.class, proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse.Builder.class);
}
public static final int RULES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList rules_;
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @return A list containing the rules.
*/
public com.google.protobuf.ProtocolStringList
getRulesList() {
return rules_;
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @return The count of rules.
*/
public int getRulesCount() {
return rules_.size();
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param index The index of the element to return.
* @return The rules at the given index.
*/
public java.lang.String getRules(int index) {
return rules_.get(index);
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param index The index of the value to return.
* @return The bytes of the rules at the given index.
*/
public com.google.protobuf.ByteString
getRulesBytes(int index) {
return rules_.getByteString(index);
}
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 < rules_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rules_.getRaw(i));
}
unknownFields.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 < rules_.size(); i++) {
dataSize += computeStringSizeNoTag(rules_.getRaw(i));
}
size += dataSize;
size += 1 * getRulesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse)) {
return super.equals(obj);
}
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse other = (proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse) obj;
if (!getRulesList()
.equals(other.getRulesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRulesCount() > 0) {
hash = (37 * hash) + RULES_FIELD_NUMBER;
hash = (53 * hash) + getRulesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse 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 proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse 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 proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse 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(proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse 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;
}
/**
*
* QueryRoutingRulesResponse defines the routing rules query response
*
*
* Protobuf type {@code tibc.core.routing.v1.QueryRoutingRulesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.routing.v1.QueryRoutingRulesResponse)
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse.class, proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse.Builder.class);
}
// Construct using proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
rules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.routing.v1.QueryOuterClass.internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_descriptor;
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse getDefaultInstanceForType() {
return proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse build() {
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse buildPartial() {
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse result = new proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
rules_ = rules_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.rules_ = rules_;
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 proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse) {
return mergeFrom((proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse other) {
if (other == proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse.getDefaultInstance()) return this;
if (!other.rules_.isEmpty()) {
if (rules_.isEmpty()) {
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRulesIsMutable();
rules_.addAll(other.rules_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList rules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRulesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
rules_ = new com.google.protobuf.LazyStringArrayList(rules_);
bitField0_ |= 0x00000001;
}
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @return A list containing the rules.
*/
public com.google.protobuf.ProtocolStringList
getRulesList() {
return rules_.getUnmodifiableView();
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @return The count of rules.
*/
public int getRulesCount() {
return rules_.size();
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param index The index of the element to return.
* @return The rules at the given index.
*/
public java.lang.String getRules(int index) {
return rules_.get(index);
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param index The index of the value to return.
* @return The bytes of the rules at the given index.
*/
public com.google.protobuf.ByteString
getRulesBytes(int index) {
return rules_.getByteString(index);
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param index The index to set the value at.
* @param value The rules to set.
* @return This builder for chaining.
*/
public Builder setRules(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.set(index, value);
onChanged();
return this;
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param value The rules to add.
* @return This builder for chaining.
*/
public Builder addRules(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(value);
onChanged();
return this;
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param values The rules to add.
* @return This builder for chaining.
*/
public Builder addAllRules(
java.lang.Iterable values) {
ensureRulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rules_);
onChanged();
return this;
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @return This builder for chaining.
*/
public Builder clearRules() {
rules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* rule string array
*
*
* repeated string rules = 1;
* @param value The bytes of the rules to add.
* @return This builder for chaining.
*/
public Builder addRulesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRulesIsMutable();
rules_.add(value);
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:tibc.core.routing.v1.QueryRoutingRulesResponse)
}
// @@protoc_insertion_point(class_scope:tibc.core.routing.v1.QueryRoutingRulesResponse)
private static final proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse();
}
public static proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRoutingRulesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryRoutingRulesResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public proto.tibc.core.routing.v1.QueryOuterClass.QueryRoutingRulesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_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 tibc/core/routing/v1/query.proto\022\024tibc" +
".core.routing.v1\032\034google/api/annotations" +
".proto\"\032\n\030QueryRoutingRulesRequest\"*\n\031Qu" +
"eryRoutingRulesResponse\022\r\n\005rules\030\001 \003(\t2\253" +
"\001\n\005Query\022\241\001\n\014RoutingRules\022..tibc.core.ro" +
"uting.v1.QueryRoutingRulesRequest\032/.tibc" +
".core.routing.v1.QueryRoutingRulesRespon" +
"se\"0\202\323\344\223\002*\022(/tibc/core/routing/v1beta1/r" +
"outing_rulesB\034\n\032proto.tibc.core.routing." +
"v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
});
internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_routing_v1_QueryRoutingRulesRequest_descriptor,
new java.lang.String[] { });
internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_routing_v1_QueryRoutingRulesResponse_descriptor,
new java.lang.String[] { "Rules", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}