From 462d017bc5f51480c43d0531b1834e07abdab9e8 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Sat, 26 Mar 2022 14:59:15 -0400 Subject: [PATCH] refactor(orm)!: move orm.proto to v1 (#11383) ## Description Ref #11381 * move `orm.proto` from `v1alpha1` -> `v1` * change documentation for `bytes` keys to use a var uint32 --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules) - [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) --- api/cosmos/orm/{v1alpha1 => v1}/orm.pulsar.go | 477 +++++++++--------- proto/cosmos/orm/{v1alpha1 => v1}/orm.proto | 7 +- 2 files changed, 237 insertions(+), 247 deletions(-) rename api/cosmos/orm/{v1alpha1 => v1}/orm.pulsar.go (81%) rename proto/cosmos/orm/{v1alpha1 => v1}/orm.proto (92%) diff --git a/api/cosmos/orm/v1alpha1/orm.pulsar.go b/api/cosmos/orm/v1/orm.pulsar.go similarity index 81% rename from api/cosmos/orm/v1alpha1/orm.pulsar.go rename to api/cosmos/orm/v1/orm.pulsar.go index 9fd3dd4265..5fa1bcba69 100644 --- a/api/cosmos/orm/v1alpha1/orm.pulsar.go +++ b/api/cosmos/orm/v1/orm.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package ormv1alpha1 +package ormv1 import ( fmt "fmt" @@ -72,8 +72,8 @@ var ( ) func init() { - file_cosmos_orm_v1alpha1_orm_proto_init() - md_TableDescriptor = File_cosmos_orm_v1alpha1_orm_proto.Messages().ByName("TableDescriptor") + file_cosmos_orm_v1_orm_proto_init() + md_TableDescriptor = File_cosmos_orm_v1_orm_proto.Messages().ByName("TableDescriptor") fd_TableDescriptor_primary_key = md_TableDescriptor.Fields().ByName("primary_key") fd_TableDescriptor_index = md_TableDescriptor.Fields().ByName("index") fd_TableDescriptor_id = md_TableDescriptor.Fields().ByName("id") @@ -88,7 +88,7 @@ func (x *TableDescriptor) ProtoReflect() protoreflect.Message { } func (x *TableDescriptor) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[0] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -177,17 +177,17 @@ func (x *fastReflection_TableDescriptor) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_TableDescriptor) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.orm.v1alpha1.TableDescriptor.primary_key": + case "cosmos.orm.v1.TableDescriptor.primary_key": return x.PrimaryKey != nil - case "cosmos.orm.v1alpha1.TableDescriptor.index": + case "cosmos.orm.v1.TableDescriptor.index": return len(x.Index) != 0 - case "cosmos.orm.v1alpha1.TableDescriptor.id": + case "cosmos.orm.v1.TableDescriptor.id": return x.Id != uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.TableDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.TableDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.TableDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.TableDescriptor does not contain field %s", fd.FullName())) } } @@ -199,17 +199,17 @@ func (x *fastReflection_TableDescriptor) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TableDescriptor) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.TableDescriptor.primary_key": + case "cosmos.orm.v1.TableDescriptor.primary_key": x.PrimaryKey = nil - case "cosmos.orm.v1alpha1.TableDescriptor.index": + case "cosmos.orm.v1.TableDescriptor.index": x.Index = nil - case "cosmos.orm.v1alpha1.TableDescriptor.id": + case "cosmos.orm.v1.TableDescriptor.id": x.Id = uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.TableDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.TableDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.TableDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.TableDescriptor does not contain field %s", fd.FullName())) } } @@ -221,23 +221,23 @@ func (x *fastReflection_TableDescriptor) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_TableDescriptor) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.orm.v1alpha1.TableDescriptor.primary_key": + case "cosmos.orm.v1.TableDescriptor.primary_key": value := x.PrimaryKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cosmos.orm.v1alpha1.TableDescriptor.index": + case "cosmos.orm.v1.TableDescriptor.index": if len(x.Index) == 0 { return protoreflect.ValueOfList(&_TableDescriptor_2_list{}) } listValue := &_TableDescriptor_2_list{list: &x.Index} return protoreflect.ValueOfList(listValue) - case "cosmos.orm.v1alpha1.TableDescriptor.id": + case "cosmos.orm.v1.TableDescriptor.id": value := x.Id return protoreflect.ValueOfUint32(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.TableDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.TableDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.TableDescriptor does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.TableDescriptor does not contain field %s", descriptor.FullName())) } } @@ -253,19 +253,19 @@ func (x *fastReflection_TableDescriptor) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TableDescriptor) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.TableDescriptor.primary_key": + case "cosmos.orm.v1.TableDescriptor.primary_key": x.PrimaryKey = value.Message().Interface().(*PrimaryKeyDescriptor) - case "cosmos.orm.v1alpha1.TableDescriptor.index": + case "cosmos.orm.v1.TableDescriptor.index": lv := value.List() clv := lv.(*_TableDescriptor_2_list) x.Index = *clv.list - case "cosmos.orm.v1alpha1.TableDescriptor.id": + case "cosmos.orm.v1.TableDescriptor.id": x.Id = uint32(value.Uint()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.TableDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.TableDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.TableDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.TableDescriptor does not contain field %s", fd.FullName())) } } @@ -281,24 +281,24 @@ func (x *fastReflection_TableDescriptor) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TableDescriptor) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.TableDescriptor.primary_key": + case "cosmos.orm.v1.TableDescriptor.primary_key": if x.PrimaryKey == nil { x.PrimaryKey = new(PrimaryKeyDescriptor) } return protoreflect.ValueOfMessage(x.PrimaryKey.ProtoReflect()) - case "cosmos.orm.v1alpha1.TableDescriptor.index": + case "cosmos.orm.v1.TableDescriptor.index": if x.Index == nil { x.Index = []*SecondaryIndexDescriptor{} } value := &_TableDescriptor_2_list{list: &x.Index} return protoreflect.ValueOfList(value) - case "cosmos.orm.v1alpha1.TableDescriptor.id": - panic(fmt.Errorf("field id of message cosmos.orm.v1alpha1.TableDescriptor is not mutable")) + case "cosmos.orm.v1.TableDescriptor.id": + panic(fmt.Errorf("field id of message cosmos.orm.v1.TableDescriptor is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.TableDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.TableDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.TableDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.TableDescriptor does not contain field %s", fd.FullName())) } } @@ -307,19 +307,19 @@ func (x *fastReflection_TableDescriptor) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_TableDescriptor) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.TableDescriptor.primary_key": + case "cosmos.orm.v1.TableDescriptor.primary_key": m := new(PrimaryKeyDescriptor) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cosmos.orm.v1alpha1.TableDescriptor.index": + case "cosmos.orm.v1.TableDescriptor.index": list := []*SecondaryIndexDescriptor{} return protoreflect.ValueOfList(&_TableDescriptor_2_list{list: &list}) - case "cosmos.orm.v1alpha1.TableDescriptor.id": + case "cosmos.orm.v1.TableDescriptor.id": return protoreflect.ValueOfUint32(uint32(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.TableDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.TableDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.TableDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.TableDescriptor does not contain field %s", fd.FullName())) } } @@ -329,7 +329,7 @@ func (x *fastReflection_TableDescriptor) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_TableDescriptor) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1alpha1.TableDescriptor", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1.TableDescriptor", d.FullName())) } panic("unreachable") } @@ -641,8 +641,8 @@ var ( ) func init() { - file_cosmos_orm_v1alpha1_orm_proto_init() - md_PrimaryKeyDescriptor = File_cosmos_orm_v1alpha1_orm_proto.Messages().ByName("PrimaryKeyDescriptor") + file_cosmos_orm_v1_orm_proto_init() + md_PrimaryKeyDescriptor = File_cosmos_orm_v1_orm_proto.Messages().ByName("PrimaryKeyDescriptor") fd_PrimaryKeyDescriptor_fields = md_PrimaryKeyDescriptor.Fields().ByName("fields") fd_PrimaryKeyDescriptor_auto_increment = md_PrimaryKeyDescriptor.Fields().ByName("auto_increment") } @@ -656,7 +656,7 @@ func (x *PrimaryKeyDescriptor) ProtoReflect() protoreflect.Message { } func (x *PrimaryKeyDescriptor) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[1] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -739,15 +739,15 @@ func (x *fastReflection_PrimaryKeyDescriptor) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_PrimaryKeyDescriptor) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.fields": + case "cosmos.orm.v1.PrimaryKeyDescriptor.fields": return x.Fields != "" - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.auto_increment": + case "cosmos.orm.v1.PrimaryKeyDescriptor.auto_increment": return x.AutoIncrement != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.PrimaryKeyDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.PrimaryKeyDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) } } @@ -759,15 +759,15 @@ func (x *fastReflection_PrimaryKeyDescriptor) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PrimaryKeyDescriptor) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.fields": + case "cosmos.orm.v1.PrimaryKeyDescriptor.fields": x.Fields = "" - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.auto_increment": + case "cosmos.orm.v1.PrimaryKeyDescriptor.auto_increment": x.AutoIncrement = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.PrimaryKeyDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.PrimaryKeyDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) } } @@ -779,17 +779,17 @@ func (x *fastReflection_PrimaryKeyDescriptor) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_PrimaryKeyDescriptor) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.fields": + case "cosmos.orm.v1.PrimaryKeyDescriptor.fields": value := x.Fields return protoreflect.ValueOfString(value) - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.auto_increment": + case "cosmos.orm.v1.PrimaryKeyDescriptor.auto_increment": value := x.AutoIncrement return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.PrimaryKeyDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.PrimaryKeyDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.PrimaryKeyDescriptor does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.PrimaryKeyDescriptor does not contain field %s", descriptor.FullName())) } } @@ -805,15 +805,15 @@ func (x *fastReflection_PrimaryKeyDescriptor) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PrimaryKeyDescriptor) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.fields": + case "cosmos.orm.v1.PrimaryKeyDescriptor.fields": x.Fields = value.Interface().(string) - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.auto_increment": + case "cosmos.orm.v1.PrimaryKeyDescriptor.auto_increment": x.AutoIncrement = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.PrimaryKeyDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.PrimaryKeyDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) } } @@ -829,15 +829,15 @@ func (x *fastReflection_PrimaryKeyDescriptor) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PrimaryKeyDescriptor) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.fields": - panic(fmt.Errorf("field fields of message cosmos.orm.v1alpha1.PrimaryKeyDescriptor is not mutable")) - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.auto_increment": - panic(fmt.Errorf("field auto_increment of message cosmos.orm.v1alpha1.PrimaryKeyDescriptor is not mutable")) + case "cosmos.orm.v1.PrimaryKeyDescriptor.fields": + panic(fmt.Errorf("field fields of message cosmos.orm.v1.PrimaryKeyDescriptor is not mutable")) + case "cosmos.orm.v1.PrimaryKeyDescriptor.auto_increment": + panic(fmt.Errorf("field auto_increment of message cosmos.orm.v1.PrimaryKeyDescriptor is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.PrimaryKeyDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.PrimaryKeyDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) } } @@ -846,15 +846,15 @@ func (x *fastReflection_PrimaryKeyDescriptor) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_PrimaryKeyDescriptor) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.fields": + case "cosmos.orm.v1.PrimaryKeyDescriptor.fields": return protoreflect.ValueOfString("") - case "cosmos.orm.v1alpha1.PrimaryKeyDescriptor.auto_increment": + case "cosmos.orm.v1.PrimaryKeyDescriptor.auto_increment": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.PrimaryKeyDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.PrimaryKeyDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.PrimaryKeyDescriptor does not contain field %s", fd.FullName())) } } @@ -864,7 +864,7 @@ func (x *fastReflection_PrimaryKeyDescriptor) NewField(fd protoreflect.FieldDesc func (x *fastReflection_PrimaryKeyDescriptor) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1alpha1.PrimaryKeyDescriptor", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1.PrimaryKeyDescriptor", d.FullName())) } panic("unreachable") } @@ -1116,8 +1116,8 @@ var ( ) func init() { - file_cosmos_orm_v1alpha1_orm_proto_init() - md_SecondaryIndexDescriptor = File_cosmos_orm_v1alpha1_orm_proto.Messages().ByName("SecondaryIndexDescriptor") + file_cosmos_orm_v1_orm_proto_init() + md_SecondaryIndexDescriptor = File_cosmos_orm_v1_orm_proto.Messages().ByName("SecondaryIndexDescriptor") fd_SecondaryIndexDescriptor_fields = md_SecondaryIndexDescriptor.Fields().ByName("fields") fd_SecondaryIndexDescriptor_id = md_SecondaryIndexDescriptor.Fields().ByName("id") fd_SecondaryIndexDescriptor_unique = md_SecondaryIndexDescriptor.Fields().ByName("unique") @@ -1132,7 +1132,7 @@ func (x *SecondaryIndexDescriptor) ProtoReflect() protoreflect.Message { } func (x *SecondaryIndexDescriptor) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[2] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1221,17 +1221,17 @@ func (x *fastReflection_SecondaryIndexDescriptor) Range(f func(protoreflect.Fiel // a repeated field is populated if it is non-empty. func (x *fastReflection_SecondaryIndexDescriptor) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.fields": + case "cosmos.orm.v1.SecondaryIndexDescriptor.fields": return x.Fields != "" - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.id": + case "cosmos.orm.v1.SecondaryIndexDescriptor.id": return x.Id != uint32(0) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.unique": + case "cosmos.orm.v1.SecondaryIndexDescriptor.unique": return x.Unique != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SecondaryIndexDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SecondaryIndexDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) } } @@ -1243,17 +1243,17 @@ func (x *fastReflection_SecondaryIndexDescriptor) Has(fd protoreflect.FieldDescr // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondaryIndexDescriptor) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.fields": + case "cosmos.orm.v1.SecondaryIndexDescriptor.fields": x.Fields = "" - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.id": + case "cosmos.orm.v1.SecondaryIndexDescriptor.id": x.Id = uint32(0) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.unique": + case "cosmos.orm.v1.SecondaryIndexDescriptor.unique": x.Unique = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SecondaryIndexDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SecondaryIndexDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) } } @@ -1265,20 +1265,20 @@ func (x *fastReflection_SecondaryIndexDescriptor) Clear(fd protoreflect.FieldDes // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SecondaryIndexDescriptor) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.fields": + case "cosmos.orm.v1.SecondaryIndexDescriptor.fields": value := x.Fields return protoreflect.ValueOfString(value) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.id": + case "cosmos.orm.v1.SecondaryIndexDescriptor.id": value := x.Id return protoreflect.ValueOfUint32(value) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.unique": + case "cosmos.orm.v1.SecondaryIndexDescriptor.unique": value := x.Unique return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SecondaryIndexDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SecondaryIndexDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SecondaryIndexDescriptor does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SecondaryIndexDescriptor does not contain field %s", descriptor.FullName())) } } @@ -1294,17 +1294,17 @@ func (x *fastReflection_SecondaryIndexDescriptor) Get(descriptor protoreflect.Fi // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondaryIndexDescriptor) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.fields": + case "cosmos.orm.v1.SecondaryIndexDescriptor.fields": x.Fields = value.Interface().(string) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.id": + case "cosmos.orm.v1.SecondaryIndexDescriptor.id": x.Id = uint32(value.Uint()) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.unique": + case "cosmos.orm.v1.SecondaryIndexDescriptor.unique": x.Unique = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SecondaryIndexDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SecondaryIndexDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) } } @@ -1320,17 +1320,17 @@ func (x *fastReflection_SecondaryIndexDescriptor) Set(fd protoreflect.FieldDescr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondaryIndexDescriptor) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.fields": - panic(fmt.Errorf("field fields of message cosmos.orm.v1alpha1.SecondaryIndexDescriptor is not mutable")) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.id": - panic(fmt.Errorf("field id of message cosmos.orm.v1alpha1.SecondaryIndexDescriptor is not mutable")) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.unique": - panic(fmt.Errorf("field unique of message cosmos.orm.v1alpha1.SecondaryIndexDescriptor is not mutable")) + case "cosmos.orm.v1.SecondaryIndexDescriptor.fields": + panic(fmt.Errorf("field fields of message cosmos.orm.v1.SecondaryIndexDescriptor is not mutable")) + case "cosmos.orm.v1.SecondaryIndexDescriptor.id": + panic(fmt.Errorf("field id of message cosmos.orm.v1.SecondaryIndexDescriptor is not mutable")) + case "cosmos.orm.v1.SecondaryIndexDescriptor.unique": + panic(fmt.Errorf("field unique of message cosmos.orm.v1.SecondaryIndexDescriptor is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SecondaryIndexDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SecondaryIndexDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) } } @@ -1339,17 +1339,17 @@ func (x *fastReflection_SecondaryIndexDescriptor) Mutable(fd protoreflect.FieldD // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SecondaryIndexDescriptor) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.fields": + case "cosmos.orm.v1.SecondaryIndexDescriptor.fields": return protoreflect.ValueOfString("") - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.id": + case "cosmos.orm.v1.SecondaryIndexDescriptor.id": return protoreflect.ValueOfUint32(uint32(0)) - case "cosmos.orm.v1alpha1.SecondaryIndexDescriptor.unique": + case "cosmos.orm.v1.SecondaryIndexDescriptor.unique": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SecondaryIndexDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SecondaryIndexDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SecondaryIndexDescriptor does not contain field %s", fd.FullName())) } } @@ -1359,7 +1359,7 @@ func (x *fastReflection_SecondaryIndexDescriptor) NewField(fd protoreflect.Field func (x *fastReflection_SecondaryIndexDescriptor) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1alpha1.SecondaryIndexDescriptor", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1.SecondaryIndexDescriptor", d.FullName())) } panic("unreachable") } @@ -1636,8 +1636,8 @@ var ( ) func init() { - file_cosmos_orm_v1alpha1_orm_proto_init() - md_SingletonDescriptor = File_cosmos_orm_v1alpha1_orm_proto.Messages().ByName("SingletonDescriptor") + file_cosmos_orm_v1_orm_proto_init() + md_SingletonDescriptor = File_cosmos_orm_v1_orm_proto.Messages().ByName("SingletonDescriptor") fd_SingletonDescriptor_id = md_SingletonDescriptor.Fields().ByName("id") } @@ -1650,7 +1650,7 @@ func (x *SingletonDescriptor) ProtoReflect() protoreflect.Message { } func (x *SingletonDescriptor) slowProtoReflect() protoreflect.Message { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[3] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1727,13 +1727,13 @@ func (x *fastReflection_SingletonDescriptor) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_SingletonDescriptor) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SingletonDescriptor.id": + case "cosmos.orm.v1.SingletonDescriptor.id": return x.Id != uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SingletonDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SingletonDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SingletonDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SingletonDescriptor does not contain field %s", fd.FullName())) } } @@ -1745,13 +1745,13 @@ func (x *fastReflection_SingletonDescriptor) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SingletonDescriptor) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SingletonDescriptor.id": + case "cosmos.orm.v1.SingletonDescriptor.id": x.Id = uint32(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SingletonDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SingletonDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SingletonDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SingletonDescriptor does not contain field %s", fd.FullName())) } } @@ -1763,14 +1763,14 @@ func (x *fastReflection_SingletonDescriptor) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SingletonDescriptor) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "cosmos.orm.v1alpha1.SingletonDescriptor.id": + case "cosmos.orm.v1.SingletonDescriptor.id": value := x.Id return protoreflect.ValueOfUint32(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SingletonDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SingletonDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SingletonDescriptor does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SingletonDescriptor does not contain field %s", descriptor.FullName())) } } @@ -1786,13 +1786,13 @@ func (x *fastReflection_SingletonDescriptor) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SingletonDescriptor) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SingletonDescriptor.id": + case "cosmos.orm.v1.SingletonDescriptor.id": x.Id = uint32(value.Uint()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SingletonDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SingletonDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SingletonDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SingletonDescriptor does not contain field %s", fd.FullName())) } } @@ -1808,13 +1808,13 @@ func (x *fastReflection_SingletonDescriptor) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SingletonDescriptor) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SingletonDescriptor.id": - panic(fmt.Errorf("field id of message cosmos.orm.v1alpha1.SingletonDescriptor is not mutable")) + case "cosmos.orm.v1.SingletonDescriptor.id": + panic(fmt.Errorf("field id of message cosmos.orm.v1.SingletonDescriptor is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SingletonDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SingletonDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SingletonDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SingletonDescriptor does not contain field %s", fd.FullName())) } } @@ -1823,13 +1823,13 @@ func (x *fastReflection_SingletonDescriptor) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SingletonDescriptor) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "cosmos.orm.v1alpha1.SingletonDescriptor.id": + case "cosmos.orm.v1.SingletonDescriptor.id": return protoreflect.ValueOfUint32(uint32(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1alpha1.SingletonDescriptor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.orm.v1.SingletonDescriptor")) } - panic(fmt.Errorf("message cosmos.orm.v1alpha1.SingletonDescriptor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message cosmos.orm.v1.SingletonDescriptor does not contain field %s", fd.FullName())) } } @@ -1839,7 +1839,7 @@ func (x *fastReflection_SingletonDescriptor) NewField(fd protoreflect.FieldDescr func (x *fastReflection_SingletonDescriptor) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1alpha1.SingletonDescriptor", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in cosmos.orm.v1.SingletonDescriptor", d.FullName())) } panic("unreachable") } @@ -2038,7 +2038,7 @@ func (x *fastReflection_SingletonDescriptor) ProtoMethods() *protoiface.Methods // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: cosmos/orm/v1alpha1/orm.proto +// source: cosmos/orm/v1/orm.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2066,7 +2066,7 @@ type TableDescriptor struct { func (x *TableDescriptor) Reset() { *x = TableDescriptor{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[0] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2080,7 +2080,7 @@ func (*TableDescriptor) ProtoMessage() {} // Deprecated: Use TableDescriptor.ProtoReflect.Descriptor instead. func (*TableDescriptor) Descriptor() ([]byte, []int) { - return file_cosmos_orm_v1alpha1_orm_proto_rawDescGZIP(), []int{0} + return file_cosmos_orm_v1_orm_proto_rawDescGZIP(), []int{0} } func (x *TableDescriptor) GetPrimaryKey() *PrimaryKeyDescriptor { @@ -2126,10 +2126,7 @@ type PrimaryKeyDescriptor struct { // in non-terminal segments. Null characters are thus forbidden in strings. // string fields support sorted iteration. // - bytes are encoded as raw bytes in terminal segments and length-prefixed - // with a single byte in non-terminal segments. Because of this byte arrays - // longer than 255 bytes are unsupported and bytes fields should not - // be assumed to be lexically sorted. If you have a byte array longer than - // 255 bytes that you'd like to index, you should consider hashing it first. + // with a 32-bit unsigned varint in non-terminal segments. // - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with // an encoding that enables sorted iteration. // - google.protobuf.Timestamp and google.protobuf.Duration are encoded @@ -2153,7 +2150,7 @@ type PrimaryKeyDescriptor struct { func (x *PrimaryKeyDescriptor) Reset() { *x = PrimaryKeyDescriptor{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[1] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2167,7 +2164,7 @@ func (*PrimaryKeyDescriptor) ProtoMessage() {} // Deprecated: Use PrimaryKeyDescriptor.ProtoReflect.Descriptor instead. func (*PrimaryKeyDescriptor) Descriptor() ([]byte, []int) { - return file_cosmos_orm_v1alpha1_orm_proto_rawDescGZIP(), []int{1} + return file_cosmos_orm_v1_orm_proto_rawDescGZIP(), []int{1} } func (x *PrimaryKeyDescriptor) GetFields() string { @@ -2211,7 +2208,7 @@ type SecondaryIndexDescriptor struct { func (x *SecondaryIndexDescriptor) Reset() { *x = SecondaryIndexDescriptor{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[2] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2225,7 +2222,7 @@ func (*SecondaryIndexDescriptor) ProtoMessage() {} // Deprecated: Use SecondaryIndexDescriptor.ProtoReflect.Descriptor instead. func (*SecondaryIndexDescriptor) Descriptor() ([]byte, []int) { - return file_cosmos_orm_v1alpha1_orm_proto_rawDescGZIP(), []int{2} + return file_cosmos_orm_v1_orm_proto_rawDescGZIP(), []int{2} } func (x *SecondaryIndexDescriptor) GetFields() string { @@ -2264,7 +2261,7 @@ type SingletonDescriptor struct { func (x *SingletonDescriptor) Reset() { *x = SingletonDescriptor{} if protoimpl.UnsafeEnabled { - mi := &file_cosmos_orm_v1alpha1_orm_proto_msgTypes[3] + mi := &file_cosmos_orm_v1_orm_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2278,7 +2275,7 @@ func (*SingletonDescriptor) ProtoMessage() {} // Deprecated: Use SingletonDescriptor.ProtoReflect.Descriptor instead. func (*SingletonDescriptor) Descriptor() ([]byte, []int) { - return file_cosmos_orm_v1alpha1_orm_proto_rawDescGZIP(), []int{3} + return file_cosmos_orm_v1_orm_proto_rawDescGZIP(), []int{3} } func (x *SingletonDescriptor) GetId() uint32 { @@ -2288,22 +2285,22 @@ func (x *SingletonDescriptor) GetId() uint32 { return 0 } -var file_cosmos_orm_v1alpha1_orm_proto_extTypes = []protoimpl.ExtensionInfo{ +var file_cosmos_orm_v1_orm_proto_extTypes = []protoimpl.ExtensionInfo{ { ExtendedType: (*descriptorpb.MessageOptions)(nil), ExtensionType: (*TableDescriptor)(nil), Field: 104503790, - Name: "cosmos.orm.v1alpha1.table", + Name: "cosmos.orm.v1.table", Tag: "bytes,104503790,opt,name=table", - Filename: "cosmos/orm/v1alpha1/orm.proto", + Filename: "cosmos/orm/v1/orm.proto", }, { ExtendedType: (*descriptorpb.MessageOptions)(nil), ExtensionType: (*SingletonDescriptor)(nil), Field: 104503791, - Name: "cosmos.orm.v1alpha1.singleton", + Name: "cosmos.orm.v1.singleton", Tag: "bytes,104503791,opt,name=singleton", - Filename: "cosmos/orm/v1alpha1/orm.proto", + Filename: "cosmos/orm/v1/orm.proto", }, } @@ -2312,104 +2309,100 @@ var ( // table specifies that this message will be used as an ORM table. It cannot // be used together with the singleton option. // - // optional cosmos.orm.v1alpha1.TableDescriptor table = 104503790; - E_Table = &file_cosmos_orm_v1alpha1_orm_proto_extTypes[0] + // optional cosmos.orm.v1.TableDescriptor table = 104503790; + E_Table = &file_cosmos_orm_v1_orm_proto_extTypes[0] // singleton specifies that this message will be used as an ORM singleton. It cannot // be used together with the table option. // - // optional cosmos.orm.v1alpha1.SingletonDescriptor singleton = 104503791; - E_Singleton = &file_cosmos_orm_v1alpha1_orm_proto_extTypes[1] + // optional cosmos.orm.v1.SingletonDescriptor singleton = 104503791; + E_Singleton = &file_cosmos_orm_v1_orm_proto_extTypes[1] ) -var File_cosmos_orm_v1alpha1_orm_proto protoreflect.FileDescriptor +var File_cosmos_orm_v1_orm_proto protoreflect.FileDescriptor -var file_cosmos_orm_v1alpha1_orm_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x13, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x0f, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x4a, 0x0a, 0x0b, 0x70, 0x72, - 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x29, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x14, 0x50, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, - 0x75, 0x74, 0x6f, 0x5f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x22, 0x5a, 0x0a, 0x18, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x16, - 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x22, 0x25, - 0x0a, 0x13, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x5e, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1f, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0xee, 0xb3, 0xea, 0x31, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x05, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x6a, 0x0a, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, - 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0xef, 0xb3, 0xea, 0x31, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, - 0x6e, 0x42, 0xd3, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x08, 0x4f, - 0x72, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, - 0x6f, 0x72, 0x6d, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, - 0x58, 0xaa, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4f, 0x72, 0x6d, 0x2e, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x13, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x5c, 0x4f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x1f, - 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x15, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x4f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var file_cosmos_orm_v1_orm_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, + 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x01, 0x0a, 0x0f, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x44, + 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x4b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x14, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, + 0x79, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x69, 0x6e, 0x63, 0x72, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x75, 0x74, + 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x5a, 0x0a, 0x18, 0x53, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, + 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x22, 0x25, 0x0a, 0x13, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, + 0x74, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x58, 0x0a, + 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xee, 0xb3, 0xea, 0x31, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, + 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x64, 0x0a, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x74, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xef, 0xb3, 0xea, 0x31, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x52, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x42, 0xa9, 0x01, + 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x42, 0x08, 0x4f, 0x72, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, + 0x6f, 0x72, 0x6d, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x58, 0xaa, 0x02, 0x0d, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x43, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x4f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x3a, 0x3a, 0x4f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - file_cosmos_orm_v1alpha1_orm_proto_rawDescOnce sync.Once - file_cosmos_orm_v1alpha1_orm_proto_rawDescData = file_cosmos_orm_v1alpha1_orm_proto_rawDesc + file_cosmos_orm_v1_orm_proto_rawDescOnce sync.Once + file_cosmos_orm_v1_orm_proto_rawDescData = file_cosmos_orm_v1_orm_proto_rawDesc ) -func file_cosmos_orm_v1alpha1_orm_proto_rawDescGZIP() []byte { - file_cosmos_orm_v1alpha1_orm_proto_rawDescOnce.Do(func() { - file_cosmos_orm_v1alpha1_orm_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_orm_v1alpha1_orm_proto_rawDescData) +func file_cosmos_orm_v1_orm_proto_rawDescGZIP() []byte { + file_cosmos_orm_v1_orm_proto_rawDescOnce.Do(func() { + file_cosmos_orm_v1_orm_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_orm_v1_orm_proto_rawDescData) }) - return file_cosmos_orm_v1alpha1_orm_proto_rawDescData + return file_cosmos_orm_v1_orm_proto_rawDescData } -var file_cosmos_orm_v1alpha1_orm_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cosmos_orm_v1alpha1_orm_proto_goTypes = []interface{}{ - (*TableDescriptor)(nil), // 0: cosmos.orm.v1alpha1.TableDescriptor - (*PrimaryKeyDescriptor)(nil), // 1: cosmos.orm.v1alpha1.PrimaryKeyDescriptor - (*SecondaryIndexDescriptor)(nil), // 2: cosmos.orm.v1alpha1.SecondaryIndexDescriptor - (*SingletonDescriptor)(nil), // 3: cosmos.orm.v1alpha1.SingletonDescriptor +var file_cosmos_orm_v1_orm_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cosmos_orm_v1_orm_proto_goTypes = []interface{}{ + (*TableDescriptor)(nil), // 0: cosmos.orm.v1.TableDescriptor + (*PrimaryKeyDescriptor)(nil), // 1: cosmos.orm.v1.PrimaryKeyDescriptor + (*SecondaryIndexDescriptor)(nil), // 2: cosmos.orm.v1.SecondaryIndexDescriptor + (*SingletonDescriptor)(nil), // 3: cosmos.orm.v1.SingletonDescriptor (*descriptorpb.MessageOptions)(nil), // 4: google.protobuf.MessageOptions } -var file_cosmos_orm_v1alpha1_orm_proto_depIdxs = []int32{ - 1, // 0: cosmos.orm.v1alpha1.TableDescriptor.primary_key:type_name -> cosmos.orm.v1alpha1.PrimaryKeyDescriptor - 2, // 1: cosmos.orm.v1alpha1.TableDescriptor.index:type_name -> cosmos.orm.v1alpha1.SecondaryIndexDescriptor - 4, // 2: cosmos.orm.v1alpha1.table:extendee -> google.protobuf.MessageOptions - 4, // 3: cosmos.orm.v1alpha1.singleton:extendee -> google.protobuf.MessageOptions - 0, // 4: cosmos.orm.v1alpha1.table:type_name -> cosmos.orm.v1alpha1.TableDescriptor - 3, // 5: cosmos.orm.v1alpha1.singleton:type_name -> cosmos.orm.v1alpha1.SingletonDescriptor +var file_cosmos_orm_v1_orm_proto_depIdxs = []int32{ + 1, // 0: cosmos.orm.v1.TableDescriptor.primary_key:type_name -> cosmos.orm.v1.PrimaryKeyDescriptor + 2, // 1: cosmos.orm.v1.TableDescriptor.index:type_name -> cosmos.orm.v1.SecondaryIndexDescriptor + 4, // 2: cosmos.orm.v1.table:extendee -> google.protobuf.MessageOptions + 4, // 3: cosmos.orm.v1.singleton:extendee -> google.protobuf.MessageOptions + 0, // 4: cosmos.orm.v1.table:type_name -> cosmos.orm.v1.TableDescriptor + 3, // 5: cosmos.orm.v1.singleton:type_name -> cosmos.orm.v1.SingletonDescriptor 6, // [6:6] is the sub-list for method output_type 6, // [6:6] is the sub-list for method input_type 4, // [4:6] is the sub-list for extension type_name @@ -2417,13 +2410,13 @@ var file_cosmos_orm_v1alpha1_orm_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_cosmos_orm_v1alpha1_orm_proto_init() } -func file_cosmos_orm_v1alpha1_orm_proto_init() { - if File_cosmos_orm_v1alpha1_orm_proto != nil { +func init() { file_cosmos_orm_v1_orm_proto_init() } +func file_cosmos_orm_v1_orm_proto_init() { + if File_cosmos_orm_v1_orm_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_cosmos_orm_v1alpha1_orm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_orm_v1_orm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TableDescriptor); i { case 0: return &v.state @@ -2435,7 +2428,7 @@ func file_cosmos_orm_v1alpha1_orm_proto_init() { return nil } } - file_cosmos_orm_v1alpha1_orm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_orm_v1_orm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PrimaryKeyDescriptor); i { case 0: return &v.state @@ -2447,7 +2440,7 @@ func file_cosmos_orm_v1alpha1_orm_proto_init() { return nil } } - file_cosmos_orm_v1alpha1_orm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_orm_v1_orm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SecondaryIndexDescriptor); i { case 0: return &v.state @@ -2459,7 +2452,7 @@ func file_cosmos_orm_v1alpha1_orm_proto_init() { return nil } } - file_cosmos_orm_v1alpha1_orm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_cosmos_orm_v1_orm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SingletonDescriptor); i { case 0: return &v.state @@ -2476,19 +2469,19 @@ func file_cosmos_orm_v1alpha1_orm_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cosmos_orm_v1alpha1_orm_proto_rawDesc, + RawDescriptor: file_cosmos_orm_v1_orm_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 2, NumServices: 0, }, - GoTypes: file_cosmos_orm_v1alpha1_orm_proto_goTypes, - DependencyIndexes: file_cosmos_orm_v1alpha1_orm_proto_depIdxs, - MessageInfos: file_cosmos_orm_v1alpha1_orm_proto_msgTypes, - ExtensionInfos: file_cosmos_orm_v1alpha1_orm_proto_extTypes, + GoTypes: file_cosmos_orm_v1_orm_proto_goTypes, + DependencyIndexes: file_cosmos_orm_v1_orm_proto_depIdxs, + MessageInfos: file_cosmos_orm_v1_orm_proto_msgTypes, + ExtensionInfos: file_cosmos_orm_v1_orm_proto_extTypes, }.Build() - File_cosmos_orm_v1alpha1_orm_proto = out.File - file_cosmos_orm_v1alpha1_orm_proto_rawDesc = nil - file_cosmos_orm_v1alpha1_orm_proto_goTypes = nil - file_cosmos_orm_v1alpha1_orm_proto_depIdxs = nil + File_cosmos_orm_v1_orm_proto = out.File + file_cosmos_orm_v1_orm_proto_rawDesc = nil + file_cosmos_orm_v1_orm_proto_goTypes = nil + file_cosmos_orm_v1_orm_proto_depIdxs = nil } diff --git a/proto/cosmos/orm/v1alpha1/orm.proto b/proto/cosmos/orm/v1/orm.proto similarity index 92% rename from proto/cosmos/orm/v1alpha1/orm.proto rename to proto/cosmos/orm/v1/orm.proto index 644e5de26e..abfbbd4f5c 100644 --- a/proto/cosmos/orm/v1alpha1/orm.proto +++ b/proto/cosmos/orm/v1/orm.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package cosmos.orm.v1alpha1; +package cosmos.orm.v1; import "google/protobuf/descriptor.proto"; @@ -49,10 +49,7 @@ message PrimaryKeyDescriptor { // in non-terminal segments. Null characters are thus forbidden in strings. // string fields support sorted iteration. // - bytes are encoded as raw bytes in terminal segments and length-prefixed - // with a single byte in non-terminal segments. Because of this byte arrays - // longer than 255 bytes are unsupported and bytes fields should not - // be assumed to be lexically sorted. If you have a byte array longer than - // 255 bytes that you'd like to index, you should consider hashing it first. + // with a 32-bit unsigned varint in non-terminal segments. // - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with // an encoding that enables sorted iteration. // - google.protobuf.Timestamp and google.protobuf.Duration are encoded