feat: Add percentage decision policy to x/group (#11072)

## Description

Closes: #10946 

Add a percentage decision policy to group module.

---

### 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)
This commit is contained in:
likhita-809
2022-02-11 09:12:57 +00:00
committed by GitHub
parent 89739a554a
commit 2c184d2056
13 changed files with 1643 additions and 200 deletions
+633 -64
View File
@@ -1639,6 +1639,505 @@ func (x *fastReflection_ThresholdDecisionPolicy) ProtoMethods() *protoiface.Meth
}
}
var (
md_PercentageDecisionPolicy protoreflect.MessageDescriptor
fd_PercentageDecisionPolicy_percentage protoreflect.FieldDescriptor
fd_PercentageDecisionPolicy_timeout protoreflect.FieldDescriptor
)
func init() {
file_cosmos_group_v1beta1_types_proto_init()
md_PercentageDecisionPolicy = File_cosmos_group_v1beta1_types_proto.Messages().ByName("PercentageDecisionPolicy")
fd_PercentageDecisionPolicy_percentage = md_PercentageDecisionPolicy.Fields().ByName("percentage")
fd_PercentageDecisionPolicy_timeout = md_PercentageDecisionPolicy.Fields().ByName("timeout")
}
var _ protoreflect.Message = (*fastReflection_PercentageDecisionPolicy)(nil)
type fastReflection_PercentageDecisionPolicy PercentageDecisionPolicy
func (x *PercentageDecisionPolicy) ProtoReflect() protoreflect.Message {
return (*fastReflection_PercentageDecisionPolicy)(x)
}
func (x *PercentageDecisionPolicy) slowProtoReflect() protoreflect.Message {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_PercentageDecisionPolicy_messageType fastReflection_PercentageDecisionPolicy_messageType
var _ protoreflect.MessageType = fastReflection_PercentageDecisionPolicy_messageType{}
type fastReflection_PercentageDecisionPolicy_messageType struct{}
func (x fastReflection_PercentageDecisionPolicy_messageType) Zero() protoreflect.Message {
return (*fastReflection_PercentageDecisionPolicy)(nil)
}
func (x fastReflection_PercentageDecisionPolicy_messageType) New() protoreflect.Message {
return new(fastReflection_PercentageDecisionPolicy)
}
func (x fastReflection_PercentageDecisionPolicy_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_PercentageDecisionPolicy
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_PercentageDecisionPolicy) Descriptor() protoreflect.MessageDescriptor {
return md_PercentageDecisionPolicy
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_PercentageDecisionPolicy) Type() protoreflect.MessageType {
return _fastReflection_PercentageDecisionPolicy_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_PercentageDecisionPolicy) New() protoreflect.Message {
return new(fastReflection_PercentageDecisionPolicy)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_PercentageDecisionPolicy) Interface() protoreflect.ProtoMessage {
return (*PercentageDecisionPolicy)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_PercentageDecisionPolicy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Percentage != "" {
value := protoreflect.ValueOfString(x.Percentage)
if !f(fd_PercentageDecisionPolicy_percentage, value) {
return
}
}
if x.Timeout != nil {
value := protoreflect.ValueOfMessage(x.Timeout.ProtoReflect())
if !f(fd_PercentageDecisionPolicy_timeout, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_PercentageDecisionPolicy) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "cosmos.group.v1beta1.PercentageDecisionPolicy.percentage":
return x.Percentage != ""
case "cosmos.group.v1beta1.PercentageDecisionPolicy.timeout":
return x.Timeout != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.PercentageDecisionPolicy"))
}
panic(fmt.Errorf("message cosmos.group.v1beta1.PercentageDecisionPolicy does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PercentageDecisionPolicy) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "cosmos.group.v1beta1.PercentageDecisionPolicy.percentage":
x.Percentage = ""
case "cosmos.group.v1beta1.PercentageDecisionPolicy.timeout":
x.Timeout = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.PercentageDecisionPolicy"))
}
panic(fmt.Errorf("message cosmos.group.v1beta1.PercentageDecisionPolicy does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_PercentageDecisionPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "cosmos.group.v1beta1.PercentageDecisionPolicy.percentage":
value := x.Percentage
return protoreflect.ValueOfString(value)
case "cosmos.group.v1beta1.PercentageDecisionPolicy.timeout":
value := x.Timeout
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.PercentageDecisionPolicy"))
}
panic(fmt.Errorf("message cosmos.group.v1beta1.PercentageDecisionPolicy does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PercentageDecisionPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "cosmos.group.v1beta1.PercentageDecisionPolicy.percentage":
x.Percentage = value.Interface().(string)
case "cosmos.group.v1beta1.PercentageDecisionPolicy.timeout":
x.Timeout = value.Message().Interface().(*durationpb.Duration)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.PercentageDecisionPolicy"))
}
panic(fmt.Errorf("message cosmos.group.v1beta1.PercentageDecisionPolicy does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PercentageDecisionPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cosmos.group.v1beta1.PercentageDecisionPolicy.timeout":
if x.Timeout == nil {
x.Timeout = new(durationpb.Duration)
}
return protoreflect.ValueOfMessage(x.Timeout.ProtoReflect())
case "cosmos.group.v1beta1.PercentageDecisionPolicy.percentage":
panic(fmt.Errorf("field percentage of message cosmos.group.v1beta1.PercentageDecisionPolicy is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.PercentageDecisionPolicy"))
}
panic(fmt.Errorf("message cosmos.group.v1beta1.PercentageDecisionPolicy does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_PercentageDecisionPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cosmos.group.v1beta1.PercentageDecisionPolicy.percentage":
return protoreflect.ValueOfString("")
case "cosmos.group.v1beta1.PercentageDecisionPolicy.timeout":
m := new(durationpb.Duration)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.PercentageDecisionPolicy"))
}
panic(fmt.Errorf("message cosmos.group.v1beta1.PercentageDecisionPolicy does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_PercentageDecisionPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.PercentageDecisionPolicy", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_PercentageDecisionPolicy) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PercentageDecisionPolicy) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_PercentageDecisionPolicy) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_PercentageDecisionPolicy) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*PercentageDecisionPolicy)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Percentage)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Timeout != nil {
l = options.Size(x.Timeout)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*PercentageDecisionPolicy)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Timeout != nil {
encoded, err := options.Marshal(x.Timeout)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Percentage) > 0 {
i -= len(x.Percentage)
copy(dAtA[i:], x.Percentage)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Percentage)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*PercentageDecisionPolicy)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PercentageDecisionPolicy: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PercentageDecisionPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Percentage", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Percentage = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Timeout == nil {
x.Timeout = &durationpb.Duration{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timeout); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_GroupInfo protoreflect.MessageDescriptor
fd_GroupInfo_group_id protoreflect.FieldDescriptor
@@ -1669,7 +2168,7 @@ func (x *GroupInfo) ProtoReflect() protoreflect.Message {
}
func (x *GroupInfo) slowProtoReflect() protoreflect.Message {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[3]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2386,7 +2885,7 @@ func (x *GroupMember) ProtoReflect() protoreflect.Message {
}
func (x *GroupMember) slowProtoReflect() protoreflect.Message {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[4]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2879,7 +3378,7 @@ func (x *GroupPolicyInfo) ProtoReflect() protoreflect.Message {
}
func (x *GroupPolicyInfo) slowProtoReflect() protoreflect.Message {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[5]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3792,7 +4291,7 @@ func (x *Proposal) ProtoReflect() protoreflect.Message {
}
func (x *Proposal) slowProtoReflect() protoreflect.Message {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[6]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -4950,7 +5449,7 @@ func (x *Tally) ProtoReflect() protoreflect.Message {
}
func (x *Tally) slowProtoReflect() protoreflect.Message {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[7]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5564,7 +6063,7 @@ func (x *Vote) ProtoReflect() protoreflect.Message {
}
func (x *Vote) slowProtoReflect() protoreflect.Message {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[8]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -6330,7 +6829,7 @@ func (x Proposal_Status) Number() protoreflect.EnumNumber {
// Deprecated: Use Proposal_Status.Descriptor instead.
func (Proposal_Status) EnumDescriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{6, 0}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{7, 0}
}
// Result defines types of proposal results.
@@ -6387,7 +6886,7 @@ func (x Proposal_Result) Number() protoreflect.EnumNumber {
// Deprecated: Use Proposal_Result.Descriptor instead.
func (Proposal_Result) EnumDescriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{6, 1}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{7, 1}
}
// ExecutorResult defines types of proposal executor results.
@@ -6444,7 +6943,7 @@ func (x Proposal_ExecutorResult) Number() protoreflect.EnumNumber {
// Deprecated: Use Proposal_ExecutorResult.Descriptor instead.
func (Proposal_ExecutorResult) EnumDescriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{6, 2}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{7, 2}
}
// Member represents a group member with an account address,
@@ -6596,6 +7095,53 @@ func (x *ThresholdDecisionPolicy) GetTimeout() *durationpb.Duration {
return nil
}
// PercentageDecisionPolicy implements the DecisionPolicy interface
type PercentageDecisionPolicy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// percentage is the minimum percentage the weighted sum of yes votes must met for a proposal to succeed.
Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
// timeout is the duration from submission of a proposal to the end of voting period
// Within this times votes and exec messages can be submitted.
Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
}
func (x *PercentageDecisionPolicy) Reset() {
*x = PercentageDecisionPolicy{}
if protoimpl.UnsafeEnabled {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PercentageDecisionPolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PercentageDecisionPolicy) ProtoMessage() {}
// Deprecated: Use PercentageDecisionPolicy.ProtoReflect.Descriptor instead.
func (*PercentageDecisionPolicy) Descriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{3}
}
func (x *PercentageDecisionPolicy) GetPercentage() string {
if x != nil {
return x.Percentage
}
return ""
}
func (x *PercentageDecisionPolicy) GetTimeout() *durationpb.Duration {
if x != nil {
return x.Timeout
}
return nil
}
// GroupInfo represents the high-level on-chain information for a group.
type GroupInfo struct {
state protoimpl.MessageState
@@ -6622,7 +7168,7 @@ type GroupInfo struct {
func (x *GroupInfo) Reset() {
*x = GroupInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[3]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -6636,7 +7182,7 @@ func (*GroupInfo) ProtoMessage() {}
// Deprecated: Use GroupInfo.ProtoReflect.Descriptor instead.
func (*GroupInfo) Descriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{3}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{4}
}
func (x *GroupInfo) GetGroupId() uint64 {
@@ -6696,7 +7242,7 @@ type GroupMember struct {
func (x *GroupMember) Reset() {
*x = GroupMember{}
if protoimpl.UnsafeEnabled {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[4]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -6710,7 +7256,7 @@ func (*GroupMember) ProtoMessage() {}
// Deprecated: Use GroupMember.ProtoReflect.Descriptor instead.
func (*GroupMember) Descriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{4}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{5}
}
func (x *GroupMember) GetGroupId() uint64 {
@@ -6753,7 +7299,7 @@ type GroupPolicyInfo struct {
func (x *GroupPolicyInfo) Reset() {
*x = GroupPolicyInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[5]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -6767,7 +7313,7 @@ func (*GroupPolicyInfo) ProtoMessage() {}
// Deprecated: Use GroupPolicyInfo.ProtoReflect.Descriptor instead.
func (*GroupPolicyInfo) Descriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{5}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{6}
}
func (x *GroupPolicyInfo) GetAddress() string {
@@ -6864,7 +7410,7 @@ type Proposal struct {
func (x *Proposal) Reset() {
*x = Proposal{}
if protoimpl.UnsafeEnabled {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[6]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -6878,7 +7424,7 @@ func (*Proposal) ProtoMessage() {}
// Deprecated: Use Proposal.ProtoReflect.Descriptor instead.
func (*Proposal) Descriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{6}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{7}
}
func (x *Proposal) GetProposalId() uint64 {
@@ -6991,7 +7537,7 @@ type Tally struct {
func (x *Tally) Reset() {
*x = Tally{}
if protoimpl.UnsafeEnabled {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[7]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -7005,7 +7551,7 @@ func (*Tally) ProtoMessage() {}
// Deprecated: Use Tally.ProtoReflect.Descriptor instead.
func (*Tally) Descriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{7}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{8}
}
func (x *Tally) GetYesCount() string {
@@ -7057,7 +7603,7 @@ type Vote struct {
func (x *Vote) Reset() {
*x = Vote{}
if protoimpl.UnsafeEnabled {
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[8]
mi := &file_cosmos_group_v1beta1_types_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -7071,7 +7617,7 @@ func (*Vote) ProtoMessage() {}
// Deprecated: Use Vote.ProtoReflect.Descriptor instead.
func (*Vote) Descriptor() ([]byte, []int) {
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{8}
return file_cosmos_group_v1beta1_types_proto_rawDescGZIP(), []int{9}
}
func (x *Vote) GetProposalId() uint64 {
@@ -7149,6 +7695,15 @@ var file_cosmos_group_v1beta1_types_proto_rawDesc = []byte{
0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x98, 0xdf,
0x1f, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x3a, 0x12, 0xca, 0xb4, 0x2d,
0x0e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,
0x8d, 0x01, 0x0a, 0x18, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x44, 0x65,
0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1e, 0x0a, 0x0a,
0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x07,
0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x98, 0xdf,
0x1f, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x3a, 0x12, 0xca, 0xb4, 0x2d,
0x0e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,
0xf4, 0x01, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a,
0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69,
@@ -7347,47 +7902,49 @@ func file_cosmos_group_v1beta1_types_proto_rawDescGZIP() []byte {
}
var file_cosmos_group_v1beta1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_cosmos_group_v1beta1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_cosmos_group_v1beta1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_cosmos_group_v1beta1_types_proto_goTypes = []interface{}{
(Choice)(0), // 0: cosmos.group.v1beta1.Choice
(Proposal_Status)(0), // 1: cosmos.group.v1beta1.Proposal.Status
(Proposal_Result)(0), // 2: cosmos.group.v1beta1.Proposal.Result
(Proposal_ExecutorResult)(0), // 3: cosmos.group.v1beta1.Proposal.ExecutorResult
(*Member)(nil), // 4: cosmos.group.v1beta1.Member
(*Members)(nil), // 5: cosmos.group.v1beta1.Members
(*ThresholdDecisionPolicy)(nil), // 6: cosmos.group.v1beta1.ThresholdDecisionPolicy
(*GroupInfo)(nil), // 7: cosmos.group.v1beta1.GroupInfo
(*GroupMember)(nil), // 8: cosmos.group.v1beta1.GroupMember
(*GroupPolicyInfo)(nil), // 9: cosmos.group.v1beta1.GroupPolicyInfo
(*Proposal)(nil), // 10: cosmos.group.v1beta1.Proposal
(*Tally)(nil), // 11: cosmos.group.v1beta1.Tally
(*Vote)(nil), // 12: cosmos.group.v1beta1.Vote
(*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
(*durationpb.Duration)(nil), // 14: google.protobuf.Duration
(*anypb.Any)(nil), // 15: google.protobuf.Any
(Choice)(0), // 0: cosmos.group.v1beta1.Choice
(Proposal_Status)(0), // 1: cosmos.group.v1beta1.Proposal.Status
(Proposal_Result)(0), // 2: cosmos.group.v1beta1.Proposal.Result
(Proposal_ExecutorResult)(0), // 3: cosmos.group.v1beta1.Proposal.ExecutorResult
(*Member)(nil), // 4: cosmos.group.v1beta1.Member
(*Members)(nil), // 5: cosmos.group.v1beta1.Members
(*ThresholdDecisionPolicy)(nil), // 6: cosmos.group.v1beta1.ThresholdDecisionPolicy
(*PercentageDecisionPolicy)(nil), // 7: cosmos.group.v1beta1.PercentageDecisionPolicy
(*GroupInfo)(nil), // 8: cosmos.group.v1beta1.GroupInfo
(*GroupMember)(nil), // 9: cosmos.group.v1beta1.GroupMember
(*GroupPolicyInfo)(nil), // 10: cosmos.group.v1beta1.GroupPolicyInfo
(*Proposal)(nil), // 11: cosmos.group.v1beta1.Proposal
(*Tally)(nil), // 12: cosmos.group.v1beta1.Tally
(*Vote)(nil), // 13: cosmos.group.v1beta1.Vote
(*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp
(*durationpb.Duration)(nil), // 15: google.protobuf.Duration
(*anypb.Any)(nil), // 16: google.protobuf.Any
}
var file_cosmos_group_v1beta1_types_proto_depIdxs = []int32{
13, // 0: cosmos.group.v1beta1.Member.added_at:type_name -> google.protobuf.Timestamp
14, // 0: cosmos.group.v1beta1.Member.added_at:type_name -> google.protobuf.Timestamp
4, // 1: cosmos.group.v1beta1.Members.members:type_name -> cosmos.group.v1beta1.Member
14, // 2: cosmos.group.v1beta1.ThresholdDecisionPolicy.timeout:type_name -> google.protobuf.Duration
13, // 3: cosmos.group.v1beta1.GroupInfo.created_at:type_name -> google.protobuf.Timestamp
4, // 4: cosmos.group.v1beta1.GroupMember.member:type_name -> cosmos.group.v1beta1.Member
15, // 5: cosmos.group.v1beta1.GroupPolicyInfo.decision_policy:type_name -> google.protobuf.Any
13, // 6: cosmos.group.v1beta1.GroupPolicyInfo.created_at:type_name -> google.protobuf.Timestamp
13, // 7: cosmos.group.v1beta1.Proposal.submitted_at:type_name -> google.protobuf.Timestamp
1, // 8: cosmos.group.v1beta1.Proposal.status:type_name -> cosmos.group.v1beta1.Proposal.Status
2, // 9: cosmos.group.v1beta1.Proposal.result:type_name -> cosmos.group.v1beta1.Proposal.Result
11, // 10: cosmos.group.v1beta1.Proposal.vote_state:type_name -> cosmos.group.v1beta1.Tally
13, // 11: cosmos.group.v1beta1.Proposal.timeout:type_name -> google.protobuf.Timestamp
3, // 12: cosmos.group.v1beta1.Proposal.executor_result:type_name -> cosmos.group.v1beta1.Proposal.ExecutorResult
15, // 13: cosmos.group.v1beta1.Proposal.msgs:type_name -> google.protobuf.Any
0, // 14: cosmos.group.v1beta1.Vote.choice:type_name -> cosmos.group.v1beta1.Choice
13, // 15: cosmos.group.v1beta1.Vote.submitted_at:type_name -> google.protobuf.Timestamp
16, // [16:16] is the sub-list for method output_type
16, // [16:16] is the sub-list for method input_type
16, // [16:16] is the sub-list for extension type_name
16, // [16:16] is the sub-list for extension extendee
0, // [0:16] is the sub-list for field type_name
15, // 2: cosmos.group.v1beta1.ThresholdDecisionPolicy.timeout:type_name -> google.protobuf.Duration
15, // 3: cosmos.group.v1beta1.PercentageDecisionPolicy.timeout:type_name -> google.protobuf.Duration
14, // 4: cosmos.group.v1beta1.GroupInfo.created_at:type_name -> google.protobuf.Timestamp
4, // 5: cosmos.group.v1beta1.GroupMember.member:type_name -> cosmos.group.v1beta1.Member
16, // 6: cosmos.group.v1beta1.GroupPolicyInfo.decision_policy:type_name -> google.protobuf.Any
14, // 7: cosmos.group.v1beta1.GroupPolicyInfo.created_at:type_name -> google.protobuf.Timestamp
14, // 8: cosmos.group.v1beta1.Proposal.submitted_at:type_name -> google.protobuf.Timestamp
1, // 9: cosmos.group.v1beta1.Proposal.status:type_name -> cosmos.group.v1beta1.Proposal.Status
2, // 10: cosmos.group.v1beta1.Proposal.result:type_name -> cosmos.group.v1beta1.Proposal.Result
12, // 11: cosmos.group.v1beta1.Proposal.vote_state:type_name -> cosmos.group.v1beta1.Tally
14, // 12: cosmos.group.v1beta1.Proposal.timeout:type_name -> google.protobuf.Timestamp
3, // 13: cosmos.group.v1beta1.Proposal.executor_result:type_name -> cosmos.group.v1beta1.Proposal.ExecutorResult
16, // 14: cosmos.group.v1beta1.Proposal.msgs:type_name -> google.protobuf.Any
0, // 15: cosmos.group.v1beta1.Vote.choice:type_name -> cosmos.group.v1beta1.Choice
14, // 16: cosmos.group.v1beta1.Vote.submitted_at:type_name -> google.protobuf.Timestamp
17, // [17:17] is the sub-list for method output_type
17, // [17:17] is the sub-list for method input_type
17, // [17:17] is the sub-list for extension type_name
17, // [17:17] is the sub-list for extension extendee
0, // [0:17] is the sub-list for field type_name
}
func init() { file_cosmos_group_v1beta1_types_proto_init() }
@@ -7433,7 +7990,7 @@ func file_cosmos_group_v1beta1_types_proto_init() {
}
}
file_cosmos_group_v1beta1_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GroupInfo); i {
switch v := v.(*PercentageDecisionPolicy); i {
case 0:
return &v.state
case 1:
@@ -7445,7 +8002,7 @@ func file_cosmos_group_v1beta1_types_proto_init() {
}
}
file_cosmos_group_v1beta1_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GroupMember); i {
switch v := v.(*GroupInfo); i {
case 0:
return &v.state
case 1:
@@ -7457,7 +8014,7 @@ func file_cosmos_group_v1beta1_types_proto_init() {
}
}
file_cosmos_group_v1beta1_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GroupPolicyInfo); i {
switch v := v.(*GroupMember); i {
case 0:
return &v.state
case 1:
@@ -7469,7 +8026,7 @@ func file_cosmos_group_v1beta1_types_proto_init() {
}
}
file_cosmos_group_v1beta1_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Proposal); i {
switch v := v.(*GroupPolicyInfo); i {
case 0:
return &v.state
case 1:
@@ -7481,7 +8038,7 @@ func file_cosmos_group_v1beta1_types_proto_init() {
}
}
file_cosmos_group_v1beta1_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Tally); i {
switch v := v.(*Proposal); i {
case 0:
return &v.state
case 1:
@@ -7493,6 +8050,18 @@ func file_cosmos_group_v1beta1_types_proto_init() {
}
}
file_cosmos_group_v1beta1_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Tally); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cosmos_group_v1beta1_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Vote); i {
case 0:
return &v.state
@@ -7511,7 +8080,7 @@ func file_cosmos_group_v1beta1_types_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cosmos_group_v1beta1_types_proto_rawDesc,
NumEnums: 4,
NumMessages: 9,
NumMessages: 10,
NumExtensions: 0,
NumServices: 0,
},