9066 lines
358 KiB
Go
9066 lines
358 KiB
Go
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
|
package protocolpoolv1
|
|
|
|
import (
|
|
v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
|
|
_ "cosmossdk.io/api/cosmos/msg/v1"
|
|
fmt "fmt"
|
|
_ "github.com/cosmos/cosmos-proto"
|
|
runtime "github.com/cosmos/cosmos-proto/runtime"
|
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoiface "google.golang.org/protobuf/runtime/protoiface"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
io "io"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
var _ protoreflect.List = (*_MsgFundCommunityPool_1_list)(nil)
|
|
|
|
type _MsgFundCommunityPool_1_list struct {
|
|
list *[]*v1beta1.Coin
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) NewElement() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgFundCommunityPool_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_MsgFundCommunityPool protoreflect.MessageDescriptor
|
|
fd_MsgFundCommunityPool_amount protoreflect.FieldDescriptor
|
|
fd_MsgFundCommunityPool_depositor protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgFundCommunityPool = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgFundCommunityPool")
|
|
fd_MsgFundCommunityPool_amount = md_MsgFundCommunityPool.Fields().ByName("amount")
|
|
fd_MsgFundCommunityPool_depositor = md_MsgFundCommunityPool.Fields().ByName("depositor")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgFundCommunityPool)(nil)
|
|
|
|
type fastReflection_MsgFundCommunityPool MsgFundCommunityPool
|
|
|
|
func (x *MsgFundCommunityPool) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgFundCommunityPool)(x)
|
|
}
|
|
|
|
func (x *MsgFundCommunityPool) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[0]
|
|
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_MsgFundCommunityPool_messageType fastReflection_MsgFundCommunityPool_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgFundCommunityPool_messageType{}
|
|
|
|
type fastReflection_MsgFundCommunityPool_messageType struct{}
|
|
|
|
func (x fastReflection_MsgFundCommunityPool_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgFundCommunityPool)(nil)
|
|
}
|
|
func (x fastReflection_MsgFundCommunityPool_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgFundCommunityPool)
|
|
}
|
|
func (x fastReflection_MsgFundCommunityPool_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgFundCommunityPool
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgFundCommunityPool) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgFundCommunityPool
|
|
}
|
|
|
|
// 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_MsgFundCommunityPool) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgFundCommunityPool_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgFundCommunityPool) New() protoreflect.Message {
|
|
return new(fastReflection_MsgFundCommunityPool)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgFundCommunityPool) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgFundCommunityPool)(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_MsgFundCommunityPool) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Amount) != 0 {
|
|
value := protoreflect.ValueOfList(&_MsgFundCommunityPool_1_list{list: &x.Amount})
|
|
if !f(fd_MsgFundCommunityPool_amount, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Depositor != "" {
|
|
value := protoreflect.ValueOfString(x.Depositor)
|
|
if !f(fd_MsgFundCommunityPool_depositor, 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_MsgFundCommunityPool) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.amount":
|
|
return len(x.Amount) != 0
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.depositor":
|
|
return x.Depositor != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPool"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPool 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_MsgFundCommunityPool) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.amount":
|
|
x.Amount = nil
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.depositor":
|
|
x.Depositor = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPool"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPool 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_MsgFundCommunityPool) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.amount":
|
|
if len(x.Amount) == 0 {
|
|
return protoreflect.ValueOfList(&_MsgFundCommunityPool_1_list{})
|
|
}
|
|
listValue := &_MsgFundCommunityPool_1_list{list: &x.Amount}
|
|
return protoreflect.ValueOfList(listValue)
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.depositor":
|
|
value := x.Depositor
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPool"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPool 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_MsgFundCommunityPool) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.amount":
|
|
lv := value.List()
|
|
clv := lv.(*_MsgFundCommunityPool_1_list)
|
|
x.Amount = *clv.list
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.depositor":
|
|
x.Depositor = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPool"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPool 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_MsgFundCommunityPool) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.amount":
|
|
if x.Amount == nil {
|
|
x.Amount = []*v1beta1.Coin{}
|
|
}
|
|
value := &_MsgFundCommunityPool_1_list{list: &x.Amount}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.depositor":
|
|
panic(fmt.Errorf("field depositor of message cosmos.protocolpool.v1.MsgFundCommunityPool is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPool"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPool 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_MsgFundCommunityPool) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.amount":
|
|
list := []*v1beta1.Coin{}
|
|
return protoreflect.ValueOfList(&_MsgFundCommunityPool_1_list{list: &list})
|
|
case "cosmos.protocolpool.v1.MsgFundCommunityPool.depositor":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPool"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPool 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_MsgFundCommunityPool) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgFundCommunityPool", 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_MsgFundCommunityPool) 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_MsgFundCommunityPool) 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_MsgFundCommunityPool) 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_MsgFundCommunityPool) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgFundCommunityPool)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
if len(x.Amount) > 0 {
|
|
for _, e := range x.Amount {
|
|
l = options.Size(e)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
}
|
|
l = len(x.Depositor)
|
|
if l > 0 {
|
|
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().(*MsgFundCommunityPool)
|
|
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 len(x.Depositor) > 0 {
|
|
i -= len(x.Depositor)
|
|
copy(dAtA[i:], x.Depositor)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Depositor)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Amount) > 0 {
|
|
for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Amount[iNdEx])
|
|
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] = 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().(*MsgFundCommunityPool)
|
|
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: MsgFundCommunityPool: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgFundCommunityPool: 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 Amount", 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
|
|
}
|
|
x.Amount = append(x.Amount, &v1beta1.Coin{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Depositor", 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.Depositor = string(dAtA[iNdEx:postIndex])
|
|
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_MsgFundCommunityPoolResponse protoreflect.MessageDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgFundCommunityPoolResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgFundCommunityPoolResponse")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgFundCommunityPoolResponse)(nil)
|
|
|
|
type fastReflection_MsgFundCommunityPoolResponse MsgFundCommunityPoolResponse
|
|
|
|
func (x *MsgFundCommunityPoolResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgFundCommunityPoolResponse)(x)
|
|
}
|
|
|
|
func (x *MsgFundCommunityPoolResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[1]
|
|
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_MsgFundCommunityPoolResponse_messageType fastReflection_MsgFundCommunityPoolResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgFundCommunityPoolResponse_messageType{}
|
|
|
|
type fastReflection_MsgFundCommunityPoolResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgFundCommunityPoolResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgFundCommunityPoolResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgFundCommunityPoolResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgFundCommunityPoolResponse)
|
|
}
|
|
func (x fastReflection_MsgFundCommunityPoolResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgFundCommunityPoolResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgFundCommunityPoolResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgFundCommunityPoolResponse
|
|
}
|
|
|
|
// 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_MsgFundCommunityPoolResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgFundCommunityPoolResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgFundCommunityPoolResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgFundCommunityPoolResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgFundCommunityPoolResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgFundCommunityPoolResponse)(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_MsgFundCommunityPoolResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
}
|
|
|
|
// 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_MsgFundCommunityPoolResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPoolResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPoolResponse 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_MsgFundCommunityPoolResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPoolResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPoolResponse 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_MsgFundCommunityPoolResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPoolResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPoolResponse 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_MsgFundCommunityPoolResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPoolResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPoolResponse 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_MsgFundCommunityPoolResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPoolResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPoolResponse 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_MsgFundCommunityPoolResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgFundCommunityPoolResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgFundCommunityPoolResponse 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_MsgFundCommunityPoolResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgFundCommunityPoolResponse", 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_MsgFundCommunityPoolResponse) 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_MsgFundCommunityPoolResponse) 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_MsgFundCommunityPoolResponse) 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_MsgFundCommunityPoolResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgFundCommunityPoolResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = 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().(*MsgFundCommunityPoolResponse)
|
|
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 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().(*MsgFundCommunityPoolResponse)
|
|
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: MsgFundCommunityPoolResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgFundCommunityPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
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 _ protoreflect.List = (*_MsgCommunityPoolSpend_3_list)(nil)
|
|
|
|
type _MsgCommunityPoolSpend_3_list struct {
|
|
list *[]*v1beta1.Coin
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) AppendMutable() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) NewElement() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgCommunityPoolSpend_3_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_MsgCommunityPoolSpend protoreflect.MessageDescriptor
|
|
fd_MsgCommunityPoolSpend_authority protoreflect.FieldDescriptor
|
|
fd_MsgCommunityPoolSpend_recipient protoreflect.FieldDescriptor
|
|
fd_MsgCommunityPoolSpend_amount protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgCommunityPoolSpend = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgCommunityPoolSpend")
|
|
fd_MsgCommunityPoolSpend_authority = md_MsgCommunityPoolSpend.Fields().ByName("authority")
|
|
fd_MsgCommunityPoolSpend_recipient = md_MsgCommunityPoolSpend.Fields().ByName("recipient")
|
|
fd_MsgCommunityPoolSpend_amount = md_MsgCommunityPoolSpend.Fields().ByName("amount")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgCommunityPoolSpend)(nil)
|
|
|
|
type fastReflection_MsgCommunityPoolSpend MsgCommunityPoolSpend
|
|
|
|
func (x *MsgCommunityPoolSpend) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgCommunityPoolSpend)(x)
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpend) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[2]
|
|
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_MsgCommunityPoolSpend_messageType fastReflection_MsgCommunityPoolSpend_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgCommunityPoolSpend_messageType{}
|
|
|
|
type fastReflection_MsgCommunityPoolSpend_messageType struct{}
|
|
|
|
func (x fastReflection_MsgCommunityPoolSpend_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgCommunityPoolSpend)(nil)
|
|
}
|
|
func (x fastReflection_MsgCommunityPoolSpend_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCommunityPoolSpend)
|
|
}
|
|
func (x fastReflection_MsgCommunityPoolSpend_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCommunityPoolSpend
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgCommunityPoolSpend) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCommunityPoolSpend
|
|
}
|
|
|
|
// 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_MsgCommunityPoolSpend) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgCommunityPoolSpend_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgCommunityPoolSpend) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCommunityPoolSpend)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgCommunityPoolSpend) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgCommunityPoolSpend)(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_MsgCommunityPoolSpend) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Authority != "" {
|
|
value := protoreflect.ValueOfString(x.Authority)
|
|
if !f(fd_MsgCommunityPoolSpend_authority, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Recipient != "" {
|
|
value := protoreflect.ValueOfString(x.Recipient)
|
|
if !f(fd_MsgCommunityPoolSpend_recipient, value) {
|
|
return
|
|
}
|
|
}
|
|
if len(x.Amount) != 0 {
|
|
value := protoreflect.ValueOfList(&_MsgCommunityPoolSpend_3_list{list: &x.Amount})
|
|
if !f(fd_MsgCommunityPoolSpend_amount, 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_MsgCommunityPoolSpend) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.authority":
|
|
return x.Authority != ""
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.recipient":
|
|
return x.Recipient != ""
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.amount":
|
|
return len(x.Amount) != 0
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpend"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpend 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_MsgCommunityPoolSpend) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.authority":
|
|
x.Authority = ""
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.recipient":
|
|
x.Recipient = ""
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.amount":
|
|
x.Amount = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpend"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpend 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_MsgCommunityPoolSpend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.authority":
|
|
value := x.Authority
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.recipient":
|
|
value := x.Recipient
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.amount":
|
|
if len(x.Amount) == 0 {
|
|
return protoreflect.ValueOfList(&_MsgCommunityPoolSpend_3_list{})
|
|
}
|
|
listValue := &_MsgCommunityPoolSpend_3_list{list: &x.Amount}
|
|
return protoreflect.ValueOfList(listValue)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpend"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpend 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_MsgCommunityPoolSpend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.authority":
|
|
x.Authority = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.recipient":
|
|
x.Recipient = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.amount":
|
|
lv := value.List()
|
|
clv := lv.(*_MsgCommunityPoolSpend_3_list)
|
|
x.Amount = *clv.list
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpend"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpend 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_MsgCommunityPoolSpend) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.amount":
|
|
if x.Amount == nil {
|
|
x.Amount = []*v1beta1.Coin{}
|
|
}
|
|
value := &_MsgCommunityPoolSpend_3_list{list: &x.Amount}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.authority":
|
|
panic(fmt.Errorf("field authority of message cosmos.protocolpool.v1.MsgCommunityPoolSpend is not mutable"))
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.recipient":
|
|
panic(fmt.Errorf("field recipient of message cosmos.protocolpool.v1.MsgCommunityPoolSpend is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpend"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpend 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_MsgCommunityPoolSpend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.authority":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.recipient":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgCommunityPoolSpend.amount":
|
|
list := []*v1beta1.Coin{}
|
|
return protoreflect.ValueOfList(&_MsgCommunityPoolSpend_3_list{list: &list})
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpend"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpend 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_MsgCommunityPoolSpend) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgCommunityPoolSpend", 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_MsgCommunityPoolSpend) 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_MsgCommunityPoolSpend) 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_MsgCommunityPoolSpend) 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_MsgCommunityPoolSpend) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgCommunityPoolSpend)
|
|
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.Authority)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
l = len(x.Recipient)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if len(x.Amount) > 0 {
|
|
for _, e := range x.Amount {
|
|
l = options.Size(e)
|
|
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().(*MsgCommunityPoolSpend)
|
|
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 len(x.Amount) > 0 {
|
|
for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Amount[iNdEx])
|
|
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] = 0x1a
|
|
}
|
|
}
|
|
if len(x.Recipient) > 0 {
|
|
i -= len(x.Recipient)
|
|
copy(dAtA[i:], x.Recipient)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Authority) > 0 {
|
|
i -= len(x.Authority)
|
|
copy(dAtA[i:], x.Authority)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
|
|
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().(*MsgCommunityPoolSpend)
|
|
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: MsgCommunityPoolSpend: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCommunityPoolSpend: 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 Authority", 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.Authority = 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 Recipient", 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.Recipient = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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
|
|
}
|
|
x.Amount = append(x.Amount, &v1beta1.Coin{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); 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_MsgCommunityPoolSpendResponse protoreflect.MessageDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgCommunityPoolSpendResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgCommunityPoolSpendResponse")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgCommunityPoolSpendResponse)(nil)
|
|
|
|
type fastReflection_MsgCommunityPoolSpendResponse MsgCommunityPoolSpendResponse
|
|
|
|
func (x *MsgCommunityPoolSpendResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgCommunityPoolSpendResponse)(x)
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpendResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_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_MsgCommunityPoolSpendResponse_messageType fastReflection_MsgCommunityPoolSpendResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgCommunityPoolSpendResponse_messageType{}
|
|
|
|
type fastReflection_MsgCommunityPoolSpendResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgCommunityPoolSpendResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgCommunityPoolSpendResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgCommunityPoolSpendResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCommunityPoolSpendResponse)
|
|
}
|
|
func (x fastReflection_MsgCommunityPoolSpendResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCommunityPoolSpendResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgCommunityPoolSpendResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCommunityPoolSpendResponse
|
|
}
|
|
|
|
// 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_MsgCommunityPoolSpendResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgCommunityPoolSpendResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgCommunityPoolSpendResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCommunityPoolSpendResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgCommunityPoolSpendResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgCommunityPoolSpendResponse)(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_MsgCommunityPoolSpendResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
}
|
|
|
|
// 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_MsgCommunityPoolSpendResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse 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_MsgCommunityPoolSpendResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse 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_MsgCommunityPoolSpendResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse 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_MsgCommunityPoolSpendResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse 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_MsgCommunityPoolSpendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse 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_MsgCommunityPoolSpendResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse 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_MsgCommunityPoolSpendResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse", 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_MsgCommunityPoolSpendResponse) 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_MsgCommunityPoolSpendResponse) 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_MsgCommunityPoolSpendResponse) 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_MsgCommunityPoolSpendResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgCommunityPoolSpendResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = 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().(*MsgCommunityPoolSpendResponse)
|
|
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 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().(*MsgCommunityPoolSpendResponse)
|
|
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: MsgCommunityPoolSpendResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCommunityPoolSpendResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
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_MsgSubmitBudgetProposal protoreflect.MessageDescriptor
|
|
fd_MsgSubmitBudgetProposal_authority protoreflect.FieldDescriptor
|
|
fd_MsgSubmitBudgetProposal_recipient_address protoreflect.FieldDescriptor
|
|
fd_MsgSubmitBudgetProposal_budget_per_tranche protoreflect.FieldDescriptor
|
|
fd_MsgSubmitBudgetProposal_start_time protoreflect.FieldDescriptor
|
|
fd_MsgSubmitBudgetProposal_tranches protoreflect.FieldDescriptor
|
|
fd_MsgSubmitBudgetProposal_period protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgSubmitBudgetProposal = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgSubmitBudgetProposal")
|
|
fd_MsgSubmitBudgetProposal_authority = md_MsgSubmitBudgetProposal.Fields().ByName("authority")
|
|
fd_MsgSubmitBudgetProposal_recipient_address = md_MsgSubmitBudgetProposal.Fields().ByName("recipient_address")
|
|
fd_MsgSubmitBudgetProposal_budget_per_tranche = md_MsgSubmitBudgetProposal.Fields().ByName("budget_per_tranche")
|
|
fd_MsgSubmitBudgetProposal_start_time = md_MsgSubmitBudgetProposal.Fields().ByName("start_time")
|
|
fd_MsgSubmitBudgetProposal_tranches = md_MsgSubmitBudgetProposal.Fields().ByName("tranches")
|
|
fd_MsgSubmitBudgetProposal_period = md_MsgSubmitBudgetProposal.Fields().ByName("period")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgSubmitBudgetProposal)(nil)
|
|
|
|
type fastReflection_MsgSubmitBudgetProposal MsgSubmitBudgetProposal
|
|
|
|
func (x *MsgSubmitBudgetProposal) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgSubmitBudgetProposal)(x)
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[4]
|
|
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_MsgSubmitBudgetProposal_messageType fastReflection_MsgSubmitBudgetProposal_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgSubmitBudgetProposal_messageType{}
|
|
|
|
type fastReflection_MsgSubmitBudgetProposal_messageType struct{}
|
|
|
|
func (x fastReflection_MsgSubmitBudgetProposal_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgSubmitBudgetProposal)(nil)
|
|
}
|
|
func (x fastReflection_MsgSubmitBudgetProposal_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgSubmitBudgetProposal)
|
|
}
|
|
func (x fastReflection_MsgSubmitBudgetProposal_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgSubmitBudgetProposal
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgSubmitBudgetProposal) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgSubmitBudgetProposal
|
|
}
|
|
|
|
// 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_MsgSubmitBudgetProposal) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgSubmitBudgetProposal_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgSubmitBudgetProposal) New() protoreflect.Message {
|
|
return new(fastReflection_MsgSubmitBudgetProposal)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgSubmitBudgetProposal) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgSubmitBudgetProposal)(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_MsgSubmitBudgetProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Authority != "" {
|
|
value := protoreflect.ValueOfString(x.Authority)
|
|
if !f(fd_MsgSubmitBudgetProposal_authority, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.RecipientAddress != "" {
|
|
value := protoreflect.ValueOfString(x.RecipientAddress)
|
|
if !f(fd_MsgSubmitBudgetProposal_recipient_address, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.BudgetPerTranche != nil {
|
|
value := protoreflect.ValueOfMessage(x.BudgetPerTranche.ProtoReflect())
|
|
if !f(fd_MsgSubmitBudgetProposal_budget_per_tranche, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.StartTime != nil {
|
|
value := protoreflect.ValueOfMessage(x.StartTime.ProtoReflect())
|
|
if !f(fd_MsgSubmitBudgetProposal_start_time, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Tranches != uint64(0) {
|
|
value := protoreflect.ValueOfUint64(x.Tranches)
|
|
if !f(fd_MsgSubmitBudgetProposal_tranches, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Period != nil {
|
|
value := protoreflect.ValueOfMessage(x.Period.ProtoReflect())
|
|
if !f(fd_MsgSubmitBudgetProposal_period, 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_MsgSubmitBudgetProposal) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.authority":
|
|
return x.Authority != ""
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.recipient_address":
|
|
return x.RecipientAddress != ""
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.budget_per_tranche":
|
|
return x.BudgetPerTranche != nil
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.start_time":
|
|
return x.StartTime != nil
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.tranches":
|
|
return x.Tranches != uint64(0)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.period":
|
|
return x.Period != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposal"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposal 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_MsgSubmitBudgetProposal) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.authority":
|
|
x.Authority = ""
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.recipient_address":
|
|
x.RecipientAddress = ""
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.budget_per_tranche":
|
|
x.BudgetPerTranche = nil
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.start_time":
|
|
x.StartTime = nil
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.tranches":
|
|
x.Tranches = uint64(0)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.period":
|
|
x.Period = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposal"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposal 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_MsgSubmitBudgetProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.authority":
|
|
value := x.Authority
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.recipient_address":
|
|
value := x.RecipientAddress
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.budget_per_tranche":
|
|
value := x.BudgetPerTranche
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.start_time":
|
|
value := x.StartTime
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.tranches":
|
|
value := x.Tranches
|
|
return protoreflect.ValueOfUint64(value)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.period":
|
|
value := x.Period
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposal"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposal 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_MsgSubmitBudgetProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.authority":
|
|
x.Authority = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.recipient_address":
|
|
x.RecipientAddress = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.budget_per_tranche":
|
|
x.BudgetPerTranche = value.Message().Interface().(*v1beta1.Coin)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.start_time":
|
|
x.StartTime = value.Message().Interface().(*timestamppb.Timestamp)
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.tranches":
|
|
x.Tranches = value.Uint()
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.period":
|
|
x.Period = value.Message().Interface().(*durationpb.Duration)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposal"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposal 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_MsgSubmitBudgetProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.budget_per_tranche":
|
|
if x.BudgetPerTranche == nil {
|
|
x.BudgetPerTranche = new(v1beta1.Coin)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.BudgetPerTranche.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.start_time":
|
|
if x.StartTime == nil {
|
|
x.StartTime = new(timestamppb.Timestamp)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.StartTime.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.period":
|
|
if x.Period == nil {
|
|
x.Period = new(durationpb.Duration)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Period.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.authority":
|
|
panic(fmt.Errorf("field authority of message cosmos.protocolpool.v1.MsgSubmitBudgetProposal is not mutable"))
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.recipient_address":
|
|
panic(fmt.Errorf("field recipient_address of message cosmos.protocolpool.v1.MsgSubmitBudgetProposal is not mutable"))
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.tranches":
|
|
panic(fmt.Errorf("field tranches of message cosmos.protocolpool.v1.MsgSubmitBudgetProposal is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposal"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposal 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_MsgSubmitBudgetProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.authority":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.recipient_address":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.budget_per_tranche":
|
|
m := new(v1beta1.Coin)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.start_time":
|
|
m := new(timestamppb.Timestamp)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.tranches":
|
|
return protoreflect.ValueOfUint64(uint64(0))
|
|
case "cosmos.protocolpool.v1.MsgSubmitBudgetProposal.period":
|
|
m := new(durationpb.Duration)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposal"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposal 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_MsgSubmitBudgetProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgSubmitBudgetProposal", 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_MsgSubmitBudgetProposal) 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_MsgSubmitBudgetProposal) 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_MsgSubmitBudgetProposal) 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_MsgSubmitBudgetProposal) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgSubmitBudgetProposal)
|
|
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.Authority)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
l = len(x.RecipientAddress)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.BudgetPerTranche != nil {
|
|
l = options.Size(x.BudgetPerTranche)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.StartTime != nil {
|
|
l = options.Size(x.StartTime)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.Tranches != 0 {
|
|
n += 1 + runtime.Sov(uint64(x.Tranches))
|
|
}
|
|
if x.Period != nil {
|
|
l = options.Size(x.Period)
|
|
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().(*MsgSubmitBudgetProposal)
|
|
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.Period != nil {
|
|
encoded, err := options.Marshal(x.Period)
|
|
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] = 0x32
|
|
}
|
|
if x.Tranches != 0 {
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.Tranches))
|
|
i--
|
|
dAtA[i] = 0x28
|
|
}
|
|
if x.StartTime != nil {
|
|
encoded, err := options.Marshal(x.StartTime)
|
|
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] = 0x22
|
|
}
|
|
if x.BudgetPerTranche != nil {
|
|
encoded, err := options.Marshal(x.BudgetPerTranche)
|
|
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] = 0x1a
|
|
}
|
|
if len(x.RecipientAddress) > 0 {
|
|
i -= len(x.RecipientAddress)
|
|
copy(dAtA[i:], x.RecipientAddress)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecipientAddress)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Authority) > 0 {
|
|
i -= len(x.Authority)
|
|
copy(dAtA[i:], x.Authority)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
|
|
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().(*MsgSubmitBudgetProposal)
|
|
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: MsgSubmitBudgetProposal: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitBudgetProposal: 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 Authority", 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.Authority = 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 RecipientAddress", 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.RecipientAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BudgetPerTranche", 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.BudgetPerTranche == nil {
|
|
x.BudgetPerTranche = &v1beta1.Coin{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BudgetPerTranche); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StartTime", 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.StartTime == nil {
|
|
x.StartTime = ×tamppb.Timestamp{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StartTime); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Tranches", wireType)
|
|
}
|
|
x.Tranches = 0
|
|
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++
|
|
x.Tranches |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 6:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Period", 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.Period == nil {
|
|
x.Period = &durationpb.Duration{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Period); 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_MsgSubmitBudgetProposalResponse protoreflect.MessageDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgSubmitBudgetProposalResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgSubmitBudgetProposalResponse")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgSubmitBudgetProposalResponse)(nil)
|
|
|
|
type fastReflection_MsgSubmitBudgetProposalResponse MsgSubmitBudgetProposalResponse
|
|
|
|
func (x *MsgSubmitBudgetProposalResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgSubmitBudgetProposalResponse)(x)
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposalResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[5]
|
|
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_MsgSubmitBudgetProposalResponse_messageType fastReflection_MsgSubmitBudgetProposalResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgSubmitBudgetProposalResponse_messageType{}
|
|
|
|
type fastReflection_MsgSubmitBudgetProposalResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgSubmitBudgetProposalResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgSubmitBudgetProposalResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgSubmitBudgetProposalResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgSubmitBudgetProposalResponse)
|
|
}
|
|
func (x fastReflection_MsgSubmitBudgetProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgSubmitBudgetProposalResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgSubmitBudgetProposalResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgSubmitBudgetProposalResponse
|
|
}
|
|
|
|
// 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_MsgSubmitBudgetProposalResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgSubmitBudgetProposalResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgSubmitBudgetProposalResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgSubmitBudgetProposalResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgSubmitBudgetProposalResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgSubmitBudgetProposalResponse)(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_MsgSubmitBudgetProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
}
|
|
|
|
// 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_MsgSubmitBudgetProposalResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse 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_MsgSubmitBudgetProposalResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse 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_MsgSubmitBudgetProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse 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_MsgSubmitBudgetProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse 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_MsgSubmitBudgetProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse 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_MsgSubmitBudgetProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse 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_MsgSubmitBudgetProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse", 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_MsgSubmitBudgetProposalResponse) 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_MsgSubmitBudgetProposalResponse) 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_MsgSubmitBudgetProposalResponse) 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_MsgSubmitBudgetProposalResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgSubmitBudgetProposalResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = 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().(*MsgSubmitBudgetProposalResponse)
|
|
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 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().(*MsgSubmitBudgetProposalResponse)
|
|
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: MsgSubmitBudgetProposalResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitBudgetProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
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_MsgClaimBudget protoreflect.MessageDescriptor
|
|
fd_MsgClaimBudget_recipient_address protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgClaimBudget = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgClaimBudget")
|
|
fd_MsgClaimBudget_recipient_address = md_MsgClaimBudget.Fields().ByName("recipient_address")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgClaimBudget)(nil)
|
|
|
|
type fastReflection_MsgClaimBudget MsgClaimBudget
|
|
|
|
func (x *MsgClaimBudget) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgClaimBudget)(x)
|
|
}
|
|
|
|
func (x *MsgClaimBudget) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[6]
|
|
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_MsgClaimBudget_messageType fastReflection_MsgClaimBudget_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgClaimBudget_messageType{}
|
|
|
|
type fastReflection_MsgClaimBudget_messageType struct{}
|
|
|
|
func (x fastReflection_MsgClaimBudget_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgClaimBudget)(nil)
|
|
}
|
|
func (x fastReflection_MsgClaimBudget_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgClaimBudget)
|
|
}
|
|
func (x fastReflection_MsgClaimBudget_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgClaimBudget
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgClaimBudget) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgClaimBudget
|
|
}
|
|
|
|
// 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_MsgClaimBudget) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgClaimBudget_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgClaimBudget) New() protoreflect.Message {
|
|
return new(fastReflection_MsgClaimBudget)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgClaimBudget) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgClaimBudget)(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_MsgClaimBudget) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.RecipientAddress != "" {
|
|
value := protoreflect.ValueOfString(x.RecipientAddress)
|
|
if !f(fd_MsgClaimBudget_recipient_address, 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_MsgClaimBudget) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudget.recipient_address":
|
|
return x.RecipientAddress != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudget"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudget 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_MsgClaimBudget) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudget.recipient_address":
|
|
x.RecipientAddress = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudget"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudget 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_MsgClaimBudget) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudget.recipient_address":
|
|
value := x.RecipientAddress
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudget"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudget 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_MsgClaimBudget) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudget.recipient_address":
|
|
x.RecipientAddress = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudget"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudget 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_MsgClaimBudget) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudget.recipient_address":
|
|
panic(fmt.Errorf("field recipient_address of message cosmos.protocolpool.v1.MsgClaimBudget is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudget"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudget 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_MsgClaimBudget) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudget.recipient_address":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudget"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudget 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_MsgClaimBudget) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgClaimBudget", 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_MsgClaimBudget) 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_MsgClaimBudget) 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_MsgClaimBudget) 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_MsgClaimBudget) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgClaimBudget)
|
|
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.RecipientAddress)
|
|
if l > 0 {
|
|
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().(*MsgClaimBudget)
|
|
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 len(x.RecipientAddress) > 0 {
|
|
i -= len(x.RecipientAddress)
|
|
copy(dAtA[i:], x.RecipientAddress)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecipientAddress)))
|
|
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().(*MsgClaimBudget)
|
|
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: MsgClaimBudget: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimBudget: 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 RecipientAddress", 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.RecipientAddress = string(dAtA[iNdEx:postIndex])
|
|
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_MsgClaimBudgetResponse protoreflect.MessageDescriptor
|
|
fd_MsgClaimBudgetResponse_amount protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgClaimBudgetResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgClaimBudgetResponse")
|
|
fd_MsgClaimBudgetResponse_amount = md_MsgClaimBudgetResponse.Fields().ByName("amount")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgClaimBudgetResponse)(nil)
|
|
|
|
type fastReflection_MsgClaimBudgetResponse MsgClaimBudgetResponse
|
|
|
|
func (x *MsgClaimBudgetResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgClaimBudgetResponse)(x)
|
|
}
|
|
|
|
func (x *MsgClaimBudgetResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[7]
|
|
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_MsgClaimBudgetResponse_messageType fastReflection_MsgClaimBudgetResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgClaimBudgetResponse_messageType{}
|
|
|
|
type fastReflection_MsgClaimBudgetResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgClaimBudgetResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgClaimBudgetResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgClaimBudgetResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgClaimBudgetResponse)
|
|
}
|
|
func (x fastReflection_MsgClaimBudgetResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgClaimBudgetResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgClaimBudgetResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgClaimBudgetResponse
|
|
}
|
|
|
|
// 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_MsgClaimBudgetResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgClaimBudgetResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgClaimBudgetResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgClaimBudgetResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgClaimBudgetResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgClaimBudgetResponse)(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_MsgClaimBudgetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Amount != nil {
|
|
value := protoreflect.ValueOfMessage(x.Amount.ProtoReflect())
|
|
if !f(fd_MsgClaimBudgetResponse_amount, 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_MsgClaimBudgetResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudgetResponse.amount":
|
|
return x.Amount != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudgetResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudgetResponse 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_MsgClaimBudgetResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudgetResponse.amount":
|
|
x.Amount = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudgetResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudgetResponse 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_MsgClaimBudgetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudgetResponse.amount":
|
|
value := x.Amount
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudgetResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudgetResponse 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_MsgClaimBudgetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudgetResponse.amount":
|
|
x.Amount = value.Message().Interface().(*v1beta1.Coin)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudgetResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudgetResponse 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_MsgClaimBudgetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudgetResponse.amount":
|
|
if x.Amount == nil {
|
|
x.Amount = new(v1beta1.Coin)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Amount.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudgetResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudgetResponse 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_MsgClaimBudgetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgClaimBudgetResponse.amount":
|
|
m := new(v1beta1.Coin)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgClaimBudgetResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgClaimBudgetResponse 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_MsgClaimBudgetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgClaimBudgetResponse", 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_MsgClaimBudgetResponse) 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_MsgClaimBudgetResponse) 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_MsgClaimBudgetResponse) 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_MsgClaimBudgetResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgClaimBudgetResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
if x.Amount != nil {
|
|
l = options.Size(x.Amount)
|
|
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().(*MsgClaimBudgetResponse)
|
|
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.Amount != nil {
|
|
encoded, err := options.Marshal(x.Amount)
|
|
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] = 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().(*MsgClaimBudgetResponse)
|
|
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: MsgClaimBudgetResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimBudgetResponse: 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 Amount", 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.Amount == nil {
|
|
x.Amount = &v1beta1.Coin{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount); 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_MsgCreateContinuousFund protoreflect.MessageDescriptor
|
|
fd_MsgCreateContinuousFund_authority protoreflect.FieldDescriptor
|
|
fd_MsgCreateContinuousFund_recipient protoreflect.FieldDescriptor
|
|
fd_MsgCreateContinuousFund_percentage protoreflect.FieldDescriptor
|
|
fd_MsgCreateContinuousFund_expiry protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgCreateContinuousFund = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgCreateContinuousFund")
|
|
fd_MsgCreateContinuousFund_authority = md_MsgCreateContinuousFund.Fields().ByName("authority")
|
|
fd_MsgCreateContinuousFund_recipient = md_MsgCreateContinuousFund.Fields().ByName("recipient")
|
|
fd_MsgCreateContinuousFund_percentage = md_MsgCreateContinuousFund.Fields().ByName("percentage")
|
|
fd_MsgCreateContinuousFund_expiry = md_MsgCreateContinuousFund.Fields().ByName("expiry")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgCreateContinuousFund)(nil)
|
|
|
|
type fastReflection_MsgCreateContinuousFund MsgCreateContinuousFund
|
|
|
|
func (x *MsgCreateContinuousFund) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgCreateContinuousFund)(x)
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFund) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[8]
|
|
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_MsgCreateContinuousFund_messageType fastReflection_MsgCreateContinuousFund_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgCreateContinuousFund_messageType{}
|
|
|
|
type fastReflection_MsgCreateContinuousFund_messageType struct{}
|
|
|
|
func (x fastReflection_MsgCreateContinuousFund_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgCreateContinuousFund)(nil)
|
|
}
|
|
func (x fastReflection_MsgCreateContinuousFund_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCreateContinuousFund)
|
|
}
|
|
func (x fastReflection_MsgCreateContinuousFund_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCreateContinuousFund
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgCreateContinuousFund) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCreateContinuousFund
|
|
}
|
|
|
|
// 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_MsgCreateContinuousFund) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgCreateContinuousFund_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgCreateContinuousFund) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCreateContinuousFund)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgCreateContinuousFund) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgCreateContinuousFund)(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_MsgCreateContinuousFund) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Authority != "" {
|
|
value := protoreflect.ValueOfString(x.Authority)
|
|
if !f(fd_MsgCreateContinuousFund_authority, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Recipient != "" {
|
|
value := protoreflect.ValueOfString(x.Recipient)
|
|
if !f(fd_MsgCreateContinuousFund_recipient, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Percentage != "" {
|
|
value := protoreflect.ValueOfString(x.Percentage)
|
|
if !f(fd_MsgCreateContinuousFund_percentage, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Expiry != nil {
|
|
value := protoreflect.ValueOfMessage(x.Expiry.ProtoReflect())
|
|
if !f(fd_MsgCreateContinuousFund_expiry, 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_MsgCreateContinuousFund) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.authority":
|
|
return x.Authority != ""
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.recipient":
|
|
return x.Recipient != ""
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.percentage":
|
|
return x.Percentage != ""
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.expiry":
|
|
return x.Expiry != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFund 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_MsgCreateContinuousFund) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.authority":
|
|
x.Authority = ""
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.recipient":
|
|
x.Recipient = ""
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.percentage":
|
|
x.Percentage = ""
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.expiry":
|
|
x.Expiry = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFund 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_MsgCreateContinuousFund) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.authority":
|
|
value := x.Authority
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.recipient":
|
|
value := x.Recipient
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.percentage":
|
|
value := x.Percentage
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.expiry":
|
|
value := x.Expiry
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFund 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_MsgCreateContinuousFund) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.authority":
|
|
x.Authority = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.recipient":
|
|
x.Recipient = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.percentage":
|
|
x.Percentage = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.expiry":
|
|
x.Expiry = value.Message().Interface().(*timestamppb.Timestamp)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFund 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_MsgCreateContinuousFund) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.expiry":
|
|
if x.Expiry == nil {
|
|
x.Expiry = new(timestamppb.Timestamp)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Expiry.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.authority":
|
|
panic(fmt.Errorf("field authority of message cosmos.protocolpool.v1.MsgCreateContinuousFund is not mutable"))
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.recipient":
|
|
panic(fmt.Errorf("field recipient of message cosmos.protocolpool.v1.MsgCreateContinuousFund is not mutable"))
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.percentage":
|
|
panic(fmt.Errorf("field percentage of message cosmos.protocolpool.v1.MsgCreateContinuousFund is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFund 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_MsgCreateContinuousFund) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.authority":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.recipient":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.percentage":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgCreateContinuousFund.expiry":
|
|
m := new(timestamppb.Timestamp)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFund 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_MsgCreateContinuousFund) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgCreateContinuousFund", 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_MsgCreateContinuousFund) 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_MsgCreateContinuousFund) 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_MsgCreateContinuousFund) 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_MsgCreateContinuousFund) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgCreateContinuousFund)
|
|
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.Authority)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
l = len(x.Recipient)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
l = len(x.Percentage)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.Expiry != nil {
|
|
l = options.Size(x.Expiry)
|
|
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().(*MsgCreateContinuousFund)
|
|
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.Expiry != nil {
|
|
encoded, err := options.Marshal(x.Expiry)
|
|
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] = 0x22
|
|
}
|
|
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] = 0x1a
|
|
}
|
|
if len(x.Recipient) > 0 {
|
|
i -= len(x.Recipient)
|
|
copy(dAtA[i:], x.Recipient)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Authority) > 0 {
|
|
i -= len(x.Authority)
|
|
copy(dAtA[i:], x.Authority)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
|
|
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().(*MsgCreateContinuousFund)
|
|
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: MsgCreateContinuousFund: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContinuousFund: 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 Authority", 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.Authority = 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 Recipient", 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.Recipient = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
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 4:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Expiry", 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.Expiry == nil {
|
|
x.Expiry = ×tamppb.Timestamp{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Expiry); 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_MsgCreateContinuousFundResponse protoreflect.MessageDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgCreateContinuousFundResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgCreateContinuousFundResponse")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgCreateContinuousFundResponse)(nil)
|
|
|
|
type fastReflection_MsgCreateContinuousFundResponse MsgCreateContinuousFundResponse
|
|
|
|
func (x *MsgCreateContinuousFundResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgCreateContinuousFundResponse)(x)
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFundResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[9]
|
|
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_MsgCreateContinuousFundResponse_messageType fastReflection_MsgCreateContinuousFundResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgCreateContinuousFundResponse_messageType{}
|
|
|
|
type fastReflection_MsgCreateContinuousFundResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgCreateContinuousFundResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgCreateContinuousFundResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgCreateContinuousFundResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCreateContinuousFundResponse)
|
|
}
|
|
func (x fastReflection_MsgCreateContinuousFundResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCreateContinuousFundResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgCreateContinuousFundResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCreateContinuousFundResponse
|
|
}
|
|
|
|
// 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_MsgCreateContinuousFundResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgCreateContinuousFundResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgCreateContinuousFundResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCreateContinuousFundResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgCreateContinuousFundResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgCreateContinuousFundResponse)(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_MsgCreateContinuousFundResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
}
|
|
|
|
// 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_MsgCreateContinuousFundResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFundResponse 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_MsgCreateContinuousFundResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFundResponse 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_MsgCreateContinuousFundResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFundResponse 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_MsgCreateContinuousFundResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFundResponse 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_MsgCreateContinuousFundResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFundResponse 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_MsgCreateContinuousFundResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCreateContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCreateContinuousFundResponse 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_MsgCreateContinuousFundResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgCreateContinuousFundResponse", 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_MsgCreateContinuousFundResponse) 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_MsgCreateContinuousFundResponse) 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_MsgCreateContinuousFundResponse) 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_MsgCreateContinuousFundResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgCreateContinuousFundResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = 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().(*MsgCreateContinuousFundResponse)
|
|
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 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().(*MsgCreateContinuousFundResponse)
|
|
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: MsgCreateContinuousFundResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateContinuousFundResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
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_MsgCancelContinuousFund protoreflect.MessageDescriptor
|
|
fd_MsgCancelContinuousFund_authority protoreflect.FieldDescriptor
|
|
fd_MsgCancelContinuousFund_recipient_address protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgCancelContinuousFund = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgCancelContinuousFund")
|
|
fd_MsgCancelContinuousFund_authority = md_MsgCancelContinuousFund.Fields().ByName("authority")
|
|
fd_MsgCancelContinuousFund_recipient_address = md_MsgCancelContinuousFund.Fields().ByName("recipient_address")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgCancelContinuousFund)(nil)
|
|
|
|
type fastReflection_MsgCancelContinuousFund MsgCancelContinuousFund
|
|
|
|
func (x *MsgCancelContinuousFund) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgCancelContinuousFund)(x)
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFund) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[10]
|
|
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_MsgCancelContinuousFund_messageType fastReflection_MsgCancelContinuousFund_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgCancelContinuousFund_messageType{}
|
|
|
|
type fastReflection_MsgCancelContinuousFund_messageType struct{}
|
|
|
|
func (x fastReflection_MsgCancelContinuousFund_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgCancelContinuousFund)(nil)
|
|
}
|
|
func (x fastReflection_MsgCancelContinuousFund_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCancelContinuousFund)
|
|
}
|
|
func (x fastReflection_MsgCancelContinuousFund_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCancelContinuousFund
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgCancelContinuousFund) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCancelContinuousFund
|
|
}
|
|
|
|
// 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_MsgCancelContinuousFund) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgCancelContinuousFund_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgCancelContinuousFund) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCancelContinuousFund)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgCancelContinuousFund) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgCancelContinuousFund)(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_MsgCancelContinuousFund) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Authority != "" {
|
|
value := protoreflect.ValueOfString(x.Authority)
|
|
if !f(fd_MsgCancelContinuousFund_authority, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.RecipientAddress != "" {
|
|
value := protoreflect.ValueOfString(x.RecipientAddress)
|
|
if !f(fd_MsgCancelContinuousFund_recipient_address, 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_MsgCancelContinuousFund) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.authority":
|
|
return x.Authority != ""
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.recipient_address":
|
|
return x.RecipientAddress != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFund 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_MsgCancelContinuousFund) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.authority":
|
|
x.Authority = ""
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.recipient_address":
|
|
x.RecipientAddress = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFund 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_MsgCancelContinuousFund) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.authority":
|
|
value := x.Authority
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.recipient_address":
|
|
value := x.RecipientAddress
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFund 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_MsgCancelContinuousFund) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.authority":
|
|
x.Authority = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.recipient_address":
|
|
x.RecipientAddress = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFund 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_MsgCancelContinuousFund) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.authority":
|
|
panic(fmt.Errorf("field authority of message cosmos.protocolpool.v1.MsgCancelContinuousFund is not mutable"))
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.recipient_address":
|
|
panic(fmt.Errorf("field recipient_address of message cosmos.protocolpool.v1.MsgCancelContinuousFund is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFund 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_MsgCancelContinuousFund) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.authority":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFund.recipient_address":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFund 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_MsgCancelContinuousFund) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgCancelContinuousFund", 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_MsgCancelContinuousFund) 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_MsgCancelContinuousFund) 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_MsgCancelContinuousFund) 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_MsgCancelContinuousFund) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgCancelContinuousFund)
|
|
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.Authority)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
l = len(x.RecipientAddress)
|
|
if l > 0 {
|
|
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().(*MsgCancelContinuousFund)
|
|
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 len(x.RecipientAddress) > 0 {
|
|
i -= len(x.RecipientAddress)
|
|
copy(dAtA[i:], x.RecipientAddress)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecipientAddress)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Authority) > 0 {
|
|
i -= len(x.Authority)
|
|
copy(dAtA[i:], x.Authority)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
|
|
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().(*MsgCancelContinuousFund)
|
|
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: MsgCancelContinuousFund: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelContinuousFund: 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 Authority", 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.Authority = 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 RecipientAddress", 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.RecipientAddress = string(dAtA[iNdEx:postIndex])
|
|
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 _ protoreflect.List = (*_MsgCancelContinuousFundResponse_4_list)(nil)
|
|
|
|
type _MsgCancelContinuousFundResponse_4_list struct {
|
|
list *[]*v1beta1.Coin
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) AppendMutable() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) NewElement() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgCancelContinuousFundResponse_4_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_MsgCancelContinuousFundResponse protoreflect.MessageDescriptor
|
|
fd_MsgCancelContinuousFundResponse_canceled_time protoreflect.FieldDescriptor
|
|
fd_MsgCancelContinuousFundResponse_canceled_height protoreflect.FieldDescriptor
|
|
fd_MsgCancelContinuousFundResponse_recipient_address protoreflect.FieldDescriptor
|
|
fd_MsgCancelContinuousFundResponse_withdrawn_allocated_fund protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgCancelContinuousFundResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgCancelContinuousFundResponse")
|
|
fd_MsgCancelContinuousFundResponse_canceled_time = md_MsgCancelContinuousFundResponse.Fields().ByName("canceled_time")
|
|
fd_MsgCancelContinuousFundResponse_canceled_height = md_MsgCancelContinuousFundResponse.Fields().ByName("canceled_height")
|
|
fd_MsgCancelContinuousFundResponse_recipient_address = md_MsgCancelContinuousFundResponse.Fields().ByName("recipient_address")
|
|
fd_MsgCancelContinuousFundResponse_withdrawn_allocated_fund = md_MsgCancelContinuousFundResponse.Fields().ByName("withdrawn_allocated_fund")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgCancelContinuousFundResponse)(nil)
|
|
|
|
type fastReflection_MsgCancelContinuousFundResponse MsgCancelContinuousFundResponse
|
|
|
|
func (x *MsgCancelContinuousFundResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgCancelContinuousFundResponse)(x)
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFundResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[11]
|
|
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_MsgCancelContinuousFundResponse_messageType fastReflection_MsgCancelContinuousFundResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgCancelContinuousFundResponse_messageType{}
|
|
|
|
type fastReflection_MsgCancelContinuousFundResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgCancelContinuousFundResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgCancelContinuousFundResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgCancelContinuousFundResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCancelContinuousFundResponse)
|
|
}
|
|
func (x fastReflection_MsgCancelContinuousFundResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCancelContinuousFundResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgCancelContinuousFundResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgCancelContinuousFundResponse
|
|
}
|
|
|
|
// 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_MsgCancelContinuousFundResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgCancelContinuousFundResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgCancelContinuousFundResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgCancelContinuousFundResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgCancelContinuousFundResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgCancelContinuousFundResponse)(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_MsgCancelContinuousFundResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.CanceledTime != nil {
|
|
value := protoreflect.ValueOfMessage(x.CanceledTime.ProtoReflect())
|
|
if !f(fd_MsgCancelContinuousFundResponse_canceled_time, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.CanceledHeight != uint64(0) {
|
|
value := protoreflect.ValueOfUint64(x.CanceledHeight)
|
|
if !f(fd_MsgCancelContinuousFundResponse_canceled_height, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.RecipientAddress != "" {
|
|
value := protoreflect.ValueOfString(x.RecipientAddress)
|
|
if !f(fd_MsgCancelContinuousFundResponse_recipient_address, value) {
|
|
return
|
|
}
|
|
}
|
|
if len(x.WithdrawnAllocatedFund) != 0 {
|
|
value := protoreflect.ValueOfList(&_MsgCancelContinuousFundResponse_4_list{list: &x.WithdrawnAllocatedFund})
|
|
if !f(fd_MsgCancelContinuousFundResponse_withdrawn_allocated_fund, 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_MsgCancelContinuousFundResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_time":
|
|
return x.CanceledTime != nil
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_height":
|
|
return x.CanceledHeight != uint64(0)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.recipient_address":
|
|
return x.RecipientAddress != ""
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.withdrawn_allocated_fund":
|
|
return len(x.WithdrawnAllocatedFund) != 0
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse 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_MsgCancelContinuousFundResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_time":
|
|
x.CanceledTime = nil
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_height":
|
|
x.CanceledHeight = uint64(0)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.recipient_address":
|
|
x.RecipientAddress = ""
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.withdrawn_allocated_fund":
|
|
x.WithdrawnAllocatedFund = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse 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_MsgCancelContinuousFundResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_time":
|
|
value := x.CanceledTime
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_height":
|
|
value := x.CanceledHeight
|
|
return protoreflect.ValueOfUint64(value)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.recipient_address":
|
|
value := x.RecipientAddress
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.withdrawn_allocated_fund":
|
|
if len(x.WithdrawnAllocatedFund) == 0 {
|
|
return protoreflect.ValueOfList(&_MsgCancelContinuousFundResponse_4_list{})
|
|
}
|
|
listValue := &_MsgCancelContinuousFundResponse_4_list{list: &x.WithdrawnAllocatedFund}
|
|
return protoreflect.ValueOfList(listValue)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse 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_MsgCancelContinuousFundResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_time":
|
|
x.CanceledTime = value.Message().Interface().(*timestamppb.Timestamp)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_height":
|
|
x.CanceledHeight = value.Uint()
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.recipient_address":
|
|
x.RecipientAddress = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.withdrawn_allocated_fund":
|
|
lv := value.List()
|
|
clv := lv.(*_MsgCancelContinuousFundResponse_4_list)
|
|
x.WithdrawnAllocatedFund = *clv.list
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse 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_MsgCancelContinuousFundResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_time":
|
|
if x.CanceledTime == nil {
|
|
x.CanceledTime = new(timestamppb.Timestamp)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.CanceledTime.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.withdrawn_allocated_fund":
|
|
if x.WithdrawnAllocatedFund == nil {
|
|
x.WithdrawnAllocatedFund = []*v1beta1.Coin{}
|
|
}
|
|
value := &_MsgCancelContinuousFundResponse_4_list{list: &x.WithdrawnAllocatedFund}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_height":
|
|
panic(fmt.Errorf("field canceled_height of message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse is not mutable"))
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.recipient_address":
|
|
panic(fmt.Errorf("field recipient_address of message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse 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_MsgCancelContinuousFundResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_time":
|
|
m := new(timestamppb.Timestamp)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_height":
|
|
return protoreflect.ValueOfUint64(uint64(0))
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.recipient_address":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.withdrawn_allocated_fund":
|
|
list := []*v1beta1.Coin{}
|
|
return protoreflect.ValueOfList(&_MsgCancelContinuousFundResponse_4_list{list: &list})
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgCancelContinuousFundResponse 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_MsgCancelContinuousFundResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgCancelContinuousFundResponse", 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_MsgCancelContinuousFundResponse) 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_MsgCancelContinuousFundResponse) 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_MsgCancelContinuousFundResponse) 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_MsgCancelContinuousFundResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgCancelContinuousFundResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
if x.CanceledTime != nil {
|
|
l = options.Size(x.CanceledTime)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.CanceledHeight != 0 {
|
|
n += 1 + runtime.Sov(uint64(x.CanceledHeight))
|
|
}
|
|
l = len(x.RecipientAddress)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if len(x.WithdrawnAllocatedFund) > 0 {
|
|
for _, e := range x.WithdrawnAllocatedFund {
|
|
l = options.Size(e)
|
|
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().(*MsgCancelContinuousFundResponse)
|
|
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 len(x.WithdrawnAllocatedFund) > 0 {
|
|
for iNdEx := len(x.WithdrawnAllocatedFund) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.WithdrawnAllocatedFund[iNdEx])
|
|
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] = 0x22
|
|
}
|
|
}
|
|
if len(x.RecipientAddress) > 0 {
|
|
i -= len(x.RecipientAddress)
|
|
copy(dAtA[i:], x.RecipientAddress)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecipientAddress)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if x.CanceledHeight != 0 {
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.CanceledHeight))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if x.CanceledTime != nil {
|
|
encoded, err := options.Marshal(x.CanceledTime)
|
|
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] = 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().(*MsgCancelContinuousFundResponse)
|
|
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: MsgCancelContinuousFundResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelContinuousFundResponse: 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 CanceledTime", 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.CanceledTime == nil {
|
|
x.CanceledTime = ×tamppb.Timestamp{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CanceledTime); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CanceledHeight", wireType)
|
|
}
|
|
x.CanceledHeight = 0
|
|
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++
|
|
x.CanceledHeight |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 3:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecipientAddress", 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.RecipientAddress = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithdrawnAllocatedFund", 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
|
|
}
|
|
x.WithdrawnAllocatedFund = append(x.WithdrawnAllocatedFund, &v1beta1.Coin{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WithdrawnAllocatedFund[len(x.WithdrawnAllocatedFund)-1]); 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_MsgWithdrawContinuousFund protoreflect.MessageDescriptor
|
|
fd_MsgWithdrawContinuousFund_recipient_address protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgWithdrawContinuousFund = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgWithdrawContinuousFund")
|
|
fd_MsgWithdrawContinuousFund_recipient_address = md_MsgWithdrawContinuousFund.Fields().ByName("recipient_address")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgWithdrawContinuousFund)(nil)
|
|
|
|
type fastReflection_MsgWithdrawContinuousFund MsgWithdrawContinuousFund
|
|
|
|
func (x *MsgWithdrawContinuousFund) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgWithdrawContinuousFund)(x)
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFund) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[12]
|
|
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_MsgWithdrawContinuousFund_messageType fastReflection_MsgWithdrawContinuousFund_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgWithdrawContinuousFund_messageType{}
|
|
|
|
type fastReflection_MsgWithdrawContinuousFund_messageType struct{}
|
|
|
|
func (x fastReflection_MsgWithdrawContinuousFund_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgWithdrawContinuousFund)(nil)
|
|
}
|
|
func (x fastReflection_MsgWithdrawContinuousFund_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgWithdrawContinuousFund)
|
|
}
|
|
func (x fastReflection_MsgWithdrawContinuousFund_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgWithdrawContinuousFund
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgWithdrawContinuousFund) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgWithdrawContinuousFund
|
|
}
|
|
|
|
// 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_MsgWithdrawContinuousFund) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgWithdrawContinuousFund_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgWithdrawContinuousFund) New() protoreflect.Message {
|
|
return new(fastReflection_MsgWithdrawContinuousFund)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgWithdrawContinuousFund) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgWithdrawContinuousFund)(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_MsgWithdrawContinuousFund) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.RecipientAddress != "" {
|
|
value := protoreflect.ValueOfString(x.RecipientAddress)
|
|
if !f(fd_MsgWithdrawContinuousFund_recipient_address, 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_MsgWithdrawContinuousFund) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFund.recipient_address":
|
|
return x.RecipientAddress != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFund 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_MsgWithdrawContinuousFund) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFund.recipient_address":
|
|
x.RecipientAddress = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFund 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_MsgWithdrawContinuousFund) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFund.recipient_address":
|
|
value := x.RecipientAddress
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFund 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_MsgWithdrawContinuousFund) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFund.recipient_address":
|
|
x.RecipientAddress = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFund 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_MsgWithdrawContinuousFund) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFund.recipient_address":
|
|
panic(fmt.Errorf("field recipient_address of message cosmos.protocolpool.v1.MsgWithdrawContinuousFund is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFund 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_MsgWithdrawContinuousFund) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFund.recipient_address":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFund"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFund 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_MsgWithdrawContinuousFund) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgWithdrawContinuousFund", 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_MsgWithdrawContinuousFund) 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_MsgWithdrawContinuousFund) 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_MsgWithdrawContinuousFund) 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_MsgWithdrawContinuousFund) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgWithdrawContinuousFund)
|
|
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.RecipientAddress)
|
|
if l > 0 {
|
|
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().(*MsgWithdrawContinuousFund)
|
|
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 len(x.RecipientAddress) > 0 {
|
|
i -= len(x.RecipientAddress)
|
|
copy(dAtA[i:], x.RecipientAddress)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecipientAddress)))
|
|
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().(*MsgWithdrawContinuousFund)
|
|
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: MsgWithdrawContinuousFund: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWithdrawContinuousFund: 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 RecipientAddress", 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.RecipientAddress = string(dAtA[iNdEx:postIndex])
|
|
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 _ protoreflect.List = (*_MsgWithdrawContinuousFundResponse_1_list)(nil)
|
|
|
|
type _MsgWithdrawContinuousFundResponse_1_list struct {
|
|
list *[]*v1beta1.Coin
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) NewElement() protoreflect.Value {
|
|
v := new(v1beta1.Coin)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_MsgWithdrawContinuousFundResponse_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_MsgWithdrawContinuousFundResponse protoreflect.MessageDescriptor
|
|
fd_MsgWithdrawContinuousFundResponse_amount protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgWithdrawContinuousFundResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgWithdrawContinuousFundResponse")
|
|
fd_MsgWithdrawContinuousFundResponse_amount = md_MsgWithdrawContinuousFundResponse.Fields().ByName("amount")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgWithdrawContinuousFundResponse)(nil)
|
|
|
|
type fastReflection_MsgWithdrawContinuousFundResponse MsgWithdrawContinuousFundResponse
|
|
|
|
func (x *MsgWithdrawContinuousFundResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgWithdrawContinuousFundResponse)(x)
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFundResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[13]
|
|
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_MsgWithdrawContinuousFundResponse_messageType fastReflection_MsgWithdrawContinuousFundResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgWithdrawContinuousFundResponse_messageType{}
|
|
|
|
type fastReflection_MsgWithdrawContinuousFundResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgWithdrawContinuousFundResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgWithdrawContinuousFundResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgWithdrawContinuousFundResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgWithdrawContinuousFundResponse)
|
|
}
|
|
func (x fastReflection_MsgWithdrawContinuousFundResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgWithdrawContinuousFundResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgWithdrawContinuousFundResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgWithdrawContinuousFundResponse
|
|
}
|
|
|
|
// 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_MsgWithdrawContinuousFundResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgWithdrawContinuousFundResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgWithdrawContinuousFundResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgWithdrawContinuousFundResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgWithdrawContinuousFundResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgWithdrawContinuousFundResponse)(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_MsgWithdrawContinuousFundResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Amount) != 0 {
|
|
value := protoreflect.ValueOfList(&_MsgWithdrawContinuousFundResponse_1_list{list: &x.Amount})
|
|
if !f(fd_MsgWithdrawContinuousFundResponse_amount, 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_MsgWithdrawContinuousFundResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse.amount":
|
|
return len(x.Amount) != 0
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse 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_MsgWithdrawContinuousFundResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse.amount":
|
|
x.Amount = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse 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_MsgWithdrawContinuousFundResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse.amount":
|
|
if len(x.Amount) == 0 {
|
|
return protoreflect.ValueOfList(&_MsgWithdrawContinuousFundResponse_1_list{})
|
|
}
|
|
listValue := &_MsgWithdrawContinuousFundResponse_1_list{list: &x.Amount}
|
|
return protoreflect.ValueOfList(listValue)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse 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_MsgWithdrawContinuousFundResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse.amount":
|
|
lv := value.List()
|
|
clv := lv.(*_MsgWithdrawContinuousFundResponse_1_list)
|
|
x.Amount = *clv.list
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse 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_MsgWithdrawContinuousFundResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse.amount":
|
|
if x.Amount == nil {
|
|
x.Amount = []*v1beta1.Coin{}
|
|
}
|
|
value := &_MsgWithdrawContinuousFundResponse_1_list{list: &x.Amount}
|
|
return protoreflect.ValueOfList(value)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse 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_MsgWithdrawContinuousFundResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse.amount":
|
|
list := []*v1beta1.Coin{}
|
|
return protoreflect.ValueOfList(&_MsgWithdrawContinuousFundResponse_1_list{list: &list})
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse 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_MsgWithdrawContinuousFundResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse", 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_MsgWithdrawContinuousFundResponse) 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_MsgWithdrawContinuousFundResponse) 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_MsgWithdrawContinuousFundResponse) 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_MsgWithdrawContinuousFundResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgWithdrawContinuousFundResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
if len(x.Amount) > 0 {
|
|
for _, e := range x.Amount {
|
|
l = options.Size(e)
|
|
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().(*MsgWithdrawContinuousFundResponse)
|
|
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 len(x.Amount) > 0 {
|
|
for iNdEx := len(x.Amount) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Amount[iNdEx])
|
|
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] = 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().(*MsgWithdrawContinuousFundResponse)
|
|
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: MsgWithdrawContinuousFundResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWithdrawContinuousFundResponse: 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 Amount", 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
|
|
}
|
|
x.Amount = append(x.Amount, &v1beta1.Coin{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); 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_MsgUpdateParams protoreflect.MessageDescriptor
|
|
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
|
|
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgUpdateParams = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgUpdateParams")
|
|
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
|
|
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
|
|
|
|
type fastReflection_MsgUpdateParams MsgUpdateParams
|
|
|
|
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgUpdateParams)(x)
|
|
}
|
|
|
|
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[14]
|
|
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_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
|
|
|
|
type fastReflection_MsgUpdateParams_messageType struct{}
|
|
|
|
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgUpdateParams)(nil)
|
|
}
|
|
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgUpdateParams)
|
|
}
|
|
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgUpdateParams
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgUpdateParams
|
|
}
|
|
|
|
// 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_MsgUpdateParams) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgUpdateParams_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
|
|
return new(fastReflection_MsgUpdateParams)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Authority != "" {
|
|
value := protoreflect.ValueOfString(x.Authority)
|
|
if !f(fd_MsgUpdateParams_authority, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Params != nil {
|
|
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
|
if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.authority":
|
|
return x.Authority != ""
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.params":
|
|
return x.Params != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParams"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.authority":
|
|
x.Authority = ""
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.params":
|
|
x.Params = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParams"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.authority":
|
|
value := x.Authority
|
|
return protoreflect.ValueOfString(value)
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.params":
|
|
value := x.Params
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParams"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.authority":
|
|
x.Authority = value.Interface().(string)
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.params":
|
|
x.Params = value.Message().Interface().(*Params)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParams"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.params":
|
|
if x.Params == nil {
|
|
x.Params = new(Params)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.authority":
|
|
panic(fmt.Errorf("field authority of message cosmos.protocolpool.v1.MsgUpdateParams is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParams"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParams 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_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.authority":
|
|
return protoreflect.ValueOfString("")
|
|
case "cosmos.protocolpool.v1.MsgUpdateParams.params":
|
|
m := new(Params)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParams"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParams 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_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgUpdateParams)
|
|
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.Authority)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.Params != nil {
|
|
l = options.Size(x.Params)
|
|
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().(*MsgUpdateParams)
|
|
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.Params != nil {
|
|
encoded, err := options.Marshal(x.Params)
|
|
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.Authority) > 0 {
|
|
i -= len(x.Authority)
|
|
copy(dAtA[i:], x.Authority)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
|
|
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().(*MsgUpdateParams)
|
|
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: MsgUpdateParams: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: 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 Authority", 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.Authority = 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 Params", 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.Params == nil {
|
|
x.Params = &Params{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cosmos_protocolpool_v1_tx_proto_init()
|
|
md_MsgUpdateParamsResponse = File_cosmos_protocolpool_v1_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
|
|
|
|
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
|
|
|
|
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_MsgUpdateParamsResponse)(x)
|
|
}
|
|
|
|
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[15]
|
|
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_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
|
|
|
|
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
|
|
|
|
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_MsgUpdateParamsResponse)(nil)
|
|
}
|
|
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_MsgUpdateParamsResponse)
|
|
}
|
|
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgUpdateParamsResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_MsgUpdateParamsResponse
|
|
}
|
|
|
|
// 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_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_MsgUpdateParamsResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
|
|
return new(fastReflection_MsgUpdateParamsResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
}
|
|
|
|
// 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_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.protocolpool.v1.MsgUpdateParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cosmos.protocolpool.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.protocolpool.v1.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*MsgUpdateParamsResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = 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().(*MsgUpdateParamsResponse)
|
|
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 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().(*MsgUpdateParamsResponse)
|
|
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: MsgUpdateParamsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
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,
|
|
}
|
|
}
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.27.0
|
|
// protoc (unknown)
|
|
// source: cosmos/protocolpool/v1/tx.proto
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// MsgFundCommunityPool allows an account to directly
|
|
// fund the community pool.
|
|
type MsgFundCommunityPool struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"`
|
|
Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
|
|
}
|
|
|
|
func (x *MsgFundCommunityPool) Reset() {
|
|
*x = MsgFundCommunityPool{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgFundCommunityPool) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgFundCommunityPool) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgFundCommunityPool.ProtoReflect.Descriptor instead.
|
|
func (*MsgFundCommunityPool) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *MsgFundCommunityPool) GetAmount() []*v1beta1.Coin {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MsgFundCommunityPool) GetDepositor() string {
|
|
if x != nil {
|
|
return x.Depositor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
|
|
type MsgFundCommunityPoolResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *MsgFundCommunityPoolResponse) Reset() {
|
|
*x = MsgFundCommunityPoolResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgFundCommunityPoolResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgFundCommunityPoolResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgFundCommunityPoolResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgFundCommunityPoolResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
// MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
// pool to another account. This message is typically executed via a governance
|
|
// proposal with the governance module being the executing authority.
|
|
type MsgCommunityPoolSpend struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
|
Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
|
|
Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpend) Reset() {
|
|
*x = MsgCommunityPoolSpend{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpend) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgCommunityPoolSpend) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgCommunityPoolSpend.ProtoReflect.Descriptor instead.
|
|
func (*MsgCommunityPoolSpend) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpend) GetAuthority() string {
|
|
if x != nil {
|
|
return x.Authority
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpend) GetRecipient() string {
|
|
if x != nil {
|
|
return x.Recipient
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpend) GetAmount() []*v1beta1.Coin {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgCommunityPoolSpendResponse defines the response to executing a
|
|
// MsgCommunityPoolSpend message.
|
|
type MsgCommunityPoolSpendResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpendResponse) Reset() {
|
|
*x = MsgCommunityPoolSpendResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgCommunityPoolSpendResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgCommunityPoolSpendResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgCommunityPoolSpendResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgCommunityPoolSpendResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
// MsgSubmitBudgetProposal defines budget proposal type.
|
|
type MsgSubmitBudgetProposal struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
|
// RecipientAddress is the address of the recipient who can claim the budget.
|
|
RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
|
|
// BudgetPerTranche is the amount allocated per tranche.
|
|
BudgetPerTranche *v1beta1.Coin `protobuf:"bytes,3,opt,name=budget_per_tranche,json=budgetPerTranche,proto3" json:"budget_per_tranche,omitempty"`
|
|
// StartTime is the time when the budget becomes claimable.
|
|
// If StartTime is less than the current block time, proposal will not be accepted.
|
|
StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
|
// Tranches is the number of times the budget amount is to be distributed.
|
|
Tranches uint64 `protobuf:"varint,5,opt,name=tranches,proto3" json:"tranches,omitempty"`
|
|
// Period is the time interval(number of seconds) at which funds distribution should be performed.
|
|
// For example, if a period is set to 3600, it represents an action that
|
|
// should occur every hour (3600 seconds).
|
|
Period *durationpb.Duration `protobuf:"bytes,6,opt,name=period,proto3" json:"period,omitempty"`
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) Reset() {
|
|
*x = MsgSubmitBudgetProposal{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgSubmitBudgetProposal) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgSubmitBudgetProposal.ProtoReflect.Descriptor instead.
|
|
func (*MsgSubmitBudgetProposal) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) GetAuthority() string {
|
|
if x != nil {
|
|
return x.Authority
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) GetRecipientAddress() string {
|
|
if x != nil {
|
|
return x.RecipientAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) GetBudgetPerTranche() *v1beta1.Coin {
|
|
if x != nil {
|
|
return x.BudgetPerTranche
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) GetStartTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.StartTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) GetTranches() uint64 {
|
|
if x != nil {
|
|
return x.Tranches
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposal) GetPeriod() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.Period
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgSubmitBudgetProposalResponse defines the response to executing a
|
|
// MsgSubmitBudgetProposal message.
|
|
type MsgSubmitBudgetProposalResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposalResponse) Reset() {
|
|
*x = MsgSubmitBudgetProposalResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgSubmitBudgetProposalResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgSubmitBudgetProposalResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgSubmitBudgetProposalResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgSubmitBudgetProposalResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
// MsgClaimBudget defines a message for claiming the distributed budget.
|
|
type MsgClaimBudget struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
|
|
}
|
|
|
|
func (x *MsgClaimBudget) Reset() {
|
|
*x = MsgClaimBudget{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgClaimBudget) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgClaimBudget) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgClaimBudget.ProtoReflect.Descriptor instead.
|
|
func (*MsgClaimBudget) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *MsgClaimBudget) GetRecipientAddress() string {
|
|
if x != nil {
|
|
return x.RecipientAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// MsgClaimBudgetResponse defines the response to executing a
|
|
// MsgClaimBudget message.
|
|
type MsgClaimBudgetResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Amount *v1beta1.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
}
|
|
|
|
func (x *MsgClaimBudgetResponse) Reset() {
|
|
*x = MsgClaimBudgetResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgClaimBudgetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgClaimBudgetResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgClaimBudgetResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgClaimBudgetResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *MsgClaimBudgetResponse) GetAmount() *v1beta1.Coin {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgCreateContinuousFund defines a message for adding continuous funds.
|
|
type MsgCreateContinuousFund struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
|
// Recipient address of the account receiving funds.
|
|
Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
|
|
// Percentage is the percentage of funds to be allocated from Community pool.
|
|
Percentage string `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"`
|
|
// Optional, if expiry is set, removes the state object when expired.
|
|
Expiry *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFund) Reset() {
|
|
*x = MsgCreateContinuousFund{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFund) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgCreateContinuousFund) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgCreateContinuousFund.ProtoReflect.Descriptor instead.
|
|
func (*MsgCreateContinuousFund) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFund) GetAuthority() string {
|
|
if x != nil {
|
|
return x.Authority
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFund) GetRecipient() string {
|
|
if x != nil {
|
|
return x.Recipient
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFund) GetPercentage() string {
|
|
if x != nil {
|
|
return x.Percentage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFund) GetExpiry() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Expiry
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgCreateContinuousFundResponse defines the response to executing a
|
|
// MsgCreateContinuousFund message.
|
|
type MsgCreateContinuousFundResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFundResponse) Reset() {
|
|
*x = MsgCreateContinuousFundResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgCreateContinuousFundResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgCreateContinuousFundResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgCreateContinuousFundResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgCreateContinuousFundResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
// MsgCancelContinuousFund defines a message to cancel continuous funds for a specific recipient.
|
|
type MsgCancelContinuousFund struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Authority is the account address of authority.
|
|
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
|
// RecipientAddress is the account address of recipient whose funds are to be cancelled.
|
|
RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFund) Reset() {
|
|
*x = MsgCancelContinuousFund{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFund) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgCancelContinuousFund) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgCancelContinuousFund.ProtoReflect.Descriptor instead.
|
|
func (*MsgCancelContinuousFund) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFund) GetAuthority() string {
|
|
if x != nil {
|
|
return x.Authority
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFund) GetRecipientAddress() string {
|
|
if x != nil {
|
|
return x.RecipientAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// MsgCancelContinuousFundResponse defines the response to executing a
|
|
// MsgCancelContinuousFund message.
|
|
type MsgCancelContinuousFundResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// CanceledTime is the canceled time.
|
|
CanceledTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=canceled_time,json=canceledTime,proto3" json:"canceled_time,omitempty"`
|
|
// CanceledHeight defines the canceled block height.
|
|
CanceledHeight uint64 `protobuf:"varint,2,opt,name=canceled_height,json=canceledHeight,proto3" json:"canceled_height,omitempty"`
|
|
// RecipientAddress is the account address of recipient whose funds are cancelled.
|
|
RecipientAddress string `protobuf:"bytes,3,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
|
|
// withdrawnAllocatedFund represents the fund allocated to this recipient (if any) that have not been withdrawn yet,
|
|
// before a cancellation request has been initiated.
|
|
// It involves first withdrawing the funds and then canceling the request.
|
|
WithdrawnAllocatedFund []*v1beta1.Coin `protobuf:"bytes,4,rep,name=withdrawn_allocated_fund,json=withdrawnAllocatedFund,proto3" json:"withdrawn_allocated_fund,omitempty"`
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFundResponse) Reset() {
|
|
*x = MsgCancelContinuousFundResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFundResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgCancelContinuousFundResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgCancelContinuousFundResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgCancelContinuousFundResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFundResponse) GetCanceledTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CanceledTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFundResponse) GetCanceledHeight() uint64 {
|
|
if x != nil {
|
|
return x.CanceledHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFundResponse) GetRecipientAddress() string {
|
|
if x != nil {
|
|
return x.RecipientAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgCancelContinuousFundResponse) GetWithdrawnAllocatedFund() []*v1beta1.Coin {
|
|
if x != nil {
|
|
return x.WithdrawnAllocatedFund
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgWithdrawContinuousFund defines a message for withdrawing the continuous fund allocated to it.
|
|
type MsgWithdrawContinuousFund struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFund) Reset() {
|
|
*x = MsgWithdrawContinuousFund{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFund) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgWithdrawContinuousFund) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgWithdrawContinuousFund.ProtoReflect.Descriptor instead.
|
|
func (*MsgWithdrawContinuousFund) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFund) GetRecipientAddress() string {
|
|
if x != nil {
|
|
return x.RecipientAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// MsgWithdrawContinuousFundResponse defines the response to executing a
|
|
// MsgWithdrawContinuousFund message.
|
|
type MsgWithdrawContinuousFundResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"`
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFundResponse) Reset() {
|
|
*x = MsgWithdrawContinuousFundResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFundResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgWithdrawContinuousFundResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgWithdrawContinuousFundResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgWithdrawContinuousFundResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *MsgWithdrawContinuousFundResponse) GetAmount() []*v1beta1.Coin {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgUpdateParams is the Msg/UpdateParams request type.
|
|
type MsgUpdateParams struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
|
// params defines the x/protocolpool parameters to update.
|
|
//
|
|
// NOTE: All parameters must be supplied.
|
|
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
|
|
}
|
|
|
|
func (x *MsgUpdateParams) Reset() {
|
|
*x = MsgUpdateParams{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgUpdateParams) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgUpdateParams) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
|
|
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *MsgUpdateParams) GetAuthority() string {
|
|
if x != nil {
|
|
return x.Authority
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MsgUpdateParams) GetParams() *Params {
|
|
if x != nil {
|
|
return x.Params
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MsgUpdateParamsResponse defines the response structure for executing a
|
|
// MsgUpdateParams message.
|
|
type MsgUpdateParamsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *MsgUpdateParamsResponse) Reset() {
|
|
*x = MsgUpdateParamsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cosmos_protocolpool_v1_tx_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MsgUpdateParamsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MsgUpdateParamsResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
|
|
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
var File_cosmos_protocolpool_v1_tx_proto protoreflect.FileDescriptor
|
|
|
|
var file_cosmos_protocolpool_v1_tx_proto_rawDesc = []byte{
|
|
0x0a, 0x1f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
|
|
0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x12, 0x16, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
|
|
0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x22, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
|
0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2f, 0x76,
|
|
0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67,
|
|
0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65,
|
|
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
|
|
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73,
|
|
0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
|
0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
|
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67,
|
|
0x46, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6f,
|
|
0x6c, 0x12, 0x63, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28,
|
|
0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
|
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde,
|
|
0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 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, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06,
|
|
0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
|
|
0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
|
|
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
|
|
0x69, 0x6e, 0x67, 0x52, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x3a, 0x16,
|
|
0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x64, 0x65, 0x70,
|
|
0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e,
|
|
0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe2, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x43, 0x6f,
|
|
0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x70, 0x65, 0x6e, 0x64,
|
|
0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
|
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61,
|
|
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69,
|
|
0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x63,
|
|
0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x63, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
|
|
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
|
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69,
|
|
0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 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, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f,
|
|
0x69, 0x6e, 0x73, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0e, 0x82, 0xe7, 0xb0,
|
|
0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1f, 0x0a, 0x1d, 0x4d,
|
|
0x73, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x53,
|
|
0x70, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x87, 0x03, 0x0a,
|
|
0x17, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74,
|
|
0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68,
|
|
0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
|
|
0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
|
|
0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
|
|
0x12, 0x45, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64,
|
|
0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
|
|
0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
|
|
0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74,
|
|
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x12, 0x62, 0x75, 0x64, 0x67, 0x65,
|
|
0x74, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73,
|
|
0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x10,
|
|
0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x50, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65,
|
|
0x12, 0x3f, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
|
0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d,
|
|
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x05, 0x20,
|
|
0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x37, 0x0a,
|
|
0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x06, 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, 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x06,
|
|
0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74,
|
|
0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62,
|
|
0x6d, 0x69, 0x74, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61,
|
|
0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x0a, 0x0e, 0x4d, 0x73, 0x67,
|
|
0x43, 0x6c, 0x61, 0x69, 0x6d, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x12, 0x45, 0x0a, 0x11, 0x72,
|
|
0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
|
|
0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65,
|
|
0x73, 0x73, 0x3a, 0x16, 0x82, 0xe7, 0xb0, 0x2a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65,
|
|
0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x7d, 0x0a, 0x16, 0x4d, 0x73,
|
|
0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61,
|
|
0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42,
|
|
0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 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, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e,
|
|
0x73, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xa6, 0x02, 0x0a, 0x17, 0x4d, 0x73,
|
|
0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75,
|
|
0x73, 0x46, 0x75, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
|
|
0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f,
|
|
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69,
|
|
0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x36, 0x0a,
|
|
0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
|
|
0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69,
|
|
0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74,
|
|
0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda,
|
|
0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f,
|
|
0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4,
|
|
0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0a, 0x70, 0x65,
|
|
0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69,
|
|
0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
|
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
|
|
0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69,
|
|
0x72, 0x79, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
|
|
0x74, 0x79, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43,
|
|
0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73,
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e,
|
|
0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e,
|
|
0x64, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
|
0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09,
|
|
0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x45, 0x0a, 0x11, 0x72, 0x65, 0x63,
|
|
0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
|
0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10,
|
|
0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
|
|
0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
|
|
0x22, 0xe4, 0x02, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6f,
|
|
0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64,
|
|
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f,
|
|
0x01, 0x52, 0x0c, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12,
|
|
0x27, 0x0a, 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x5f, 0x68, 0x65, 0x69, 0x67,
|
|
0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c,
|
|
0x65, 0x64, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x45, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69,
|
|
0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
|
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x72,
|
|
0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
|
|
0x85, 0x01, 0x0a, 0x18, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x5f, 0x61, 0x6c,
|
|
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x03,
|
|
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65,
|
|
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8,
|
|
0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 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, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52,
|
|
0x16, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61,
|
|
0x74, 0x65, 0x64, 0x46, 0x75, 0x6e, 0x64, 0x22, 0x7a, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x57, 0x69,
|
|
0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73,
|
|
0x46, 0x75, 0x6e, 0x64, 0x12, 0x45, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e,
|
|
0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
|
|
0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
|
|
0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70,
|
|
0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x16, 0x82, 0xe7, 0xb0,
|
|
0x2a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72,
|
|
0x65, 0x73, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64,
|
|
0x72, 0x61, 0x77, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e,
|
|
0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x06, 0x61, 0x6d, 0x6f,
|
|
0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
|
|
0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 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, 0x74, 0x79, 0x70, 0x65, 0x73,
|
|
0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x97,
|
|
0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61,
|
|
0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
|
0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52,
|
|
0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61,
|
|
0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73,
|
|
0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00,
|
|
0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61,
|
|
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55,
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x32, 0xf9, 0x07, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x77, 0x0a, 0x11, 0x46,
|
|
0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6f, 0x6c,
|
|
0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
|
|
0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e,
|
|
0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x1a, 0x34,
|
|
0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
|
|
0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x43,
|
|
0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74,
|
|
0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x73,
|
|
0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79,
|
|
0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50,
|
|
0x6f, 0x6f, 0x6c, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
0x12, 0x80, 0x01, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x42, 0x75, 0x64, 0x67, 0x65,
|
|
0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x42, 0x75, 0x64, 0x67,
|
|
0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x73,
|
|
0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x42, 0x75, 0x64,
|
|
0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0b, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x42, 0x75, 0x64, 0x67,
|
|
0x65, 0x74, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43,
|
|
0x6c, 0x61, 0x69, 0x6d, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x73,
|
|
0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x42, 0x75, 0x64, 0x67,
|
|
0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x14, 0x43,
|
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46,
|
|
0x75, 0x6e, 0x64, 0x12, 0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67,
|
|
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73,
|
|
0x46, 0x75, 0x6e, 0x64, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73,
|
|
0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75,
|
|
0x73, 0x46, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01,
|
|
0x0a, 0x16, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e,
|
|
0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e, 0x64, 0x12, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
|
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76,
|
|
0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x6e,
|
|
0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e, 0x64, 0x1a, 0x39, 0x2e, 0x63, 0x6f,
|
|
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f,
|
|
0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77,
|
|
0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e, 0x64, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65,
|
|
0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e, 0x64, 0x12,
|
|
0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
|
|
0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63,
|
|
0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e, 0x64,
|
|
0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
|
|
0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e,
|
|
0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x46, 0x75, 0x6e,
|
|
0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x0c, 0x55, 0x70, 0x64,
|
|
0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61,
|
|
0x6d, 0x73, 0x1a, 0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55,
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x22, 0x13, 0xca, 0xb4, 0x2d, 0x0f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d,
|
|
0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x37, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42,
|
|
0xd7, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x07,
|
|
0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
|
0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2f,
|
|
0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x76,
|
|
0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, 0x58, 0xaa, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
|
0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x56, 0x31,
|
|
0xca, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63,
|
|
0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x43, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x5c,
|
|
0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
|
|
0x18, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
|
|
0x6c, 0x70, 0x6f, 0x6f, 0x6c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x33,
|
|
}
|
|
|
|
var (
|
|
file_cosmos_protocolpool_v1_tx_proto_rawDescOnce sync.Once
|
|
file_cosmos_protocolpool_v1_tx_proto_rawDescData = file_cosmos_protocolpool_v1_tx_proto_rawDesc
|
|
)
|
|
|
|
func file_cosmos_protocolpool_v1_tx_proto_rawDescGZIP() []byte {
|
|
file_cosmos_protocolpool_v1_tx_proto_rawDescOnce.Do(func() {
|
|
file_cosmos_protocolpool_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_protocolpool_v1_tx_proto_rawDescData)
|
|
})
|
|
return file_cosmos_protocolpool_v1_tx_proto_rawDescData
|
|
}
|
|
|
|
var file_cosmos_protocolpool_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_cosmos_protocolpool_v1_tx_proto_goTypes = []interface{}{
|
|
(*MsgFundCommunityPool)(nil), // 0: cosmos.protocolpool.v1.MsgFundCommunityPool
|
|
(*MsgFundCommunityPoolResponse)(nil), // 1: cosmos.protocolpool.v1.MsgFundCommunityPoolResponse
|
|
(*MsgCommunityPoolSpend)(nil), // 2: cosmos.protocolpool.v1.MsgCommunityPoolSpend
|
|
(*MsgCommunityPoolSpendResponse)(nil), // 3: cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse
|
|
(*MsgSubmitBudgetProposal)(nil), // 4: cosmos.protocolpool.v1.MsgSubmitBudgetProposal
|
|
(*MsgSubmitBudgetProposalResponse)(nil), // 5: cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse
|
|
(*MsgClaimBudget)(nil), // 6: cosmos.protocolpool.v1.MsgClaimBudget
|
|
(*MsgClaimBudgetResponse)(nil), // 7: cosmos.protocolpool.v1.MsgClaimBudgetResponse
|
|
(*MsgCreateContinuousFund)(nil), // 8: cosmos.protocolpool.v1.MsgCreateContinuousFund
|
|
(*MsgCreateContinuousFundResponse)(nil), // 9: cosmos.protocolpool.v1.MsgCreateContinuousFundResponse
|
|
(*MsgCancelContinuousFund)(nil), // 10: cosmos.protocolpool.v1.MsgCancelContinuousFund
|
|
(*MsgCancelContinuousFundResponse)(nil), // 11: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse
|
|
(*MsgWithdrawContinuousFund)(nil), // 12: cosmos.protocolpool.v1.MsgWithdrawContinuousFund
|
|
(*MsgWithdrawContinuousFundResponse)(nil), // 13: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse
|
|
(*MsgUpdateParams)(nil), // 14: cosmos.protocolpool.v1.MsgUpdateParams
|
|
(*MsgUpdateParamsResponse)(nil), // 15: cosmos.protocolpool.v1.MsgUpdateParamsResponse
|
|
(*v1beta1.Coin)(nil), // 16: cosmos.base.v1beta1.Coin
|
|
(*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp
|
|
(*durationpb.Duration)(nil), // 18: google.protobuf.Duration
|
|
(*Params)(nil), // 19: cosmos.protocolpool.v1.Params
|
|
}
|
|
var file_cosmos_protocolpool_v1_tx_proto_depIdxs = []int32{
|
|
16, // 0: cosmos.protocolpool.v1.MsgFundCommunityPool.amount:type_name -> cosmos.base.v1beta1.Coin
|
|
16, // 1: cosmos.protocolpool.v1.MsgCommunityPoolSpend.amount:type_name -> cosmos.base.v1beta1.Coin
|
|
16, // 2: cosmos.protocolpool.v1.MsgSubmitBudgetProposal.budget_per_tranche:type_name -> cosmos.base.v1beta1.Coin
|
|
17, // 3: cosmos.protocolpool.v1.MsgSubmitBudgetProposal.start_time:type_name -> google.protobuf.Timestamp
|
|
18, // 4: cosmos.protocolpool.v1.MsgSubmitBudgetProposal.period:type_name -> google.protobuf.Duration
|
|
16, // 5: cosmos.protocolpool.v1.MsgClaimBudgetResponse.amount:type_name -> cosmos.base.v1beta1.Coin
|
|
17, // 6: cosmos.protocolpool.v1.MsgCreateContinuousFund.expiry:type_name -> google.protobuf.Timestamp
|
|
17, // 7: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.canceled_time:type_name -> google.protobuf.Timestamp
|
|
16, // 8: cosmos.protocolpool.v1.MsgCancelContinuousFundResponse.withdrawn_allocated_fund:type_name -> cosmos.base.v1beta1.Coin
|
|
16, // 9: cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse.amount:type_name -> cosmos.base.v1beta1.Coin
|
|
19, // 10: cosmos.protocolpool.v1.MsgUpdateParams.params:type_name -> cosmos.protocolpool.v1.Params
|
|
0, // 11: cosmos.protocolpool.v1.Msg.FundCommunityPool:input_type -> cosmos.protocolpool.v1.MsgFundCommunityPool
|
|
2, // 12: cosmos.protocolpool.v1.Msg.CommunityPoolSpend:input_type -> cosmos.protocolpool.v1.MsgCommunityPoolSpend
|
|
4, // 13: cosmos.protocolpool.v1.Msg.SubmitBudgetProposal:input_type -> cosmos.protocolpool.v1.MsgSubmitBudgetProposal
|
|
6, // 14: cosmos.protocolpool.v1.Msg.ClaimBudget:input_type -> cosmos.protocolpool.v1.MsgClaimBudget
|
|
8, // 15: cosmos.protocolpool.v1.Msg.CreateContinuousFund:input_type -> cosmos.protocolpool.v1.MsgCreateContinuousFund
|
|
12, // 16: cosmos.protocolpool.v1.Msg.WithdrawContinuousFund:input_type -> cosmos.protocolpool.v1.MsgWithdrawContinuousFund
|
|
10, // 17: cosmos.protocolpool.v1.Msg.CancelContinuousFund:input_type -> cosmos.protocolpool.v1.MsgCancelContinuousFund
|
|
14, // 18: cosmos.protocolpool.v1.Msg.UpdateParams:input_type -> cosmos.protocolpool.v1.MsgUpdateParams
|
|
1, // 19: cosmos.protocolpool.v1.Msg.FundCommunityPool:output_type -> cosmos.protocolpool.v1.MsgFundCommunityPoolResponse
|
|
3, // 20: cosmos.protocolpool.v1.Msg.CommunityPoolSpend:output_type -> cosmos.protocolpool.v1.MsgCommunityPoolSpendResponse
|
|
5, // 21: cosmos.protocolpool.v1.Msg.SubmitBudgetProposal:output_type -> cosmos.protocolpool.v1.MsgSubmitBudgetProposalResponse
|
|
7, // 22: cosmos.protocolpool.v1.Msg.ClaimBudget:output_type -> cosmos.protocolpool.v1.MsgClaimBudgetResponse
|
|
9, // 23: cosmos.protocolpool.v1.Msg.CreateContinuousFund:output_type -> cosmos.protocolpool.v1.MsgCreateContinuousFundResponse
|
|
13, // 24: cosmos.protocolpool.v1.Msg.WithdrawContinuousFund:output_type -> cosmos.protocolpool.v1.MsgWithdrawContinuousFundResponse
|
|
11, // 25: cosmos.protocolpool.v1.Msg.CancelContinuousFund:output_type -> cosmos.protocolpool.v1.MsgCancelContinuousFundResponse
|
|
15, // 26: cosmos.protocolpool.v1.Msg.UpdateParams:output_type -> cosmos.protocolpool.v1.MsgUpdateParamsResponse
|
|
19, // [19:27] is the sub-list for method output_type
|
|
11, // [11:19] is the sub-list for method input_type
|
|
11, // [11:11] is the sub-list for extension type_name
|
|
11, // [11:11] is the sub-list for extension extendee
|
|
0, // [0:11] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_cosmos_protocolpool_v1_tx_proto_init() }
|
|
func file_cosmos_protocolpool_v1_tx_proto_init() {
|
|
if File_cosmos_protocolpool_v1_tx_proto != nil {
|
|
return
|
|
}
|
|
file_cosmos_protocolpool_v1_types_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgFundCommunityPool); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgFundCommunityPoolResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgCommunityPoolSpend); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgCommunityPoolSpendResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgSubmitBudgetProposal); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgSubmitBudgetProposalResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgClaimBudget); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgClaimBudgetResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgCreateContinuousFund); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgCreateContinuousFundResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgCancelContinuousFund); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgCancelContinuousFundResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgWithdrawContinuousFund); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgWithdrawContinuousFundResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgUpdateParams); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cosmos_protocolpool_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MsgUpdateParamsResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_cosmos_protocolpool_v1_tx_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_cosmos_protocolpool_v1_tx_proto_goTypes,
|
|
DependencyIndexes: file_cosmos_protocolpool_v1_tx_proto_depIdxs,
|
|
MessageInfos: file_cosmos_protocolpool_v1_tx_proto_msgTypes,
|
|
}.Build()
|
|
File_cosmos_protocolpool_v1_tx_proto = out.File
|
|
file_cosmos_protocolpool_v1_tx_proto_rawDesc = nil
|
|
file_cosmos_protocolpool_v1_tx_proto_goTypes = nil
|
|
file_cosmos_protocolpool_v1_tx_proto_depIdxs = nil
|
|
}
|