![JAR search and dependency download from the Maven repository](/logo.png)
cosmos.base.reflection.v1beta1.Reflection Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/base/reflection/v1beta1/reflection.proto
package cosmos.base.reflection.v1beta1;
public final class Reflection {
private Reflection() {}
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 ListAllInterfacesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesRequest}
*/
public static final class ListAllInterfacesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest)
ListAllInterfacesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListAllInterfacesRequest.newBuilder() to construct.
private ListAllInterfacesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListAllInterfacesRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListAllInterfacesRequest(
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 (!parseUnknownFieldProto3(
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 cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest.class, cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest.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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest)) {
return super.equals(obj);
}
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest other = (cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest 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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest 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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest 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(cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest 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;
}
/**
*
* ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest)
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest.class, cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest.Builder.class);
}
// Construct using cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest.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 cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest getDefaultInstanceForType() {
return cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest.getDefaultInstance();
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest build() {
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest buildPartial() {
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest result = new cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest) {
return mergeFrom((cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest other) {
if (other == cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest.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 {
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest) 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.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest)
}
// @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesRequest)
private static final cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest();
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListAllInterfacesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListAllInterfacesRequest(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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListAllInterfacesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
java.util.List
getInterfaceNamesList();
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
int getInterfaceNamesCount();
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
java.lang.String getInterfaceNames(int index);
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
com.google.protobuf.ByteString
getInterfaceNamesBytes(int index);
}
/**
*
* ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesResponse}
*/
public static final class ListAllInterfacesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse)
ListAllInterfacesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListAllInterfacesResponse.newBuilder() to construct.
private ListAllInterfacesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListAllInterfacesResponse() {
interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListAllInterfacesResponse(
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) == 0x00000001)) {
interfaceNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
interfaceNames_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
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) == 0x00000001)) {
interfaceNames_ = interfaceNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse.class, cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse.Builder.class);
}
public static final int INTERFACE_NAMES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList interfaceNames_;
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public com.google.protobuf.ProtocolStringList
getInterfaceNamesList() {
return interfaceNames_;
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public int getInterfaceNamesCount() {
return interfaceNames_.size();
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public java.lang.String getInterfaceNames(int index) {
return interfaceNames_.get(index);
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public com.google.protobuf.ByteString
getInterfaceNamesBytes(int index) {
return interfaceNames_.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 < interfaceNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interfaceNames_.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 < interfaceNames_.size(); i++) {
dataSize += computeStringSizeNoTag(interfaceNames_.getRaw(i));
}
size += dataSize;
size += 1 * getInterfaceNamesList().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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse)) {
return super.equals(obj);
}
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse other = (cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse) obj;
boolean result = true;
result = result && getInterfaceNamesList()
.equals(other.getInterfaceNamesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getInterfaceNamesCount() > 0) {
hash = (37 * hash) + INTERFACE_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getInterfaceNamesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse 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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse 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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse 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(cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse 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;
}
/**
*
* ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListAllInterfacesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse)
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse.class, cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse.Builder.class);
}
// Construct using cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse.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();
interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse getDefaultInstanceForType() {
return cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse.getDefaultInstance();
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse build() {
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse buildPartial() {
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse result = new cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
interfaceNames_ = interfaceNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.interfaceNames_ = interfaceNames_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse) {
return mergeFrom((cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse other) {
if (other == cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse.getDefaultInstance()) return this;
if (!other.interfaceNames_.isEmpty()) {
if (interfaceNames_.isEmpty()) {
interfaceNames_ = other.interfaceNames_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInterfaceNamesIsMutable();
interfaceNames_.addAll(other.interfaceNames_);
}
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 {
cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInterfaceNamesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
interfaceNames_ = new com.google.protobuf.LazyStringArrayList(interfaceNames_);
bitField0_ |= 0x00000001;
}
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public com.google.protobuf.ProtocolStringList
getInterfaceNamesList() {
return interfaceNames_.getUnmodifiableView();
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public int getInterfaceNamesCount() {
return interfaceNames_.size();
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public java.lang.String getInterfaceNames(int index) {
return interfaceNames_.get(index);
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public com.google.protobuf.ByteString
getInterfaceNamesBytes(int index) {
return interfaceNames_.getByteString(index);
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public Builder setInterfaceNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInterfaceNamesIsMutable();
interfaceNames_.set(index, value);
onChanged();
return this;
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public Builder addInterfaceNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInterfaceNamesIsMutable();
interfaceNames_.add(value);
onChanged();
return this;
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public Builder addAllInterfaceNames(
java.lang.Iterable values) {
ensureInterfaceNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, interfaceNames_);
onChanged();
return this;
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public Builder clearInterfaceNames() {
interfaceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* interface_names is an array of all the registered interfaces.
*
*
* repeated string interface_names = 1;
*/
public Builder addInterfaceNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInterfaceNamesIsMutable();
interfaceNames_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse)
}
// @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListAllInterfacesResponse)
private static final cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse();
}
public static cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListAllInterfacesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListAllInterfacesResponse(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 cosmos.base.reflection.v1beta1.Reflection.ListAllInterfacesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListImplementationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListImplementationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
java.lang.String getInterfaceName();
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
com.google.protobuf.ByteString
getInterfaceNameBytes();
}
/**
*
* ListImplementationsRequest is the request type of the ListImplementations
* RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsRequest}
*/
public static final class ListImplementationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListImplementationsRequest)
ListImplementationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListImplementationsRequest.newBuilder() to construct.
private ListImplementationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListImplementationsRequest() {
interfaceName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListImplementationsRequest(
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();
interfaceName_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
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 cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest.class, cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest.Builder.class);
}
public static final int INTERFACE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object interfaceName_;
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
public java.lang.String getInterfaceName() {
java.lang.Object ref = interfaceName_;
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();
interfaceName_ = s;
return s;
}
}
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
public com.google.protobuf.ByteString
getInterfaceNameBytes() {
java.lang.Object ref = interfaceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
interfaceName_ = 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 (!getInterfaceNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interfaceName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getInterfaceNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, interfaceName_);
}
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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest)) {
return super.equals(obj);
}
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest other = (cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest) obj;
boolean result = true;
result = result && getInterfaceName()
.equals(other.getInterfaceName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + INTERFACE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getInterfaceName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest 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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest 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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest 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(cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest 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;
}
/**
*
* ListImplementationsRequest is the request type of the ListImplementations
* RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListImplementationsRequest)
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest.class, cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest.Builder.class);
}
// Construct using cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest.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();
interfaceName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest getDefaultInstanceForType() {
return cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest.getDefaultInstance();
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest build() {
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest buildPartial() {
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest result = new cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest(this);
result.interfaceName_ = interfaceName_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest) {
return mergeFrom((cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest other) {
if (other == cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest.getDefaultInstance()) return this;
if (!other.getInterfaceName().isEmpty()) {
interfaceName_ = other.interfaceName_;
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 {
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object interfaceName_ = "";
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
public java.lang.String getInterfaceName() {
java.lang.Object ref = interfaceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
interfaceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
public com.google.protobuf.ByteString
getInterfaceNameBytes() {
java.lang.Object ref = interfaceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
interfaceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
public Builder setInterfaceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
interfaceName_ = value;
onChanged();
return this;
}
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
public Builder clearInterfaceName() {
interfaceName_ = getDefaultInstance().getInterfaceName();
onChanged();
return this;
}
/**
*
* interface_name defines the interface to query the implementations for.
*
*
* string interface_name = 1;
*/
public Builder setInterfaceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
interfaceName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListImplementationsRequest)
}
// @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListImplementationsRequest)
private static final cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest();
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListImplementationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListImplementationsRequest(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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListImplementationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.base.reflection.v1beta1.ListImplementationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string implementation_message_names = 1;
*/
java.util.List
getImplementationMessageNamesList();
/**
* repeated string implementation_message_names = 1;
*/
int getImplementationMessageNamesCount();
/**
* repeated string implementation_message_names = 1;
*/
java.lang.String getImplementationMessageNames(int index);
/**
* repeated string implementation_message_names = 1;
*/
com.google.protobuf.ByteString
getImplementationMessageNamesBytes(int index);
}
/**
*
* ListImplementationsResponse is the response type of the ListImplementations
* RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsResponse}
*/
public static final class ListImplementationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.base.reflection.v1beta1.ListImplementationsResponse)
ListImplementationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListImplementationsResponse.newBuilder() to construct.
private ListImplementationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListImplementationsResponse() {
implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListImplementationsResponse(
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) == 0x00000001)) {
implementationMessageNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
implementationMessageNames_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
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) == 0x00000001)) {
implementationMessageNames_ = implementationMessageNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse.class, cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse.Builder.class);
}
public static final int IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList implementationMessageNames_;
/**
* repeated string implementation_message_names = 1;
*/
public com.google.protobuf.ProtocolStringList
getImplementationMessageNamesList() {
return implementationMessageNames_;
}
/**
* repeated string implementation_message_names = 1;
*/
public int getImplementationMessageNamesCount() {
return implementationMessageNames_.size();
}
/**
* repeated string implementation_message_names = 1;
*/
public java.lang.String getImplementationMessageNames(int index) {
return implementationMessageNames_.get(index);
}
/**
* repeated string implementation_message_names = 1;
*/
public com.google.protobuf.ByteString
getImplementationMessageNamesBytes(int index) {
return implementationMessageNames_.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 < implementationMessageNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, implementationMessageNames_.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 < implementationMessageNames_.size(); i++) {
dataSize += computeStringSizeNoTag(implementationMessageNames_.getRaw(i));
}
size += dataSize;
size += 1 * getImplementationMessageNamesList().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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse)) {
return super.equals(obj);
}
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse other = (cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse) obj;
boolean result = true;
result = result && getImplementationMessageNamesList()
.equals(other.getImplementationMessageNamesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getImplementationMessageNamesCount() > 0) {
hash = (37 * hash) + IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getImplementationMessageNamesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse 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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse 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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse 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(cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse 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;
}
/**
*
* ListImplementationsResponse is the response type of the ListImplementations
* RPC.
*
*
* Protobuf type {@code cosmos.base.reflection.v1beta1.ListImplementationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.base.reflection.v1beta1.ListImplementationsResponse)
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse.class, cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse.Builder.class);
}
// Construct using cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse.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();
implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.base.reflection.v1beta1.Reflection.internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse getDefaultInstanceForType() {
return cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse.getDefaultInstance();
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse build() {
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse buildPartial() {
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse result = new cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
implementationMessageNames_ = implementationMessageNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.implementationMessageNames_ = implementationMessageNames_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse) {
return mergeFrom((cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse other) {
if (other == cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse.getDefaultInstance()) return this;
if (!other.implementationMessageNames_.isEmpty()) {
if (implementationMessageNames_.isEmpty()) {
implementationMessageNames_ = other.implementationMessageNames_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureImplementationMessageNamesIsMutable();
implementationMessageNames_.addAll(other.implementationMessageNames_);
}
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 {
cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureImplementationMessageNamesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
implementationMessageNames_ = new com.google.protobuf.LazyStringArrayList(implementationMessageNames_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string implementation_message_names = 1;
*/
public com.google.protobuf.ProtocolStringList
getImplementationMessageNamesList() {
return implementationMessageNames_.getUnmodifiableView();
}
/**
* repeated string implementation_message_names = 1;
*/
public int getImplementationMessageNamesCount() {
return implementationMessageNames_.size();
}
/**
* repeated string implementation_message_names = 1;
*/
public java.lang.String getImplementationMessageNames(int index) {
return implementationMessageNames_.get(index);
}
/**
* repeated string implementation_message_names = 1;
*/
public com.google.protobuf.ByteString
getImplementationMessageNamesBytes(int index) {
return implementationMessageNames_.getByteString(index);
}
/**
* repeated string implementation_message_names = 1;
*/
public Builder setImplementationMessageNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureImplementationMessageNamesIsMutable();
implementationMessageNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated string implementation_message_names = 1;
*/
public Builder addImplementationMessageNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureImplementationMessageNamesIsMutable();
implementationMessageNames_.add(value);
onChanged();
return this;
}
/**
* repeated string implementation_message_names = 1;
*/
public Builder addAllImplementationMessageNames(
java.lang.Iterable values) {
ensureImplementationMessageNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, implementationMessageNames_);
onChanged();
return this;
}
/**
* repeated string implementation_message_names = 1;
*/
public Builder clearImplementationMessageNames() {
implementationMessageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string implementation_message_names = 1;
*/
public Builder addImplementationMessageNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureImplementationMessageNamesIsMutable();
implementationMessageNames_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.base.reflection.v1beta1.ListImplementationsResponse)
}
// @@protoc_insertion_point(class_scope:cosmos.base.reflection.v1beta1.ListImplementationsResponse)
private static final cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse();
}
public static cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListImplementationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListImplementationsResponse(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 cosmos.base.reflection.v1beta1.Reflection.ListImplementationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_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/cosmos/base/reflection/v1beta1/reflect" +
"ion.proto\022\036cosmos.base.reflection.v1beta" +
"1\032\034google/api/annotations.proto\"\032\n\030ListA" +
"llInterfacesRequest\"4\n\031ListAllInterfaces" +
"Response\022\027\n\017interface_names\030\001 \003(\t\"4\n\032Lis" +
"tImplementationsRequest\022\026\n\016interface_nam" +
"e\030\001 \001(\t\"C\n\033ListImplementationsResponse\022$" +
"\n\034implementation_message_names\030\001 \003(\t2\270\003\n" +
"\021ReflectionService\022\274\001\n\021ListAllInterfaces" +
"\0228.cosmos.base.reflection.v1beta1.ListAl" +
"lInterfacesRequest\0329.cosmos.base.reflect" +
"ion.v1beta1.ListAllInterfacesResponse\"2\202" +
"\323\344\223\002,\022*/cosmos/base/reflection/v1beta1/i" +
"nterfaces\022\343\001\n\023ListImplementations\022:.cosm" +
"os.base.reflection.v1beta1.ListImplement" +
"ationsRequest\032;.cosmos.base.reflection.v" +
"1beta1.ListImplementationsResponse\"S\202\323\344\223" +
"\002M\022K/cosmos/base/reflection/v1beta1/inte" +
"rfaces/{interface_name}/implementationsB" +
"5Z3github.com/cosmos/cosmos-sdk/client/g" +
"rpc/reflectionb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
}, assigner);
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesRequest_descriptor,
new java.lang.String[] { });
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_base_reflection_v1beta1_ListAllInterfacesResponse_descriptor,
new java.lang.String[] { "InterfaceNames", });
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsRequest_descriptor,
new java.lang.String[] { "InterfaceName", });
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_base_reflection_v1beta1_ListImplementationsResponse_descriptor,
new java.lang.String[] { "ImplementationMessageNames", });
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)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy