diff --git a/api/regen/ecocredit/v1/tx.pulsar.go b/api/regen/ecocredit/v1/tx.pulsar.go index 75a22ca2f4..2713b0230b 100644 --- a/api/regen/ecocredit/v1/tx.pulsar.go +++ b/api/regen/ecocredit/v1/tx.pulsar.go @@ -9371,7 +9371,7 @@ func (x *fastReflection_MsgRetireResponse) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_MsgCancel_2_list)(nil) type _MsgCancel_2_list struct { - list *[]*MsgCancel_CancelCredits + list *[]*Credits } func (x *_MsgCancel_2_list) Len() int { @@ -9387,18 +9387,18 @@ func (x *_MsgCancel_2_list) Get(i int) protoreflect.Value { func (x *_MsgCancel_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgCancel_CancelCredits) + concreteValue := valueUnwrapped.Interface().(*Credits) (*x.list)[i] = concreteValue } func (x *_MsgCancel_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgCancel_CancelCredits) + concreteValue := valueUnwrapped.Interface().(*Credits) *x.list = append(*x.list, concreteValue) } func (x *_MsgCancel_2_list) AppendMutable() protoreflect.Value { - v := new(MsgCancel_CancelCredits) + v := new(Credits) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -9411,7 +9411,7 @@ func (x *_MsgCancel_2_list) Truncate(n int) { } func (x *_MsgCancel_2_list) NewElement() protoreflect.Value { - v := new(MsgCancel_CancelCredits) + v := new(Credits) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -9638,7 +9638,7 @@ func (x *fastReflection_MsgCancel) Mutable(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { case "regen.ecocredit.v1.MsgCancel.credits": if x.Credits == nil { - x.Credits = []*MsgCancel_CancelCredits{} + x.Credits = []*Credits{} } value := &_MsgCancel_2_list{list: &x.Credits} return protoreflect.ValueOfList(value) @@ -9662,7 +9662,7 @@ func (x *fastReflection_MsgCancel) NewField(fd protoreflect.FieldDescriptor) pro case "regen.ecocredit.v1.MsgCancel.owner": return protoreflect.ValueOfString("") case "regen.ecocredit.v1.MsgCancel.credits": - list := []*MsgCancel_CancelCredits{} + list := []*Credits{} return protoreflect.ValueOfList(&_MsgCancel_2_list{list: &list}) case "regen.ecocredit.v1.MsgCancel.reason": return protoreflect.ValueOfString("") @@ -9918,7 +9918,7 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Credits = append(x.Credits, &MsgCancel_CancelCredits{}) + x.Credits = append(x.Credits, &Credits{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -9991,28 +9991,24 @@ func (x *fastReflection_MsgCancel) ProtoMethods() *protoiface.Methods { } var ( - md_MsgCancel_CancelCredits protoreflect.MessageDescriptor - fd_MsgCancel_CancelCredits_batch_denom protoreflect.FieldDescriptor - fd_MsgCancel_CancelCredits_amount protoreflect.FieldDescriptor + md_MsgCancelResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgCancel_CancelCredits = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCancel").Messages().ByName("CancelCredits") - fd_MsgCancel_CancelCredits_batch_denom = md_MsgCancel_CancelCredits.Fields().ByName("batch_denom") - fd_MsgCancel_CancelCredits_amount = md_MsgCancel_CancelCredits.Fields().ByName("amount") + md_MsgCancelResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCancelResponse") } -var _ protoreflect.Message = (*fastReflection_MsgCancel_CancelCredits)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCancelResponse)(nil) -type fastReflection_MsgCancel_CancelCredits MsgCancel_CancelCredits +type fastReflection_MsgCancelResponse MsgCancelResponse -func (x *MsgCancel_CancelCredits) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCancel_CancelCredits)(x) +func (x *MsgCancelResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCancelResponse)(x) } -func (x *MsgCancel_CancelCredits) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[31] +func (x *MsgCancelResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10023,43 +10019,43 @@ func (x *MsgCancel_CancelCredits) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCancel_CancelCredits_messageType fastReflection_MsgCancel_CancelCredits_messageType -var _ protoreflect.MessageType = fastReflection_MsgCancel_CancelCredits_messageType{} +var _fastReflection_MsgCancelResponse_messageType fastReflection_MsgCancelResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCancelResponse_messageType{} -type fastReflection_MsgCancel_CancelCredits_messageType struct{} +type fastReflection_MsgCancelResponse_messageType struct{} -func (x fastReflection_MsgCancel_CancelCredits_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCancel_CancelCredits)(nil) +func (x fastReflection_MsgCancelResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCancelResponse)(nil) } -func (x fastReflection_MsgCancel_CancelCredits_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCancel_CancelCredits) +func (x fastReflection_MsgCancelResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCancelResponse) } -func (x fastReflection_MsgCancel_CancelCredits_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancel_CancelCredits +func (x fastReflection_MsgCancelResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCancelResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCancel_CancelCredits) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancel_CancelCredits +func (x *fastReflection_MsgCancelResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCancelResponse } // 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_MsgCancel_CancelCredits) Type() protoreflect.MessageType { - return _fastReflection_MsgCancel_CancelCredits_messageType +func (x *fastReflection_MsgCancelResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCancelResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCancel_CancelCredits) New() protoreflect.Message { - return new(fastReflection_MsgCancel_CancelCredits) +func (x *fastReflection_MsgCancelResponse) New() protoreflect.Message { + return new(fastReflection_MsgCancelResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCancel_CancelCredits) Interface() protoreflect.ProtoMessage { - return (*MsgCancel_CancelCredits)(x) +func (x *fastReflection_MsgCancelResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCancelResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10067,19 +10063,7 @@ func (x *fastReflection_MsgCancel_CancelCredits) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCancel_CancelCredits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgCancel_CancelCredits_batch_denom, value) { - return - } - } - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_MsgCancel_CancelCredits_amount, value) { - return - } - } +func (x *fastReflection_MsgCancelResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -10093,17 +10077,13 @@ func (x *fastReflection_MsgCancel_CancelCredits) Range(f func(protoreflect.Field // 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_MsgCancel_CancelCredits) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCancelResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.CancelCredits.batch_denom": - return x.BatchDenom != "" - case "regen.ecocredit.v1.MsgCancel.CancelCredits.amount": - return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) } } @@ -10113,17 +10093,13 @@ func (x *fastReflection_MsgCancel_CancelCredits) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel_CancelCredits) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCancelResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.CancelCredits.batch_denom": - x.BatchDenom = "" - case "regen.ecocredit.v1.MsgCancel.CancelCredits.amount": - x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) } } @@ -10133,19 +10109,13 @@ func (x *fastReflection_MsgCancel_CancelCredits) Clear(fd protoreflect.FieldDesc // 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_MsgCancel_CancelCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancelResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgCancel.CancelCredits.batch_denom": - value := x.BatchDenom - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgCancel.CancelCredits.amount": - value := x.Amount - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel.CancelCredits does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", descriptor.FullName())) } } @@ -10159,17 +10129,13 @@ func (x *fastReflection_MsgCancel_CancelCredits) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel_CancelCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCancelResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.CancelCredits.batch_denom": - x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.MsgCancel.CancelCredits.amount": - x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) } } @@ -10183,44 +10149,36 @@ func (x *fastReflection_MsgCancel_CancelCredits) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel_CancelCredits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancelResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.CancelCredits.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgCancel.CancelCredits is not mutable")) - case "regen.ecocredit.v1.MsgCancel.CancelCredits.amount": - panic(fmt.Errorf("field amount of message regen.ecocredit.v1.MsgCancel.CancelCredits is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse 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_MsgCancel_CancelCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCancelResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgCancel.CancelCredits.batch_denom": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgCancel.CancelCredits.amount": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancel.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancel.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse 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_MsgCancel_CancelCredits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCancelResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCancel.CancelCredits", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCancelResponse", d.FullName())) } panic("unreachable") } @@ -10228,7 +10186,7 @@ func (x *fastReflection_MsgCancel_CancelCredits) WhichOneof(d protoreflect.Oneof // 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_MsgCancel_CancelCredits) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCancelResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10239,7 +10197,7 @@ func (x *fastReflection_MsgCancel_CancelCredits) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancel_CancelCredits) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCancelResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10251,7 +10209,7 @@ func (x *fastReflection_MsgCancel_CancelCredits) SetUnknown(fields protoreflect. // 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_MsgCancel_CancelCredits) IsValid() bool { +func (x *fastReflection_MsgCancelResponse) IsValid() bool { return x != nil } @@ -10261,9 +10219,9 @@ func (x *fastReflection_MsgCancel_CancelCredits) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCancel_CancelCredits) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCancel_CancelCredits) + x := input.Message.Interface().(*MsgCancelResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10275,14 +10233,6 @@ func (x *fastReflection_MsgCancel_CancelCredits) ProtoMethods() *protoiface.Meth var n int var l int _ = l - l = len(x.BatchDenom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Amount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10293,7 +10243,7 @@ func (x *fastReflection_MsgCancel_CancelCredits) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCancel_CancelCredits) + x := input.Message.Interface().(*MsgCancelResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10312,20 +10262,6 @@ func (x *fastReflection_MsgCancel_CancelCredits) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) - i-- - dAtA[i] = 0x12 - } - if len(x.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -10337,7 +10273,7 @@ func (x *fastReflection_MsgCancel_CancelCredits) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCancel_CancelCredits) + x := input.Message.Interface().(*MsgCancelResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10369,76 +10305,12 @@ func (x *fastReflection_MsgCancel_CancelCredits) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancel_CancelCredits: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancel_CancelCredits: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: 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 BatchDenom", 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.BatchDenom = 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 Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -10475,24 +10347,30 @@ func (x *fastReflection_MsgCancel_CancelCredits) ProtoMethods() *protoiface.Meth } var ( - md_MsgCancelResponse protoreflect.MessageDescriptor + md_MsgUpdateClassAdmin protoreflect.MessageDescriptor + fd_MsgUpdateClassAdmin_admin protoreflect.FieldDescriptor + fd_MsgUpdateClassAdmin_class_id protoreflect.FieldDescriptor + fd_MsgUpdateClassAdmin_new_admin protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgCancelResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgCancelResponse") + md_MsgUpdateClassAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdmin") + fd_MsgUpdateClassAdmin_admin = md_MsgUpdateClassAdmin.Fields().ByName("admin") + fd_MsgUpdateClassAdmin_class_id = md_MsgUpdateClassAdmin.Fields().ByName("class_id") + fd_MsgUpdateClassAdmin_new_admin = md_MsgUpdateClassAdmin.Fields().ByName("new_admin") } -var _ protoreflect.Message = (*fastReflection_MsgCancelResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdmin)(nil) -type fastReflection_MsgCancelResponse MsgCancelResponse +type fastReflection_MsgUpdateClassAdmin MsgUpdateClassAdmin -func (x *MsgCancelResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCancelResponse)(x) +func (x *MsgUpdateClassAdmin) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdmin)(x) } -func (x *MsgCancelResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[16] +func (x *MsgUpdateClassAdmin) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10503,43 +10381,43 @@ func (x *MsgCancelResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCancelResponse_messageType fastReflection_MsgCancelResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCancelResponse_messageType{} +var _fastReflection_MsgUpdateClassAdmin_messageType fastReflection_MsgUpdateClassAdmin_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdmin_messageType{} -type fastReflection_MsgCancelResponse_messageType struct{} +type fastReflection_MsgUpdateClassAdmin_messageType struct{} -func (x fastReflection_MsgCancelResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCancelResponse)(nil) +func (x fastReflection_MsgUpdateClassAdmin_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdmin)(nil) } -func (x fastReflection_MsgCancelResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCancelResponse) +func (x fastReflection_MsgUpdateClassAdmin_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdmin) } -func (x fastReflection_MsgCancelResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancelResponse +func (x fastReflection_MsgUpdateClassAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdmin } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCancelResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCancelResponse +func (x *fastReflection_MsgUpdateClassAdmin) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdmin } // 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_MsgCancelResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCancelResponse_messageType +func (x *fastReflection_MsgUpdateClassAdmin) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassAdmin_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCancelResponse) New() protoreflect.Message { - return new(fastReflection_MsgCancelResponse) +func (x *fastReflection_MsgUpdateClassAdmin) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdmin) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCancelResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCancelResponse)(x) +func (x *fastReflection_MsgUpdateClassAdmin) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassAdmin)(x) } // Range iterates over every populated field in an undefined order, @@ -10547,7 +10425,25 @@ func (x *fastReflection_MsgCancelResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCancelResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateClassAdmin_admin, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgUpdateClassAdmin_class_id, value) { + return + } + } + if x.NewAdmin != "" { + value := protoreflect.ValueOfString(x.NewAdmin) + if !f(fd_MsgUpdateClassAdmin_new_admin, value) { + return + } + } } // Has reports whether a field is populated. @@ -10561,13 +10457,19 @@ func (x *fastReflection_MsgCancelResponse) Range(f func(protoreflect.FieldDescri // 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_MsgCancelResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassAdmin) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + return x.NewAdmin != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) } } @@ -10577,13 +10479,19 @@ func (x *fastReflection_MsgCancelResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassAdmin) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + x.NewAdmin = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) } } @@ -10593,13 +10501,22 @@ func (x *fastReflection_MsgCancelResponse) Clear(fd protoreflect.FieldDescriptor // 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_MsgCancelResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + value := x.NewAdmin + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", descriptor.FullName())) } } @@ -10613,13 +10530,19 @@ func (x *fastReflection_MsgCancelResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + x.NewAdmin = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) } } @@ -10633,36 +10556,48 @@ func (x *fastReflection_MsgCancelResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin 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_MsgCancelResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgCancelResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgCancelResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin 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_MsgCancelResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgCancelResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdmin", d.FullName())) } panic("unreachable") } @@ -10670,7 +10605,7 @@ func (x *fastReflection_MsgCancelResponse) WhichOneof(d protoreflect.OneofDescri // 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_MsgCancelResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassAdmin) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10681,7 +10616,7 @@ func (x *fastReflection_MsgCancelResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCancelResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassAdmin) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10693,7 +10628,7 @@ func (x *fastReflection_MsgCancelResponse) SetUnknown(fields protoreflect.RawFie // 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_MsgCancelResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateClassAdmin) IsValid() bool { return x != nil } @@ -10703,9 +10638,9 @@ func (x *fastReflection_MsgCancelResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCancelResponse) + x := input.Message.Interface().(*MsgUpdateClassAdmin) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10717,6 +10652,18 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Admin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewAdmin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10727,7 +10674,7 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCancelResponse) + x := input.Message.Interface().(*MsgUpdateClassAdmin) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10746,6 +10693,27 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.NewAdmin) > 0 { + i -= len(x.NewAdmin) + copy(dAtA[i:], x.NewAdmin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) + i-- + dAtA[i] = 0x1a + } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -10757,7 +10725,7 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCancelResponse) + x := input.Message.Interface().(*MsgUpdateClassAdmin) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10789,12 +10757,108 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: 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 Admin", 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.Admin = 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 ClassId", 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.ClassId = 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 NewAdmin", 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.NewAdmin = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -10831,30 +10895,24 @@ func (x *fastReflection_MsgCancelResponse) ProtoMethods() *protoiface.Methods { } var ( - md_MsgUpdateClassAdmin protoreflect.MessageDescriptor - fd_MsgUpdateClassAdmin_admin protoreflect.FieldDescriptor - fd_MsgUpdateClassAdmin_class_id protoreflect.FieldDescriptor - fd_MsgUpdateClassAdmin_new_admin protoreflect.FieldDescriptor + md_MsgUpdateClassAdminResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdmin") - fd_MsgUpdateClassAdmin_admin = md_MsgUpdateClassAdmin.Fields().ByName("admin") - fd_MsgUpdateClassAdmin_class_id = md_MsgUpdateClassAdmin.Fields().ByName("class_id") - fd_MsgUpdateClassAdmin_new_admin = md_MsgUpdateClassAdmin.Fields().ByName("new_admin") + md_MsgUpdateClassAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdminResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdmin)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdminResponse)(nil) -type fastReflection_MsgUpdateClassAdmin MsgUpdateClassAdmin +type fastReflection_MsgUpdateClassAdminResponse MsgUpdateClassAdminResponse -func (x *MsgUpdateClassAdmin) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdmin)(x) +func (x *MsgUpdateClassAdminResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdminResponse)(x) } -func (x *MsgUpdateClassAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[17] +func (x *MsgUpdateClassAdminResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10865,43 +10923,43 @@ func (x *MsgUpdateClassAdmin) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassAdmin_messageType fastReflection_MsgUpdateClassAdmin_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdmin_messageType{} +var _fastReflection_MsgUpdateClassAdminResponse_messageType fastReflection_MsgUpdateClassAdminResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdminResponse_messageType{} -type fastReflection_MsgUpdateClassAdmin_messageType struct{} +type fastReflection_MsgUpdateClassAdminResponse_messageType struct{} -func (x fastReflection_MsgUpdateClassAdmin_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdmin)(nil) +func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassAdminResponse)(nil) } -func (x fastReflection_MsgUpdateClassAdmin_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdmin) +func (x fastReflection_MsgUpdateClassAdminResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdminResponse) } -func (x fastReflection_MsgUpdateClassAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdmin +func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdminResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassAdmin) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdmin -} +func (x *fastReflection_MsgUpdateClassAdminResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassAdminResponse +} // 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_MsgUpdateClassAdmin) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassAdmin_messageType +func (x *fastReflection_MsgUpdateClassAdminResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassAdminResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassAdmin) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdmin) +func (x *fastReflection_MsgUpdateClassAdminResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassAdminResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassAdmin) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassAdmin)(x) +func (x *fastReflection_MsgUpdateClassAdminResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassAdminResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10909,25 +10967,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateClassAdmin_admin, value) { - return - } - } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgUpdateClassAdmin_class_id, value) { - return - } - } - if x.NewAdmin != "" { - value := protoreflect.ValueOfString(x.NewAdmin) - if !f(fd_MsgUpdateClassAdmin_new_admin, value) { - return - } - } +func (x *fastReflection_MsgUpdateClassAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -10941,19 +10981,13 @@ func (x *fastReflection_MsgUpdateClassAdmin) Range(f func(protoreflect.FieldDesc // 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_MsgUpdateClassAdmin) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - return x.ClassId != "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - return x.NewAdmin != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) } } @@ -10963,19 +10997,13 @@ func (x *fastReflection_MsgUpdateClassAdmin) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassAdminResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - x.ClassId = "" - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - x.NewAdmin = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) } } @@ -10985,22 +11013,13 @@ func (x *fastReflection_MsgUpdateClassAdmin) Clear(fd protoreflect.FieldDescript // 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_MsgUpdateClassAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - value := x.NewAdmin - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", descriptor.FullName())) } } @@ -11014,19 +11033,13 @@ func (x *fastReflection_MsgUpdateClassAdmin) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - x.NewAdmin = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) } } @@ -11040,48 +11053,36 @@ func (x *fastReflection_MsgUpdateClassAdmin) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateClassAdmin is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse 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_MsgUpdateClassAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassAdmin.admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassAdmin.class_id": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassAdmin.new_admin": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse 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_MsgUpdateClassAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdmin", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdminResponse", d.FullName())) } panic("unreachable") } @@ -11089,7 +11090,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) WhichOneof(d protoreflect.OneofDesc // 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_MsgUpdateClassAdmin) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassAdminResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11100,7 +11101,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassAdmin) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassAdminResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11112,7 +11113,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) SetUnknown(fields protoreflect.RawF // 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_MsgUpdateClassAdmin) IsValid() bool { +func (x *fastReflection_MsgUpdateClassAdminResponse) IsValid() bool { return x != nil } @@ -11122,9 +11123,9 @@ func (x *fastReflection_MsgUpdateClassAdmin) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassAdmin) + x := input.Message.Interface().(*MsgUpdateClassAdminResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11136,18 +11137,6 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NewAdmin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -11158,7 +11147,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassAdmin) + x := input.Message.Interface().(*MsgUpdateClassAdminResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11177,27 +11166,6 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.NewAdmin) > 0 { - i -= len(x.NewAdmin) - copy(dAtA[i:], x.NewAdmin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) - i-- - dAtA[i] = 0x1a - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -11209,7 +11177,7 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassAdmin) + x := input.Message.Interface().(*MsgUpdateClassAdminResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11241,122 +11209,26 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdminResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdmin: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdminResponse: 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 Admin", 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.Admin = 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 ClassId", 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 + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ClassId = 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 NewAdmin", 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.NewAdmin = 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]...) + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } @@ -11378,1113 +11250,125 @@ func (x *fastReflection_MsgUpdateClassAdmin) ProtoMethods() *protoiface.Methods } } -var ( - md_MsgUpdateClassAdminResponse protoreflect.MessageDescriptor -) - -func init() { - file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassAdminResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassAdminResponse)(nil) - -type fastReflection_MsgUpdateClassAdminResponse MsgUpdateClassAdminResponse +var _ protoreflect.List = (*_MsgUpdateClassIssuers_3_list)(nil) -func (x *MsgUpdateClassAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdminResponse)(x) +type _MsgUpdateClassIssuers_3_list struct { + list *[]string } -func (x *MsgUpdateClassAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *_MsgUpdateClassIssuers_3_list) Len() int { + if x.list == nil { + return 0 } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateClassAdminResponse_messageType fastReflection_MsgUpdateClassAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassAdminResponse_messageType{} - -type fastReflection_MsgUpdateClassAdminResponse_messageType struct{} - -func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassAdminResponse)(nil) -} -func (x fastReflection_MsgUpdateClassAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdminResponse) -} -func (x fastReflection_MsgUpdateClassAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdminResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateClassAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassAdminResponse -} - -// 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_MsgUpdateClassAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassAdminResponse_messageType + return len(*x.list) } -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassAdminResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassAdminResponse) +func (x *_MsgUpdateClassIssuers_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) } -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassAdminResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassAdminResponse)(x) +func (x *_MsgUpdateClassIssuers_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue } -// 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_MsgUpdateClassAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *_MsgUpdateClassIssuers_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) } -// 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_MsgUpdateClassAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) - } +func (x *_MsgUpdateClassIssuers_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field AddIssuers as it is not of Message kind")) } -// 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_MsgUpdateClassAdminResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) - } +func (x *_MsgUpdateClassIssuers_3_list) Truncate(n int) { + *x.list = (*x.list)[:n] } -// 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_MsgUpdateClassAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", descriptor.FullName())) - } +func (x *_MsgUpdateClassIssuers_3_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) } -// 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_MsgUpdateClassAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) - } +func (x *_MsgUpdateClassIssuers_3_list) IsValid() bool { + return x.list != nil } -// 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_MsgUpdateClassAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) - } -} +var _ protoreflect.List = (*_MsgUpdateClassIssuers_4_list)(nil) -// 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_MsgUpdateClassAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassAdminResponse")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassAdminResponse does not contain field %s", fd.FullName())) - } +type _MsgUpdateClassIssuers_4_list struct { + list *[]string } -// 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_MsgUpdateClassAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassAdminResponse", d.FullName())) +func (x *_MsgUpdateClassIssuers_4_list) Len() int { + if x.list == nil { + return 0 } - 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_MsgUpdateClassAdminResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields + return len(*x.list) } -// 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_MsgUpdateClassAdminResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields +func (x *_MsgUpdateClassIssuers_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) } -// 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_MsgUpdateClassAdminResponse) 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_MsgUpdateClassAdminResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassAdminResponse) - 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().(*MsgUpdateClassAdminResponse) - 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().(*MsgUpdateClassAdminResponse) - 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: MsgUpdateClassAdminResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassAdminResponse: 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 = (*_MsgUpdateClassIssuers_3_list)(nil) - -type _MsgUpdateClassIssuers_3_list struct { - list *[]string -} - -func (x *_MsgUpdateClassIssuers_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgUpdateClassIssuers_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgUpdateClassIssuers_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgUpdateClassIssuers_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgUpdateClassIssuers_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field AddIssuers as it is not of Message kind")) -} - -func (x *_MsgUpdateClassIssuers_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgUpdateClassIssuers_3_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgUpdateClassIssuers_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MsgUpdateClassIssuers_4_list)(nil) - -type _MsgUpdateClassIssuers_4_list struct { - list *[]string -} - -func (x *_MsgUpdateClassIssuers_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgUpdateClassIssuers_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgUpdateClassIssuers_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue +func (x *_MsgUpdateClassIssuers_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue } func (x *_MsgUpdateClassIssuers_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgUpdateClassIssuers_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field RemoveIssuers as it is not of Message kind")) -} - -func (x *_MsgUpdateClassIssuers_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgUpdateClassIssuers_4_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgUpdateClassIssuers_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgUpdateClassIssuers protoreflect.MessageDescriptor - fd_MsgUpdateClassIssuers_admin protoreflect.FieldDescriptor - fd_MsgUpdateClassIssuers_class_id protoreflect.FieldDescriptor - fd_MsgUpdateClassIssuers_add_issuers protoreflect.FieldDescriptor - fd_MsgUpdateClassIssuers_remove_issuers protoreflect.FieldDescriptor -) - -func init() { - file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassIssuers = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuers") - fd_MsgUpdateClassIssuers_admin = md_MsgUpdateClassIssuers.Fields().ByName("admin") - fd_MsgUpdateClassIssuers_class_id = md_MsgUpdateClassIssuers.Fields().ByName("class_id") - fd_MsgUpdateClassIssuers_add_issuers = md_MsgUpdateClassIssuers.Fields().ByName("add_issuers") - fd_MsgUpdateClassIssuers_remove_issuers = md_MsgUpdateClassIssuers.Fields().ByName("remove_issuers") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuers)(nil) - -type fastReflection_MsgUpdateClassIssuers MsgUpdateClassIssuers - -func (x *MsgUpdateClassIssuers) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuers)(x) -} - -func (x *MsgUpdateClassIssuers) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] - 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_MsgUpdateClassIssuers_messageType fastReflection_MsgUpdateClassIssuers_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuers_messageType{} - -type fastReflection_MsgUpdateClassIssuers_messageType struct{} - -func (x fastReflection_MsgUpdateClassIssuers_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuers)(nil) -} -func (x fastReflection_MsgUpdateClassIssuers_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuers) -} -func (x fastReflection_MsgUpdateClassIssuers_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuers -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateClassIssuers) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuers -} - -// 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_MsgUpdateClassIssuers) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassIssuers_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassIssuers) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuers) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassIssuers) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassIssuers)(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_MsgUpdateClassIssuers) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateClassIssuers_admin, value) { - return - } - } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgUpdateClassIssuers_class_id, value) { - return - } - } - if len(x.AddIssuers) != 0 { - value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers}) - if !f(fd_MsgUpdateClassIssuers_add_issuers, value) { - return - } - } - if len(x.RemoveIssuers) != 0 { - value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers}) - if !f(fd_MsgUpdateClassIssuers_remove_issuers, 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_MsgUpdateClassIssuers) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - return x.ClassId != "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - return len(x.AddIssuers) != 0 - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - return len(x.RemoveIssuers) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuers) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - x.ClassId = "" - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - x.AddIssuers = nil - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - x.RemoveIssuers = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuers) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - if len(x.AddIssuers) == 0 { - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{}) - } - listValue := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} - return protoreflect.ValueOfList(listValue) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - if len(x.RemoveIssuers) == 0 { - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{}) - } - listValue := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuers) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - lv := value.List() - clv := lv.(*_MsgUpdateClassIssuers_3_list) - x.AddIssuers = *clv.list - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - lv := value.List() - clv := lv.(*_MsgUpdateClassIssuers_4_list) - x.RemoveIssuers = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuers) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - if x.AddIssuers == nil { - x.AddIssuers = []string{} - } - value := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - if x.RemoveIssuers == nil { - x.RemoveIssuers = []string{} - } - value := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuers) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": - list := []string{} - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &list}) - case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": - list := []string{} - return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) - } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuers) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuers", 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_MsgUpdateClassIssuers) 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_MsgUpdateClassIssuers) 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_MsgUpdateClassIssuers) 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_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassIssuers) - 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.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.AddIssuers) > 0 { - for _, s := range x.AddIssuers { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.RemoveIssuers) > 0 { - for _, s := range x.RemoveIssuers { - l = len(s) - 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().(*MsgUpdateClassIssuers) - 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.RemoveIssuers) > 0 { - for iNdEx := len(x.RemoveIssuers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.RemoveIssuers[iNdEx]) - copy(dAtA[i:], x.RemoveIssuers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoveIssuers[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.AddIssuers) > 0 { - for iNdEx := len(x.AddIssuers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.AddIssuers[iNdEx]) - copy(dAtA[i:], x.AddIssuers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AddIssuers[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - 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().(*MsgUpdateClassIssuers) - 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: MsgUpdateClassIssuers: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuers: 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 Admin", 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.Admin = 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 ClassId", 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.ClassId = 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 AddIssuers", 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.AddIssuers = append(x.AddIssuers, 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 RemoveIssuers", 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.RemoveIssuers = append(x.RemoveIssuers, 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, - } +func (x *_MsgUpdateClassIssuers_4_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgUpdateClassIssuers at list field RemoveIssuers as it is not of Message kind")) +} + +func (x *_MsgUpdateClassIssuers_4_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgUpdateClassIssuers_4_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgUpdateClassIssuers_4_list) IsValid() bool { + return x.list != nil } var ( - md_MsgUpdateClassIssuersResponse protoreflect.MessageDescriptor + md_MsgUpdateClassIssuers protoreflect.MessageDescriptor + fd_MsgUpdateClassIssuers_admin protoreflect.FieldDescriptor + fd_MsgUpdateClassIssuers_class_id protoreflect.FieldDescriptor + fd_MsgUpdateClassIssuers_add_issuers protoreflect.FieldDescriptor + fd_MsgUpdateClassIssuers_remove_issuers protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassIssuersResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuersResponse") + md_MsgUpdateClassIssuers = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuers") + fd_MsgUpdateClassIssuers_admin = md_MsgUpdateClassIssuers.Fields().ByName("admin") + fd_MsgUpdateClassIssuers_class_id = md_MsgUpdateClassIssuers.Fields().ByName("class_id") + fd_MsgUpdateClassIssuers_add_issuers = md_MsgUpdateClassIssuers.Fields().ByName("add_issuers") + fd_MsgUpdateClassIssuers_remove_issuers = md_MsgUpdateClassIssuers.Fields().ByName("remove_issuers") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuersResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuers)(nil) -type fastReflection_MsgUpdateClassIssuersResponse MsgUpdateClassIssuersResponse +type fastReflection_MsgUpdateClassIssuers MsgUpdateClassIssuers -func (x *MsgUpdateClassIssuersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuersResponse)(x) +func (x *MsgUpdateClassIssuers) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuers)(x) } -func (x *MsgUpdateClassIssuersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] +func (x *MsgUpdateClassIssuers) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12495,43 +11379,43 @@ func (x *MsgUpdateClassIssuersResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassIssuersResponse_messageType fastReflection_MsgUpdateClassIssuersResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuersResponse_messageType{} +var _fastReflection_MsgUpdateClassIssuers_messageType fastReflection_MsgUpdateClassIssuers_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuers_messageType{} -type fastReflection_MsgUpdateClassIssuersResponse_messageType struct{} +type fastReflection_MsgUpdateClassIssuers_messageType struct{} -func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassIssuersResponse)(nil) +func (x fastReflection_MsgUpdateClassIssuers_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuers)(nil) } -func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuersResponse) +func (x fastReflection_MsgUpdateClassIssuers_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuers) } -func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuersResponse +func (x fastReflection_MsgUpdateClassIssuers_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuers } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassIssuersResponse +func (x *fastReflection_MsgUpdateClassIssuers) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuers } // 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_MsgUpdateClassIssuersResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassIssuersResponse_messageType +func (x *fastReflection_MsgUpdateClassIssuers) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassIssuers_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassIssuersResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassIssuersResponse) +func (x *fastReflection_MsgUpdateClassIssuers) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuers) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassIssuersResponse)(x) +func (x *fastReflection_MsgUpdateClassIssuers) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassIssuers)(x) } // Range iterates over every populated field in an undefined order, @@ -12539,7 +11423,31 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassIssuers) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateClassIssuers_admin, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgUpdateClassIssuers_class_id, value) { + return + } + } + if len(x.AddIssuers) != 0 { + value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers}) + if !f(fd_MsgUpdateClassIssuers_add_issuers, value) { + return + } + } + if len(x.RemoveIssuers) != 0 { + value := protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers}) + if !f(fd_MsgUpdateClassIssuers_remove_issuers, value) { + return + } + } } // Has reports whether a field is populated. @@ -12553,13 +11461,21 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Range(f func(protoreflect // 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_MsgUpdateClassIssuersResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassIssuers) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + return len(x.AddIssuers) != 0 + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + return len(x.RemoveIssuers) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) } } @@ -12569,13 +11485,21 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassIssuers) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + x.AddIssuers = nil + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + x.RemoveIssuers = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) } } @@ -12585,13 +11509,31 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Clear(fd protoreflect.Fie // 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_MsgUpdateClassIssuersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuers) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + if len(x.AddIssuers) == 0 { + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{}) + } + listValue := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} + return protoreflect.ValueOfList(listValue) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + if len(x.RemoveIssuers) == 0 { + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{}) + } + listValue := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", descriptor.FullName())) } } @@ -12605,13 +11547,25 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassIssuers) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + lv := value.List() + clv := lv.(*_MsgUpdateClassIssuers_3_list) + x.AddIssuers = *clv.list + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + lv := value.List() + clv := lv.(*_MsgUpdateClassIssuers_4_list) + x.RemoveIssuers = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers does not contain field %s", fd.FullName())) } } @@ -12625,36 +11579,62 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuers) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + if x.AddIssuers == nil { + x.AddIssuers = []string{} + } + value := &_MsgUpdateClassIssuers_3_list{list: &x.AddIssuers} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + if x.RemoveIssuers == nil { + x.RemoveIssuers = []string{} + } + value := &_MsgUpdateClassIssuers_4_list{list: &x.RemoveIssuers} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassIssuers is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuers) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassIssuers.admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassIssuers.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassIssuers.add_issuers": + list := []string{} + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_3_list{list: &list}) + case "regen.ecocredit.v1.MsgUpdateClassIssuers.remove_issuers": + list := []string{} + return protoreflect.ValueOfList(&_MsgUpdateClassIssuers_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuers")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuers 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_MsgUpdateClassIssuersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassIssuers) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuersResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuers", d.FullName())) } panic("unreachable") } @@ -12662,7 +11642,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) WhichOneof(d protoreflect // 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_MsgUpdateClassIssuersResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassIssuers) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12673,7 +11653,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassIssuersResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassIssuers) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12685,7 +11665,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) SetUnknown(fields protore // 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_MsgUpdateClassIssuersResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateClassIssuers) IsValid() bool { return x != nil } @@ -12695,20 +11675,40 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassIssuers) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) + x := input.Message.Interface().(*MsgUpdateClassIssuers) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Size: 0, } } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Admin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.AddIssuers) > 0 { + for _, s := range x.AddIssuers { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.RemoveIssuers) > 0 { + for _, s := range x.RemoveIssuers { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -12719,7 +11719,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) + x := input.Message.Interface().(*MsgUpdateClassIssuers) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12738,6 +11738,38 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.RemoveIssuers) > 0 { + for iNdEx := len(x.RemoveIssuers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.RemoveIssuers[iNdEx]) + copy(dAtA[i:], x.RemoveIssuers[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoveIssuers[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.AddIssuers) > 0 { + for iNdEx := len(x.AddIssuers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.AddIssuers[iNdEx]) + copy(dAtA[i:], x.AddIssuers[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AddIssuers[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -12749,7 +11781,7 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) + x := input.Message.Interface().(*MsgUpdateClassIssuers) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12781,12 +11813,140 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuers: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuers: 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 Admin", 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.Admin = 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 ClassId", 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.ClassId = 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 AddIssuers", 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.AddIssuers = append(x.AddIssuers, 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 RemoveIssuers", 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.RemoveIssuers = append(x.RemoveIssuers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -12823,30 +11983,24 @@ func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoifac } var ( - md_MsgUpdateClassMetadata protoreflect.MessageDescriptor - fd_MsgUpdateClassMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateClassMetadata_class_id protoreflect.FieldDescriptor - fd_MsgUpdateClassMetadata_metadata protoreflect.FieldDescriptor + md_MsgUpdateClassIssuersResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadata") - fd_MsgUpdateClassMetadata_admin = md_MsgUpdateClassMetadata.Fields().ByName("admin") - fd_MsgUpdateClassMetadata_class_id = md_MsgUpdateClassMetadata.Fields().ByName("class_id") - fd_MsgUpdateClassMetadata_metadata = md_MsgUpdateClassMetadata.Fields().ByName("metadata") + md_MsgUpdateClassIssuersResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassIssuersResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadata)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassIssuersResponse)(nil) -type fastReflection_MsgUpdateClassMetadata MsgUpdateClassMetadata +type fastReflection_MsgUpdateClassIssuersResponse MsgUpdateClassIssuersResponse -func (x *MsgUpdateClassMetadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadata)(x) +func (x *MsgUpdateClassIssuersResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuersResponse)(x) } -func (x *MsgUpdateClassMetadata) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] +func (x *MsgUpdateClassIssuersResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12857,43 +12011,43 @@ func (x *MsgUpdateClassMetadata) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassMetadata_messageType fastReflection_MsgUpdateClassMetadata_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadata_messageType{} +var _fastReflection_MsgUpdateClassIssuersResponse_messageType fastReflection_MsgUpdateClassIssuersResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassIssuersResponse_messageType{} -type fastReflection_MsgUpdateClassMetadata_messageType struct{} +type fastReflection_MsgUpdateClassIssuersResponse_messageType struct{} -func (x fastReflection_MsgUpdateClassMetadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadata)(nil) +func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassIssuersResponse)(nil) } -func (x fastReflection_MsgUpdateClassMetadata_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadata) +func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuersResponse) } -func (x fastReflection_MsgUpdateClassMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadata +func (x fastReflection_MsgUpdateClassIssuersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuersResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassMetadata) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadata +func (x *fastReflection_MsgUpdateClassIssuersResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassIssuersResponse } // 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_MsgUpdateClassMetadata) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassMetadata_messageType +func (x *fastReflection_MsgUpdateClassIssuersResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassIssuersResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassMetadata) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadata) +func (x *fastReflection_MsgUpdateClassIssuersResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassIssuersResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassMetadata) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassMetadata)(x) +func (x *fastReflection_MsgUpdateClassIssuersResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassIssuersResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12901,25 +12055,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateClassMetadata_admin, value) { - return - } - } - if x.ClassId != "" { - value := protoreflect.ValueOfString(x.ClassId) - if !f(fd_MsgUpdateClassMetadata_class_id, value) { - return - } - } - if x.Metadata != "" { - value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_MsgUpdateClassMetadata_metadata, value) { - return - } - } +func (x *fastReflection_MsgUpdateClassIssuersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -12933,19 +12069,13 @@ func (x *fastReflection_MsgUpdateClassMetadata) Range(f func(protoreflect.FieldD // 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_MsgUpdateClassMetadata) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - return x.ClassId != "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - return x.Metadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) } } @@ -12955,19 +12085,13 @@ func (x *fastReflection_MsgUpdateClassMetadata) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - x.ClassId = "" - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - x.Metadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) } } @@ -12977,22 +12101,13 @@ func (x *fastReflection_MsgUpdateClassMetadata) Clear(fd protoreflect.FieldDescr // 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_MsgUpdateClassMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - value := x.ClassId - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - value := x.Metadata - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", descriptor.FullName())) } } @@ -13006,19 +12121,13 @@ func (x *fastReflection_MsgUpdateClassMetadata) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - x.ClassId = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - x.Metadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse does not contain field %s", fd.FullName())) } } @@ -13032,48 +12141,36 @@ func (x *fastReflection_MsgUpdateClassMetadata) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse 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_MsgUpdateClassMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassIssuersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassIssuersResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassIssuersResponse 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_MsgUpdateClassMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassIssuersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadata", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassIssuersResponse", d.FullName())) } panic("unreachable") } @@ -13081,7 +12178,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) WhichOneof(d protoreflect.OneofD // 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_MsgUpdateClassMetadata) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassIssuersResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13092,7 +12189,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadata) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassIssuersResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13104,7 +12201,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) SetUnknown(fields protoreflect.R // 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_MsgUpdateClassMetadata) IsValid() bool { +func (x *fastReflection_MsgUpdateClassIssuersResponse) IsValid() bool { return x != nil } @@ -13114,9 +12211,9 @@ func (x *fastReflection_MsgUpdateClassMetadata) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassIssuersResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassMetadata) + x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13128,18 +12225,6 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho var n int var l int _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ClassId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Metadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -13150,7 +12235,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadata) + x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13169,27 +12254,6 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Metadata) > 0 { - i -= len(x.Metadata) - copy(dAtA[i:], x.Metadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(x.ClassId) > 0 { - i -= len(x.ClassId) - copy(dAtA[i:], x.ClassId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -13201,7 +12265,7 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadata) + x := input.Message.Interface().(*MsgUpdateClassIssuersResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13233,108 +12297,12 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadata: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassIssuersResponse: 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 Admin", 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.Admin = 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 ClassId", 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.ClassId = 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 Metadata", 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.Metadata = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -13371,24 +12339,30 @@ func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Metho } var ( - md_MsgUpdateClassMetadataResponse protoreflect.MessageDescriptor + md_MsgUpdateClassMetadata protoreflect.MessageDescriptor + fd_MsgUpdateClassMetadata_admin protoreflect.FieldDescriptor + fd_MsgUpdateClassMetadata_class_id protoreflect.FieldDescriptor + fd_MsgUpdateClassMetadata_metadata protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateClassMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadataResponse") + md_MsgUpdateClassMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadata") + fd_MsgUpdateClassMetadata_admin = md_MsgUpdateClassMetadata.Fields().ByName("admin") + fd_MsgUpdateClassMetadata_class_id = md_MsgUpdateClassMetadata.Fields().ByName("class_id") + fd_MsgUpdateClassMetadata_metadata = md_MsgUpdateClassMetadata.Fields().ByName("metadata") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadataResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadata)(nil) -type fastReflection_MsgUpdateClassMetadataResponse MsgUpdateClassMetadataResponse +type fastReflection_MsgUpdateClassMetadata MsgUpdateClassMetadata -func (x *MsgUpdateClassMetadataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadataResponse)(x) +func (x *MsgUpdateClassMetadata) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadata)(x) } -func (x *MsgUpdateClassMetadataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] +func (x *MsgUpdateClassMetadata) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13399,43 +12373,43 @@ func (x *MsgUpdateClassMetadataResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgUpdateClassMetadataResponse_messageType fastReflection_MsgUpdateClassMetadataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadataResponse_messageType{} +var _fastReflection_MsgUpdateClassMetadata_messageType fastReflection_MsgUpdateClassMetadata_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadata_messageType{} -type fastReflection_MsgUpdateClassMetadataResponse_messageType struct{} +type fastReflection_MsgUpdateClassMetadata_messageType struct{} -func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateClassMetadataResponse)(nil) +func (x fastReflection_MsgUpdateClassMetadata_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadata)(nil) } -func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadataResponse) +func (x fastReflection_MsgUpdateClassMetadata_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadata) } -func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadataResponse +func (x fastReflection_MsgUpdateClassMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadata } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateClassMetadataResponse +func (x *fastReflection_MsgUpdateClassMetadata) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadata } // 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_MsgUpdateClassMetadataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateClassMetadataResponse_messageType +func (x *fastReflection_MsgUpdateClassMetadata) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassMetadata_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateClassMetadataResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateClassMetadataResponse) +func (x *fastReflection_MsgUpdateClassMetadata) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadata) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateClassMetadataResponse)(x) +func (x *fastReflection_MsgUpdateClassMetadata) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassMetadata)(x) } // Range iterates over every populated field in an undefined order, @@ -13443,7 +12417,25 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateClassMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateClassMetadata_admin, value) { + return + } + } + if x.ClassId != "" { + value := protoreflect.ValueOfString(x.ClassId) + if !f(fd_MsgUpdateClassMetadata_class_id, value) { + return + } + } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_MsgUpdateClassMetadata_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -13457,13 +12449,19 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Range(f func(protoreflec // 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_MsgUpdateClassMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassMetadata) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + return x.ClassId != "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": + return x.Metadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) } } @@ -13473,13 +12471,19 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassMetadata) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + x.ClassId = "" + case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": + x.Metadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) } } @@ -13489,13 +12493,22 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Clear(fd protoreflect.Fi // 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_MsgUpdateClassMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + value := x.ClassId + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", descriptor.FullName())) } } @@ -13509,13 +12522,19 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + x.ClassId = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata does not contain field %s", fd.FullName())) } } @@ -13529,36 +12548,48 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + panic(fmt.Errorf("field class_id of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": + panic(fmt.Errorf("field metadata of message regen.ecocredit.v1.MsgUpdateClassMetadata is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata 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_MsgUpdateClassMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateClassMetadata.admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassMetadata.class_id": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateClassMetadata.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadata 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_MsgUpdateClassMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadataResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadata", d.FullName())) } panic("unreachable") } @@ -13566,7 +12597,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) WhichOneof(d protoreflec // 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_MsgUpdateClassMetadataResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassMetadata) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13577,7 +12608,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateClassMetadataResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassMetadata) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13589,7 +12620,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) SetUnknown(fields protor // 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_MsgUpdateClassMetadataResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateClassMetadata) IsValid() bool { return x != nil } @@ -13599,9 +12630,9 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassMetadata) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) + x := input.Message.Interface().(*MsgUpdateClassMetadata) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13613,6 +12644,18 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa var n int var l int _ = l + l = len(x.Admin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ClassId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -13623,7 +12666,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) + x := input.Message.Interface().(*MsgUpdateClassMetadata) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13642,6 +12685,27 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x1a + } + if len(x.ClassId) > 0 { + i -= len(x.ClassId) + copy(dAtA[i:], x.ClassId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClassId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -13653,7 +12717,7 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) + x := input.Message.Interface().(*MsgUpdateClassMetadata) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13672,25 +12736,121 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa 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 + 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: MsgUpdateClassMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadata: 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 Admin", 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.Admin = 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 ClassId", 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.ClassId = 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 Metadata", 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 + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= 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 } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + 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.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -13727,30 +12887,24 @@ func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoifa } var ( - md_MsgUpdateProjectAdmin protoreflect.MessageDescriptor - fd_MsgUpdateProjectAdmin_admin protoreflect.FieldDescriptor - fd_MsgUpdateProjectAdmin_new_admin protoreflect.FieldDescriptor - fd_MsgUpdateProjectAdmin_project_id protoreflect.FieldDescriptor + md_MsgUpdateClassMetadataResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdmin") - fd_MsgUpdateProjectAdmin_admin = md_MsgUpdateProjectAdmin.Fields().ByName("admin") - fd_MsgUpdateProjectAdmin_new_admin = md_MsgUpdateProjectAdmin.Fields().ByName("new_admin") - fd_MsgUpdateProjectAdmin_project_id = md_MsgUpdateProjectAdmin.Fields().ByName("project_id") + md_MsgUpdateClassMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateClassMetadataResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdmin)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateClassMetadataResponse)(nil) -type fastReflection_MsgUpdateProjectAdmin MsgUpdateProjectAdmin +type fastReflection_MsgUpdateClassMetadataResponse MsgUpdateClassMetadataResponse -func (x *MsgUpdateProjectAdmin) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdmin)(x) +func (x *MsgUpdateClassMetadataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadataResponse)(x) } -func (x *MsgUpdateProjectAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] +func (x *MsgUpdateClassMetadataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13761,43 +12915,43 @@ func (x *MsgUpdateProjectAdmin) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectAdmin_messageType fastReflection_MsgUpdateProjectAdmin_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdmin_messageType{} +var _fastReflection_MsgUpdateClassMetadataResponse_messageType fastReflection_MsgUpdateClassMetadataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateClassMetadataResponse_messageType{} -type fastReflection_MsgUpdateProjectAdmin_messageType struct{} +type fastReflection_MsgUpdateClassMetadataResponse_messageType struct{} -func (x fastReflection_MsgUpdateProjectAdmin_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdmin)(nil) +func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateClassMetadataResponse)(nil) } -func (x fastReflection_MsgUpdateProjectAdmin_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdmin) +func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadataResponse) } -func (x fastReflection_MsgUpdateProjectAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdmin +func (x fastReflection_MsgUpdateClassMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadataResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectAdmin) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdmin +func (x *fastReflection_MsgUpdateClassMetadataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateClassMetadataResponse } // 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_MsgUpdateProjectAdmin) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectAdmin_messageType +func (x *fastReflection_MsgUpdateClassMetadataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateClassMetadataResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectAdmin) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdmin) +func (x *fastReflection_MsgUpdateClassMetadataResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateClassMetadataResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectAdmin) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectAdmin)(x) +func (x *fastReflection_MsgUpdateClassMetadataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateClassMetadataResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -13805,25 +12959,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateProjectAdmin_admin, value) { - return - } - } - if x.NewAdmin != "" { - value := protoreflect.ValueOfString(x.NewAdmin) - if !f(fd_MsgUpdateProjectAdmin_new_admin, value) { - return - } - } - if x.ProjectId != "" { - value := protoreflect.ValueOfString(x.ProjectId) - if !f(fd_MsgUpdateProjectAdmin_project_id, value) { - return - } - } +func (x *fastReflection_MsgUpdateClassMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -13837,19 +12973,13 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Range(f func(protoreflect.FieldDe // 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_MsgUpdateProjectAdmin) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateClassMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - return x.NewAdmin != "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - return x.ProjectId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) } } @@ -13859,19 +12989,13 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateClassMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - x.NewAdmin = "" - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - x.ProjectId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) } } @@ -13881,22 +13005,13 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Clear(fd protoreflect.FieldDescri // 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_MsgUpdateProjectAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - value := x.NewAdmin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - value := x.ProjectId - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", descriptor.FullName())) } } @@ -13910,19 +13025,13 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateClassMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - x.NewAdmin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - x.ProjectId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse does not contain field %s", fd.FullName())) } } @@ -13936,48 +13045,36 @@ func (x *fastReflection_MsgUpdateProjectAdmin) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateProjectAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateClassMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateClassMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateClassMetadataResponse 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_MsgUpdateProjectAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateClassMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdmin", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateClassMetadataResponse", d.FullName())) } panic("unreachable") } @@ -13985,7 +13082,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) WhichOneof(d protoreflect.OneofDe // 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_MsgUpdateProjectAdmin) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateClassMetadataResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13996,7 +13093,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdmin) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateClassMetadataResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14008,7 +13105,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) SetUnknown(fields protoreflect.Ra // 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_MsgUpdateProjectAdmin) IsValid() bool { +func (x *fastReflection_MsgUpdateClassMetadataResponse) IsValid() bool { return x != nil } @@ -14018,9 +13115,9 @@ func (x *fastReflection_MsgUpdateProjectAdmin) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateClassMetadataResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectAdmin) + x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14032,18 +13129,6 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method var n int var l int _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NewAdmin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ProjectId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -14054,46 +13139,25 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdmin) + x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) 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.ProjectId) > 0 { - i -= len(x.ProjectId) - copy(dAtA[i:], x.ProjectId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) - i-- - dAtA[i] = 0x1a - } - if len(x.NewAdmin) > 0 { - i -= len(x.NewAdmin) - copy(dAtA[i:], x.NewAdmin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } + 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 { @@ -14105,7 +13169,7 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdmin) + x := input.Message.Interface().(*MsgUpdateClassMetadataResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14137,108 +13201,12 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdmin: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadataResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdmin: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateClassMetadataResponse: 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 Admin", 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.Admin = 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 NewAdmin", 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.NewAdmin = 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 ProjectId", 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.ProjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -14275,24 +13243,30 @@ func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Method } var ( - md_MsgUpdateProjectAdminResponse protoreflect.MessageDescriptor + md_MsgUpdateProjectAdmin protoreflect.MessageDescriptor + fd_MsgUpdateProjectAdmin_admin protoreflect.FieldDescriptor + fd_MsgUpdateProjectAdmin_new_admin protoreflect.FieldDescriptor + fd_MsgUpdateProjectAdmin_project_id protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdminResponse") + md_MsgUpdateProjectAdmin = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdmin") + fd_MsgUpdateProjectAdmin_admin = md_MsgUpdateProjectAdmin.Fields().ByName("admin") + fd_MsgUpdateProjectAdmin_new_admin = md_MsgUpdateProjectAdmin.Fields().ByName("new_admin") + fd_MsgUpdateProjectAdmin_project_id = md_MsgUpdateProjectAdmin.Fields().ByName("project_id") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdminResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdmin)(nil) -type fastReflection_MsgUpdateProjectAdminResponse MsgUpdateProjectAdminResponse +type fastReflection_MsgUpdateProjectAdmin MsgUpdateProjectAdmin -func (x *MsgUpdateProjectAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdminResponse)(x) +func (x *MsgUpdateProjectAdmin) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdmin)(x) } -func (x *MsgUpdateProjectAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] +func (x *MsgUpdateProjectAdmin) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14303,43 +13277,43 @@ func (x *MsgUpdateProjectAdminResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectAdminResponse_messageType fastReflection_MsgUpdateProjectAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdminResponse_messageType{} +var _fastReflection_MsgUpdateProjectAdmin_messageType fastReflection_MsgUpdateProjectAdmin_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdmin_messageType{} -type fastReflection_MsgUpdateProjectAdminResponse_messageType struct{} +type fastReflection_MsgUpdateProjectAdmin_messageType struct{} -func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectAdminResponse)(nil) +func (x fastReflection_MsgUpdateProjectAdmin_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdmin)(nil) } -func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdminResponse) +func (x fastReflection_MsgUpdateProjectAdmin_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdmin) } -func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdminResponse +func (x fastReflection_MsgUpdateProjectAdmin_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdmin } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectAdminResponse +func (x *fastReflection_MsgUpdateProjectAdmin) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdmin } // 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_MsgUpdateProjectAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectAdminResponse_messageType +func (x *fastReflection_MsgUpdateProjectAdmin) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectAdmin_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectAdminResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectAdminResponse) +func (x *fastReflection_MsgUpdateProjectAdmin) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdmin) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectAdminResponse)(x) +func (x *fastReflection_MsgUpdateProjectAdmin) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectAdmin)(x) } // Range iterates over every populated field in an undefined order, @@ -14347,7 +13321,25 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateProjectAdmin) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateProjectAdmin_admin, value) { + return + } + } + if x.NewAdmin != "" { + value := protoreflect.ValueOfString(x.NewAdmin) + if !f(fd_MsgUpdateProjectAdmin_new_admin, value) { + return + } + } + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgUpdateProjectAdmin_project_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -14361,13 +13353,19 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Range(f func(protoreflect // 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_MsgUpdateProjectAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectAdmin) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + return x.NewAdmin != "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + return x.ProjectId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) } } @@ -14377,13 +13375,19 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectAdmin) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + x.NewAdmin = "" + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + x.ProjectId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) } } @@ -14393,13 +13397,22 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Clear(fd protoreflect.Fie // 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_MsgUpdateProjectAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + value := x.NewAdmin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", descriptor.FullName())) } } @@ -14413,13 +13426,19 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + x.NewAdmin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + x.ProjectId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin does not contain field %s", fd.FullName())) } } @@ -14433,36 +13452,48 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + panic(fmt.Errorf("field new_admin of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectAdmin is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.new_admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectAdmin.project_id": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdmin")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdmin 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_MsgUpdateProjectAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdminResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdmin", d.FullName())) } panic("unreachable") } @@ -14470,7 +13501,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) WhichOneof(d protoreflect // 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_MsgUpdateProjectAdminResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectAdmin) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14481,7 +13512,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectAdminResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectAdmin) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14493,7 +13524,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) SetUnknown(fields protore // 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_MsgUpdateProjectAdminResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectAdmin) IsValid() bool { return x != nil } @@ -14503,9 +13534,9 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectAdmin) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) + x := input.Message.Interface().(*MsgUpdateProjectAdmin) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14517,6 +13548,18 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac var n int var l int _ = l + l = len(x.Admin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewAdmin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -14527,7 +13570,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) + x := input.Message.Interface().(*MsgUpdateProjectAdmin) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14546,6 +13589,27 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + i-- + dAtA[i] = 0x1a + } + if len(x.NewAdmin) > 0 { + i -= len(x.NewAdmin) + copy(dAtA[i:], x.NewAdmin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAdmin))) + i-- + dAtA[i] = 0x12 + } + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -14557,7 +13621,7 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) + x := input.Message.Interface().(*MsgUpdateProjectAdmin) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14589,12 +13653,108 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdminResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdmin: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdmin: 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 Admin", 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.Admin = 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 NewAdmin", 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.NewAdmin = 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 ProjectId", 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.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -14631,30 +13791,24 @@ func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoifac } var ( - md_MsgUpdateProjectMetadata protoreflect.MessageDescriptor - fd_MsgUpdateProjectMetadata_admin protoreflect.FieldDescriptor - fd_MsgUpdateProjectMetadata_new_metadata protoreflect.FieldDescriptor - fd_MsgUpdateProjectMetadata_project_id protoreflect.FieldDescriptor + md_MsgUpdateProjectAdminResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadata") - fd_MsgUpdateProjectMetadata_admin = md_MsgUpdateProjectMetadata.Fields().ByName("admin") - fd_MsgUpdateProjectMetadata_new_metadata = md_MsgUpdateProjectMetadata.Fields().ByName("new_metadata") - fd_MsgUpdateProjectMetadata_project_id = md_MsgUpdateProjectMetadata.Fields().ByName("project_id") + md_MsgUpdateProjectAdminResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectAdminResponse") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadata)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectAdminResponse)(nil) -type fastReflection_MsgUpdateProjectMetadata MsgUpdateProjectMetadata +type fastReflection_MsgUpdateProjectAdminResponse MsgUpdateProjectAdminResponse -func (x *MsgUpdateProjectMetadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadata)(x) +func (x *MsgUpdateProjectAdminResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdminResponse)(x) } -func (x *MsgUpdateProjectMetadata) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] +func (x *MsgUpdateProjectAdminResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14665,43 +13819,43 @@ func (x *MsgUpdateProjectMetadata) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectMetadata_messageType fastReflection_MsgUpdateProjectMetadata_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadata_messageType{} +var _fastReflection_MsgUpdateProjectAdminResponse_messageType fastReflection_MsgUpdateProjectAdminResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectAdminResponse_messageType{} -type fastReflection_MsgUpdateProjectMetadata_messageType struct{} +type fastReflection_MsgUpdateProjectAdminResponse_messageType struct{} -func (x fastReflection_MsgUpdateProjectMetadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadata)(nil) +func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectAdminResponse)(nil) } -func (x fastReflection_MsgUpdateProjectMetadata_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadata) +func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdminResponse) } -func (x fastReflection_MsgUpdateProjectMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadata +func (x fastReflection_MsgUpdateProjectAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdminResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectMetadata) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadata +func (x *fastReflection_MsgUpdateProjectAdminResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectAdminResponse } // 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_MsgUpdateProjectMetadata) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectMetadata_messageType +func (x *fastReflection_MsgUpdateProjectAdminResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectAdminResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectMetadata) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadata) +func (x *fastReflection_MsgUpdateProjectAdminResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectAdminResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectMetadata) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectMetadata)(x) +func (x *fastReflection_MsgUpdateProjectAdminResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectAdminResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -14709,25 +13863,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Admin != "" { - value := protoreflect.ValueOfString(x.Admin) - if !f(fd_MsgUpdateProjectMetadata_admin, value) { - return - } - } - if x.NewMetadata != "" { - value := protoreflect.ValueOfString(x.NewMetadata) - if !f(fd_MsgUpdateProjectMetadata_new_metadata, value) { - return - } - } - if x.ProjectId != "" { - value := protoreflect.ValueOfString(x.ProjectId) - if !f(fd_MsgUpdateProjectMetadata_project_id, value) { - return - } - } +func (x *fastReflection_MsgUpdateProjectAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -14741,19 +13877,13 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Range(f func(protoreflect.Fiel // 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_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - return x.Admin != "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - return x.NewMetadata != "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - return x.ProjectId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) } } @@ -14763,19 +13893,13 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectAdminResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - x.Admin = "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - x.NewMetadata = "" - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - x.ProjectId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) } } @@ -14785,22 +13909,13 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Clear(fd protoreflect.FieldDes // 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_MsgUpdateProjectMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - value := x.Admin - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - value := x.NewMetadata - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - value := x.ProjectId - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", descriptor.FullName())) } } @@ -14814,19 +13929,13 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - x.Admin = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - x.NewMetadata = value.Interface().(string) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - x.ProjectId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse does not contain field %s", fd.FullName())) } } @@ -14840,48 +13949,36 @@ func (x *fastReflection_MsgUpdateProjectMetadata) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectAdminResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectAdminResponse 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_MsgUpdateProjectMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadata", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectAdminResponse", d.FullName())) } panic("unreachable") } @@ -14889,7 +13986,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) WhichOneof(d protoreflect.Oneo // 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_MsgUpdateProjectMetadata) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectAdminResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14900,7 +13997,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadata) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectAdminResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14912,7 +14009,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) SetUnknown(fields protoreflect // 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_MsgUpdateProjectMetadata) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectAdminResponse) IsValid() bool { return x != nil } @@ -14922,9 +14019,9 @@ func (x *fastReflection_MsgUpdateProjectMetadata) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectAdminResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectMetadata) + x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14936,18 +14033,6 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met var n int var l int _ = l - l = len(x.Admin) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NewMetadata) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ProjectId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -14958,7 +14043,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadata) + x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14977,27 +14062,6 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ProjectId) > 0 { - i -= len(x.ProjectId) - copy(dAtA[i:], x.ProjectId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) - i-- - dAtA[i] = 0x1a - } - if len(x.NewMetadata) > 0 { - i -= len(x.NewMetadata) - copy(dAtA[i:], x.NewMetadata) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) - i-- - dAtA[i] = 0x12 - } - if len(x.Admin) > 0 { - i -= len(x.Admin) - copy(dAtA[i:], x.Admin) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -15009,7 +14073,7 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadata) + x := input.Message.Interface().(*MsgUpdateProjectAdminResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15041,108 +14105,12 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadata: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdminResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectAdminResponse: 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 Admin", 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.Admin = 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 NewMetadata", 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.NewMetadata = 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 ProjectId", 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.ProjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -15179,24 +14147,30 @@ func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Met } var ( - md_MsgUpdateProjectMetadataResponse protoreflect.MessageDescriptor + md_MsgUpdateProjectMetadata protoreflect.MessageDescriptor + fd_MsgUpdateProjectMetadata_admin protoreflect.FieldDescriptor + fd_MsgUpdateProjectMetadata_new_metadata protoreflect.FieldDescriptor + fd_MsgUpdateProjectMetadata_project_id protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgUpdateProjectMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadataResponse") + md_MsgUpdateProjectMetadata = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadata") + fd_MsgUpdateProjectMetadata_admin = md_MsgUpdateProjectMetadata.Fields().ByName("admin") + fd_MsgUpdateProjectMetadata_new_metadata = md_MsgUpdateProjectMetadata.Fields().ByName("new_metadata") + fd_MsgUpdateProjectMetadata_project_id = md_MsgUpdateProjectMetadata.Fields().ByName("project_id") } -var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadata)(nil) -type fastReflection_MsgUpdateProjectMetadataResponse MsgUpdateProjectMetadataResponse +type fastReflection_MsgUpdateProjectMetadata MsgUpdateProjectMetadata -func (x *MsgUpdateProjectMetadataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadataResponse)(x) +func (x *MsgUpdateProjectMetadata) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadata)(x) } -func (x *MsgUpdateProjectMetadataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] +func (x *MsgUpdateProjectMetadata) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15207,43 +14181,43 @@ func (x *MsgUpdateProjectMetadataResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_MsgUpdateProjectMetadataResponse_messageType fastReflection_MsgUpdateProjectMetadataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadataResponse_messageType{} +var _fastReflection_MsgUpdateProjectMetadata_messageType fastReflection_MsgUpdateProjectMetadata_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadata_messageType{} -type fastReflection_MsgUpdateProjectMetadataResponse_messageType struct{} +type fastReflection_MsgUpdateProjectMetadata_messageType struct{} -func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) +func (x fastReflection_MsgUpdateProjectMetadata_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadata)(nil) } -func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadataResponse) +func (x fastReflection_MsgUpdateProjectMetadata_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadata) } -func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadataResponse +func (x fastReflection_MsgUpdateProjectMetadata_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadata } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateProjectMetadataResponse +func (x *fastReflection_MsgUpdateProjectMetadata) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadata } // 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_MsgUpdateProjectMetadataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateProjectMetadataResponse_messageType +func (x *fastReflection_MsgUpdateProjectMetadata) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectMetadata_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateProjectMetadataResponse) +func (x *fastReflection_MsgUpdateProjectMetadata) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadata) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateProjectMetadataResponse)(x) +func (x *fastReflection_MsgUpdateProjectMetadata) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectMetadata)(x) } // Range iterates over every populated field in an undefined order, @@ -15251,7 +14225,25 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgUpdateProjectMetadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgUpdateProjectMetadata_admin, value) { + return + } + } + if x.NewMetadata != "" { + value := protoreflect.ValueOfString(x.NewMetadata) + if !f(fd_MsgUpdateProjectMetadata_new_metadata, value) { + return + } + } + if x.ProjectId != "" { + value := protoreflect.ValueOfString(x.ProjectId) + if !f(fd_MsgUpdateProjectMetadata_project_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -15265,13 +14257,19 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Range(f func(protorefl // 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_MsgUpdateProjectMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectMetadata) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + return x.Admin != "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + return x.NewMetadata != "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + return x.ProjectId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) } } @@ -15281,13 +14279,19 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectMetadata) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + x.Admin = "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + x.NewMetadata = "" + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + x.ProjectId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) } } @@ -15297,13 +14301,22 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Clear(fd protoreflect. // 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_MsgUpdateProjectMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectMetadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + value := x.NewMetadata + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + value := x.ProjectId + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", descriptor.FullName())) } } @@ -15317,13 +14330,19 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectMetadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + x.Admin = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + x.NewMetadata = value.Interface().(string) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + x.ProjectId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata does not contain field %s", fd.FullName())) } } @@ -15337,36 +14356,48 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectMetadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + panic(fmt.Errorf("field admin of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + panic(fmt.Errorf("field new_metadata of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + panic(fmt.Errorf("field project_id of message regen.ecocredit.v1.MsgUpdateProjectMetadata is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectMetadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.admin": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.new_metadata": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgUpdateProjectMetadata.project_id": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadata")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadata 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_MsgUpdateProjectMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectMetadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadata", d.FullName())) } panic("unreachable") } @@ -15374,7 +14405,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) WhichOneof(d protorefl // 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_MsgUpdateProjectMetadataResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectMetadata) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15385,7 +14416,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectMetadata) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15397,7 +14428,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) SetUnknown(fields prot // 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_MsgUpdateProjectMetadataResponse) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectMetadata) IsValid() bool { return x != nil } @@ -15407,9 +14438,9 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectMetadata) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) + x := input.Message.Interface().(*MsgUpdateProjectMetadata) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15421,6 +14452,18 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi var n int var l int _ = l + l = len(x.Admin) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewMetadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ProjectId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -15431,7 +14474,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) + x := input.Message.Interface().(*MsgUpdateProjectMetadata) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15450,6 +14493,27 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.ProjectId) > 0 { + i -= len(x.ProjectId) + copy(dAtA[i:], x.ProjectId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProjectId))) + i-- + dAtA[i] = 0x1a + } + if len(x.NewMetadata) > 0 { + i -= len(x.NewMetadata) + copy(dAtA[i:], x.NewMetadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMetadata))) + i-- + dAtA[i] = 0x12 + } + if len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -15461,7 +14525,7 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) + x := input.Message.Interface().(*MsgUpdateProjectMetadata) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15489,16 +14553,112 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi 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: MsgUpdateProjectMetadataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadata: 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 Admin", 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.Admin = 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 NewMetadata", 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.NewMetadata = 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 ProjectId", 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.ProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -15534,86 +14694,25 @@ func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoi } } -var _ protoreflect.List = (*_MsgBridge_5_list)(nil) - -type _MsgBridge_5_list struct { - list *[]*MsgBridge_CancelCredits -} - -func (x *_MsgBridge_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgBridge_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgBridge_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgBridge_CancelCredits) - (*x.list)[i] = concreteValue -} - -func (x *_MsgBridge_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MsgBridge_CancelCredits) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgBridge_5_list) AppendMutable() protoreflect.Value { - v := new(MsgBridge_CancelCredits) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgBridge_5_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgBridge_5_list) NewElement() protoreflect.Value { - v := new(MsgBridge_CancelCredits) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgBridge_5_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgBridge protoreflect.MessageDescriptor - fd_MsgBridge_target protoreflect.FieldDescriptor - fd_MsgBridge_recipient protoreflect.FieldDescriptor - fd_MsgBridge_contract protoreflect.FieldDescriptor - fd_MsgBridge_owner protoreflect.FieldDescriptor - fd_MsgBridge_credits protoreflect.FieldDescriptor + md_MsgUpdateProjectMetadataResponse protoreflect.MessageDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridge = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridge") - fd_MsgBridge_target = md_MsgBridge.Fields().ByName("target") - fd_MsgBridge_recipient = md_MsgBridge.Fields().ByName("recipient") - fd_MsgBridge_contract = md_MsgBridge.Fields().ByName("contract") - fd_MsgBridge_owner = md_MsgBridge.Fields().ByName("owner") - fd_MsgBridge_credits = md_MsgBridge.Fields().ByName("credits") + md_MsgUpdateProjectMetadataResponse = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgUpdateProjectMetadataResponse") } -var _ protoreflect.Message = (*fastReflection_MsgBridge)(nil) +var _ protoreflect.Message = (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) -type fastReflection_MsgBridge MsgBridge +type fastReflection_MsgUpdateProjectMetadataResponse MsgUpdateProjectMetadataResponse -func (x *MsgBridge) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridge)(x) +func (x *MsgUpdateProjectMetadataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadataResponse)(x) } -func (x *MsgBridge) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] +func (x *MsgUpdateProjectMetadataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15624,43 +14723,43 @@ func (x *MsgBridge) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridge_messageType fastReflection_MsgBridge_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridge_messageType{} +var _fastReflection_MsgUpdateProjectMetadataResponse_messageType fastReflection_MsgUpdateProjectMetadataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateProjectMetadataResponse_messageType{} -type fastReflection_MsgBridge_messageType struct{} +type fastReflection_MsgUpdateProjectMetadataResponse_messageType struct{} -func (x fastReflection_MsgBridge_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridge)(nil) +func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateProjectMetadataResponse)(nil) } -func (x fastReflection_MsgBridge_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridge) +func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadataResponse) } -func (x fastReflection_MsgBridge_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridge +func (x fastReflection_MsgUpdateProjectMetadataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadataResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridge) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridge +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateProjectMetadataResponse } // 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_MsgBridge) Type() protoreflect.MessageType { - return _fastReflection_MsgBridge_messageType +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateProjectMetadataResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridge) New() protoreflect.Message { - return new(fastReflection_MsgBridge) +func (x *fastReflection_MsgUpdateProjectMetadataResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateProjectMetadataResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridge) Interface() protoreflect.ProtoMessage { - return (*MsgBridge)(x) +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateProjectMetadataResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -15668,37 +14767,7 @@ func (x *fastReflection_MsgBridge) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridge) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Target != "" { - value := protoreflect.ValueOfString(x.Target) - if !f(fd_MsgBridge_target, value) { - return - } - } - if x.Recipient != "" { - value := protoreflect.ValueOfString(x.Recipient) - if !f(fd_MsgBridge_recipient, value) { - return - } - } - if x.Contract != "" { - value := protoreflect.ValueOfString(x.Contract) - if !f(fd_MsgBridge_contract, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_MsgBridge_owner, value) { - return - } - } - if len(x.Credits) != 0 { - value := protoreflect.ValueOfList(&_MsgBridge_5_list{list: &x.Credits}) - if !f(fd_MsgBridge_credits, value) { - return - } - } +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -15712,23 +14781,13 @@ func (x *fastReflection_MsgBridge) Range(f func(protoreflect.FieldDescriptor, pr // 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_MsgBridge) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.target": - return x.Target != "" - case "regen.ecocredit.v1.MsgBridge.recipient": - return x.Recipient != "" - case "regen.ecocredit.v1.MsgBridge.contract": - return x.Contract != "" - case "regen.ecocredit.v1.MsgBridge.owner": - return x.Owner != "" - case "regen.ecocredit.v1.MsgBridge.credits": - return len(x.Credits) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) } } @@ -15738,23 +14797,13 @@ func (x *fastReflection_MsgBridge) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.target": - x.Target = "" - case "regen.ecocredit.v1.MsgBridge.recipient": - x.Recipient = "" - case "regen.ecocredit.v1.MsgBridge.contract": - x.Contract = "" - case "regen.ecocredit.v1.MsgBridge.owner": - x.Owner = "" - case "regen.ecocredit.v1.MsgBridge.credits": - x.Credits = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) } } @@ -15764,31 +14813,13 @@ func (x *fastReflection_MsgBridge) Clear(fd protoreflect.FieldDescriptor) { // 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_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgBridge.target": - value := x.Target - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.recipient": - value := x.Recipient - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.contract": - value := x.Contract - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.credits": - if len(x.Credits) == 0 { - return protoreflect.ValueOfList(&_MsgBridge_5_list{}) - } - listValue := &_MsgBridge_5_list{list: &x.Credits} - return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", descriptor.FullName())) } } @@ -15802,25 +14833,13 @@ func (x *fastReflection_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.target": - x.Target = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.recipient": - x.Recipient = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.contract": - x.Contract = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.owner": - x.Owner = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.credits": - lv := value.List() - clv := lv.(*_MsgBridge_5_list) - x.Credits = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse does not contain field %s", fd.FullName())) } } @@ -15834,61 +14853,36 @@ func (x *fastReflection_MsgBridge) Set(fd protoreflect.FieldDescriptor, value pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.credits": - if x.Credits == nil { - x.Credits = []*MsgBridge_CancelCredits{} - } - value := &_MsgBridge_5_list{list: &x.Credits} - return protoreflect.ValueOfList(value) - case "regen.ecocredit.v1.MsgBridge.target": - panic(fmt.Errorf("field target of message regen.ecocredit.v1.MsgBridge is not mutable")) - case "regen.ecocredit.v1.MsgBridge.recipient": - panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgBridge is not mutable")) - case "regen.ecocredit.v1.MsgBridge.contract": - panic(fmt.Errorf("field contract of message regen.ecocredit.v1.MsgBridge is not mutable")) - case "regen.ecocredit.v1.MsgBridge.owner": - panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgBridge is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgBridge) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.target": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.recipient": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.contract": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.owner": - return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.credits": - list := []*MsgBridge_CancelCredits{} - return protoreflect.ValueOfList(&_MsgBridge_5_list{list: &list}) +func (x *fastReflection_MsgUpdateProjectMetadataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgUpdateProjectMetadataResponse")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgUpdateProjectMetadataResponse 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_MsgBridge) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridge", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", d.FullName())) } panic("unreachable") } @@ -15896,7 +14890,7 @@ func (x *fastReflection_MsgBridge) WhichOneof(d protoreflect.OneofDescriptor) pr // 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_MsgBridge) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15907,7 +14901,7 @@ func (x *fastReflection_MsgBridge) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15919,7 +14913,7 @@ func (x *fastReflection_MsgBridge) SetUnknown(fields protoreflect.RawFields) { // 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_MsgBridge) IsValid() bool { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) IsValid() bool { return x != nil } @@ -15929,9 +14923,9 @@ func (x *fastReflection_MsgBridge) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgUpdateProjectMetadataResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridge) + x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15943,28 +14937,6 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Target) - 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.Contract) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Credits) > 0 { - for _, e := range x.Credits { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -15975,7 +14947,7 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridge) + x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15994,50 +14966,6 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Credits) > 0 { - for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Credits[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] = 0x2a - } - } - if len(x.Owner) > 0 { - i -= len(x.Owner) - copy(dAtA[i:], x.Owner) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) - i-- - dAtA[i] = 0x22 - } - if len(x.Contract) > 0 { - i -= len(x.Contract) - copy(dAtA[i:], x.Contract) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contract))) - 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.Target) > 0 { - i -= len(x.Target) - copy(dAtA[i:], x.Target) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -16049,7 +14977,7 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridge) + x := input.Message.Interface().(*MsgUpdateProjectMetadataResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16081,174 +15009,12 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge: 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 Target", 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.Target = 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 Contract", 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.Contract = 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 Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Credits", 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.Credits = append(x.Credits, &MsgBridge_CancelCredits{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateProjectMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -16284,29 +15050,86 @@ func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_MsgBridge_5_list)(nil) + +type _MsgBridge_5_list struct { + list *[]*Credits +} + +func (x *_MsgBridge_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgBridge_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgBridge_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + (*x.list)[i] = concreteValue +} + +func (x *_MsgBridge_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Credits) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgBridge_5_list) AppendMutable() protoreflect.Value { + v := new(Credits) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgBridge_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgBridge_5_list) NewElement() protoreflect.Value { + v := new(Credits) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgBridge_5_list) IsValid() bool { + return x.list != nil +} + var ( - md_MsgBridge_CancelCredits protoreflect.MessageDescriptor - fd_MsgBridge_CancelCredits_batch_denom protoreflect.FieldDescriptor - fd_MsgBridge_CancelCredits_amount protoreflect.FieldDescriptor + md_MsgBridge protoreflect.MessageDescriptor + fd_MsgBridge_target protoreflect.FieldDescriptor + fd_MsgBridge_recipient protoreflect.FieldDescriptor + fd_MsgBridge_contract protoreflect.FieldDescriptor + fd_MsgBridge_owner protoreflect.FieldDescriptor + fd_MsgBridge_credits protoreflect.FieldDescriptor ) func init() { file_regen_ecocredit_v1_tx_proto_init() - md_MsgBridge_CancelCredits = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridge").Messages().ByName("CancelCredits") - fd_MsgBridge_CancelCredits_batch_denom = md_MsgBridge_CancelCredits.Fields().ByName("batch_denom") - fd_MsgBridge_CancelCredits_amount = md_MsgBridge_CancelCredits.Fields().ByName("amount") + md_MsgBridge = File_regen_ecocredit_v1_tx_proto.Messages().ByName("MsgBridge") + fd_MsgBridge_target = md_MsgBridge.Fields().ByName("target") + fd_MsgBridge_recipient = md_MsgBridge.Fields().ByName("recipient") + fd_MsgBridge_contract = md_MsgBridge.Fields().ByName("contract") + fd_MsgBridge_owner = md_MsgBridge.Fields().ByName("owner") + fd_MsgBridge_credits = md_MsgBridge.Fields().ByName("credits") } -var _ protoreflect.Message = (*fastReflection_MsgBridge_CancelCredits)(nil) +var _ protoreflect.Message = (*fastReflection_MsgBridge)(nil) -type fastReflection_MsgBridge_CancelCredits MsgBridge_CancelCredits +type fastReflection_MsgBridge MsgBridge -func (x *MsgBridge_CancelCredits) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBridge_CancelCredits)(x) +func (x *MsgBridge) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgBridge)(x) } -func (x *MsgBridge_CancelCredits) slowProtoReflect() protoreflect.Message { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[32] +func (x *MsgBridge) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16317,43 +15140,43 @@ func (x *MsgBridge_CancelCredits) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgBridge_CancelCredits_messageType fastReflection_MsgBridge_CancelCredits_messageType -var _ protoreflect.MessageType = fastReflection_MsgBridge_CancelCredits_messageType{} +var _fastReflection_MsgBridge_messageType fastReflection_MsgBridge_messageType +var _ protoreflect.MessageType = fastReflection_MsgBridge_messageType{} -type fastReflection_MsgBridge_CancelCredits_messageType struct{} +type fastReflection_MsgBridge_messageType struct{} -func (x fastReflection_MsgBridge_CancelCredits_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBridge_CancelCredits)(nil) +func (x fastReflection_MsgBridge_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgBridge)(nil) } -func (x fastReflection_MsgBridge_CancelCredits_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBridge_CancelCredits) +func (x fastReflection_MsgBridge_messageType) New() protoreflect.Message { + return new(fastReflection_MsgBridge) } -func (x fastReflection_MsgBridge_CancelCredits_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridge_CancelCredits +func (x fastReflection_MsgBridge_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridge } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgBridge_CancelCredits) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBridge_CancelCredits +func (x *fastReflection_MsgBridge) Descriptor() protoreflect.MessageDescriptor { + return md_MsgBridge } // 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_MsgBridge_CancelCredits) Type() protoreflect.MessageType { - return _fastReflection_MsgBridge_CancelCredits_messageType +func (x *fastReflection_MsgBridge) Type() protoreflect.MessageType { + return _fastReflection_MsgBridge_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBridge_CancelCredits) New() protoreflect.Message { - return new(fastReflection_MsgBridge_CancelCredits) +func (x *fastReflection_MsgBridge) New() protoreflect.Message { + return new(fastReflection_MsgBridge) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBridge_CancelCredits) Interface() protoreflect.ProtoMessage { - return (*MsgBridge_CancelCredits)(x) +func (x *fastReflection_MsgBridge) Interface() protoreflect.ProtoMessage { + return (*MsgBridge)(x) } // Range iterates over every populated field in an undefined order, @@ -16361,16 +15184,34 @@ func (x *fastReflection_MsgBridge_CancelCredits) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgBridge_CancelCredits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BatchDenom != "" { - value := protoreflect.ValueOfString(x.BatchDenom) - if !f(fd_MsgBridge_CancelCredits_batch_denom, value) { +func (x *fastReflection_MsgBridge) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Target != "" { + value := protoreflect.ValueOfString(x.Target) + if !f(fd_MsgBridge_target, value) { return } } - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_MsgBridge_CancelCredits_amount, value) { + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_MsgBridge_recipient, value) { + return + } + } + if x.Contract != "" { + value := protoreflect.ValueOfString(x.Contract) + if !f(fd_MsgBridge_contract, value) { + return + } + } + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_MsgBridge_owner, value) { + return + } + } + if len(x.Credits) != 0 { + value := protoreflect.ValueOfList(&_MsgBridge_5_list{list: &x.Credits}) + if !f(fd_MsgBridge_credits, value) { return } } @@ -16387,17 +15228,23 @@ func (x *fastReflection_MsgBridge_CancelCredits) Range(f func(protoreflect.Field // 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_MsgBridge_CancelCredits) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgBridge) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.CancelCredits.batch_denom": - return x.BatchDenom != "" - case "regen.ecocredit.v1.MsgBridge.CancelCredits.amount": - return x.Amount != "" + case "regen.ecocredit.v1.MsgBridge.target": + return x.Target != "" + case "regen.ecocredit.v1.MsgBridge.recipient": + return x.Recipient != "" + case "regen.ecocredit.v1.MsgBridge.contract": + return x.Contract != "" + case "regen.ecocredit.v1.MsgBridge.owner": + return x.Owner != "" + case "regen.ecocredit.v1.MsgBridge.credits": + return len(x.Credits) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) } } @@ -16407,17 +15254,23 @@ func (x *fastReflection_MsgBridge_CancelCredits) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge_CancelCredits) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgBridge) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.CancelCredits.batch_denom": - x.BatchDenom = "" - case "regen.ecocredit.v1.MsgBridge.CancelCredits.amount": - x.Amount = "" + case "regen.ecocredit.v1.MsgBridge.target": + x.Target = "" + case "regen.ecocredit.v1.MsgBridge.recipient": + x.Recipient = "" + case "regen.ecocredit.v1.MsgBridge.contract": + x.Contract = "" + case "regen.ecocredit.v1.MsgBridge.owner": + x.Owner = "" + case "regen.ecocredit.v1.MsgBridge.credits": + x.Credits = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) } } @@ -16427,19 +15280,31 @@ func (x *fastReflection_MsgBridge_CancelCredits) Clear(fd protoreflect.FieldDesc // 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_MsgBridge_CancelCredits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridge) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.ecocredit.v1.MsgBridge.CancelCredits.batch_denom": - value := x.BatchDenom + case "regen.ecocredit.v1.MsgBridge.target": + value := x.Target return protoreflect.ValueOfString(value) - case "regen.ecocredit.v1.MsgBridge.CancelCredits.amount": - value := x.Amount + case "regen.ecocredit.v1.MsgBridge.recipient": + value := x.Recipient + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridge.contract": + value := x.Contract return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridge.owner": + value := x.Owner + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.MsgBridge.credits": + if len(x.Credits) == 0 { + return protoreflect.ValueOfList(&_MsgBridge_5_list{}) + } + listValue := &_MsgBridge_5_list{list: &x.Credits} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge.CancelCredits does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", descriptor.FullName())) } } @@ -16453,17 +15318,25 @@ func (x *fastReflection_MsgBridge_CancelCredits) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge_CancelCredits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgBridge) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.CancelCredits.batch_denom": - x.BatchDenom = value.Interface().(string) - case "regen.ecocredit.v1.MsgBridge.CancelCredits.amount": - x.Amount = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.target": + x.Target = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.recipient": + x.Recipient = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.contract": + x.Contract = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.owner": + x.Owner = value.Interface().(string) + case "regen.ecocredit.v1.MsgBridge.credits": + lv := value.List() + clv := lv.(*_MsgBridge_5_list) + x.Credits = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge does not contain field %s", fd.FullName())) } } @@ -16477,44 +15350,61 @@ func (x *fastReflection_MsgBridge_CancelCredits) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge_CancelCredits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridge) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.CancelCredits.batch_denom": - panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.MsgBridge.CancelCredits is not mutable")) - case "regen.ecocredit.v1.MsgBridge.CancelCredits.amount": - panic(fmt.Errorf("field amount of message regen.ecocredit.v1.MsgBridge.CancelCredits is not mutable")) + case "regen.ecocredit.v1.MsgBridge.credits": + if x.Credits == nil { + x.Credits = []*Credits{} + } + value := &_MsgBridge_5_list{list: &x.Credits} + return protoreflect.ValueOfList(value) + case "regen.ecocredit.v1.MsgBridge.target": + panic(fmt.Errorf("field target of message regen.ecocredit.v1.MsgBridge is not mutable")) + case "regen.ecocredit.v1.MsgBridge.recipient": + panic(fmt.Errorf("field recipient of message regen.ecocredit.v1.MsgBridge is not mutable")) + case "regen.ecocredit.v1.MsgBridge.contract": + panic(fmt.Errorf("field contract of message regen.ecocredit.v1.MsgBridge is not mutable")) + case "regen.ecocredit.v1.MsgBridge.owner": + panic(fmt.Errorf("field owner of message regen.ecocredit.v1.MsgBridge is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge_CancelCredits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgBridge) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.ecocredit.v1.MsgBridge.CancelCredits.batch_denom": + case "regen.ecocredit.v1.MsgBridge.target": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridge.recipient": return protoreflect.ValueOfString("") - case "regen.ecocredit.v1.MsgBridge.CancelCredits.amount": + case "regen.ecocredit.v1.MsgBridge.contract": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridge.owner": return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.MsgBridge.credits": + list := []*Credits{} + return protoreflect.ValueOfList(&_MsgBridge_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge.CancelCredits")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.MsgBridge")) } - panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge.CancelCredits does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.ecocredit.v1.MsgBridge 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_MsgBridge_CancelCredits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgBridge) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridge.CancelCredits", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.MsgBridge", d.FullName())) } panic("unreachable") } @@ -16522,7 +15412,7 @@ func (x *fastReflection_MsgBridge_CancelCredits) WhichOneof(d protoreflect.Oneof // 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_MsgBridge_CancelCredits) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgBridge) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -16533,7 +15423,7 @@ func (x *fastReflection_MsgBridge_CancelCredits) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgBridge_CancelCredits) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgBridge) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -16545,7 +15435,7 @@ func (x *fastReflection_MsgBridge_CancelCredits) SetUnknown(fields protoreflect. // 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_MsgBridge_CancelCredits) IsValid() bool { +func (x *fastReflection_MsgBridge) IsValid() bool { return x != nil } @@ -16555,9 +15445,9 @@ func (x *fastReflection_MsgBridge_CancelCredits) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgBridge) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBridge_CancelCredits) + x := input.Message.Interface().(*MsgBridge) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16569,14 +15459,28 @@ func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Meth var n int var l int _ = l - l = len(x.BatchDenom) + l = len(x.Target) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Amount) + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Contract) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Owner) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if len(x.Credits) > 0 { + for _, e := range x.Credits { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -16587,7 +15491,7 @@ func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgBridge_CancelCredits) + x := input.Message.Interface().(*MsgBridge) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16606,17 +15510,47 @@ func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + if len(x.Credits) > 0 { + for iNdEx := len(x.Credits) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Credits[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] = 0x2a + } + } + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + i-- + dAtA[i] = 0x22 + } + if len(x.Contract) > 0 { + i -= len(x.Contract) + copy(dAtA[i:], x.Contract) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contract))) + 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.BatchDenom) > 0 { - i -= len(x.BatchDenom) - copy(dAtA[i:], x.BatchDenom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + if len(x.Target) > 0 { + i -= len(x.Target) + copy(dAtA[i:], x.Target) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) i-- dAtA[i] = 0xa } @@ -16631,7 +15565,7 @@ func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgBridge_CancelCredits) + x := input.Message.Interface().(*MsgBridge) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16663,15 +15597,15 @@ func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge_CancelCredits: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge_CancelCredits: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBridge: 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 BatchDenom", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16699,11 +15633,11 @@ func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BatchDenom = string(dAtA[iNdEx:postIndex]) + x.Target = 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 Amount", wireType) + 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 { @@ -16731,7 +15665,105 @@ func (x *fastReflection_MsgBridge_CancelCredits) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + 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 Contract", 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.Contract = 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 Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Credits", 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.Credits = append(x.Credits, &Credits{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Credits[len(x.Credits)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -17945,7 +16977,7 @@ type MsgCancel struct { // owner is the address of the account that owns the credits being cancelled. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // credits are the credits being cancelled. - Credits []*MsgCancel_CancelCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` + Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` // reason is any arbitrary string that specifies the reason for cancelling // credits. Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` @@ -17978,7 +17010,7 @@ func (x *MsgCancel) GetOwner() string { return "" } -func (x *MsgCancel) GetCredits() []*MsgCancel_CancelCredits { +func (x *MsgCancel) GetCredits() []*Credits { if x != nil { return x.Credits } @@ -18455,7 +17487,7 @@ type MsgBridge struct { // owner is the address of the account that owns the credits being bridged. Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` // credits are the credits being cancelled. - Credits []*MsgBridge_CancelCredits `protobuf:"bytes,5,rep,name=credits,proto3" json:"credits,omitempty"` + Credits []*Credits `protobuf:"bytes,5,rep,name=credits,proto3" json:"credits,omitempty"` } func (x *MsgBridge) Reset() { @@ -18506,7 +17538,7 @@ func (x *MsgBridge) GetOwner() string { return "" } -func (x *MsgBridge) GetCredits() []*MsgBridge_CancelCredits { +func (x *MsgBridge) GetCredits() []*Credits { if x != nil { return x.Credits } @@ -18662,102 +17694,6 @@ func (x *MsgRetire_RetireCredits) GetAmount() string { return "" } -// CancelCredits specifies a batch and the number of credits being cancelled. -type MsgCancel_CancelCredits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // amount is the number of credits being cancelled. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgCancel_CancelCredits) Reset() { - *x = MsgCancel_CancelCredits{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCancel_CancelCredits) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCancel_CancelCredits) ProtoMessage() {} - -// Deprecated: Use MsgCancel_CancelCredits.ProtoReflect.Descriptor instead. -func (*MsgCancel_CancelCredits) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{15, 0} -} - -func (x *MsgCancel_CancelCredits) GetBatchDenom() string { - if x != nil { - return x.BatchDenom - } - return "" -} - -func (x *MsgCancel_CancelCredits) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - -// CancelCredits specifies a batch and the number of credits being cancelled. -type MsgBridge_CancelCredits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // amount is the number of credits being cancelled. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgBridge_CancelCredits) Reset() { - *x = MsgBridge_CancelCredits{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_ecocredit_v1_tx_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBridge_CancelCredits) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBridge_CancelCredits) ProtoMessage() {} - -// Deprecated: Use MsgBridge_CancelCredits.ProtoReflect.Descriptor instead. -func (*MsgBridge_CancelCredits) Descriptor() ([]byte, []int) { - return file_regen_ecocredit_v1_tx_proto_rawDescGZIP(), []int{27, 0} -} - -func (x *MsgBridge_CancelCredits) GetBatchDenom() string { - if x != nil { - return x.BatchDenom - } - return "" -} - -func (x *MsgBridge_CancelCredits) GetAmount() string { - if x != nil { - return x.Amount - } - return "" -} - var File_regen_ecocredit_v1_tx_proto protoreflect.FileDescriptor var file_regen_ecocredit_v1_tx_proto_rawDesc = []byte{ @@ -18898,186 +17834,175 @@ var file_regen_ecocredit_v1_tx_proto_rawDesc = []byte{ 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x1a, 0x48, 0x0a, 0x0d, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x70, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, + 0x13, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x90, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x61, 0x64, 0x64, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x25, 0x0a, + 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x73, 0x73, + 0x75, 0x65, 0x72, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, - 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x1d, 0x0a, - 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x90, 0x01, 0x0a, - 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, - 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x69, - 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x64, - 0x64, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x22, - 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x65, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x0a, 0x15, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x49, 0x64, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, - 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, + 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x20, 0x0a, 0x1e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, + 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1b, 0x0a, + 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6e, 0x65, 0x77, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x84, 0x02, - 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 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, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, - 0x64, 0x67, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x1a, 0x48, 0x0a, 0x0d, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf3, 0x0a, 0x0a, 0x03, 0x4d, 0x73, - 0x67, 0x12, 0x5d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x63, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x10, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x73, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x57, 0x0a, 0x09, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, - 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x53, - 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, - 0x1a, 0x23, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x12, - 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x1a, 0x25, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, - 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x1a, 0x25, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x0a, 0x18, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, + 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x22, + 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 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, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x07, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, + 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf3, 0x0a, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x5d, 0x0a, 0x0b, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x22, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x1a, + 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, + 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x6c, 0x0a, 0x10, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x1a, 0x2f, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x69, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, + 0x09, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x28, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x1a, 0x23, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4e, 0x0a, 0x06, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x1a, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x73, 0x67, 0x52, 0x65, 0x74, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4e, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x73, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6c, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x32, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, - 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x2f, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, + 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, + 0x75, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, + 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2c, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x4e, 0x0a, 0x06, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0xd5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, - 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x32, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, + 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, + 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x1a, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xd5, 0x01, 0x0a, 0x16, 0x63, + 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, + 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, + 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -19092,7 +18017,7 @@ func file_regen_ecocredit_v1_tx_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_tx_proto_rawDescData } -var file_regen_ecocredit_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_regen_ecocredit_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 31) var file_regen_ecocredit_v1_tx_proto_goTypes = []interface{}{ (*MsgCreateClass)(nil), // 0: regen.ecocredit.v1.MsgCreateClass (*MsgCreateClassResponse)(nil), // 1: regen.ecocredit.v1.MsgCreateClassResponse @@ -19125,24 +18050,23 @@ var file_regen_ecocredit_v1_tx_proto_goTypes = []interface{}{ (*MsgBridgeResponse)(nil), // 28: regen.ecocredit.v1.MsgBridgeResponse (*MsgSend_SendCredits)(nil), // 29: regen.ecocredit.v1.MsgSend.SendCredits (*MsgRetire_RetireCredits)(nil), // 30: regen.ecocredit.v1.MsgRetire.RetireCredits - (*MsgCancel_CancelCredits)(nil), // 31: regen.ecocredit.v1.MsgCancel.CancelCredits - (*MsgBridge_CancelCredits)(nil), // 32: regen.ecocredit.v1.MsgBridge.CancelCredits - (*v1beta1.Coin)(nil), // 33: cosmos.base.v1beta1.Coin - (*timestamppb.Timestamp)(nil), // 34: google.protobuf.Timestamp - (*OriginTx)(nil), // 35: regen.ecocredit.v1.OriginTx + (*v1beta1.Coin)(nil), // 31: cosmos.base.v1beta1.Coin + (*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp + (*OriginTx)(nil), // 33: regen.ecocredit.v1.OriginTx + (*Credits)(nil), // 34: regen.ecocredit.v1.Credits } var file_regen_ecocredit_v1_tx_proto_depIdxs = []int32{ - 33, // 0: regen.ecocredit.v1.MsgCreateClass.fee:type_name -> cosmos.base.v1beta1.Coin + 31, // 0: regen.ecocredit.v1.MsgCreateClass.fee:type_name -> cosmos.base.v1beta1.Coin 5, // 1: regen.ecocredit.v1.MsgCreateBatch.issuance:type_name -> regen.ecocredit.v1.BatchIssuance - 34, // 2: regen.ecocredit.v1.MsgCreateBatch.start_date:type_name -> google.protobuf.Timestamp - 34, // 3: regen.ecocredit.v1.MsgCreateBatch.end_date:type_name -> google.protobuf.Timestamp - 35, // 4: regen.ecocredit.v1.MsgCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 32, // 2: regen.ecocredit.v1.MsgCreateBatch.start_date:type_name -> google.protobuf.Timestamp + 32, // 3: regen.ecocredit.v1.MsgCreateBatch.end_date:type_name -> google.protobuf.Timestamp + 33, // 4: regen.ecocredit.v1.MsgCreateBatch.origin_tx:type_name -> regen.ecocredit.v1.OriginTx 5, // 5: regen.ecocredit.v1.MsgMintBatchCredits.issuance:type_name -> regen.ecocredit.v1.BatchIssuance - 35, // 6: regen.ecocredit.v1.MsgMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx + 33, // 6: regen.ecocredit.v1.MsgMintBatchCredits.origin_tx:type_name -> regen.ecocredit.v1.OriginTx 29, // 7: regen.ecocredit.v1.MsgSend.credits:type_name -> regen.ecocredit.v1.MsgSend.SendCredits 30, // 8: regen.ecocredit.v1.MsgRetire.credits:type_name -> regen.ecocredit.v1.MsgRetire.RetireCredits - 31, // 9: regen.ecocredit.v1.MsgCancel.credits:type_name -> regen.ecocredit.v1.MsgCancel.CancelCredits - 32, // 10: regen.ecocredit.v1.MsgBridge.credits:type_name -> regen.ecocredit.v1.MsgBridge.CancelCredits + 34, // 9: regen.ecocredit.v1.MsgCancel.credits:type_name -> regen.ecocredit.v1.Credits + 34, // 10: regen.ecocredit.v1.MsgBridge.credits:type_name -> regen.ecocredit.v1.Credits 0, // 11: regen.ecocredit.v1.Msg.CreateClass:input_type -> regen.ecocredit.v1.MsgCreateClass 2, // 12: regen.ecocredit.v1.Msg.CreateProject:input_type -> regen.ecocredit.v1.MsgCreateProject 4, // 13: regen.ecocredit.v1.Msg.CreateBatch:input_type -> regen.ecocredit.v1.MsgCreateBatch @@ -19557,30 +18481,6 @@ func file_regen_ecocredit_v1_tx_proto_init() { return nil } } - file_regen_ecocredit_v1_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCancel_CancelCredits); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_ecocredit_v1_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBridge_CancelCredits); 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{ @@ -19588,7 +18488,7 @@ func file_regen_ecocredit_v1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_v1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 33, + NumMessages: 31, NumExtensions: 0, NumServices: 1, }, diff --git a/api/regen/ecocredit/v1/types.pulsar.go b/api/regen/ecocredit/v1/types.pulsar.go index 9727cc979c..97bd927353 100644 --- a/api/regen/ecocredit/v1/types.pulsar.go +++ b/api/regen/ecocredit/v1/types.pulsar.go @@ -1871,6 +1871,490 @@ func (x *fastReflection_CreditTypeProposal) ProtoMethods() *protoiface.Methods { } } +var ( + md_Credits protoreflect.MessageDescriptor + fd_Credits_batch_denom protoreflect.FieldDescriptor + fd_Credits_amount protoreflect.FieldDescriptor +) + +func init() { + file_regen_ecocredit_v1_types_proto_init() + md_Credits = File_regen_ecocredit_v1_types_proto.Messages().ByName("Credits") + fd_Credits_batch_denom = md_Credits.Fields().ByName("batch_denom") + fd_Credits_amount = md_Credits.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_Credits)(nil) + +type fastReflection_Credits Credits + +func (x *Credits) ProtoReflect() protoreflect.Message { + return (*fastReflection_Credits)(x) +} + +func (x *Credits) slowProtoReflect() protoreflect.Message { + mi := &file_regen_ecocredit_v1_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Credits_messageType fastReflection_Credits_messageType +var _ protoreflect.MessageType = fastReflection_Credits_messageType{} + +type fastReflection_Credits_messageType struct{} + +func (x fastReflection_Credits_messageType) Zero() protoreflect.Message { + return (*fastReflection_Credits)(nil) +} +func (x fastReflection_Credits_messageType) New() protoreflect.Message { + return new(fastReflection_Credits) +} +func (x fastReflection_Credits_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Credits +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Credits) Descriptor() protoreflect.MessageDescriptor { + return md_Credits +} + +// 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_Credits) Type() protoreflect.MessageType { + return _fastReflection_Credits_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Credits) New() protoreflect.Message { + return new(fastReflection_Credits) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Credits) Interface() protoreflect.ProtoMessage { + return (*Credits)(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_Credits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BatchDenom != "" { + value := protoreflect.ValueOfString(x.BatchDenom) + if !f(fd_Credits_batch_denom, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_Credits_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_Credits) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.ecocredit.v1.Credits.batch_denom": + return x.BatchDenom != "" + case "regen.ecocredit.v1.Credits.amount": + return x.Amount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_Credits) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.ecocredit.v1.Credits.batch_denom": + x.BatchDenom = "" + case "regen.ecocredit.v1.Credits.amount": + x.Amount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_Credits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.ecocredit.v1.Credits.batch_denom": + value := x.BatchDenom + return protoreflect.ValueOfString(value) + case "regen.ecocredit.v1.Credits.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_Credits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.ecocredit.v1.Credits.batch_denom": + x.BatchDenom = value.Interface().(string) + case "regen.ecocredit.v1.Credits.amount": + x.Amount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_Credits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.Credits.batch_denom": + panic(fmt.Errorf("field batch_denom of message regen.ecocredit.v1.Credits is not mutable")) + case "regen.ecocredit.v1.Credits.amount": + panic(fmt.Errorf("field amount of message regen.ecocredit.v1.Credits is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_Credits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.ecocredit.v1.Credits.batch_denom": + return protoreflect.ValueOfString("") + case "regen.ecocredit.v1.Credits.amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.ecocredit.v1.Credits")) + } + panic(fmt.Errorf("message regen.ecocredit.v1.Credits 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_Credits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.ecocredit.v1.Credits", 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_Credits) 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_Credits) 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_Credits) 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_Credits) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Credits) + 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.BatchDenom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + 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().(*Credits) + 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 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(x.BatchDenom) > 0 { + i -= len(x.BatchDenom) + copy(dAtA[i:], x.BatchDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BatchDenom))) + 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().(*Credits) + 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: Credits: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Credits: 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 BatchDenom", 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.BatchDenom = 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 Amount", 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.Amount = 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, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -2056,6 +2540,52 @@ func (x *CreditTypeProposal) GetCreditType() *CreditType { return nil } +// Credits represents a simple structure for credits. +type Credits struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // batch_denom is the denom of the credit batch + BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // amount is the amount of credits + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *Credits) Reset() { + *x = Credits{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_ecocredit_v1_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Credits) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Credits) ProtoMessage() {} + +// Deprecated: Use Credits.ProtoReflect.Descriptor instead. +func (*Credits) Descriptor() ([]byte, []int) { + return file_regen_ecocredit_v1_types_proto_rawDescGZIP(), []int{3} +} + +func (x *Credits) GetBatchDenom() string { + if x != nil { + return x.BatchDenom + } + return "" +} + +func (x *Credits) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + var File_regen_ecocredit_v1_types_proto protoreflect.FileDescriptor var file_regen_ecocredit_v1_types_proto_rawDesc = []byte{ @@ -2101,21 +2631,25 @@ var file_regen_ecocredit_v1_types_proto_rawDesc = []byte{ 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x3a, - 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, - 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x45, 0x58, 0xaa, 0x02, - 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, - 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x52, 0x65, 0x67, 0x65, - 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x22, 0x42, 0x0a, 0x07, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6e, 0x6f, + 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xd8, 0x01, 0x0a, 0x16, 0x63, 0x6f, + 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, + 0x3b, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, + 0x45, 0x58, 0xaa, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x45, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, + 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x52, + 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, + 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x45, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2130,18 +2664,19 @@ func file_regen_ecocredit_v1_types_proto_rawDescGZIP() []byte { return file_regen_ecocredit_v1_types_proto_rawDescData } -var file_regen_ecocredit_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_regen_ecocredit_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_regen_ecocredit_v1_types_proto_goTypes = []interface{}{ (*Params)(nil), // 0: regen.ecocredit.v1.Params (*OriginTx)(nil), // 1: regen.ecocredit.v1.OriginTx (*CreditTypeProposal)(nil), // 2: regen.ecocredit.v1.CreditTypeProposal - (*v1beta1.Coin)(nil), // 3: cosmos.base.v1beta1.Coin - (*CreditType)(nil), // 4: regen.ecocredit.v1.CreditType + (*Credits)(nil), // 3: regen.ecocredit.v1.Credits + (*v1beta1.Coin)(nil), // 4: cosmos.base.v1beta1.Coin + (*CreditType)(nil), // 5: regen.ecocredit.v1.CreditType } var file_regen_ecocredit_v1_types_proto_depIdxs = []int32{ - 3, // 0: regen.ecocredit.v1.Params.credit_class_fee:type_name -> cosmos.base.v1beta1.Coin - 3, // 1: regen.ecocredit.v1.Params.basket_fee:type_name -> cosmos.base.v1beta1.Coin - 4, // 2: regen.ecocredit.v1.CreditTypeProposal.credit_type:type_name -> regen.ecocredit.v1.CreditType + 4, // 0: regen.ecocredit.v1.Params.credit_class_fee:type_name -> cosmos.base.v1beta1.Coin + 4, // 1: regen.ecocredit.v1.Params.basket_fee:type_name -> cosmos.base.v1beta1.Coin + 5, // 2: regen.ecocredit.v1.CreditTypeProposal.credit_type:type_name -> regen.ecocredit.v1.CreditType 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -2192,6 +2727,18 @@ func file_regen_ecocredit_v1_types_proto_init() { return nil } } + file_regen_ecocredit_v1_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Credits); 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{ @@ -2199,7 +2746,7 @@ func file_regen_ecocredit_v1_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_ecocredit_v1_types_proto_rawDesc, NumEnums: 0, - NumMessages: 3, + NumMessages: 4, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/regen/ecocredit/v1/tx.proto b/proto/regen/ecocredit/v1/tx.proto index d2424d20f6..f920b00f16 100644 --- a/proto/regen/ecocredit/v1/tx.proto +++ b/proto/regen/ecocredit/v1/tx.proto @@ -322,23 +322,11 @@ message MsgCancel { string owner = 1; // credits are the credits being cancelled. - repeated CancelCredits credits = 2; + repeated Credits credits = 2; // reason is any arbitrary string that specifies the reason for cancelling // credits. string reason = 3; - - // CancelCredits specifies a batch and the number of credits being cancelled. - message CancelCredits { - - // batch_denom is the unique identifier of the credit batch. - string batch_denom = 1; - - // amount is the number of credits being cancelled. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - string amount = 2; - } } // MsgCancelResponse is the Msg/Cancel response type. @@ -444,19 +432,7 @@ message MsgBridge { string owner = 4; // credits are the credits being cancelled. - repeated CancelCredits credits = 5; - - // CancelCredits specifies a batch and the number of credits being cancelled. - message CancelCredits { - - // batch_denom is the unique identifier of the credit batch. - string batch_denom = 1; - - // amount is the number of credits being cancelled. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - string amount = 2; - } + repeated Credits credits = 5; } // MsgBridgeResponse is the Msg/MsgBridge response type. diff --git a/proto/regen/ecocredit/v1/types.proto b/proto/regen/ecocredit/v1/types.proto index dc91452b09..2dc8f80e28 100644 --- a/proto/regen/ecocredit/v1/types.proto +++ b/proto/regen/ecocredit/v1/types.proto @@ -59,3 +59,12 @@ message CreditTypeProposal { // passes. CreditType credit_type = 3; } + +// Credits represents a simple structure for credits. +message Credits { + // batch_denom is the denom of the credit batch + string batch_denom = 1; + + // amount is the amount of credits + string amount = 2; +} diff --git a/x/ecocredit/client/util.go b/x/ecocredit/client/util.go index 37861f016f..dea6f6f7e8 100644 --- a/x/ecocredit/client/util.go +++ b/x/ecocredit/client/util.go @@ -57,15 +57,15 @@ var ( reCredits = regexp.MustCompile(fmt.Sprintf(`^(%s) (%s)$`, reCreditAmt, core.RegexBatchDenom)) ) -func parseCancelCreditsList(creditsListStr string) ([]*core.MsgCancel_CancelCredits, error) { +func parseCancelCreditsList(creditsListStr string) ([]*core.Credits, error) { creditsList, err := parseCreditsList(creditsListStr) if err != nil { return nil, err } - cancelCreditsList := make([]*core.MsgCancel_CancelCredits, len(creditsList)) + cancelCreditsList := make([]*core.Credits, len(creditsList)) for i, credits := range creditsList { - cancelCreditsList[i] = &core.MsgCancel_CancelCredits{ + cancelCreditsList[i] = &core.Credits{ BatchDenom: credits.batchDenom, Amount: credits.amount, } diff --git a/x/ecocredit/core/msg_bridge_test.go b/x/ecocredit/core/msg_bridge_test.go index cc7e7dfede..3bf086eb41 100644 --- a/x/ecocredit/core/msg_bridge_test.go +++ b/x/ecocredit/core/msg_bridge_test.go @@ -3,8 +3,9 @@ package core import ( "testing" - "github.com/regen-network/regen-ledger/types/testutil" "github.com/stretchr/testify/require" + + "github.com/regen-network/regen-ledger/types/testutil" ) func TestMsgBridge(t *testing.T) { @@ -21,7 +22,7 @@ func TestMsgBridge(t *testing.T) { "valid msg": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -35,7 +36,7 @@ func TestMsgBridge(t *testing.T) { }, "invalid msg without owner": { src: MsgBridge{ - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -50,7 +51,7 @@ func TestMsgBridge(t *testing.T) { "invalid msg with wrong owner address": { src: MsgBridge{ Owner: "wrong owner", - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -68,7 +69,7 @@ func TestMsgBridge(t *testing.T) { "invalid msg without Credits.BatchDenom": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { Amount: "10", }, @@ -79,7 +80,7 @@ func TestMsgBridge(t *testing.T) { "invalid msg without Credits.Amount": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, }, @@ -90,7 +91,7 @@ func TestMsgBridge(t *testing.T) { "invalid msg with wrong Credits.Amount": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "abc", @@ -102,7 +103,7 @@ func TestMsgBridge(t *testing.T) { "invalid msg without bridge target": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -116,7 +117,7 @@ func TestMsgBridge(t *testing.T) { "invalid msg without bridge contract": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -130,7 +131,7 @@ func TestMsgBridge(t *testing.T) { "invalid msg without bridge recipient address": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -144,7 +145,7 @@ func TestMsgBridge(t *testing.T) { "invalid bridge recipient address": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -159,7 +160,7 @@ func TestMsgBridge(t *testing.T) { "invalid bridge target": { src: MsgBridge{ Owner: addr1, - Credits: []*MsgBridge_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", diff --git a/x/ecocredit/core/msg_cancel_test.go b/x/ecocredit/core/msg_cancel_test.go index ea44b1ea56..b6e0e4df84 100644 --- a/x/ecocredit/core/msg_cancel_test.go +++ b/x/ecocredit/core/msg_cancel_test.go @@ -3,8 +3,9 @@ package core import ( "testing" - "github.com/regen-network/regen-ledger/types/testutil" "github.com/stretchr/testify/require" + + "github.com/regen-network/regen-ledger/types/testutil" ) func TestMsgCancel(t *testing.T) { @@ -19,7 +20,7 @@ func TestMsgCancel(t *testing.T) { "valid msg": { src: MsgCancel{ Owner: addr1, - Credits: []*MsgCancel_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -31,7 +32,7 @@ func TestMsgCancel(t *testing.T) { }, "invalid msg without holder": { src: MsgCancel{ - Credits: []*MsgCancel_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -43,7 +44,7 @@ func TestMsgCancel(t *testing.T) { "invalid msg with wrong holder address": { src: MsgCancel{ Owner: "wrong owner", - Credits: []*MsgCancel_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "10", @@ -61,7 +62,7 @@ func TestMsgCancel(t *testing.T) { "invalid msg without Credits.BatchDenom": { src: MsgCancel{ Owner: addr1, - Credits: []*MsgCancel_CancelCredits{ + Credits: []*Credits{ { Amount: "10", }, @@ -72,7 +73,7 @@ func TestMsgCancel(t *testing.T) { "invalid msg without Credits.Amount": { src: MsgCancel{ Owner: addr1, - Credits: []*MsgCancel_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, }, @@ -83,7 +84,7 @@ func TestMsgCancel(t *testing.T) { "invalid msg with wrong Credits.Amount": { src: MsgCancel{ Owner: addr1, - Credits: []*MsgCancel_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "abc", @@ -95,7 +96,7 @@ func TestMsgCancel(t *testing.T) { "invalid msg reason is required": { src: MsgCancel{ Owner: addr1, - Credits: []*MsgCancel_CancelCredits{ + Credits: []*Credits{ { BatchDenom: batchDenom, Amount: "1", diff --git a/x/ecocredit/core/tx.pb.go b/x/ecocredit/core/tx.pb.go index 6ce8bfe981..d12e200979 100644 --- a/x/ecocredit/core/tx.pb.go +++ b/x/ecocredit/core/tx.pb.go @@ -1116,7 +1116,7 @@ type MsgCancel struct { // owner is the address of the account that owns the credits being cancelled. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // credits are the credits being cancelled. - Credits []*MsgCancel_CancelCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` + Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` // reason is any arbitrary string that specifies the reason for cancelling // credits. Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` @@ -1162,7 +1162,7 @@ func (m *MsgCancel) GetOwner() string { return "" } -func (m *MsgCancel) GetCredits() []*MsgCancel_CancelCredits { +func (m *MsgCancel) GetCredits() []*Credits { if m != nil { return m.Credits } @@ -1176,63 +1176,6 @@ func (m *MsgCancel) GetReason() string { return "" } -// CancelCredits specifies a batch and the number of credits being cancelled. -type MsgCancel_CancelCredits struct { - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // amount is the number of credits being cancelled. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (m *MsgCancel_CancelCredits) Reset() { *m = MsgCancel_CancelCredits{} } -func (m *MsgCancel_CancelCredits) String() string { return proto.CompactTextString(m) } -func (*MsgCancel_CancelCredits) ProtoMessage() {} -func (*MsgCancel_CancelCredits) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{15, 0} -} -func (m *MsgCancel_CancelCredits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCancel_CancelCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCancel_CancelCredits.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgCancel_CancelCredits) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCancel_CancelCredits.Merge(m, src) -} -func (m *MsgCancel_CancelCredits) XXX_Size() int { - return m.Size() -} -func (m *MsgCancel_CancelCredits) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCancel_CancelCredits.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCancel_CancelCredits proto.InternalMessageInfo - -func (m *MsgCancel_CancelCredits) GetBatchDenom() string { - if m != nil { - return m.BatchDenom - } - return "" -} - -func (m *MsgCancel_CancelCredits) GetAmount() string { - if m != nil { - return m.Amount - } - return "" -} - // MsgCancelResponse is the Msg/Cancel response type. type MsgCancelResponse struct { } @@ -1797,7 +1740,7 @@ type MsgBridge struct { // owner is the address of the account that owns the credits being bridged. Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` // credits are the credits being cancelled. - Credits []*MsgBridge_CancelCredits `protobuf:"bytes,5,rep,name=credits,proto3" json:"credits,omitempty"` + Credits []*Credits `protobuf:"bytes,5,rep,name=credits,proto3" json:"credits,omitempty"` } func (m *MsgBridge) Reset() { *m = MsgBridge{} } @@ -1861,70 +1804,13 @@ func (m *MsgBridge) GetOwner() string { return "" } -func (m *MsgBridge) GetCredits() []*MsgBridge_CancelCredits { +func (m *MsgBridge) GetCredits() []*Credits { if m != nil { return m.Credits } return nil } -// CancelCredits specifies a batch and the number of credits being cancelled. -type MsgBridge_CancelCredits struct { - // batch_denom is the unique identifier of the credit batch. - BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` - // amount is the number of credits being cancelled. - // Decimal values are acceptable within the precision returned by - // Query/Precision. - Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (m *MsgBridge_CancelCredits) Reset() { *m = MsgBridge_CancelCredits{} } -func (m *MsgBridge_CancelCredits) String() string { return proto.CompactTextString(m) } -func (*MsgBridge_CancelCredits) ProtoMessage() {} -func (*MsgBridge_CancelCredits) Descriptor() ([]byte, []int) { - return fileDescriptor_2b8ae49f50a3ddbd, []int{27, 0} -} -func (m *MsgBridge_CancelCredits) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgBridge_CancelCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgBridge_CancelCredits.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgBridge_CancelCredits) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBridge_CancelCredits.Merge(m, src) -} -func (m *MsgBridge_CancelCredits) XXX_Size() int { - return m.Size() -} -func (m *MsgBridge_CancelCredits) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBridge_CancelCredits.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBridge_CancelCredits proto.InternalMessageInfo - -func (m *MsgBridge_CancelCredits) GetBatchDenom() string { - if m != nil { - return m.BatchDenom - } - return "" -} - -func (m *MsgBridge_CancelCredits) GetAmount() string { - if m != nil { - return m.Amount - } - return "" -} - // MsgBridgeResponse is the Msg/MsgBridge response type. type MsgBridgeResponse struct { } @@ -1981,7 +1867,6 @@ func init() { proto.RegisterType((*MsgRetire_RetireCredits)(nil), "regen.ecocredit.v1.MsgRetire.RetireCredits") proto.RegisterType((*MsgRetireResponse)(nil), "regen.ecocredit.v1.MsgRetireResponse") proto.RegisterType((*MsgCancel)(nil), "regen.ecocredit.v1.MsgCancel") - proto.RegisterType((*MsgCancel_CancelCredits)(nil), "regen.ecocredit.v1.MsgCancel.CancelCredits") proto.RegisterType((*MsgCancelResponse)(nil), "regen.ecocredit.v1.MsgCancelResponse") proto.RegisterType((*MsgUpdateClassAdmin)(nil), "regen.ecocredit.v1.MsgUpdateClassAdmin") proto.RegisterType((*MsgUpdateClassAdminResponse)(nil), "regen.ecocredit.v1.MsgUpdateClassAdminResponse") @@ -1994,100 +1879,98 @@ func init() { proto.RegisterType((*MsgUpdateProjectMetadata)(nil), "regen.ecocredit.v1.MsgUpdateProjectMetadata") proto.RegisterType((*MsgUpdateProjectMetadataResponse)(nil), "regen.ecocredit.v1.MsgUpdateProjectMetadataResponse") proto.RegisterType((*MsgBridge)(nil), "regen.ecocredit.v1.MsgBridge") - proto.RegisterType((*MsgBridge_CancelCredits)(nil), "regen.ecocredit.v1.MsgBridge.CancelCredits") proto.RegisterType((*MsgBridgeResponse)(nil), "regen.ecocredit.v1.MsgBridgeResponse") } func init() { proto.RegisterFile("regen/ecocredit/v1/tx.proto", fileDescriptor_2b8ae49f50a3ddbd) } var fileDescriptor_2b8ae49f50a3ddbd = []byte{ - // 1369 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0xee, 0xda, 0x4e, 0x62, 0x1f, 0x27, 0xfd, 0xd9, 0xb6, 0xc1, 0xdd, 0x34, 0x8e, 0xbb, 0x50, - 0x35, 0xb4, 0x65, 0xad, 0xa4, 0x08, 0x54, 0x21, 0x84, 0x92, 0x14, 0xd1, 0x20, 0x19, 0x2a, 0x53, - 0x84, 0x84, 0x84, 0xac, 0xf5, 0xee, 0xe9, 0x76, 0x8b, 0x3d, 0x63, 0xcd, 0x4e, 0x7e, 0x2a, 0x2e, - 0xe1, 0x01, 0xfa, 0x18, 0x3c, 0x01, 0xbd, 0xe1, 0x01, 0x10, 0x57, 0xbd, 0x42, 0x5c, 0x20, 0x81, - 0xda, 0x47, 0xe0, 0x05, 0xd0, 0xce, 0xcc, 0x8e, 0x77, 0x6d, 0xef, 0x3a, 0x25, 0x5c, 0x70, 0xd3, - 0xec, 0x9c, 0xf9, 0xce, 0xcf, 0x77, 0xe6, 0xcc, 0x9c, 0xe3, 0xc2, 0x1a, 0xc3, 0x00, 0x49, 0x1b, - 0x3d, 0xea, 0x31, 0xf4, 0x43, 0xde, 0x3e, 0xdc, 0x6a, 0xf3, 0x63, 0x67, 0xc4, 0x28, 0xa7, 0xa6, - 0x29, 0x36, 0x1d, 0xbd, 0xe9, 0x1c, 0x6e, 0x59, 0x97, 0x02, 0x1a, 0x50, 0xb1, 0xdd, 0x8e, 0xbf, - 0x24, 0xd2, 0xda, 0x08, 0x28, 0x0d, 0x06, 0xd8, 0x16, 0xab, 0xfe, 0xc1, 0xa3, 0x36, 0x0f, 0x87, - 0x18, 0x71, 0x77, 0x38, 0x52, 0x80, 0xa6, 0x47, 0xa3, 0x21, 0x8d, 0xda, 0x7d, 0x37, 0xc2, 0xf6, - 0xe1, 0x56, 0x1f, 0xb9, 0xbb, 0xd5, 0xf6, 0x68, 0x48, 0x92, 0xfd, 0x59, 0x71, 0x3c, 0x1d, 0x61, - 0x24, 0xf7, 0xed, 0xe7, 0x06, 0x9c, 0xed, 0x44, 0xc1, 0x1e, 0x43, 0x97, 0xe3, 0xde, 0xc0, 0x8d, - 0x22, 0xf3, 0x12, 0x2c, 0xb8, 0xfe, 0x30, 0x24, 0x0d, 0xa3, 0x65, 0x6c, 0xd6, 0xba, 0x72, 0x61, - 0x36, 0x60, 0x29, 0x8c, 0xa2, 0x03, 0x64, 0x51, 0xa3, 0xd4, 0x2a, 0x6f, 0xd6, 0xba, 0xc9, 0xd2, - 0xb4, 0xa0, 0x3a, 0x44, 0xee, 0xfa, 0x2e, 0x77, 0x1b, 0x65, 0xa1, 0xa2, 0xd7, 0xe6, 0x6d, 0x30, - 0xa5, 0xdf, 0x5e, 0xec, 0xb4, 0xe7, 0xf6, 0xfb, 0x0c, 0x0f, 0x1b, 0x15, 0x81, 0x3a, 0x2f, 0x77, - 0x1e, 0x3e, 0x1d, 0xe1, 0x8e, 0x90, 0x9b, 0xb7, 0xa0, 0xfc, 0x08, 0xb1, 0xb1, 0xd0, 0x32, 0x36, - 0xeb, 0xdb, 0x57, 0x1c, 0x49, 0xcd, 0x89, 0xa9, 0x39, 0x8a, 0x9a, 0xb3, 0x47, 0x43, 0xd2, 0x8d, - 0x51, 0xf6, 0x1d, 0x58, 0xcd, 0x06, 0xde, 0xc5, 0x68, 0x44, 0x49, 0x84, 0xe6, 0x15, 0xa8, 0x7a, - 0xb1, 0xa0, 0x17, 0xfa, 0x8a, 0xc3, 0x92, 0x58, 0xef, 0xfb, 0xf6, 0x8f, 0x06, 0x9c, 0xd7, 0x5a, - 0x0f, 0x18, 0x7d, 0x82, 0x1e, 0x37, 0x57, 0x61, 0x51, 0x72, 0x51, 0x68, 0xb5, 0xca, 0xd8, 0x29, - 0x65, 0xec, 0x14, 0x72, 0xb6, 0x61, 0xf9, 0xc9, 0x01, 0x0b, 0x23, 0x3f, 0xf4, 0x78, 0x48, 0x89, - 0x62, 0x9b, 0x91, 0x99, 0xd7, 0x60, 0x99, 0xe1, 0x23, 0x64, 0x48, 0x3c, 0x8c, 0xcd, 0x2f, 0x08, - 0x4c, 0x5d, 0xcb, 0xf6, 0x7d, 0xfb, 0x2e, 0x34, 0x26, 0x23, 0xd5, 0x0c, 0xd7, 0x01, 0x46, 0x52, - 0x34, 0xe6, 0x58, 0x53, 0x92, 0x7d, 0xdf, 0xfe, 0xbe, 0x9c, 0x3a, 0xd4, 0x5d, 0x97, 0x7b, 0x8f, - 0x73, 0x39, 0x66, 0x2d, 0x95, 0x26, 0x2c, 0x99, 0x1f, 0x42, 0x35, 0x06, 0xba, 0xc4, 0xc3, 0x46, - 0xb9, 0x55, 0xde, 0xac, 0x6f, 0x5f, 0x73, 0xa6, 0x8b, 0xd7, 0x11, 0x3e, 0xf6, 0x15, 0xb0, 0xab, - 0x55, 0x32, 0x69, 0xaa, 0x4c, 0xa4, 0xe9, 0x23, 0x80, 0x88, 0xbb, 0x8c, 0xf7, 0x7c, 0x97, 0x27, - 0x67, 0x6e, 0x39, 0xb2, 0xde, 0x9d, 0xa4, 0xde, 0x9d, 0x87, 0x49, 0xbd, 0xef, 0x56, 0x9e, 0xfd, - 0xb9, 0x61, 0x74, 0x6b, 0x42, 0xe7, 0x9e, 0xcb, 0xd1, 0xfc, 0x00, 0xaa, 0x48, 0x7c, 0xa9, 0xbe, - 0x78, 0x42, 0xf5, 0x25, 0x24, 0xbe, 0x50, 0x36, 0xa1, 0x42, 0x47, 0x48, 0x1a, 0x4b, 0x2d, 0x63, - 0xb3, 0xda, 0x15, 0xdf, 0xe6, 0x5d, 0xa8, 0x51, 0x16, 0x06, 0x21, 0xe9, 0xf1, 0xe3, 0x46, 0x55, - 0x58, 0xbc, 0x3a, 0x8b, 0xed, 0xe7, 0x02, 0xf4, 0xf0, 0xb8, 0x5b, 0xa5, 0xea, 0x2b, 0x36, 0x47, - 0x28, 0xc7, 0x46, 0x4d, 0x90, 0x14, 0xdf, 0xf6, 0x4f, 0x06, 0xac, 0x64, 0x12, 0x63, 0x5e, 0x85, - 0x1a, 0x43, 0x2f, 0x1c, 0x85, 0x48, 0x78, 0x72, 0x6a, 0x5a, 0x60, 0xde, 0x80, 0x73, 0x9c, 0xb9, - 0xbe, 0xdb, 0x1f, 0x60, 0xcf, 0x1d, 0xd2, 0x03, 0xc2, 0xd5, 0x79, 0x9c, 0x4d, 0xc4, 0x3b, 0x42, - 0x6a, 0x5e, 0x87, 0xb3, 0x0c, 0x79, 0xc8, 0xd0, 0x4f, 0x70, 0xb2, 0x04, 0x57, 0x94, 0x54, 0xc1, - 0xde, 0x87, 0x37, 0xa4, 0x60, 0x88, 0x84, 0xf7, 0x66, 0x94, 0xe4, 0xea, 0x78, 0xfb, 0xd3, 0xd4, - 0xae, 0x7d, 0x37, 0x75, 0xb3, 0x04, 0x01, 0x5d, 0x77, 0x1b, 0x50, 0xef, 0xc7, 0x82, 0x9e, 0x8f, - 0x84, 0x0e, 0x15, 0x05, 0x10, 0xa2, 0x7b, 0xb1, 0xc4, 0xfe, 0xc3, 0x80, 0x8b, 0x9d, 0x28, 0xe8, - 0x84, 0x84, 0x0b, 0xcd, 0x3d, 0x91, 0xb4, 0x28, 0xb7, 0xfc, 0x26, 0x0c, 0x96, 0x26, 0x0d, 0x9e, - 0xb6, 0x00, 0x33, 0x47, 0x5a, 0xf9, 0x57, 0x47, 0xba, 0x90, 0x3a, 0xd2, 0x4f, 0x60, 0xb9, 0x13, - 0x05, 0x5f, 0xa0, 0x3b, 0x28, 0xbe, 0x55, 0xf3, 0x68, 0xd9, 0xeb, 0xb0, 0x36, 0x23, 0x4d, 0x49, - 0x9e, 0xed, 0x55, 0xb8, 0x94, 0xf6, 0xa3, 0xe5, 0x3f, 0x97, 0x60, 0x49, 0x6c, 0x10, 0x3f, 0xf6, - 0x1d, 0x21, 0xf1, 0xc7, 0xbe, 0xe5, 0x2a, 0x5b, 0x64, 0xa5, 0xc9, 0x22, 0xdb, 0x81, 0x25, 0xc9, - 0x3a, 0x52, 0xe9, 0xbc, 0x31, 0x2b, 0x1d, 0xca, 0x87, 0x13, 0xff, 0x93, 0xc4, 0x96, 0xe8, 0x59, - 0xcf, 0x0d, 0xa8, 0xa7, 0x36, 0xe6, 0x16, 0xc5, 0xff, 0xa7, 0xb0, 0x2f, 0xc0, 0x39, 0xc5, 0x4c, - 0x67, 0xf4, 0x37, 0x03, 0x6a, 0x9d, 0x28, 0xe8, 0x0a, 0x85, 0xb8, 0xf5, 0xd1, 0x23, 0xa2, 0x53, - 0x2a, 0x17, 0xe6, 0xc7, 0xe3, 0x9c, 0x95, 0x44, 0xce, 0x6e, 0xe5, 0xe4, 0x4c, 0x5a, 0x71, 0xe4, - 0x9f, 0xc9, 0xbc, 0x4d, 0xf5, 0x85, 0xf2, 0x74, 0x5f, 0xb0, 0xee, 0xc3, 0x4a, 0x46, 0x7b, 0x7e, - 0x72, 0x57, 0x61, 0x31, 0x93, 0x53, 0xb5, 0xb2, 0x2f, 0xc2, 0x05, 0x1d, 0x91, 0x66, 0xfb, 0xab, - 0x64, 0xbb, 0x17, 0xdf, 0x8d, 0xc1, 0x69, 0xd9, 0x4a, 0x2b, 0x8e, 0xfc, 0x33, 0xc5, 0x76, 0x15, - 0x16, 0x19, 0xba, 0x91, 0xe6, 0xa9, 0x56, 0x31, 0xc3, 0x8c, 0xc6, 0x69, 0x19, 0x4a, 0x63, 0x9a, - 0xa1, 0x27, 0xde, 0x9f, 0x2f, 0x47, 0x7e, 0x32, 0x15, 0xec, 0x88, 0xe9, 0x65, 0xf6, 0x4c, 0x53, - 0xd0, 0xe0, 0xd7, 0xa0, 0x46, 0xf0, 0xa8, 0x27, 0x95, 0x54, 0x87, 0x27, 0x78, 0x24, 0xac, 0xa9, - 0xdb, 0x3b, 0xe9, 0x44, 0xc7, 0xf0, 0xcc, 0x80, 0xcb, 0xd9, 0xfd, 0x7d, 0x35, 0x2a, 0xbd, 0x76, - 0x18, 0x1b, 0x50, 0x77, 0x7d, 0xbf, 0x97, 0x4c, 0x5e, 0x65, 0x31, 0x79, 0x81, 0xeb, 0xfb, 0x89, - 0x45, 0x71, 0x65, 0x86, 0xf4, 0x10, 0x35, 0xa6, 0x22, 0x30, 0x2b, 0x52, 0xaa, 0x60, 0xf6, 0x06, - 0xac, 0xcf, 0x8c, 0x48, 0xc7, 0x8c, 0xe2, 0xcd, 0x4f, 0x01, 0x3a, 0x49, 0x9f, 0x7e, 0xed, 0x98, - 0x0b, 0x66, 0x23, 0xbb, 0x05, 0xcd, 0xd9, 0x6e, 0x74, 0x20, 0x61, 0x2a, 0x77, 0x6a, 0xec, 0x29, - 0x3a, 0xc2, 0xcc, 0x39, 0x95, 0xb2, 0xe7, 0x34, 0x31, 0xdc, 0x94, 0x27, 0xc7, 0xa4, 0x74, 0x52, - 0xd2, 0xae, 0x74, 0x2c, 0x4c, 0x8c, 0x60, 0x19, 0xc0, 0x9c, 0xb4, 0x5c, 0x83, 0xe5, 0x38, 0x1c, - 0xcd, 0x5f, 0x46, 0x54, 0x27, 0x78, 0xa4, 0x15, 0xe7, 0x04, 0x65, 0x43, 0x2b, 0xcf, 0xa7, 0x8e, - 0xeb, 0x87, 0x92, 0xb8, 0xc6, 0xbb, 0x2c, 0xf4, 0x03, 0x8c, 0xef, 0x07, 0x77, 0x59, 0x80, 0xc9, - 0x48, 0xa1, 0x56, 0x73, 0x1a, 0x81, 0x05, 0x55, 0x8f, 0x12, 0xce, 0x5c, 0x2f, 0x79, 0x65, 0xf5, - 0x7a, 0xfc, 0x30, 0x54, 0x72, 0x1e, 0x86, 0x85, 0xc2, 0x87, 0x41, 0xc6, 0x95, 0xf3, 0x30, 0xfc, - 0xe7, 0x0f, 0x80, 0xf4, 0x96, 0xe4, 0x66, 0xfb, 0x6f, 0x80, 0x72, 0x27, 0x0a, 0xcc, 0x6f, 0xa0, - 0x9e, 0xfe, 0x51, 0x63, 0xe7, 0x3d, 0x62, 0x63, 0x8c, 0x75, 0x73, 0x3e, 0x46, 0x4f, 0x42, 0x1e, - 0xac, 0x64, 0x7f, 0x44, 0xbc, 0x55, 0xa8, 0xac, 0x50, 0xd6, 0xed, 0x93, 0xa0, 0xb4, 0x13, 0xcd, - 0x41, 0x4e, 0x1b, 0xc5, 0x1c, 0x04, 0x66, 0x0e, 0x87, 0xec, 0x34, 0x37, 0x80, 0xf3, 0x53, 0x83, - 0x5a, 0xde, 0x38, 0x30, 0x09, 0xb4, 0xda, 0x27, 0x04, 0x6a, 0x6f, 0x5f, 0x41, 0x6d, 0x3c, 0x38, - 0xb5, 0x72, 0xa7, 0x0e, 0x85, 0xb0, 0x36, 0xe7, 0x21, 0xb4, 0xe1, 0xfb, 0x50, 0x11, 0x03, 0xd1, - 0x5a, 0xc1, 0x24, 0x63, 0xbd, 0x59, 0xb0, 0xa9, 0x2d, 0x7d, 0x06, 0x8b, 0x6a, 0x10, 0x58, 0x2f, - 0xec, 0xf0, 0xd6, 0xf5, 0xc2, 0xed, 0xb4, 0x3d, 0xd5, 0x6a, 0xd7, 0x0b, 0x7b, 0x68, 0xae, 0xbd, - 0x6c, 0x73, 0x8b, 0x0f, 0x6c, 0xaa, 0xb3, 0xe5, 0x1d, 0xd8, 0x24, 0x30, 0xf7, 0xc0, 0xf2, 0xda, - 0x98, 0xc9, 0xc0, 0x9c, 0xd1, 0xc2, 0xde, 0x9e, 0x6f, 0x46, 0x41, 0xad, 0xad, 0x13, 0x43, 0xb5, - 0xcf, 0x03, 0xb8, 0x38, 0xab, 0x07, 0xdd, 0x9c, 0x6f, 0x29, 0xc1, 0x5a, 0xdb, 0x27, 0xc7, 0x4e, - 0x53, 0xcd, 0x74, 0x9c, 0x62, 0xaa, 0x69, 0xe8, 0x1c, 0xaa, 0xb3, 0x9a, 0x8b, 0xf9, 0x1d, 0x5c, - 0x9e, 0xdd, 0x59, 0x6e, 0x9f, 0xc4, 0x96, 0xa6, 0xfb, 0xee, 0xeb, 0xa0, 0xd3, 0x95, 0xa9, 0xba, - 0xc7, 0x7a, 0xe1, 0x23, 0x9e, 0x5b, 0x99, 0xd9, 0x57, 0x77, 0xf7, 0xc1, 0x2f, 0x2f, 0x9b, 0xc6, - 0x8b, 0x97, 0x4d, 0xe3, 0xaf, 0x97, 0x4d, 0xe3, 0xd9, 0xab, 0xe6, 0x99, 0x17, 0xaf, 0x9a, 0x67, - 0x7e, 0x7f, 0xd5, 0x3c, 0xf3, 0xf5, 0x7b, 0x41, 0xc8, 0x1f, 0x1f, 0xf4, 0x1d, 0x8f, 0x0e, 0xdb, - 0xc2, 0xd4, 0x3b, 0x04, 0xf9, 0x11, 0x65, 0xdf, 0xaa, 0xd5, 0x00, 0xfd, 0x00, 0x59, 0xfb, 0x38, - 0xf5, 0x5f, 0x54, 0x1e, 0x65, 0xd8, 0x5f, 0x14, 0xbf, 0xe1, 0xef, 0xfc, 0x13, 0x00, 0x00, 0xff, - 0xff, 0x20, 0xfb, 0xcc, 0xb8, 0x49, 0x13, 0x00, 0x00, + // 1359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x5f, 0x6f, 0x1b, 0x45, + 0x10, 0xef, 0xd9, 0x4e, 0x62, 0x8f, 0x93, 0xfe, 0xb9, 0xb6, 0xc1, 0xbd, 0x34, 0x8e, 0x7b, 0x50, + 0x35, 0xb4, 0xe5, 0xac, 0xa4, 0xfc, 0x51, 0x85, 0x10, 0x4a, 0x52, 0x44, 0x83, 0x14, 0xa8, 0x4c, + 0x11, 0x12, 0x12, 0xb2, 0xce, 0x77, 0xd3, 0xeb, 0x15, 0x7b, 0xd7, 0xda, 0xdb, 0xfc, 0xa9, 0x78, + 0xe4, 0x0b, 0xf4, 0x63, 0x20, 0x3e, 0x00, 0x7d, 0xe1, 0x03, 0xf0, 0xd8, 0x27, 0xc4, 0x03, 0x12, + 0xa8, 0xfd, 0x08, 0x7c, 0x01, 0x74, 0xbb, 0x7b, 0x9b, 0xbb, 0xf3, 0x9d, 0xed, 0xc2, 0x0b, 0x2f, + 0xed, 0xed, 0xcc, 0x6f, 0x67, 0xe6, 0x37, 0x3b, 0xbb, 0x33, 0x0e, 0xac, 0x31, 0x0c, 0x90, 0x74, + 0xd1, 0xa3, 0x1e, 0x43, 0x3f, 0xe4, 0xdd, 0xa3, 0xad, 0x2e, 0x3f, 0x71, 0xc6, 0x8c, 0x72, 0x6a, + 0x9a, 0x42, 0xe9, 0x68, 0xa5, 0x73, 0xb4, 0x65, 0x5d, 0x0a, 0x68, 0x40, 0x85, 0xba, 0x1b, 0x7f, + 0x49, 0xa4, 0xb5, 0x11, 0x50, 0x1a, 0x0c, 0xb1, 0x2b, 0x56, 0x83, 0xc3, 0x47, 0x5d, 0x1e, 0x8e, + 0x30, 0xe2, 0xee, 0x68, 0xac, 0x00, 0x6d, 0x8f, 0x46, 0x23, 0x1a, 0x75, 0x07, 0x6e, 0x84, 0xdd, + 0xa3, 0xad, 0x01, 0x72, 0x77, 0xab, 0xeb, 0xd1, 0x90, 0x24, 0xfa, 0xa2, 0x38, 0x9e, 0x8e, 0x31, + 0x92, 0x7a, 0xfb, 0xb9, 0x01, 0x67, 0x0f, 0xa2, 0x60, 0x8f, 0xa1, 0xcb, 0x71, 0x6f, 0xe8, 0x46, + 0x91, 0x79, 0x09, 0x16, 0x5c, 0x7f, 0x14, 0x92, 0x96, 0xd1, 0x31, 0x36, 0x1b, 0x3d, 0xb9, 0x30, + 0x5b, 0xb0, 0x14, 0x46, 0xd1, 0x21, 0xb2, 0xa8, 0x55, 0xe9, 0x54, 0x37, 0x1b, 0xbd, 0x64, 0x69, + 0x5a, 0x50, 0x1f, 0x21, 0x77, 0x7d, 0x97, 0xbb, 0xad, 0xaa, 0xd8, 0xa2, 0xd7, 0xe6, 0x6d, 0x30, + 0xa5, 0xdf, 0x7e, 0xec, 0xb4, 0xef, 0x0e, 0x06, 0x0c, 0x8f, 0x5a, 0x35, 0x81, 0x3a, 0x2f, 0x35, + 0x0f, 0x9f, 0x8e, 0x71, 0x47, 0xc8, 0xcd, 0x5b, 0x50, 0x7d, 0x84, 0xd8, 0x5a, 0xe8, 0x18, 0x9b, + 0xcd, 0xed, 0x2b, 0x8e, 0xa4, 0xe6, 0xc4, 0xd4, 0x1c, 0x45, 0xcd, 0xd9, 0xa3, 0x21, 0xe9, 0xc5, + 0x28, 0xfb, 0x0e, 0xac, 0x66, 0x03, 0xef, 0x61, 0x34, 0xa6, 0x24, 0x42, 0xf3, 0x0a, 0xd4, 0xbd, + 0x58, 0xd0, 0x0f, 0x7d, 0xc5, 0x61, 0x49, 0xac, 0xf7, 0x7d, 0xfb, 0x47, 0x03, 0xce, 0xeb, 0x5d, + 0x0f, 0x18, 0x7d, 0x82, 0x1e, 0x37, 0x57, 0x61, 0x51, 0x72, 0x51, 0x68, 0xb5, 0xca, 0xd8, 0xa9, + 0x64, 0xec, 0x4c, 0xe5, 0x6c, 0xc3, 0xf2, 0x93, 0x43, 0x16, 0x46, 0x7e, 0xe8, 0xf1, 0x90, 0x12, + 0xc5, 0x36, 0x23, 0x33, 0xaf, 0xc1, 0x32, 0xc3, 0x47, 0xc8, 0x90, 0x78, 0x18, 0x9b, 0x5f, 0x10, + 0x98, 0xa6, 0x96, 0xed, 0xfb, 0xf6, 0x5d, 0x68, 0xe5, 0x23, 0xd5, 0x0c, 0xd7, 0x01, 0xc6, 0x52, + 0x74, 0xca, 0xb1, 0xa1, 0x24, 0xfb, 0xbe, 0xfd, 0x43, 0x35, 0x75, 0xa8, 0xbb, 0x2e, 0xf7, 0x1e, + 0x97, 0x72, 0xcc, 0x5a, 0xaa, 0xe4, 0x2c, 0x99, 0x1f, 0x41, 0x3d, 0x06, 0xba, 0xc4, 0xc3, 0x56, + 0xb5, 0x53, 0xdd, 0x6c, 0x6e, 0x5f, 0x73, 0x26, 0x8b, 0xd7, 0x11, 0x3e, 0xf6, 0x15, 0xb0, 0xa7, + 0xb7, 0x64, 0xd2, 0x54, 0xcb, 0xa5, 0xe9, 0x63, 0x80, 0x88, 0xbb, 0x8c, 0xf7, 0x7d, 0x97, 0x27, + 0x67, 0x6e, 0x39, 0xb2, 0xde, 0x9d, 0xa4, 0xde, 0x9d, 0x87, 0x49, 0xbd, 0xef, 0xd6, 0x9e, 0xfd, + 0xb9, 0x61, 0xf4, 0x1a, 0x62, 0xcf, 0x3d, 0x97, 0xa3, 0xf9, 0x21, 0xd4, 0x91, 0xf8, 0x72, 0xfb, + 0xe2, 0x9c, 0xdb, 0x97, 0x90, 0xf8, 0x62, 0xb3, 0x09, 0x35, 0x3a, 0x46, 0xd2, 0x5a, 0xea, 0x18, + 0x9b, 0xf5, 0x9e, 0xf8, 0x36, 0xef, 0x42, 0x83, 0xb2, 0x30, 0x08, 0x49, 0x9f, 0x9f, 0xb4, 0xea, + 0xc2, 0xe2, 0xd5, 0x22, 0xb6, 0x5f, 0x08, 0xd0, 0xc3, 0x93, 0x5e, 0x9d, 0xaa, 0xaf, 0xd8, 0x1c, + 0xa1, 0x1c, 0x5b, 0x0d, 0x41, 0x52, 0x7c, 0xdb, 0x3f, 0x1b, 0xb0, 0x92, 0x49, 0x8c, 0x79, 0x15, + 0x1a, 0x0c, 0xbd, 0x70, 0x1c, 0x22, 0xe1, 0xc9, 0xa9, 0x69, 0x81, 0x79, 0x03, 0xce, 0x71, 0xe6, + 0xfa, 0xee, 0x60, 0x88, 0x7d, 0x77, 0x44, 0x0f, 0x09, 0x57, 0xe7, 0x71, 0x36, 0x11, 0xef, 0x08, + 0xa9, 0x79, 0x1d, 0xce, 0x32, 0xe4, 0x21, 0x43, 0x3f, 0xc1, 0xc9, 0x12, 0x5c, 0x51, 0x52, 0x05, + 0xfb, 0x00, 0xde, 0x90, 0x82, 0x11, 0x12, 0xde, 0x2f, 0x28, 0xc9, 0xd5, 0x53, 0xf5, 0x67, 0x29, + 0xad, 0x7d, 0x37, 0x75, 0xb3, 0x04, 0x01, 0x5d, 0x77, 0x1b, 0xd0, 0x1c, 0xc4, 0x82, 0xbe, 0x8f, + 0x84, 0x8e, 0x14, 0x05, 0x10, 0xa2, 0x7b, 0xb1, 0xc4, 0xfe, 0xc3, 0x80, 0x8b, 0x07, 0x51, 0x70, + 0x10, 0x12, 0x2e, 0x76, 0xee, 0x89, 0xa4, 0x45, 0xa5, 0xe5, 0x97, 0x33, 0x58, 0xc9, 0x1b, 0xfc, + 0xaf, 0x05, 0x98, 0x39, 0xd2, 0xda, 0xbf, 0x3a, 0xd2, 0x85, 0xd4, 0x91, 0x7e, 0x0a, 0xcb, 0x07, + 0x51, 0xf0, 0x25, 0xba, 0xc3, 0xe9, 0xb7, 0x6a, 0x16, 0x2d, 0x7b, 0x1d, 0xd6, 0x0a, 0xd2, 0x94, + 0xe4, 0xd9, 0x5e, 0x85, 0x4b, 0x69, 0x3f, 0x5a, 0xfe, 0x4b, 0x05, 0x96, 0x84, 0x82, 0xf8, 0xb1, + 0xef, 0x08, 0x89, 0x7f, 0xea, 0x5b, 0xae, 0xb2, 0x45, 0x56, 0xc9, 0x17, 0xd9, 0x0e, 0x2c, 0x49, + 0xd6, 0x91, 0x4a, 0xe7, 0x8d, 0xa2, 0x74, 0x28, 0x1f, 0x4e, 0xfc, 0x4f, 0x12, 0x5b, 0xb2, 0xcf, + 0x7a, 0x6e, 0x40, 0x33, 0xa5, 0x98, 0x59, 0x14, 0xff, 0x9f, 0xc2, 0xbe, 0x00, 0xe7, 0x14, 0x33, + 0x9d, 0xd1, 0xdf, 0x0c, 0x68, 0x1c, 0x44, 0x41, 0x4f, 0x6c, 0x88, 0x5b, 0x1f, 0x3d, 0x26, 0x3a, + 0xa5, 0x72, 0x61, 0x7e, 0x72, 0x9a, 0xb3, 0x8a, 0xc8, 0xd9, 0xad, 0x92, 0x9c, 0x49, 0x2b, 0x8e, + 0xfc, 0x2f, 0x9f, 0xb7, 0x89, 0xbe, 0x50, 0x9d, 0xec, 0x0b, 0xd6, 0x7d, 0x58, 0xc9, 0xec, 0x9e, + 0x9d, 0xdc, 0x55, 0x58, 0xcc, 0xe4, 0x54, 0xad, 0xec, 0x8b, 0x70, 0x41, 0x47, 0xa4, 0xd9, 0x8e, + 0x05, 0xd9, 0xbd, 0xf8, 0x6a, 0x0c, 0x4b, 0xc8, 0xbe, 0x97, 0x27, 0xbb, 0x56, 0x44, 0x76, 0x82, + 0xdc, 0x2a, 0x2c, 0x32, 0x74, 0x23, 0x4d, 0x4b, 0xad, 0x54, 0x18, 0xd2, 0xa3, 0x0e, 0xc3, 0x13, + 0x8f, 0xc4, 0x57, 0x63, 0x3f, 0x69, 0xdd, 0x3b, 0x62, 0xc4, 0x28, 0x1e, 0x3c, 0xa6, 0x74, 0xe1, + 0x35, 0x68, 0x10, 0x3c, 0xee, 0xcb, 0x4d, 0xaa, 0x0d, 0x13, 0x3c, 0x16, 0xd6, 0xd4, 0x15, 0xcb, + 0x3b, 0xd1, 0x31, 0x3c, 0x33, 0xe0, 0x72, 0x56, 0xbf, 0xaf, 0xe6, 0x99, 0xd7, 0x0e, 0x63, 0x03, + 0x9a, 0xae, 0xef, 0xf7, 0x93, 0xf1, 0xa8, 0x2a, 0xc6, 0x23, 0x70, 0x7d, 0x3f, 0xb1, 0x28, 0xea, + 0x7a, 0x44, 0x8f, 0x50, 0x63, 0x6a, 0x02, 0xb3, 0x22, 0xa5, 0x0a, 0x66, 0x6f, 0xc0, 0x7a, 0x61, + 0x44, 0x3a, 0x66, 0x14, 0x0f, 0x73, 0x0a, 0x70, 0x90, 0x34, 0xd3, 0xd7, 0x8e, 0x79, 0xca, 0x00, + 0x63, 0x77, 0xa0, 0x5d, 0xec, 0x46, 0x07, 0x12, 0xa6, 0x72, 0xa7, 0x66, 0x93, 0x69, 0x47, 0x98, + 0x39, 0xa7, 0x4a, 0xf6, 0x9c, 0x72, 0x13, 0x48, 0x35, 0x3f, 0xcb, 0xa4, 0x93, 0x92, 0x76, 0xa5, + 0x63, 0x61, 0x62, 0x4e, 0xca, 0x00, 0x66, 0xa4, 0xe5, 0x1a, 0x2c, 0xc7, 0xe1, 0x68, 0xfe, 0x32, + 0xa2, 0x26, 0xc1, 0x63, 0xbd, 0x71, 0x46, 0x50, 0x36, 0x74, 0xca, 0x7c, 0xea, 0xb8, 0x7e, 0x92, + 0x2f, 0xcb, 0x2e, 0x0b, 0xfd, 0x00, 0xe3, 0xfb, 0xc1, 0x5d, 0x16, 0x60, 0xd2, 0xf7, 0xd5, 0x6a, + 0xc6, 0x6b, 0x6d, 0x41, 0xdd, 0xa3, 0x84, 0x33, 0xd7, 0x4b, 0x9e, 0x42, 0xbd, 0x3e, 0xbd, 0xbe, + 0xb5, 0x92, 0xeb, 0xbb, 0x30, 0xff, 0xf5, 0x55, 0xd7, 0x54, 0xc6, 0x9a, 0x30, 0xd8, 0xfe, 0x1b, + 0xa0, 0x7a, 0x10, 0x05, 0xe6, 0xb7, 0xd0, 0x4c, 0xff, 0x3e, 0xb0, 0x4b, 0x5e, 0xbf, 0x14, 0xc6, + 0xba, 0x39, 0x1b, 0xa3, 0x87, 0x0a, 0x0f, 0x56, 0xb2, 0xf3, 0xf8, 0x5b, 0x53, 0x37, 0x2b, 0x94, + 0x75, 0x7b, 0x1e, 0x94, 0x76, 0xa2, 0x39, 0xc8, 0xc6, 0x3d, 0x9d, 0x83, 0xc0, 0xcc, 0xe0, 0x90, + 0x1d, 0x8c, 0x86, 0x70, 0x7e, 0x62, 0xe6, 0x29, 0xeb, 0xac, 0x79, 0xa0, 0xd5, 0x9d, 0x13, 0xa8, + 0xbd, 0x7d, 0x0d, 0x8d, 0xd3, 0x19, 0xa4, 0x53, 0xda, 0xc0, 0x15, 0xc2, 0xda, 0x9c, 0x85, 0xd0, + 0x86, 0xef, 0x43, 0x4d, 0xcc, 0x16, 0x6b, 0x53, 0x86, 0x02, 0xeb, 0xcd, 0x29, 0x4a, 0x6d, 0xe9, + 0x73, 0x58, 0x54, 0x3d, 0x75, 0x7d, 0x6a, 0xb3, 0xb4, 0xae, 0x4f, 0x55, 0xa7, 0xed, 0xa9, 0xb6, + 0x55, 0x66, 0x4f, 0xaa, 0x4b, 0xed, 0x65, 0x5b, 0x50, 0x7c, 0x60, 0x13, 0xfd, 0xa7, 0xec, 0xc0, + 0xf2, 0xc0, 0xd2, 0x03, 0x2b, 0x6b, 0x36, 0x26, 0x03, 0xb3, 0xa0, 0xd1, 0xbc, 0x3d, 0xdb, 0x8c, + 0x82, 0x5a, 0x5b, 0x73, 0x43, 0xb5, 0xcf, 0x43, 0xb8, 0x58, 0xd4, 0x29, 0x6e, 0xce, 0xb6, 0x94, + 0x60, 0xad, 0xed, 0xf9, 0xb1, 0x93, 0x54, 0x33, 0x7d, 0x61, 0x3a, 0xd5, 0x34, 0x74, 0x06, 0xd5, + 0xa2, 0x16, 0x60, 0x7e, 0x0f, 0x97, 0x8b, 0xdf, 0xff, 0xdb, 0xf3, 0xd8, 0xd2, 0x74, 0xdf, 0x7d, + 0x1d, 0x74, 0xba, 0x32, 0xd5, 0x1b, 0x5f, 0x56, 0x99, 0x52, 0x5d, 0x5a, 0x99, 0xd9, 0x57, 0x77, + 0xf7, 0xc1, 0xaf, 0x2f, 0xdb, 0xc6, 0x8b, 0x97, 0x6d, 0xe3, 0xaf, 0x97, 0x6d, 0xe3, 0xd9, 0xab, + 0xf6, 0x99, 0x17, 0xaf, 0xda, 0x67, 0x7e, 0x7f, 0xd5, 0x3e, 0xf3, 0xcd, 0xfb, 0x41, 0xc8, 0x1f, + 0x1f, 0x0e, 0x1c, 0x8f, 0x8e, 0xba, 0xc2, 0xd4, 0x3b, 0x04, 0xf9, 0x31, 0x65, 0xdf, 0xa9, 0xd5, + 0x10, 0xfd, 0x00, 0x59, 0xf7, 0x24, 0xf5, 0xd7, 0x1e, 0x8f, 0x32, 0x1c, 0x2c, 0x8a, 0x9f, 0xc3, + 0x77, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xf8, 0xf7, 0xb0, 0x94, 0x12, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3507,43 +3390,6 @@ func (m *MsgCancel) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgCancel_CancelCredits) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgCancel_CancelCredits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCancel_CancelCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Amount) > 0 { - i -= len(m.Amount) - copy(dAtA[i:], m.Amount) - i = encodeVarintTx(dAtA, i, uint64(len(m.Amount))) - i-- - dAtA[i] = 0x12 - } - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3978,43 +3824,6 @@ func (m *MsgBridge) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgBridge_CancelCredits) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgBridge_CancelCredits) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgBridge_CancelCredits) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Amount) > 0 { - i -= len(m.Amount) - copy(dAtA[i:], m.Amount) - i = encodeVarintTx(dAtA, i, uint64(len(m.Amount))) - i-- - dAtA[i] = 0x12 - } - if len(m.BatchDenom) > 0 { - i -= len(m.BatchDenom) - copy(dAtA[i:], m.BatchDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.BatchDenom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *MsgBridgeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4414,23 +4223,6 @@ func (m *MsgCancel) Size() (n int) { return n } -func (m *MsgCancel_CancelCredits) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Amount) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - func (m *MsgCancelResponse) Size() (n int) { if m == nil { return 0 @@ -4629,23 +4421,6 @@ func (m *MsgBridge) Size() (n int) { return n } -func (m *MsgBridge_CancelCredits) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BatchDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Amount) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - func (m *MsgBridgeResponse) Size() (n int) { if m == nil { return 0 @@ -7057,7 +6832,7 @@ func (m *MsgCancel) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Credits = append(m.Credits, &MsgCancel_CancelCredits{}) + m.Credits = append(m.Credits, &Credits{}) if err := m.Credits[len(m.Credits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7115,120 +6890,6 @@ func (m *MsgCancel) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCancel_CancelCredits) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: CancelCredits: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelCredits: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BatchDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Amount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgCancelResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8477,7 +8138,7 @@ func (m *MsgBridge) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Credits = append(m.Credits, &MsgBridge_CancelCredits{}) + m.Credits = append(m.Credits, &Credits{}) if err := m.Credits[len(m.Credits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -8503,120 +8164,6 @@ func (m *MsgBridge) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBridge_CancelCredits) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: CancelCredits: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelCredits: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BatchDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Amount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgBridgeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/core/types.pb.go b/x/ecocredit/core/types.pb.go index 2c6162cbe3..f2ee479695 100644 --- a/x/ecocredit/core/types.pb.go +++ b/x/ecocredit/core/types.pb.go @@ -223,45 +223,103 @@ func (m *CreditTypeProposal) GetCreditType() *CreditType { return nil } +// Credits represents a simple structure for credits. +type Credits struct { + // batch_denom is the denom of the credit batch + BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` + // amount is the amount of credits + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (m *Credits) Reset() { *m = Credits{} } +func (m *Credits) String() string { return proto.CompactTextString(m) } +func (*Credits) ProtoMessage() {} +func (*Credits) Descriptor() ([]byte, []int) { + return fileDescriptor_7b044b6b740b984f, []int{3} +} +func (m *Credits) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Credits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Credits.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Credits) XXX_Merge(src proto.Message) { + xxx_messageInfo_Credits.Merge(m, src) +} +func (m *Credits) XXX_Size() int { + return m.Size() +} +func (m *Credits) XXX_DiscardUnknown() { + xxx_messageInfo_Credits.DiscardUnknown(m) +} + +var xxx_messageInfo_Credits proto.InternalMessageInfo + +func (m *Credits) GetBatchDenom() string { + if m != nil { + return m.BatchDenom + } + return "" +} + +func (m *Credits) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + func init() { proto.RegisterType((*Params)(nil), "regen.ecocredit.v1.Params") proto.RegisterType((*OriginTx)(nil), "regen.ecocredit.v1.OriginTx") proto.RegisterType((*CreditTypeProposal)(nil), "regen.ecocredit.v1.CreditTypeProposal") + proto.RegisterType((*Credits)(nil), "regen.ecocredit.v1.Credits") } func init() { proto.RegisterFile("regen/ecocredit/v1/types.proto", fileDescriptor_7b044b6b740b984f) } var fileDescriptor_7b044b6b740b984f = []byte{ - // 461 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xb1, 0x8e, 0xd3, 0x4c, - 0x10, 0xc7, 0xed, 0xe4, 0xbe, 0xe8, 0xb2, 0x91, 0x4e, 0xf7, 0xad, 0xa2, 0x93, 0xb9, 0xc2, 0xb1, - 0x52, 0x59, 0x42, 0xb7, 0x26, 0x01, 0x51, 0xd0, 0x20, 0x5d, 0x04, 0x2d, 0x91, 0x75, 0x15, 0x4d, - 0xb4, 0x5e, 0x0f, 0x66, 0x89, 0xe3, 0xb1, 0x76, 0x37, 0xb9, 0xbb, 0xb7, 0x40, 0xa2, 0xa1, 0xa4, - 0xe6, 0x49, 0xae, 0x42, 0x57, 0x52, 0x01, 0x4a, 0x5e, 0x04, 0xd9, 0xbb, 0x84, 0x48, 0x50, 0x52, - 0x79, 0x67, 0xfe, 0xeb, 0xff, 0x6f, 0x66, 0x76, 0x48, 0xa8, 0xa0, 0x80, 0x2a, 0x01, 0x81, 0x42, - 0x41, 0x2e, 0x4d, 0xb2, 0x99, 0x24, 0xe6, 0xb6, 0x06, 0xcd, 0x6a, 0x85, 0x06, 0x29, 0x6d, 0x75, - 0xb6, 0xd7, 0xd9, 0x66, 0x72, 0x3e, 0x2c, 0xb0, 0xc0, 0x56, 0x4e, 0x9a, 0x93, 0xbd, 0x79, 0x1e, - 0x0a, 0xd4, 0x2b, 0xd4, 0x49, 0xc6, 0x35, 0x24, 0x9b, 0x49, 0x06, 0x86, 0x4f, 0x12, 0x81, 0xb2, - 0xfa, 0xa5, 0xff, 0x85, 0xa4, 0x0d, 0x37, 0x60, 0xf5, 0xf1, 0x97, 0x0e, 0xe9, 0xcd, 0xb9, 0xe2, - 0x2b, 0x4d, 0xd7, 0xe4, 0xd4, 0xde, 0x59, 0x88, 0x92, 0x6b, 0xbd, 0x78, 0x03, 0x10, 0xf8, 0x51, - 0x37, 0x1e, 0x4c, 0x1f, 0x30, 0x4b, 0x61, 0x0d, 0x85, 0x39, 0x0a, 0x9b, 0xa1, 0xac, 0x2e, 0x1f, - 0xdd, 0x7d, 0x1b, 0x79, 0x9f, 0xbf, 0x8f, 0xe2, 0x42, 0x9a, 0xb7, 0xeb, 0x8c, 0x09, 0x5c, 0x25, - 0xae, 0x24, 0xfb, 0xb9, 0xd0, 0xf9, 0xd2, 0xf5, 0xd6, 0xfc, 0xa0, 0xd3, 0x13, 0x0b, 0x99, 0x35, - 0x8c, 0x97, 0x00, 0xf4, 0x1d, 0x21, 0x19, 0xd7, 0x4b, 0x30, 0x2d, 0xb0, 0xf3, 0xef, 0x81, 0x7d, - 0x6b, 0xdf, 0xb0, 0x9e, 0x90, 0x33, 0x5e, 0x96, 0x78, 0x0d, 0xb9, 0xeb, 0x51, 0x28, 0xe0, 0x06, - 0x95, 0x0e, 0xba, 0x51, 0x37, 0xee, 0xa7, 0x43, 0xa7, 0xb6, 0xc5, 0xcd, 0x9c, 0x46, 0x1f, 0x92, - 0xff, 0xdb, 0x7c, 0x29, 0xb5, 0x59, 0x40, 0xc5, 0xb3, 0x12, 0xf2, 0xe0, 0x28, 0xf2, 0xe3, 0xe3, - 0xf4, 0x74, 0x2f, 0xbc, 0xb0, 0xf9, 0xf1, 0x94, 0x1c, 0xbf, 0x52, 0xb2, 0x90, 0xd5, 0xd5, 0x0d, - 0x3d, 0x21, 0x1d, 0x99, 0x07, 0x7e, 0xe4, 0xc7, 0xfd, 0xb4, 0x23, 0x73, 0x7a, 0x46, 0x7a, 0x1a, - 0xd7, 0x4a, 0x34, 0x6d, 0x36, 0x39, 0x17, 0x8d, 0x3f, 0xf8, 0x84, 0xce, 0xda, 0xa9, 0x5c, 0xdd, - 0xd6, 0x30, 0x57, 0x58, 0xa3, 0xe6, 0x25, 0x1d, 0x92, 0xff, 0x8c, 0x34, 0x25, 0x38, 0x07, 0x1b, - 0xd0, 0x88, 0x0c, 0x72, 0xd0, 0x42, 0xc9, 0xda, 0x48, 0xac, 0x9c, 0xd3, 0x61, 0x8a, 0x3e, 0x27, - 0x03, 0xf7, 0x90, 0xcd, 0x18, 0x82, 0x6e, 0xe4, 0xc7, 0x83, 0x69, 0xc8, 0xfe, 0xdc, 0x29, 0xf6, - 0x1b, 0x9a, 0x12, 0xb1, 0x3f, 0x3f, 0x3b, 0xfa, 0xf8, 0x69, 0xe4, 0x5d, 0xce, 0xef, 0xb6, 0xa1, - 0x7f, 0xbf, 0x0d, 0xfd, 0x1f, 0xdb, 0xd0, 0x7f, 0xbf, 0x0b, 0xbd, 0xfb, 0x5d, 0xe8, 0x7d, 0xdd, - 0x85, 0xde, 0xeb, 0xa7, 0x07, 0xb3, 0x6f, 0x5d, 0x2f, 0x2a, 0x30, 0xd7, 0xa8, 0x96, 0x2e, 0x2a, - 0x21, 0x2f, 0x40, 0x25, 0x37, 0x07, 0x6b, 0x27, 0x50, 0x41, 0xd6, 0x6b, 0x77, 0xee, 0xf1, 0xcf, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xf7, 0xb8, 0xc1, 0xf8, 0xff, 0x02, 0x00, 0x00, + // 493 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x31, 0x6f, 0x13, 0x31, + 0x14, 0xc7, 0x73, 0x49, 0x09, 0x8d, 0x23, 0x55, 0xc5, 0x8a, 0xaa, 0xd0, 0xe1, 0x72, 0xca, 0x74, + 0x12, 0xaa, 0x8f, 0x04, 0xc4, 0xc0, 0x82, 0x94, 0x00, 0x2b, 0x51, 0xd4, 0x89, 0x25, 0xf2, 0xf9, + 0x1e, 0x57, 0x93, 0xcb, 0xbd, 0xc8, 0x76, 0xd2, 0xf6, 0x5b, 0x20, 0xb1, 0x30, 0x32, 0xf3, 0x49, + 0x3a, 0xa1, 0x8e, 0x4c, 0x80, 0x92, 0x2f, 0x82, 0x7c, 0x76, 0x43, 0x24, 0x18, 0x3b, 0x9d, 0xdf, + 0xff, 0xef, 0xf3, 0xef, 0xfd, 0xed, 0x47, 0x42, 0x05, 0x39, 0x94, 0x09, 0x08, 0x14, 0x0a, 0x32, + 0x69, 0x92, 0xf5, 0x20, 0x31, 0xd7, 0x4b, 0xd0, 0x6c, 0xa9, 0xd0, 0x20, 0xa5, 0x95, 0xcf, 0x76, + 0x3e, 0x5b, 0x0f, 0x4e, 0x3b, 0x39, 0xe6, 0x58, 0xd9, 0x89, 0x5d, 0xb9, 0x9d, 0xa7, 0xa1, 0x40, + 0xbd, 0x40, 0x9d, 0xa4, 0x5c, 0x43, 0xb2, 0x1e, 0xa4, 0x60, 0xf8, 0x20, 0x11, 0x28, 0xcb, 0x3b, + 0xff, 0x3f, 0x24, 0x6d, 0xb8, 0x01, 0xe7, 0xf7, 0xbf, 0xd7, 0x49, 0x73, 0xc2, 0x15, 0x5f, 0x68, + 0xba, 0x22, 0xc7, 0x6e, 0xcf, 0x4c, 0x14, 0x5c, 0xeb, 0xd9, 0x07, 0x80, 0x6e, 0x10, 0x35, 0xe2, + 0xf6, 0xf0, 0x31, 0x73, 0x14, 0x66, 0x29, 0xcc, 0x53, 0xd8, 0x18, 0x65, 0x39, 0x7a, 0x7a, 0xf3, + 0xb3, 0x57, 0xfb, 0xf6, 0xab, 0x17, 0xe7, 0xd2, 0x5c, 0xac, 0x52, 0x26, 0x70, 0x91, 0xf8, 0x96, + 0xdc, 0xe7, 0x4c, 0x67, 0x73, 0x9f, 0xcd, 0xfe, 0xa0, 0xa7, 0x47, 0x0e, 0x32, 0xb6, 0x8c, 0xb7, + 0x00, 0xf4, 0x23, 0x21, 0x29, 0xd7, 0x73, 0x30, 0x15, 0xb0, 0x7e, 0xff, 0xc0, 0x96, 0x3b, 0xde, + 0xb2, 0x9e, 0x93, 0x13, 0x5e, 0x14, 0x78, 0x09, 0x99, 0xcf, 0x28, 0x14, 0x70, 0x83, 0x4a, 0x77, + 0x1b, 0x51, 0x23, 0x6e, 0x4d, 0x3b, 0xde, 0xad, 0x9a, 0x1b, 0x7b, 0x8f, 0x3e, 0x21, 0x8f, 0x2a, + 0xbd, 0x90, 0xda, 0xcc, 0xa0, 0xe4, 0x69, 0x01, 0x59, 0xf7, 0x20, 0x0a, 0xe2, 0xc3, 0xe9, 0xf1, + 0xce, 0x78, 0xe3, 0xf4, 0xfe, 0x90, 0x1c, 0xbe, 0x53, 0x32, 0x97, 0xe5, 0xf9, 0x15, 0x3d, 0x22, + 0x75, 0x99, 0x75, 0x83, 0x28, 0x88, 0x5b, 0xd3, 0xba, 0xcc, 0xe8, 0x09, 0x69, 0x6a, 0x5c, 0x29, + 0x61, 0x63, 0x5a, 0xcd, 0x57, 0xfd, 0xcf, 0x01, 0xa1, 0xe3, 0xea, 0x56, 0xce, 0xaf, 0x97, 0x30, + 0x51, 0xb8, 0x44, 0xcd, 0x0b, 0xda, 0x21, 0x0f, 0x8c, 0x34, 0x05, 0xf8, 0x13, 0x5c, 0x41, 0x23, + 0xd2, 0xce, 0x40, 0x0b, 0x25, 0x97, 0x46, 0x62, 0xe9, 0x4f, 0xda, 0x97, 0xe8, 0x2b, 0xd2, 0xf6, + 0x0f, 0x69, 0xaf, 0xa1, 0xdb, 0x88, 0x82, 0xb8, 0x3d, 0x0c, 0xd9, 0xbf, 0x33, 0xc5, 0xfe, 0x42, + 0xa7, 0x44, 0xec, 0xd6, 0x2f, 0x0f, 0xbe, 0x7c, 0xed, 0xd5, 0xfa, 0x23, 0xf2, 0xd0, 0xf9, 0x9a, + 0xf6, 0x48, 0x3b, 0xe5, 0x46, 0x5c, 0xcc, 0x32, 0x28, 0x71, 0xe1, 0xfb, 0x21, 0x95, 0xf4, 0xda, + 0x2a, 0x36, 0x19, 0x5f, 0xe0, 0xaa, 0x34, 0x77, 0xc9, 0x5c, 0x35, 0x9a, 0xdc, 0x6c, 0xc2, 0xe0, + 0x76, 0x13, 0x06, 0xbf, 0x37, 0x61, 0xf0, 0x69, 0x1b, 0xd6, 0x6e, 0xb7, 0x61, 0xed, 0xc7, 0x36, + 0xac, 0xbd, 0x7f, 0xb1, 0xf7, 0x7e, 0x55, 0x67, 0x67, 0x25, 0x98, 0x4b, 0x54, 0x73, 0x5f, 0x15, + 0x90, 0xe5, 0xa0, 0x92, 0xab, 0xbd, 0xd1, 0x15, 0xa8, 0x20, 0x6d, 0x56, 0x73, 0xfb, 0xec, 0x4f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0x8c, 0xd1, 0xfe, 0x43, 0x03, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -420,6 +478,43 @@ func (m *CreditTypeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Credits) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Credits) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Credits) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(m.BatchDenom) > 0 { + i -= len(m.BatchDenom) + copy(dAtA[i:], m.BatchDenom) + i = encodeVarintTypes(dAtA, i, uint64(len(m.BatchDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { offset -= sovTypes(v) base := offset @@ -499,6 +594,23 @@ func (m *CreditTypeProposal) Size() (n int) { return n } +func (m *Credits) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BatchDenom) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + return n +} + func sovTypes(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -939,6 +1051,120 @@ func (m *CreditTypeProposal) Unmarshal(dAtA []byte) error { } return nil } +func (m *Credits) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return 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 fmt.Errorf("proto: Credits: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Credits: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BatchDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BatchDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ecocredit/server/core/bridge.go b/x/ecocredit/server/core/bridge.go index 1c56f9dbaa..07ce8d5b97 100644 --- a/x/ecocredit/server/core/bridge.go +++ b/x/ecocredit/server/core/bridge.go @@ -10,18 +10,9 @@ import ( // Bridge cancel credits, removing them from the supply and balance of the holder func (k Keeper) Bridge(ctx context.Context, req *core.MsgBridge) (*core.MsgBridgeResponse, error) { - - creditsToCancel := make([]*core.MsgCancel_CancelCredits, len(req.Credits)) - for i, credit := range req.Credits { - creditsToCancel[i] = &core.MsgCancel_CancelCredits{ - BatchDenom: credit.BatchDenom, - Amount: credit.Amount, - } - } - _, err := k.Cancel(ctx, &core.MsgCancel{ Owner: req.Owner, - Credits: creditsToCancel, + Credits: req.Credits, Reason: fmt.Sprintf("bridge-%s", req.Target), }) if err != nil { diff --git a/x/ecocredit/server/core/bridge_test.go b/x/ecocredit/server/core/bridge_test.go index 3f0dfc5d0c..948fc3f865 100644 --- a/x/ecocredit/server/core/bridge_test.go +++ b/x/ecocredit/server/core/bridge_test.go @@ -20,7 +20,7 @@ func TestBridge_Valid(t *testing.T) { _, err := s.k.Bridge(s.ctx, &core.MsgBridge{ Owner: s.addr.String(), - Credits: []*core.MsgBridge_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: batchDenom, Amount: "10.5", diff --git a/x/ecocredit/server/core/cancel.go b/x/ecocredit/server/core/cancel.go index 42d076346c..8eb7456e22 100644 --- a/x/ecocredit/server/core/cancel.go +++ b/x/ecocredit/server/core/cancel.go @@ -3,6 +3,8 @@ package core import ( "context" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/regen-network/regen-ledger/x/ecocredit" "github.com/regen-network/regen-ledger/x/ecocredit/server/utils" @@ -26,7 +28,7 @@ func (k Keeper) Cancel(ctx context.Context, req *core.MsgCancel) (*core.MsgCance for _, credit := range req.Credits { batch, err := k.stateStore.BatchTable().GetByDenom(ctx, credit.BatchDenom) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get batch with denom %s: %s", credit.BatchDenom, err.Error()) } creditType, err := utils.GetCreditTypeFromBatchDenom(ctx, k.stateStore, batch.Denom) if err != nil { @@ -34,7 +36,7 @@ func (k Keeper) Cancel(ctx context.Context, req *core.MsgCancel) (*core.MsgCance } userBalance, err := k.stateStore.BatchBalanceTable().Get(ctx, owner, batch.Key) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get %s balance for %s: %s", batch.Denom, owner.String(), err.Error()) } batchSupply, err := k.stateStore.BatchSupplyTable().Get(ctx, batch.Key) if err != nil { diff --git a/x/ecocredit/server/core/cancel_test.go b/x/ecocredit/server/core/cancel_test.go index 4d67d7b8ac..e0afa031f8 100644 --- a/x/ecocredit/server/core/cancel_test.go +++ b/x/ecocredit/server/core/cancel_test.go @@ -3,9 +3,9 @@ package core import ( "testing" - "gotest.tools/v3/assert" - "github.com/cosmos/cosmos-sdk/orm/types/ormerrors" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "gotest.tools/v3/assert" "github.com/regen-network/regen-ledger/x/ecocredit/core" ) @@ -20,7 +20,7 @@ func TestCancel_Valid(t *testing.T) { _, err := s.k.Cancel(s.ctx, &core.MsgCancel{ Owner: s.addr.String(), - Credits: []*core.MsgCancel_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: batchDenom, Amount: "10.5", @@ -49,7 +49,7 @@ func TestCancel_InsufficientFunds(t *testing.T) { _, err := s.k.Cancel(s.ctx, &core.MsgCancel{ Owner: s.addr.String(), - Credits: []*core.MsgCancel_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: "C01-001-20200101-20210101-01", Amount: "100000", @@ -67,7 +67,7 @@ func TestCancel_BadPrecision(t *testing.T) { _, err := s.k.Cancel(s.ctx, &core.MsgCancel{ Owner: s.addr.String(), - Credits: []*core.MsgCancel_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: "C01-001-20200101-20210101-01", Amount: "10.5290385029385820935", @@ -84,12 +84,12 @@ func TestCancel_InvalidBatch(t *testing.T) { _, err := s.k.Cancel(s.ctx, &core.MsgCancel{ Owner: s.addr.String(), - Credits: []*core.MsgCancel_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: "C00-00000000-00000000-01", Amount: "100000", }, }, }) - assert.ErrorContains(t, err, ormerrors.NotFound.Error()) + assert.Error(t, err, sdkerrors.ErrInvalidRequest.Wrapf("could not get batch with denom C00-00000000-00000000-01: %s", ormerrors.NotFound.Error()).Error()) } diff --git a/x/ecocredit/server/core/create_batch.go b/x/ecocredit/server/core/create_batch.go index e9016be6a3..c4cb77d327 100644 --- a/x/ecocredit/server/core/create_batch.go +++ b/x/ecocredit/server/core/create_batch.go @@ -23,7 +23,7 @@ func (k Keeper) CreateBatch(ctx context.Context, req *core.MsgCreateBatch) (*cor projectInfo, err := k.stateStore.ProjectTable().GetById(ctx, req.ProjectId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get project with id %s: %s", req.ProjectId, err.Error()) } classInfo, err := k.stateStore.ClassTable().Get(ctx, projectInfo.ClassKey) @@ -88,8 +88,8 @@ func (k Keeper) CreateBatch(ctx context.Context, req *core.MsgCreateBatch) (*cor recipient, _ := sdk.AccAddressFromBech32(issuance.Recipient) // get the current batch balance of the recipient account - // Note: Get because batch balance may or may not already exist - // depending on the length of issuance and if recipient is the same + // Note: Issuance could be for an account with no prior balance, + // so we must catch the not found case and apply a zero value balance. balance, err := k.stateStore.BatchBalanceTable().Get(ctx, recipient, batchKey) if err != nil { if !ormerrors.IsNotFound(err) { @@ -111,12 +111,11 @@ func (k Keeper) CreateBatch(ctx context.Context, req *core.MsgCreateBatch) (*cor } // add tradable amount and retired amount to existing batch balance - newTradableBalance, err := tradableBalance.Add(tradableAmount) + tradableBalance, err = tradableBalance.Add(tradableAmount) if err != nil { return nil, err } - - newRetiredBalance, err := retiredBalance.Add(retiredAmount) + retiredBalance, err = retiredBalance.Add(retiredAmount) if err != nil { return nil, err } @@ -127,8 +126,8 @@ func (k Keeper) CreateBatch(ctx context.Context, req *core.MsgCreateBatch) (*cor if err = k.stateStore.BatchBalanceTable().Save(ctx, &api.BatchBalance{ BatchKey: batchKey, Address: recipient, - TradableAmount: newTradableBalance.String(), - RetiredAmount: newRetiredBalance.String(), + TradableAmount: tradableBalance.String(), + RetiredAmount: retiredBalance.String(), EscrowedAmount: balance.EscrowedAmount, }); err != nil { return nil, err diff --git a/x/ecocredit/server/core/create_project.go b/x/ecocredit/server/core/create_project.go index 5c7260cf3e..2a3785fe38 100644 --- a/x/ecocredit/server/core/create_project.go +++ b/x/ecocredit/server/core/create_project.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/orm/types/ormerrors" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" api "github.com/regen-network/regen-ledger/api/regen/ecocredit/v1" "github.com/regen-network/regen-ledger/types" @@ -14,10 +15,9 @@ import ( // CreateProject creates a new project for a specific credit class. func (k Keeper) CreateProject(ctx context.Context, req *core.MsgCreateProject) (*core.MsgCreateProjectResponse, error) { sdkCtx := types.UnwrapSDKContext(ctx) - classID := req.ClassId - classInfo, err := k.stateStore.ClassTable().GetById(ctx, classID) + classInfo, err := k.stateStore.ClassTable().GetById(ctx, req.ClassId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", req.ClassId, err.Error()) } adminAddress, err := sdk.AccAddressFromBech32(req.Issuer) diff --git a/x/ecocredit/server/core/query_balance.go b/x/ecocredit/server/core/query_balance.go index e4aad9876c..8ba1414d1d 100644 --- a/x/ecocredit/server/core/query_balance.go +++ b/x/ecocredit/server/core/query_balance.go @@ -4,6 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/regen-network/regen-ledger/x/ecocredit/core" "github.com/regen-network/regen-ledger/x/ecocredit/server/utils" @@ -14,7 +15,7 @@ import ( func (k Keeper) Balance(ctx context.Context, req *core.QueryBalanceRequest) (*core.QueryBalanceResponse, error) { batch, err := k.stateStore.BatchTable().GetByDenom(ctx, req.BatchDenom) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get batch with denom %s: %s", req.BatchDenom, err.Error()) } addr, err := sdk.AccAddressFromBech32(req.Address) diff --git a/x/ecocredit/server/core/query_batch_info.go b/x/ecocredit/server/core/query_batch_info.go index 1f00f76752..dd15e67e02 100644 --- a/x/ecocredit/server/core/query_batch_info.go +++ b/x/ecocredit/server/core/query_batch_info.go @@ -4,6 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/regen-network/regen-ledger/types" "github.com/regen-network/regen-ledger/x/ecocredit/core" @@ -17,7 +18,7 @@ func (k Keeper) Batch(ctx context.Context, request *core.QueryBatchRequest) (*co batch, err := k.stateStore.BatchTable().GetByDenom(ctx, request.BatchDenom) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get batch with denom %s: %s", request.BatchDenom, err.Error()) } issuer := sdk.AccAddress(batch.Issuer) diff --git a/x/ecocredit/server/core/query_batches_by_class.go b/x/ecocredit/server/core/query_batches_by_class.go index 6777ca747f..cf0702dc2c 100644 --- a/x/ecocredit/server/core/query_batches_by_class.go +++ b/x/ecocredit/server/core/query_batches_by_class.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/orm/model/ormlist" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" api "github.com/regen-network/regen-ledger/api/regen/ecocredit/v1" "github.com/regen-network/regen-ledger/types" @@ -21,7 +22,7 @@ func (k Keeper) BatchesByClass(ctx context.Context, request *core.QueryBatchesBy class, err := k.stateStore.ClassTable().GetById(ctx, request.ClassId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", request.ClassId, err.Error()) } // we put a "-" after the class name to avoid including class names outside of the query (i.e. a query for C01 could technically include C011 otherwise). diff --git a/x/ecocredit/server/core/query_batches_by_project.go b/x/ecocredit/server/core/query_batches_by_project.go index 3281fa4e5f..58f5f79e5f 100644 --- a/x/ecocredit/server/core/query_batches_by_project.go +++ b/x/ecocredit/server/core/query_batches_by_project.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/orm/model/ormlist" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" api "github.com/regen-network/regen-ledger/api/regen/ecocredit/v1" "github.com/regen-network/regen-ledger/types" @@ -21,7 +22,7 @@ func (k Keeper) BatchesByProject(ctx context.Context, request *core.QueryBatches project, err := k.stateStore.ProjectTable().GetById(ctx, request.ProjectId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get project with id %s: %s", request.ProjectId, err.Error()) } it, err := k.stateStore.BatchTable().List(ctx, api.BatchProjectKeyIndexKey{}.WithProjectKey(project.Key), ormlist.Paginate(pg)) diff --git a/x/ecocredit/server/core/query_class_info.go b/x/ecocredit/server/core/query_class_info.go index ee36982733..ad859b7838 100644 --- a/x/ecocredit/server/core/query_class_info.go +++ b/x/ecocredit/server/core/query_class_info.go @@ -4,6 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/regen-network/regen-ledger/x/ecocredit/core" ) @@ -12,7 +13,7 @@ import ( func (k Keeper) Class(ctx context.Context, request *core.QueryClassRequest) (*core.QueryClassResponse, error) { class, err := k.stateStore.ClassTable().GetById(ctx, request.ClassId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", request.ClassId, err.Error()) } admin := sdk.AccAddress(class.Admin) diff --git a/x/ecocredit/server/core/query_class_issuers.go b/x/ecocredit/server/core/query_class_issuers.go index 4727c3ffd1..55dfd2ed6a 100644 --- a/x/ecocredit/server/core/query_class_issuers.go +++ b/x/ecocredit/server/core/query_class_issuers.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/orm/model/ormlist" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" api "github.com/regen-network/regen-ledger/api/regen/ecocredit/v1" "github.com/regen-network/regen-ledger/types/ormutil" @@ -20,7 +21,7 @@ func (k Keeper) ClassIssuers(ctx context.Context, request *core.QueryClassIssuer classInfo, err := k.stateStore.ClassTable().GetById(ctx, request.ClassId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", request.ClassId, err.Error()) } it, err := k.stateStore.ClassIssuerTable().List(ctx, api.ClassIssuerClassKeyIssuerIndexKey{}.WithClassKey(classInfo.Key), ormlist.Paginate(pg)) diff --git a/x/ecocredit/server/core/query_project_info.go b/x/ecocredit/server/core/query_project_info.go index e81377975d..8995192710 100644 --- a/x/ecocredit/server/core/query_project_info.go +++ b/x/ecocredit/server/core/query_project_info.go @@ -4,6 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/regen-network/regen-ledger/x/ecocredit/core" ) @@ -12,7 +13,7 @@ import ( func (k Keeper) Project(ctx context.Context, request *core.QueryProjectRequest) (*core.QueryProjectResponse, error) { project, err := k.stateStore.ProjectTable().GetById(ctx, request.ProjectId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get project with id %s: %s", request.ProjectId, err.Error()) } admin := sdk.AccAddress(project.Admin) diff --git a/x/ecocredit/server/core/query_projects_by_class.go b/x/ecocredit/server/core/query_projects_by_class.go index 7bb257c091..187f60e543 100644 --- a/x/ecocredit/server/core/query_projects_by_class.go +++ b/x/ecocredit/server/core/query_projects_by_class.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/orm/model/ormlist" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" api "github.com/regen-network/regen-ledger/api/regen/ecocredit/v1" "github.com/regen-network/regen-ledger/types/ormutil" @@ -20,7 +21,7 @@ func (k Keeper) ProjectsByClass(ctx context.Context, request *core.QueryProjects cInfo, err := k.stateStore.ClassTable().GetById(ctx, request.ClassId) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", request.ClassId, err.Error()) } it, err := k.stateStore.ProjectTable().List(ctx, api.ProjectClassKeyIdIndexKey{}.WithClassKey(cInfo.Key), ormlist.Paginate(pg)) diff --git a/x/ecocredit/server/core/query_supply.go b/x/ecocredit/server/core/query_supply.go index dd728e67d5..91d7027b3e 100644 --- a/x/ecocredit/server/core/query_supply.go +++ b/x/ecocredit/server/core/query_supply.go @@ -3,6 +3,8 @@ package core import ( "context" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/regen-network/regen-ledger/x/ecocredit/core" ) @@ -10,7 +12,7 @@ import ( func (k Keeper) Supply(ctx context.Context, request *core.QuerySupplyRequest) (*core.QuerySupplyResponse, error) { batch, err := k.stateStore.BatchTable().GetByDenom(ctx, request.BatchDenom) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get batch with denom %s: %s", request.BatchDenom, err.Error()) } supply, err := k.stateStore.BatchSupplyTable().Get(ctx, batch.Key) diff --git a/x/ecocredit/server/core/retire.go b/x/ecocredit/server/core/retire.go index fb17614ea5..4ea844c4f8 100644 --- a/x/ecocredit/server/core/retire.go +++ b/x/ecocredit/server/core/retire.go @@ -3,6 +3,8 @@ package core import ( "context" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/regen-network/regen-ledger/x/ecocredit/server/utils" sdk "github.com/cosmos/cosmos-sdk/types" @@ -23,7 +25,7 @@ func (k Keeper) Retire(ctx context.Context, req *core.MsgRetire) (*core.MsgRetir for _, credit := range req.Credits { batch, err := k.stateStore.BatchTable().GetByDenom(ctx, credit.BatchDenom) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get batch with denom %s: %s", credit.BatchDenom, err.Error()) } creditType, err := utils.GetCreditTypeFromBatchDenom(ctx, k.stateStore, batch.Denom) if err != nil { @@ -31,7 +33,7 @@ func (k Keeper) Retire(ctx context.Context, req *core.MsgRetire) (*core.MsgRetir } userBalance, err := k.stateStore.BatchBalanceTable().Get(ctx, owner, batch.Key) if err != nil { - return nil, err + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get %s balance for %s: %s", batch.Denom, owner.String(), err.Error()) } decs, err := utils.GetNonNegativeFixedDecs(creditType.Precision, credit.Amount, userBalance.TradableAmount) diff --git a/x/ecocredit/server/core/send.go b/x/ecocredit/server/core/send.go index 3c648224ff..fa9ab95d00 100644 --- a/x/ecocredit/server/core/send.go +++ b/x/ecocredit/server/core/send.go @@ -3,6 +3,8 @@ package core import ( "context" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/regen-network/regen-ledger/x/ecocredit/server/utils" "github.com/cosmos/cosmos-sdk/orm/types/ormerrors" @@ -45,7 +47,7 @@ func (k Keeper) Send(ctx context.Context, req *core.MsgSend) (*core.MsgSendRespo func (k Keeper) sendEcocredits(ctx context.Context, credit *core.MsgSend_SendCredits, to, from sdk.AccAddress) error { batch, err := k.stateStore.BatchTable().GetByDenom(ctx, credit.BatchDenom) if err != nil { - return err + return sdkerrors.ErrInvalidRequest.Wrapf("could not get batch with denom %s: %s", credit.BatchDenom, err.Error()) } creditType, err := utils.GetCreditTypeFromBatchDenom(ctx, k.stateStore, batch.Denom) if err != nil { diff --git a/x/ecocredit/server/core/update_class.go b/x/ecocredit/server/core/update_class.go index b410d126b7..242aa8aa3a 100644 --- a/x/ecocredit/server/core/update_class.go +++ b/x/ecocredit/server/core/update_class.go @@ -27,7 +27,7 @@ func (k Keeper) UpdateClassAdmin(ctx context.Context, req *core.MsgUpdateClassAd classInfo, err := k.stateStore.ClassTable().GetById(ctx, req.ClassId) if err != nil { - return nil, sdkerrors.ErrNotFound.Wrapf("class %s not found", req.ClassId) + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", req.ClassId, err.Error()) } classAdmin := sdk.AccAddress(classInfo.Admin) @@ -58,7 +58,7 @@ func (k Keeper) UpdateClassIssuers(ctx context.Context, req *core.MsgUpdateClass class, err := k.stateStore.ClassTable().GetById(ctx, req.ClassId) if err != nil { - return nil, sdkerrors.ErrNotFound.Wrapf("class %s not found", req.ClassId) + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", req.ClassId, err.Error()) } admin := sdk.AccAddress(class.Admin) @@ -117,7 +117,7 @@ func (k Keeper) UpdateClassMetadata(ctx context.Context, req *core.MsgUpdateClas classInfo, err := k.stateStore.ClassTable().GetById(ctx, req.ClassId) if err != nil { - return nil, sdkerrors.ErrNotFound.Wrapf("class %s not found", req.ClassId) + return nil, sdkerrors.ErrInvalidRequest.Wrapf("could not get class with id %s: %s", req.ClassId, err.Error()) } admin := sdk.AccAddress(classInfo.Admin) diff --git a/x/ecocredit/server/core/utils.go b/x/ecocredit/server/core/utils.go index 97aeb8e7c9..f00751e470 100644 --- a/x/ecocredit/server/core/utils.go +++ b/x/ecocredit/server/core/utils.go @@ -12,10 +12,10 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// assertClassIssuer makes sure that the issuer is part of issuers of given classID. +// assertClassIssuer makes sure that the issuer is part of issuers of given class key. // Returns ErrUnauthorized otherwise. -func (k Keeper) assertClassIssuer(goCtx context.Context, classID uint64, addr sdk.AccAddress) error { - found, err := k.stateStore.ClassIssuerTable().Has(goCtx, classID, addr) +func (k Keeper) assertClassIssuer(goCtx context.Context, classKey uint64, addr sdk.AccAddress) error { + found, err := k.stateStore.ClassIssuerTable().Has(goCtx, classKey, addr) if err != nil { return err } diff --git a/x/ecocredit/server/testsuite/suite.go b/x/ecocredit/server/testsuite/suite.go index 887fbb9e52..ba0058bc0e 100644 --- a/x/ecocredit/server/testsuite/suite.go +++ b/x/ecocredit/server/testsuite/suite.go @@ -595,7 +595,7 @@ func (s *IntegrationTestSuite) TestScenario() { s.Run(tc.name, func() { _, err := s.msgClient.Cancel(s.ctx, &core.MsgCancel{ Owner: tc.owner, - Credits: []*core.MsgCancel_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: batchDenom, Amount: tc.toCancel, diff --git a/x/ecocredit/simulation/operations.go b/x/ecocredit/simulation/operations.go index f801bbc5ec..ed0edc6e46 100644 --- a/x/ecocredit/simulation/operations.go +++ b/x/ecocredit/simulation/operations.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "math/rand" + "strings" "time" "github.com/cosmos/cosmos-sdk/baseapp" @@ -771,7 +772,7 @@ func SimulateMsgCancel(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, msg := &core.MsgCancel{ Owner: admin, - Credits: []*core.MsgCancel_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: batch.Denom, Amount: balanceRes.Balance.TradableAmount, @@ -1148,7 +1149,7 @@ func SimulateMsgBridge(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper, qryC Recipient: "0x323b5d4c32345ced77393b3530b1eed0f346429d", Contract: "0x06012c8cf97bead5deae237070f9587f8e7a266d", Owner: owner, - Credits: []*core.MsgBridge_CancelCredits{ + Credits: []*core.Credits{ { BatchDenom: batch.Denom, Amount: fmt.Sprintf("%d", amount), @@ -1213,7 +1214,7 @@ func getRandomBatchFromProject(ctx context.Context, r *rand.Rand, qryClient core ProjectId: projectID, }) if err != nil { - if ormerrors.IsNotFound(err) { + if strings.Contains(err.Error(), ormerrors.NotFound.Error()) { return nil, simtypes.NoOpMsg(ecocredit.ModuleName, msgType, fmt.Sprintf("no credit batches for %s project", projectID)), nil } return nil, simtypes.NoOpMsg(ecocredit.ModuleName, msgType, err.Error()), err