Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cosmos.capability.v1beta1.CapabilityOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/capability/v1beta1/capability.proto
package cosmos.capability.v1beta1;
public final class CapabilityOuterClass {
private CapabilityOuterClass() {}
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 CapabilityOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.Capability)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""];
*/
long getIndex();
}
/**
*
* Capability defines an implementation of an object capability. The index
* provided to a Capability must be globally unique.
*
*
* Protobuf type {@code cosmos.capability.v1beta1.Capability}
*/
public static final class Capability extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.Capability)
CapabilityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Capability.newBuilder() to construct.
private Capability(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Capability() {
index_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Capability(
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 8: {
index_ = input.readUInt64();
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.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.capability.v1beta1.CapabilityOuterClass.Capability.class, cosmos.capability.v1beta1.CapabilityOuterClass.Capability.Builder.class);
}
public static final int INDEX_FIELD_NUMBER = 1;
private long index_;
/**
* uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""];
*/
public long getIndex() {
return 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 {
if (index_ != 0L) {
output.writeUInt64(1, index_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (index_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, index_);
}
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.capability.v1beta1.CapabilityOuterClass.Capability)) {
return super.equals(obj);
}
cosmos.capability.v1beta1.CapabilityOuterClass.Capability other = (cosmos.capability.v1beta1.CapabilityOuterClass.Capability) obj;
boolean result = true;
result = result && (getIndex()
== other.getIndex());
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) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndex());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability 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.capability.v1beta1.CapabilityOuterClass.Capability parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability 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.capability.v1beta1.CapabilityOuterClass.Capability parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability 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.capability.v1beta1.CapabilityOuterClass.Capability 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;
}
/**
*
* Capability defines an implementation of an object capability. The index
* provided to a Capability must be globally unique.
*
*
* Protobuf type {@code cosmos.capability.v1beta1.Capability}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.Capability)
cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.capability.v1beta1.CapabilityOuterClass.Capability.class, cosmos.capability.v1beta1.CapabilityOuterClass.Capability.Builder.class);
}
// Construct using cosmos.capability.v1beta1.CapabilityOuterClass.Capability.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();
index_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Capability_descriptor;
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.Capability getDefaultInstanceForType() {
return cosmos.capability.v1beta1.CapabilityOuterClass.Capability.getDefaultInstance();
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.Capability build() {
cosmos.capability.v1beta1.CapabilityOuterClass.Capability result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.Capability buildPartial() {
cosmos.capability.v1beta1.CapabilityOuterClass.Capability result = new cosmos.capability.v1beta1.CapabilityOuterClass.Capability(this);
result.index_ = index_;
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.capability.v1beta1.CapabilityOuterClass.Capability) {
return mergeFrom((cosmos.capability.v1beta1.CapabilityOuterClass.Capability)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.capability.v1beta1.CapabilityOuterClass.Capability other) {
if (other == cosmos.capability.v1beta1.CapabilityOuterClass.Capability.getDefaultInstance()) return this;
if (other.getIndex() != 0L) {
setIndex(other.getIndex());
}
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.capability.v1beta1.CapabilityOuterClass.Capability parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.capability.v1beta1.CapabilityOuterClass.Capability) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long index_ ;
/**
* uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""];
*/
public long getIndex() {
return index_;
}
/**
* uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""];
*/
public Builder setIndex(long value) {
index_ = value;
onChanged();
return this;
}
/**
* uint64 index = 1 [(.gogoproto.moretags) = "yaml:\"index\""];
*/
public Builder clearIndex() {
index_ = 0L;
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.capability.v1beta1.Capability)
}
// @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.Capability)
private static final cosmos.capability.v1beta1.CapabilityOuterClass.Capability DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.capability.v1beta1.CapabilityOuterClass.Capability();
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Capability getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Capability parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Capability(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.capability.v1beta1.CapabilityOuterClass.Capability getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OwnerOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.Owner)
com.google.protobuf.MessageOrBuilder {
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
java.lang.String getModule();
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
com.google.protobuf.ByteString
getModuleBytes();
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
java.lang.String getName();
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
*
* Owner defines a single capability owner. An owner is defined by the name of
* capability and the module name.
*
*
* Protobuf type {@code cosmos.capability.v1beta1.Owner}
*/
public static final class Owner extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.Owner)
OwnerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Owner.newBuilder() to construct.
private Owner(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Owner() {
module_ = "";
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Owner(
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();
module_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = 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.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.capability.v1beta1.CapabilityOuterClass.Owner.class, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder.class);
}
public static final int MODULE_FIELD_NUMBER = 1;
private volatile java.lang.Object module_;
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
public java.lang.String getModule() {
java.lang.Object ref = module_;
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();
module_ = s;
return s;
}
}
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
public com.google.protobuf.ByteString
getModuleBytes() {
java.lang.Object ref = module_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
module_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = 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 (!getModuleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, module_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getModuleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, module_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
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.capability.v1beta1.CapabilityOuterClass.Owner)) {
return super.equals(obj);
}
cosmos.capability.v1beta1.CapabilityOuterClass.Owner other = (cosmos.capability.v1beta1.CapabilityOuterClass.Owner) obj;
boolean result = true;
result = result && getModule()
.equals(other.getModule());
result = result && getName()
.equals(other.getName());
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) + MODULE_FIELD_NUMBER;
hash = (53 * hash) + getModule().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner 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.capability.v1beta1.CapabilityOuterClass.Owner parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner 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.capability.v1beta1.CapabilityOuterClass.Owner parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner 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.capability.v1beta1.CapabilityOuterClass.Owner 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;
}
/**
*
* Owner defines a single capability owner. An owner is defined by the name of
* capability and the module name.
*
*
* Protobuf type {@code cosmos.capability.v1beta1.Owner}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.Owner)
cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.capability.v1beta1.CapabilityOuterClass.Owner.class, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder.class);
}
// Construct using cosmos.capability.v1beta1.CapabilityOuterClass.Owner.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();
module_ = "";
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_Owner_descriptor;
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner getDefaultInstanceForType() {
return cosmos.capability.v1beta1.CapabilityOuterClass.Owner.getDefaultInstance();
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner build() {
cosmos.capability.v1beta1.CapabilityOuterClass.Owner result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner buildPartial() {
cosmos.capability.v1beta1.CapabilityOuterClass.Owner result = new cosmos.capability.v1beta1.CapabilityOuterClass.Owner(this);
result.module_ = module_;
result.name_ = name_;
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.capability.v1beta1.CapabilityOuterClass.Owner) {
return mergeFrom((cosmos.capability.v1beta1.CapabilityOuterClass.Owner)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.capability.v1beta1.CapabilityOuterClass.Owner other) {
if (other == cosmos.capability.v1beta1.CapabilityOuterClass.Owner.getDefaultInstance()) return this;
if (!other.getModule().isEmpty()) {
module_ = other.module_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
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.capability.v1beta1.CapabilityOuterClass.Owner parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.capability.v1beta1.CapabilityOuterClass.Owner) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object module_ = "";
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
public java.lang.String getModule() {
java.lang.Object ref = module_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
module_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
public com.google.protobuf.ByteString
getModuleBytes() {
java.lang.Object ref = module_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
module_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
public Builder setModule(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
module_ = value;
onChanged();
return this;
}
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
public Builder clearModule() {
module_ = getDefaultInstance().getModule();
onChanged();
return this;
}
/**
* string module = 1 [(.gogoproto.moretags) = "yaml:\"module\""];
*/
public Builder setModuleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
module_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2 [(.gogoproto.moretags) = "yaml:\"name\""];
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = 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.capability.v1beta1.Owner)
}
// @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.Owner)
private static final cosmos.capability.v1beta1.CapabilityOuterClass.Owner DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.capability.v1beta1.CapabilityOuterClass.Owner();
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.Owner getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Owner parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Owner(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.capability.v1beta1.CapabilityOuterClass.Owner getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CapabilityOwnersOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.CapabilityOwners)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getOwnersList();
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
cosmos.capability.v1beta1.CapabilityOuterClass.Owner getOwners(int index);
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
int getOwnersCount();
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder>
getOwnersOrBuilderList();
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder getOwnersOrBuilder(
int index);
}
/**
*
* CapabilityOwners defines a set of owners of a single Capability. The set of
* owners must be unique.
*
*
* Protobuf type {@code cosmos.capability.v1beta1.CapabilityOwners}
*/
public static final class CapabilityOwners extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.CapabilityOwners)
CapabilityOwnersOrBuilder {
private static final long serialVersionUID = 0L;
// Use CapabilityOwners.newBuilder() to construct.
private CapabilityOwners(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CapabilityOwners() {
owners_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CapabilityOwners(
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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
owners_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
owners_.add(
input.readMessage(cosmos.capability.v1beta1.CapabilityOuterClass.Owner.parser(), extensionRegistry));
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)) {
owners_ = java.util.Collections.unmodifiableList(owners_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.class, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder.class);
}
public static final int OWNERS_FIELD_NUMBER = 1;
private java.util.List owners_;
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getOwnersList() {
return owners_;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder>
getOwnersOrBuilderList() {
return owners_;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public int getOwnersCount() {
return owners_.size();
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner getOwners(int index) {
return owners_.get(index);
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder getOwnersOrBuilder(
int index) {
return owners_.get(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 < owners_.size(); i++) {
output.writeMessage(1, owners_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < owners_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, owners_.get(i));
}
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.capability.v1beta1.CapabilityOuterClass.CapabilityOwners)) {
return super.equals(obj);
}
cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners other = (cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners) obj;
boolean result = true;
result = result && getOwnersList()
.equals(other.getOwnersList());
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 (getOwnersCount() > 0) {
hash = (37 * hash) + OWNERS_FIELD_NUMBER;
hash = (53 * hash) + getOwnersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners 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.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners 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.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners 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.capability.v1beta1.CapabilityOuterClass.CapabilityOwners 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;
}
/**
*
* CapabilityOwners defines a set of owners of a single Capability. The set of
* owners must be unique.
*
*
* Protobuf type {@code cosmos.capability.v1beta1.CapabilityOwners}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.CapabilityOwners)
cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwnersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.class, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder.class);
}
// Construct using cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOwnersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (ownersBuilder_ == null) {
owners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ownersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.capability.v1beta1.CapabilityOuterClass.internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor;
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners getDefaultInstanceForType() {
return cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.getDefaultInstance();
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners build() {
cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners buildPartial() {
cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners result = new cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners(this);
int from_bitField0_ = bitField0_;
if (ownersBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
owners_ = java.util.Collections.unmodifiableList(owners_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.owners_ = owners_;
} else {
result.owners_ = ownersBuilder_.build();
}
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.capability.v1beta1.CapabilityOuterClass.CapabilityOwners) {
return mergeFrom((cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners other) {
if (other == cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.getDefaultInstance()) return this;
if (ownersBuilder_ == null) {
if (!other.owners_.isEmpty()) {
if (owners_.isEmpty()) {
owners_ = other.owners_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOwnersIsMutable();
owners_.addAll(other.owners_);
}
onChanged();
}
} else {
if (!other.owners_.isEmpty()) {
if (ownersBuilder_.isEmpty()) {
ownersBuilder_.dispose();
ownersBuilder_ = null;
owners_ = other.owners_;
bitField0_ = (bitField0_ & ~0x00000001);
ownersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOwnersFieldBuilder() : null;
} else {
ownersBuilder_.addAllMessages(other.owners_);
}
}
}
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.capability.v1beta1.CapabilityOuterClass.CapabilityOwners parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List owners_ =
java.util.Collections.emptyList();
private void ensureOwnersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
owners_ = new java.util.ArrayList(owners_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.capability.v1beta1.CapabilityOuterClass.Owner, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder, cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder> ownersBuilder_;
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getOwnersList() {
if (ownersBuilder_ == null) {
return java.util.Collections.unmodifiableList(owners_);
} else {
return ownersBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public int getOwnersCount() {
if (ownersBuilder_ == null) {
return owners_.size();
} else {
return ownersBuilder_.getCount();
}
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner getOwners(int index) {
if (ownersBuilder_ == null) {
return owners_.get(index);
} else {
return ownersBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder setOwners(
int index, cosmos.capability.v1beta1.CapabilityOuterClass.Owner value) {
if (ownersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOwnersIsMutable();
owners_.set(index, value);
onChanged();
} else {
ownersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder setOwners(
int index, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder builderForValue) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.set(index, builderForValue.build());
onChanged();
} else {
ownersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(cosmos.capability.v1beta1.CapabilityOuterClass.Owner value) {
if (ownersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOwnersIsMutable();
owners_.add(value);
onChanged();
} else {
ownersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(
int index, cosmos.capability.v1beta1.CapabilityOuterClass.Owner value) {
if (ownersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOwnersIsMutable();
owners_.add(index, value);
onChanged();
} else {
ownersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(
cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder builderForValue) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.add(builderForValue.build());
onChanged();
} else {
ownersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(
int index, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder builderForValue) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.add(index, builderForValue.build());
onChanged();
} else {
ownersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder addAllOwners(
java.lang.Iterable extends cosmos.capability.v1beta1.CapabilityOuterClass.Owner> values) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, owners_);
onChanged();
} else {
ownersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearOwners() {
if (ownersBuilder_ == null) {
owners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
ownersBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public Builder removeOwners(int index) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.remove(index);
onChanged();
} else {
ownersBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder getOwnersBuilder(
int index) {
return getOwnersFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder getOwnersOrBuilder(
int index) {
if (ownersBuilder_ == null) {
return owners_.get(index); } else {
return ownersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder>
getOwnersOrBuilderList() {
if (ownersBuilder_ != null) {
return ownersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(owners_);
}
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder addOwnersBuilder() {
return getOwnersFieldBuilder().addBuilder(
cosmos.capability.v1beta1.CapabilityOuterClass.Owner.getDefaultInstance());
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder addOwnersBuilder(
int index) {
return getOwnersFieldBuilder().addBuilder(
index, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.getDefaultInstance());
}
/**
* repeated .cosmos.capability.v1beta1.Owner owners = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List
getOwnersBuilderList() {
return getOwnersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.capability.v1beta1.CapabilityOuterClass.Owner, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder, cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder>
getOwnersFieldBuilder() {
if (ownersBuilder_ == null) {
ownersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.capability.v1beta1.CapabilityOuterClass.Owner, cosmos.capability.v1beta1.CapabilityOuterClass.Owner.Builder, cosmos.capability.v1beta1.CapabilityOuterClass.OwnerOrBuilder>(
owners_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
owners_ = null;
}
return ownersBuilder_;
}
@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.capability.v1beta1.CapabilityOwners)
}
// @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.CapabilityOwners)
private static final cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners();
}
public static cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CapabilityOwners parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CapabilityOwners(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.capability.v1beta1.CapabilityOuterClass.CapabilityOwners getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_capability_v1beta1_Capability_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_capability_v1beta1_Owner_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_capability_v1beta1_CapabilityOwners_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/capability/v1beta1/capability.p" +
"roto\022\031cosmos.capability.v1beta1\032\024gogopro" +
"to/gogo.proto\"3\n\nCapability\022\037\n\005index\030\001 \001" +
"(\004B\020\362\336\037\014yaml:\"index\":\004\230\240\037\000\"S\n\005Owner\022!\n\006m" +
"odule\030\001 \001(\tB\021\362\336\037\ryaml:\"module\"\022\035\n\004name\030\002" +
" \001(\tB\017\362\336\037\013yaml:\"name\":\010\230\240\037\000\210\240\037\000\"J\n\020Capab" +
"ilityOwners\0226\n\006owners\030\001 \003(\0132 .cosmos.cap" +
"ability.v1beta1.OwnerB\004\310\336\037\000B1Z/github.co" +
"m/cosmos/cosmos-sdk/x/capability/typesb\006" +
"proto3"
};
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.protobuf.GoGoProtos.getDescriptor(),
}, assigner);
internal_static_cosmos_capability_v1beta1_Capability_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_capability_v1beta1_Capability_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_capability_v1beta1_Capability_descriptor,
new java.lang.String[] { "Index", });
internal_static_cosmos_capability_v1beta1_Owner_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_capability_v1beta1_Owner_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_capability_v1beta1_Owner_descriptor,
new java.lang.String[] { "Module", "Name", });
internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmos_capability_v1beta1_CapabilityOwners_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_capability_v1beta1_CapabilityOwners_descriptor,
new java.lang.String[] { "Owners", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.goprotoStringer);
registry.add(com.google.protobuf.GoGoProtos.moretags);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}