feat: Add simulations to group module (#10723)

## Description

Closes: #9901



---

### 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...

- [x] 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
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [x] 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)
- [x] 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`
- [x] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [x] 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)
This commit is contained in:
Marie Gauthier
2022-01-21 10:52:26 +00:00
committed by GitHub
parent fd5b97bd7b
commit f52d87003c
21 changed files with 2215 additions and 192 deletions
+70 -72
View File
@@ -2,14 +2,13 @@ package groupv1beta1
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var _ protoreflect.List = (*_GenesisState_2_list)(nil)
@@ -268,15 +267,15 @@ func (x *_GenesisState_8_list) IsValid() bool {
}
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_group_seq protoreflect.FieldDescriptor
fd_GenesisState_groups protoreflect.FieldDescriptor
fd_GenesisState_group_members protoreflect.FieldDescriptor
fd_GenesisState_group_policy_account_seq protoreflect.FieldDescriptor
fd_GenesisState_group_policies protoreflect.FieldDescriptor
fd_GenesisState_proposal_seq protoreflect.FieldDescriptor
fd_GenesisState_proposals protoreflect.FieldDescriptor
fd_GenesisState_votes protoreflect.FieldDescriptor
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_group_seq protoreflect.FieldDescriptor
fd_GenesisState_groups protoreflect.FieldDescriptor
fd_GenesisState_group_members protoreflect.FieldDescriptor
fd_GenesisState_group_policy_seq protoreflect.FieldDescriptor
fd_GenesisState_group_policies protoreflect.FieldDescriptor
fd_GenesisState_proposal_seq protoreflect.FieldDescriptor
fd_GenesisState_proposals protoreflect.FieldDescriptor
fd_GenesisState_votes protoreflect.FieldDescriptor
)
func init() {
@@ -285,7 +284,7 @@ func init() {
fd_GenesisState_group_seq = md_GenesisState.Fields().ByName("group_seq")
fd_GenesisState_groups = md_GenesisState.Fields().ByName("groups")
fd_GenesisState_group_members = md_GenesisState.Fields().ByName("group_members")
fd_GenesisState_group_policy_account_seq = md_GenesisState.Fields().ByName("group_policy_account_seq")
fd_GenesisState_group_policy_seq = md_GenesisState.Fields().ByName("group_policy_seq")
fd_GenesisState_group_policies = md_GenesisState.Fields().ByName("group_policies")
fd_GenesisState_proposal_seq = md_GenesisState.Fields().ByName("proposal_seq")
fd_GenesisState_proposals = md_GenesisState.Fields().ByName("proposals")
@@ -375,9 +374,9 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor,
return
}
}
if x.GroupPolicyAccountSeq != uint64(0) {
value := protoreflect.ValueOfUint64(x.GroupPolicyAccountSeq)
if !f(fd_GenesisState_group_policy_account_seq, value) {
if x.GroupPolicySeq != uint64(0) {
value := protoreflect.ValueOfUint64(x.GroupPolicySeq)
if !f(fd_GenesisState_group_policy_seq, value) {
return
}
}
@@ -426,8 +425,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool
return len(x.Groups) != 0
case "cosmos.group.v1beta1.GenesisState.group_members":
return len(x.GroupMembers) != 0
case "cosmos.group.v1beta1.GenesisState.group_policy_account_seq":
return x.GroupPolicyAccountSeq != uint64(0)
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
return x.GroupPolicySeq != uint64(0)
case "cosmos.group.v1beta1.GenesisState.group_policies":
return len(x.GroupPolicies) != 0
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
@@ -458,8 +457,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
x.Groups = nil
case "cosmos.group.v1beta1.GenesisState.group_members":
x.GroupMembers = nil
case "cosmos.group.v1beta1.GenesisState.group_policy_account_seq":
x.GroupPolicyAccountSeq = uint64(0)
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
x.GroupPolicySeq = uint64(0)
case "cosmos.group.v1beta1.GenesisState.group_policies":
x.GroupPolicies = nil
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
@@ -499,8 +498,8 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto
}
listValue := &_GenesisState_3_list{list: &x.GroupMembers}
return protoreflect.ValueOfList(listValue)
case "cosmos.group.v1beta1.GenesisState.group_policy_account_seq":
value := x.GroupPolicyAccountSeq
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
value := x.GroupPolicySeq
return protoreflect.ValueOfUint64(value)
case "cosmos.group.v1beta1.GenesisState.group_policies":
if len(x.GroupPolicies) == 0 {
@@ -553,8 +552,8 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value
lv := value.List()
clv := lv.(*_GenesisState_3_list)
x.GroupMembers = *clv.list
case "cosmos.group.v1beta1.GenesisState.group_policy_account_seq":
x.GroupPolicyAccountSeq = value.Uint()
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
x.GroupPolicySeq = value.Uint()
case "cosmos.group.v1beta1.GenesisState.group_policies":
lv := value.List()
clv := lv.(*_GenesisState_5_list)
@@ -621,8 +620,8 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p
return protoreflect.ValueOfList(value)
case "cosmos.group.v1beta1.GenesisState.group_seq":
panic(fmt.Errorf("field group_seq of message cosmos.group.v1beta1.GenesisState is not mutable"))
case "cosmos.group.v1beta1.GenesisState.group_policy_account_seq":
panic(fmt.Errorf("field group_policy_account_seq of message cosmos.group.v1beta1.GenesisState is not mutable"))
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
panic(fmt.Errorf("field group_policy_seq of message cosmos.group.v1beta1.GenesisState is not mutable"))
case "cosmos.group.v1beta1.GenesisState.proposal_seq":
panic(fmt.Errorf("field proposal_seq of message cosmos.group.v1beta1.GenesisState is not mutable"))
default:
@@ -646,7 +645,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor)
case "cosmos.group.v1beta1.GenesisState.group_members":
list := []*GroupMember{}
return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
case "cosmos.group.v1beta1.GenesisState.group_policy_account_seq":
case "cosmos.group.v1beta1.GenesisState.group_policy_seq":
return protoreflect.ValueOfUint64(uint64(0))
case "cosmos.group.v1beta1.GenesisState.group_policies":
list := []*GroupPolicyInfo{}
@@ -743,8 +742,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.GroupPolicyAccountSeq != 0 {
n += 1 + runtime.Sov(uint64(x.GroupPolicyAccountSeq))
if x.GroupPolicySeq != 0 {
n += 1 + runtime.Sov(uint64(x.GroupPolicySeq))
}
if len(x.GroupPolicies) > 0 {
for _, e := range x.GroupPolicies {
@@ -849,8 +848,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
dAtA[i] = 0x2a
}
}
if x.GroupPolicyAccountSeq != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupPolicyAccountSeq))
if x.GroupPolicySeq != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupPolicySeq))
i--
dAtA[i] = 0x20
}
@@ -1029,9 +1028,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicyAccountSeq", wireType)
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupPolicySeq", wireType)
}
x.GroupPolicyAccountSeq = 0
x.GroupPolicySeq = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
@@ -1041,7 +1040,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
}
b := dAtA[iNdEx]
iNdEx++
x.GroupPolicyAccountSeq |= uint64(b&0x7F) << shift
x.GroupPolicySeq |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
@@ -1228,9 +1227,9 @@ type GenesisState struct {
Groups []*GroupInfo `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
// group_members is the list of groups members.
GroupMembers []*GroupMember `protobuf:"bytes,3,rep,name=group_members,json=groupMembers,proto3" json:"group_members,omitempty"`
// group_policy_account_seq is the group policy table orm.Sequence,
// group_policy_seq is the group policy table orm.Sequence,
// it is used to generate the next group policy account address.
GroupPolicyAccountSeq uint64 `protobuf:"varint,4,opt,name=group_policy_account_seq,json=groupPolicyAccountSeq,proto3" json:"group_policy_account_seq,omitempty"`
GroupPolicySeq uint64 `protobuf:"varint,4,opt,name=group_policy_seq,json=groupPolicySeq,proto3" json:"group_policy_seq,omitempty"`
// group_policies is the list of group policies info.
GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,5,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
// proposal_seq is the proposal table orm.Sequence,
@@ -1283,9 +1282,9 @@ func (x *GenesisState) GetGroupMembers() []*GroupMember {
return nil
}
func (x *GenesisState) GetGroupPolicyAccountSeq() uint64 {
func (x *GenesisState) GetGroupPolicySeq() uint64 {
if x != nil {
return x.GroupPolicyAccountSeq
return x.GroupPolicySeq
}
return 0
}
@@ -1326,7 +1325,7 @@ var file_cosmos_group_v1beta1_genesis_proto_rawDesc = []byte{
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x03, 0x0a,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x03, 0x0a,
0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a,
0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x06, 0x67, 0x72,
@@ -1337,39 +1336,38 @@ var file_cosmos_group_v1beta1_genesis_proto_rawDesc = []byte{
0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x0c, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x53, 0x65, 0x71, 0x12, 0x4c, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f,
0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63,
0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x73, 0x65, 0x71, 0x18,
0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69,
0x63, 0x79, 0x53, 0x65, 0x71, 0x12, 0x4c, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70,
0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e,
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f,
0x73, 0x65, 0x71, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f,
0x73, 0x61, 0x6c, 0x53, 0x65, 0x71, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73,
0x61, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f,
0x73, 0x61, 0x6c, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52,
0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x42, 0xde, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49,
0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,
0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x73,
0x65, 0x71, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73,
0x61, 0x6c, 0x53, 0x65, 0x71, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61,
0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73,
0x61, 0x6c, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75,
0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05,
0x76, 0x6f, 0x74, 0x65, 0x73, 0x42, 0xde, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f,
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x50, 0x01, 0x5a, 0x42, 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, 0x67, 0x72, 0x6f, 0x75,
0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x14, 0x43,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16,
0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x74, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74,
0x6f, 0x50, 0x01, 0x5a, 0x42, 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, 0x67, 0x72, 0x6f,
0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x14,
0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f,
0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a,
0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
+2 -1
View File
@@ -2333,7 +2333,8 @@ type SecondaryIndexDescriptor struct {
// store the remaining primary key fields in the value..
Fields string `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"`
// id is a non-zero integer ID that must be unique within the indexes for this
// table. It may be deprecated in the future when this can be auto-generated.
// table and less than 32768. It may be deprecated in the future when this can
// be auto-generated.
Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// unique specifies that this an unique index.
Unique bool `protobuf:"varint,3,opt,name=unique,proto3" json:"unique,omitempty"`