diff --git a/api/cardchain/cardchain/card.pulsar.go b/api/cardchain/cardchain/card.pulsar.go deleted file mode 100644 index 88f5e521..00000000 --- a/api/cardchain/cardchain/card.pulsar.go +++ /dev/null @@ -1,2404 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_Card_14_list)(nil) - -type _Card_14_list struct { - list *[]string -} - -func (x *_Card_14_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Card_14_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_Card_14_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_Card_14_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_Card_14_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message Card at list field Voters as it is not of Message kind")) -} - -func (x *_Card_14_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_Card_14_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_Card_14_list) IsValid() bool { - return x.list != nil -} - -var ( - md_Card protoreflect.MessageDescriptor - fd_Card_owner protoreflect.FieldDescriptor - fd_Card_artist protoreflect.FieldDescriptor - fd_Card_content protoreflect.FieldDescriptor - fd_Card_image_id protoreflect.FieldDescriptor - fd_Card_fullArt protoreflect.FieldDescriptor - fd_Card_notes protoreflect.FieldDescriptor - fd_Card_status protoreflect.FieldDescriptor - fd_Card_votePool protoreflect.FieldDescriptor - fd_Card_voters protoreflect.FieldDescriptor - fd_Card_fairEnoughVotes protoreflect.FieldDescriptor - fd_Card_overpoweredVotes protoreflect.FieldDescriptor - fd_Card_underpoweredVotes protoreflect.FieldDescriptor - fd_Card_inappropriateVotes protoreflect.FieldDescriptor - fd_Card_nerflevel protoreflect.FieldDescriptor - fd_Card_balanceAnchor protoreflect.FieldDescriptor - fd_Card_starterCard protoreflect.FieldDescriptor - fd_Card_rarity protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_card_proto_init() - md_Card = File_cardchain_cardchain_card_proto.Messages().ByName("Card") - fd_Card_owner = md_Card.Fields().ByName("owner") - fd_Card_artist = md_Card.Fields().ByName("artist") - fd_Card_content = md_Card.Fields().ByName("content") - fd_Card_image_id = md_Card.Fields().ByName("image_id") - fd_Card_fullArt = md_Card.Fields().ByName("fullArt") - fd_Card_notes = md_Card.Fields().ByName("notes") - fd_Card_status = md_Card.Fields().ByName("status") - fd_Card_votePool = md_Card.Fields().ByName("votePool") - fd_Card_voters = md_Card.Fields().ByName("voters") - fd_Card_fairEnoughVotes = md_Card.Fields().ByName("fairEnoughVotes") - fd_Card_overpoweredVotes = md_Card.Fields().ByName("overpoweredVotes") - fd_Card_underpoweredVotes = md_Card.Fields().ByName("underpoweredVotes") - fd_Card_inappropriateVotes = md_Card.Fields().ByName("inappropriateVotes") - fd_Card_nerflevel = md_Card.Fields().ByName("nerflevel") - fd_Card_balanceAnchor = md_Card.Fields().ByName("balanceAnchor") - fd_Card_starterCard = md_Card.Fields().ByName("starterCard") - fd_Card_rarity = md_Card.Fields().ByName("rarity") -} - -var _ protoreflect.Message = (*fastReflection_Card)(nil) - -type fastReflection_Card Card - -func (x *Card) ProtoReflect() protoreflect.Message { - return (*fastReflection_Card)(x) -} - -func (x *Card) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_card_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Card_messageType fastReflection_Card_messageType -var _ protoreflect.MessageType = fastReflection_Card_messageType{} - -type fastReflection_Card_messageType struct{} - -func (x fastReflection_Card_messageType) Zero() protoreflect.Message { - return (*fastReflection_Card)(nil) -} -func (x fastReflection_Card_messageType) New() protoreflect.Message { - return new(fastReflection_Card) -} -func (x fastReflection_Card_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Card -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Card) Descriptor() protoreflect.MessageDescriptor { - return md_Card -} - -// 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_Card) Type() protoreflect.MessageType { - return _fastReflection_Card_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Card) New() protoreflect.Message { - return new(fastReflection_Card) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Card) Interface() protoreflect.ProtoMessage { - return (*Card)(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_Card) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_Card_owner, value) { - return - } - } - if x.Artist != "" { - value := protoreflect.ValueOfString(x.Artist) - if !f(fd_Card_artist, value) { - return - } - } - if len(x.Content) != 0 { - value := protoreflect.ValueOfBytes(x.Content) - if !f(fd_Card_content, value) { - return - } - } - if x.ImageId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ImageId) - if !f(fd_Card_image_id, value) { - return - } - } - if x.FullArt != false { - value := protoreflect.ValueOfBool(x.FullArt) - if !f(fd_Card_fullArt, value) { - return - } - } - if x.Notes != "" { - value := protoreflect.ValueOfString(x.Notes) - if !f(fd_Card_notes, value) { - return - } - } - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_Card_status, value) { - return - } - } - if x.VotePool != nil { - value := protoreflect.ValueOfMessage(x.VotePool.ProtoReflect()) - if !f(fd_Card_votePool, value) { - return - } - } - if len(x.Voters) != 0 { - value := protoreflect.ValueOfList(&_Card_14_list{list: &x.Voters}) - if !f(fd_Card_voters, value) { - return - } - } - if x.FairEnoughVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.FairEnoughVotes) - if !f(fd_Card_fairEnoughVotes, value) { - return - } - } - if x.OverpoweredVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.OverpoweredVotes) - if !f(fd_Card_overpoweredVotes, value) { - return - } - } - if x.UnderpoweredVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.UnderpoweredVotes) - if !f(fd_Card_underpoweredVotes, value) { - return - } - } - if x.InappropriateVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.InappropriateVotes) - if !f(fd_Card_inappropriateVotes, value) { - return - } - } - if x.Nerflevel != int64(0) { - value := protoreflect.ValueOfInt64(x.Nerflevel) - if !f(fd_Card_nerflevel, value) { - return - } - } - if x.BalanceAnchor != false { - value := protoreflect.ValueOfBool(x.BalanceAnchor) - if !f(fd_Card_balanceAnchor, value) { - return - } - } - if x.StarterCard != false { - value := protoreflect.ValueOfBool(x.StarterCard) - if !f(fd_Card_starterCard, value) { - return - } - } - if x.Rarity != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Rarity)) - if !f(fd_Card_rarity, 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_Card) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Card.owner": - return x.Owner != "" - case "cardchain.cardchain.Card.artist": - return x.Artist != "" - case "cardchain.cardchain.Card.content": - return len(x.Content) != 0 - case "cardchain.cardchain.Card.image_id": - return x.ImageId != uint64(0) - case "cardchain.cardchain.Card.fullArt": - return x.FullArt != false - case "cardchain.cardchain.Card.notes": - return x.Notes != "" - case "cardchain.cardchain.Card.status": - return x.Status != 0 - case "cardchain.cardchain.Card.votePool": - return x.VotePool != nil - case "cardchain.cardchain.Card.voters": - return len(x.Voters) != 0 - case "cardchain.cardchain.Card.fairEnoughVotes": - return x.FairEnoughVotes != uint64(0) - case "cardchain.cardchain.Card.overpoweredVotes": - return x.OverpoweredVotes != uint64(0) - case "cardchain.cardchain.Card.underpoweredVotes": - return x.UnderpoweredVotes != uint64(0) - case "cardchain.cardchain.Card.inappropriateVotes": - return x.InappropriateVotes != uint64(0) - case "cardchain.cardchain.Card.nerflevel": - return x.Nerflevel != int64(0) - case "cardchain.cardchain.Card.balanceAnchor": - return x.BalanceAnchor != false - case "cardchain.cardchain.Card.starterCard": - return x.StarterCard != false - case "cardchain.cardchain.Card.rarity": - return x.Rarity != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Card")) - } - panic(fmt.Errorf("message cardchain.cardchain.Card 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_Card) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Card.owner": - x.Owner = "" - case "cardchain.cardchain.Card.artist": - x.Artist = "" - case "cardchain.cardchain.Card.content": - x.Content = nil - case "cardchain.cardchain.Card.image_id": - x.ImageId = uint64(0) - case "cardchain.cardchain.Card.fullArt": - x.FullArt = false - case "cardchain.cardchain.Card.notes": - x.Notes = "" - case "cardchain.cardchain.Card.status": - x.Status = 0 - case "cardchain.cardchain.Card.votePool": - x.VotePool = nil - case "cardchain.cardchain.Card.voters": - x.Voters = nil - case "cardchain.cardchain.Card.fairEnoughVotes": - x.FairEnoughVotes = uint64(0) - case "cardchain.cardchain.Card.overpoweredVotes": - x.OverpoweredVotes = uint64(0) - case "cardchain.cardchain.Card.underpoweredVotes": - x.UnderpoweredVotes = uint64(0) - case "cardchain.cardchain.Card.inappropriateVotes": - x.InappropriateVotes = uint64(0) - case "cardchain.cardchain.Card.nerflevel": - x.Nerflevel = int64(0) - case "cardchain.cardchain.Card.balanceAnchor": - x.BalanceAnchor = false - case "cardchain.cardchain.Card.starterCard": - x.StarterCard = false - case "cardchain.cardchain.Card.rarity": - x.Rarity = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Card")) - } - panic(fmt.Errorf("message cardchain.cardchain.Card 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_Card) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Card.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Card.artist": - value := x.Artist - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Card.content": - value := x.Content - return protoreflect.ValueOfBytes(value) - case "cardchain.cardchain.Card.image_id": - value := x.ImageId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Card.fullArt": - value := x.FullArt - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.Card.notes": - value := x.Notes - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Card.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.Card.votePool": - value := x.VotePool - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Card.voters": - if len(x.Voters) == 0 { - return protoreflect.ValueOfList(&_Card_14_list{}) - } - listValue := &_Card_14_list{list: &x.Voters} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Card.fairEnoughVotes": - value := x.FairEnoughVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Card.overpoweredVotes": - value := x.OverpoweredVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Card.underpoweredVotes": - value := x.UnderpoweredVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Card.inappropriateVotes": - value := x.InappropriateVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Card.nerflevel": - value := x.Nerflevel - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Card.balanceAnchor": - value := x.BalanceAnchor - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.Card.starterCard": - value := x.StarterCard - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.Card.rarity": - value := x.Rarity - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Card")) - } - panic(fmt.Errorf("message cardchain.cardchain.Card 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_Card) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Card.owner": - x.Owner = value.Interface().(string) - case "cardchain.cardchain.Card.artist": - x.Artist = value.Interface().(string) - case "cardchain.cardchain.Card.content": - x.Content = value.Bytes() - case "cardchain.cardchain.Card.image_id": - x.ImageId = value.Uint() - case "cardchain.cardchain.Card.fullArt": - x.FullArt = value.Bool() - case "cardchain.cardchain.Card.notes": - x.Notes = value.Interface().(string) - case "cardchain.cardchain.Card.status": - x.Status = (CardStatus)(value.Enum()) - case "cardchain.cardchain.Card.votePool": - x.VotePool = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Card.voters": - lv := value.List() - clv := lv.(*_Card_14_list) - x.Voters = *clv.list - case "cardchain.cardchain.Card.fairEnoughVotes": - x.FairEnoughVotes = value.Uint() - case "cardchain.cardchain.Card.overpoweredVotes": - x.OverpoweredVotes = value.Uint() - case "cardchain.cardchain.Card.underpoweredVotes": - x.UnderpoweredVotes = value.Uint() - case "cardchain.cardchain.Card.inappropriateVotes": - x.InappropriateVotes = value.Uint() - case "cardchain.cardchain.Card.nerflevel": - x.Nerflevel = value.Int() - case "cardchain.cardchain.Card.balanceAnchor": - x.BalanceAnchor = value.Bool() - case "cardchain.cardchain.Card.starterCard": - x.StarterCard = value.Bool() - case "cardchain.cardchain.Card.rarity": - x.Rarity = (CardRarity)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Card")) - } - panic(fmt.Errorf("message cardchain.cardchain.Card 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_Card) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Card.votePool": - if x.VotePool == nil { - x.VotePool = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.VotePool.ProtoReflect()) - case "cardchain.cardchain.Card.voters": - if x.Voters == nil { - x.Voters = []string{} - } - value := &_Card_14_list{list: &x.Voters} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Card.owner": - panic(fmt.Errorf("field owner of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.artist": - panic(fmt.Errorf("field artist of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.content": - panic(fmt.Errorf("field content of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.image_id": - panic(fmt.Errorf("field image_id of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.fullArt": - panic(fmt.Errorf("field fullArt of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.notes": - panic(fmt.Errorf("field notes of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.status": - panic(fmt.Errorf("field status of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.fairEnoughVotes": - panic(fmt.Errorf("field fairEnoughVotes of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.overpoweredVotes": - panic(fmt.Errorf("field overpoweredVotes of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.underpoweredVotes": - panic(fmt.Errorf("field underpoweredVotes of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.inappropriateVotes": - panic(fmt.Errorf("field inappropriateVotes of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.nerflevel": - panic(fmt.Errorf("field nerflevel of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.balanceAnchor": - panic(fmt.Errorf("field balanceAnchor of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.starterCard": - panic(fmt.Errorf("field starterCard of message cardchain.cardchain.Card is not mutable")) - case "cardchain.cardchain.Card.rarity": - panic(fmt.Errorf("field rarity of message cardchain.cardchain.Card is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Card")) - } - panic(fmt.Errorf("message cardchain.cardchain.Card 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_Card) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Card.owner": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Card.artist": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Card.content": - return protoreflect.ValueOfBytes(nil) - case "cardchain.cardchain.Card.image_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Card.fullArt": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.Card.notes": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Card.status": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.Card.votePool": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Card.voters": - list := []string{} - return protoreflect.ValueOfList(&_Card_14_list{list: &list}) - case "cardchain.cardchain.Card.fairEnoughVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Card.overpoweredVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Card.underpoweredVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Card.inappropriateVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Card.nerflevel": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Card.balanceAnchor": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.Card.starterCard": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.Card.rarity": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Card")) - } - panic(fmt.Errorf("message cardchain.cardchain.Card 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_Card) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Card", 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_Card) 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_Card) 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_Card) 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_Card) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Card) - 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.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Artist) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Content) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ImageId != 0 { - n += 1 + runtime.Sov(uint64(x.ImageId)) - } - if x.FullArt { - n += 2 - } - l = len(x.Notes) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - if x.VotePool != nil { - l = options.Size(x.VotePool) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Voters) > 0 { - for _, s := range x.Voters { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.FairEnoughVotes != 0 { - n += 1 + runtime.Sov(uint64(x.FairEnoughVotes)) - } - if x.OverpoweredVotes != 0 { - n += 1 + runtime.Sov(uint64(x.OverpoweredVotes)) - } - if x.UnderpoweredVotes != 0 { - n += 1 + runtime.Sov(uint64(x.UnderpoweredVotes)) - } - if x.InappropriateVotes != 0 { - n += 1 + runtime.Sov(uint64(x.InappropriateVotes)) - } - if x.Nerflevel != 0 { - n += 1 + runtime.Sov(uint64(x.Nerflevel)) - } - if x.BalanceAnchor { - n += 2 - } - if x.StarterCard { - n += 3 - } - if x.Rarity != 0 { - n += 2 + runtime.Sov(uint64(x.Rarity)) - } - 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().(*Card) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Rarity != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Rarity)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if x.StarterCard { - i-- - if x.StarterCard { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if x.BalanceAnchor { - i-- - if x.BalanceAnchor { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x78 - } - if len(x.Voters) > 0 { - for iNdEx := len(x.Voters) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Voters[iNdEx]) - copy(dAtA[i:], x.Voters[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voters[iNdEx]))) - i-- - dAtA[i] = 0x72 - } - } - if x.Nerflevel != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Nerflevel)) - i-- - dAtA[i] = 0x68 - } - if x.InappropriateVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.InappropriateVotes)) - i-- - dAtA[i] = 0x60 - } - if x.UnderpoweredVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.UnderpoweredVotes)) - i-- - dAtA[i] = 0x58 - } - if x.OverpoweredVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.OverpoweredVotes)) - i-- - dAtA[i] = 0x50 - } - if x.FairEnoughVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.FairEnoughVotes)) - i-- - dAtA[i] = 0x48 - } - if x.VotePool != nil { - encoded, err := options.Marshal(x.VotePool) - 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] = 0x42 - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x38 - } - if len(x.Notes) > 0 { - i -= len(x.Notes) - copy(dAtA[i:], x.Notes) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Notes))) - i-- - dAtA[i] = 0x32 - } - if x.FullArt { - i-- - if x.FullArt { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if x.ImageId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ImageId)) - i-- - dAtA[i] = 0x20 - } - if len(x.Content) > 0 { - i -= len(x.Content) - copy(dAtA[i:], x.Content) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Content))) - i-- - dAtA[i] = 0x1a - } - if len(x.Artist) > 0 { - i -= len(x.Artist) - copy(dAtA[i:], x.Artist) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artist))) - i-- - dAtA[i] = 0x12 - } - 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] = 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().(*Card) - 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: Card: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Card: 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 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 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Artist", 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.Artist = 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 Content", wireType) - } - var byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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.Content = append(x.Content[:0], dAtA[iNdEx:postIndex]...) - if x.Content == nil { - x.Content = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ImageId", wireType) - } - x.ImageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ImageId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FullArt", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.FullArt = bool(v != 0) - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Notes", 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.Notes = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= CardStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotePool", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.VotePool == nil { - x.VotePool = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VotePool); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Voters", 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.Voters = append(x.Voters, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FairEnoughVotes", wireType) - } - x.FairEnoughVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.FairEnoughVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OverpoweredVotes", wireType) - } - x.OverpoweredVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.OverpoweredVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnderpoweredVotes", wireType) - } - x.UnderpoweredVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.UnderpoweredVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InappropriateVotes", wireType) - } - x.InappropriateVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.InappropriateVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nerflevel", wireType) - } - x.Nerflevel = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Nerflevel |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BalanceAnchor", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.BalanceAnchor = bool(v != 0) - case 16: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StarterCard", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.StarterCard = bool(v != 0) - case 17: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rarity", wireType) - } - x.Rarity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Rarity |= CardRarity(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_TimeStamp protoreflect.MessageDescriptor - fd_TimeStamp_timeStamp protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_card_proto_init() - md_TimeStamp = File_cardchain_cardchain_card_proto.Messages().ByName("TimeStamp") - fd_TimeStamp_timeStamp = md_TimeStamp.Fields().ByName("timeStamp") -} - -var _ protoreflect.Message = (*fastReflection_TimeStamp)(nil) - -type fastReflection_TimeStamp TimeStamp - -func (x *TimeStamp) ProtoReflect() protoreflect.Message { - return (*fastReflection_TimeStamp)(x) -} - -func (x *TimeStamp) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_card_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_TimeStamp_messageType fastReflection_TimeStamp_messageType -var _ protoreflect.MessageType = fastReflection_TimeStamp_messageType{} - -type fastReflection_TimeStamp_messageType struct{} - -func (x fastReflection_TimeStamp_messageType) Zero() protoreflect.Message { - return (*fastReflection_TimeStamp)(nil) -} -func (x fastReflection_TimeStamp_messageType) New() protoreflect.Message { - return new(fastReflection_TimeStamp) -} -func (x fastReflection_TimeStamp_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_TimeStamp -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_TimeStamp) Descriptor() protoreflect.MessageDescriptor { - return md_TimeStamp -} - -// 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_TimeStamp) Type() protoreflect.MessageType { - return _fastReflection_TimeStamp_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_TimeStamp) New() protoreflect.Message { - return new(fastReflection_TimeStamp) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_TimeStamp) Interface() protoreflect.ProtoMessage { - return (*TimeStamp)(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_TimeStamp) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TimeStamp != uint64(0) { - value := protoreflect.ValueOfUint64(x.TimeStamp) - if !f(fd_TimeStamp_timeStamp, 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_TimeStamp) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.TimeStamp.timeStamp": - return x.TimeStamp != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.TimeStamp")) - } - panic(fmt.Errorf("message cardchain.cardchain.TimeStamp 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_TimeStamp) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.TimeStamp.timeStamp": - x.TimeStamp = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.TimeStamp")) - } - panic(fmt.Errorf("message cardchain.cardchain.TimeStamp 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_TimeStamp) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.TimeStamp.timeStamp": - value := x.TimeStamp - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.TimeStamp")) - } - panic(fmt.Errorf("message cardchain.cardchain.TimeStamp 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_TimeStamp) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.TimeStamp.timeStamp": - x.TimeStamp = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.TimeStamp")) - } - panic(fmt.Errorf("message cardchain.cardchain.TimeStamp 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_TimeStamp) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.TimeStamp.timeStamp": - panic(fmt.Errorf("field timeStamp of message cardchain.cardchain.TimeStamp is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.TimeStamp")) - } - panic(fmt.Errorf("message cardchain.cardchain.TimeStamp 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_TimeStamp) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.TimeStamp.timeStamp": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.TimeStamp")) - } - panic(fmt.Errorf("message cardchain.cardchain.TimeStamp 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_TimeStamp) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.TimeStamp", 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_TimeStamp) 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_TimeStamp) 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_TimeStamp) 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_TimeStamp) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*TimeStamp) - 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.TimeStamp != 0 { - n += 1 + runtime.Sov(uint64(x.TimeStamp)) - } - 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().(*TimeStamp) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.TimeStamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TimeStamp)) - i-- - dAtA[i] = 0x8 - } - 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().(*TimeStamp) - 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: TimeStamp: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TimeStamp: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimeStamp", wireType) - } - x.TimeStamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TimeStamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/card.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CardStatus int32 - -const ( - CardStatus_none CardStatus = 0 - CardStatus_scheme CardStatus = 1 - CardStatus_prototype CardStatus = 2 - CardStatus_trial CardStatus = 3 - CardStatus_permanent CardStatus = 4 - CardStatus_suspended CardStatus = 5 - CardStatus_banned CardStatus = 6 - CardStatus_bannedSoon CardStatus = 7 - CardStatus_bannedVerySoon CardStatus = 8 - CardStatus_adventureItem CardStatus = 9 -) - -// Enum value maps for CardStatus. -var ( - CardStatus_name = map[int32]string{ - 0: "none", - 1: "scheme", - 2: "prototype", - 3: "trial", - 4: "permanent", - 5: "suspended", - 6: "banned", - 7: "bannedSoon", - 8: "bannedVerySoon", - 9: "adventureItem", - } - CardStatus_value = map[string]int32{ - "none": 0, - "scheme": 1, - "prototype": 2, - "trial": 3, - "permanent": 4, - "suspended": 5, - "banned": 6, - "bannedSoon": 7, - "bannedVerySoon": 8, - "adventureItem": 9, - } -) - -func (x CardStatus) Enum() *CardStatus { - p := new(CardStatus) - *p = x - return p -} - -func (x CardStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CardStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_card_proto_enumTypes[0].Descriptor() -} - -func (CardStatus) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_card_proto_enumTypes[0] -} - -func (x CardStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CardStatus.Descriptor instead. -func (CardStatus) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_proto_rawDescGZIP(), []int{0} -} - -type CardRarity int32 - -const ( - CardRarity_common CardRarity = 0 - CardRarity_uncommon CardRarity = 1 - CardRarity_rare CardRarity = 2 - CardRarity_exceptional CardRarity = 3 - CardRarity_unique CardRarity = 4 -) - -// Enum value maps for CardRarity. -var ( - CardRarity_name = map[int32]string{ - 0: "common", - 1: "uncommon", - 2: "rare", - 3: "exceptional", - 4: "unique", - } - CardRarity_value = map[string]int32{ - "common": 0, - "uncommon": 1, - "rare": 2, - "exceptional": 3, - "unique": 4, - } -) - -func (x CardRarity) Enum() *CardRarity { - p := new(CardRarity) - *p = x - return p -} - -func (x CardRarity) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CardRarity) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_card_proto_enumTypes[1].Descriptor() -} - -func (CardRarity) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_card_proto_enumTypes[1] -} - -func (x CardRarity) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CardRarity.Descriptor instead. -func (CardRarity) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_proto_rawDescGZIP(), []int{1} -} - -type CardClass int32 - -const ( - CardClass_nature CardClass = 0 - CardClass_culture CardClass = 1 - CardClass_mysticism CardClass = 2 - CardClass_technology CardClass = 3 -) - -// Enum value maps for CardClass. -var ( - CardClass_name = map[int32]string{ - 0: "nature", - 1: "culture", - 2: "mysticism", - 3: "technology", - } - CardClass_value = map[string]int32{ - "nature": 0, - "culture": 1, - "mysticism": 2, - "technology": 3, - } -) - -func (x CardClass) Enum() *CardClass { - p := new(CardClass) - *p = x - return p -} - -func (x CardClass) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CardClass) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_card_proto_enumTypes[2].Descriptor() -} - -func (CardClass) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_card_proto_enumTypes[2] -} - -func (x CardClass) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CardClass.Descriptor instead. -func (CardClass) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_proto_rawDescGZIP(), []int{2} -} - -type CardType int32 - -const ( - CardType_place CardType = 0 - CardType_action CardType = 1 - CardType_entity CardType = 2 - CardType_headquarter CardType = 3 -) - -// Enum value maps for CardType. -var ( - CardType_name = map[int32]string{ - 0: "place", - 1: "action", - 2: "entity", - 3: "headquarter", - } - CardType_value = map[string]int32{ - "place": 0, - "action": 1, - "entity": 2, - "headquarter": 3, - } -) - -func (x CardType) Enum() *CardType { - p := new(CardType) - *p = x - return p -} - -func (x CardType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CardType) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_card_proto_enumTypes[3].Descriptor() -} - -func (CardType) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_card_proto_enumTypes[3] -} - -func (x CardType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CardType.Descriptor instead. -func (CardType) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_proto_rawDescGZIP(), []int{3} -} - -type Card struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - Artist string `protobuf:"bytes,2,opt,name=artist,proto3" json:"artist,omitempty"` - Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - ImageId uint64 `protobuf:"varint,4,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` - FullArt bool `protobuf:"varint,5,opt,name=fullArt,proto3" json:"fullArt,omitempty"` - Notes string `protobuf:"bytes,6,opt,name=notes,proto3" json:"notes,omitempty"` - Status CardStatus `protobuf:"varint,7,opt,name=status,proto3,enum=cardchain.cardchain.CardStatus" json:"status,omitempty"` - VotePool *v1beta1.Coin `protobuf:"bytes,8,opt,name=votePool,proto3" json:"votePool,omitempty"` - Voters []string `protobuf:"bytes,14,rep,name=voters,proto3" json:"voters,omitempty"` - FairEnoughVotes uint64 `protobuf:"varint,9,opt,name=fairEnoughVotes,proto3" json:"fairEnoughVotes,omitempty"` - OverpoweredVotes uint64 `protobuf:"varint,10,opt,name=overpoweredVotes,proto3" json:"overpoweredVotes,omitempty"` - UnderpoweredVotes uint64 `protobuf:"varint,11,opt,name=underpoweredVotes,proto3" json:"underpoweredVotes,omitempty"` - InappropriateVotes uint64 `protobuf:"varint,12,opt,name=inappropriateVotes,proto3" json:"inappropriateVotes,omitempty"` - Nerflevel int64 `protobuf:"varint,13,opt,name=nerflevel,proto3" json:"nerflevel,omitempty"` - BalanceAnchor bool `protobuf:"varint,15,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` - StarterCard bool `protobuf:"varint,16,opt,name=starterCard,proto3" json:"starterCard,omitempty"` - Rarity CardRarity `protobuf:"varint,17,opt,name=rarity,proto3,enum=cardchain.cardchain.CardRarity" json:"rarity,omitempty"` -} - -func (x *Card) Reset() { - *x = Card{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_card_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Card) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Card) ProtoMessage() {} - -// Deprecated: Use Card.ProtoReflect.Descriptor instead. -func (*Card) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_proto_rawDescGZIP(), []int{0} -} - -func (x *Card) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *Card) GetArtist() string { - if x != nil { - return x.Artist - } - return "" -} - -func (x *Card) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - -func (x *Card) GetImageId() uint64 { - if x != nil { - return x.ImageId - } - return 0 -} - -func (x *Card) GetFullArt() bool { - if x != nil { - return x.FullArt - } - return false -} - -func (x *Card) GetNotes() string { - if x != nil { - return x.Notes - } - return "" -} - -func (x *Card) GetStatus() CardStatus { - if x != nil { - return x.Status - } - return CardStatus_none -} - -func (x *Card) GetVotePool() *v1beta1.Coin { - if x != nil { - return x.VotePool - } - return nil -} - -func (x *Card) GetVoters() []string { - if x != nil { - return x.Voters - } - return nil -} - -func (x *Card) GetFairEnoughVotes() uint64 { - if x != nil { - return x.FairEnoughVotes - } - return 0 -} - -func (x *Card) GetOverpoweredVotes() uint64 { - if x != nil { - return x.OverpoweredVotes - } - return 0 -} - -func (x *Card) GetUnderpoweredVotes() uint64 { - if x != nil { - return x.UnderpoweredVotes - } - return 0 -} - -func (x *Card) GetInappropriateVotes() uint64 { - if x != nil { - return x.InappropriateVotes - } - return 0 -} - -func (x *Card) GetNerflevel() int64 { - if x != nil { - return x.Nerflevel - } - return 0 -} - -func (x *Card) GetBalanceAnchor() bool { - if x != nil { - return x.BalanceAnchor - } - return false -} - -func (x *Card) GetStarterCard() bool { - if x != nil { - return x.StarterCard - } - return false -} - -func (x *Card) GetRarity() CardRarity { - if x != nil { - return x.Rarity - } - return CardRarity_common -} - -type TimeStamp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TimeStamp uint64 `protobuf:"varint,1,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"` -} - -func (x *TimeStamp) Reset() { - *x = TimeStamp{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_card_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TimeStamp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TimeStamp) ProtoMessage() {} - -// Deprecated: Use TimeStamp.ProtoReflect.Descriptor instead. -func (*TimeStamp) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_proto_rawDescGZIP(), []int{1} -} - -func (x *TimeStamp) GetTimeStamp() uint64 { - if x != nil { - return x.TimeStamp - } - return 0 -} - -var File_cardchain_cardchain_card_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_card_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x04, 0x0a, 0x04, - 0x43, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x72, - 0x74, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x72, 0x74, 0x69, - 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x75, 0x6c, 0x6c, 0x41, - 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x66, 0x75, 0x6c, 0x6c, 0x41, 0x72, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, - 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x3b, 0x0a, 0x08, 0x76, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x08, 0x76, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x16, 0x0a, - 0x06, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, - 0x6f, 0x74, 0x65, 0x72, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x72, 0x45, 0x6e, 0x6f, - 0x75, 0x67, 0x68, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, - 0x66, 0x61, 0x69, 0x72, 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, - 0x2a, 0x0a, 0x10, 0x6f, 0x76, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, - 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6f, 0x76, 0x65, 0x72, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x75, - 0x6e, 0x64, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x6f, 0x77, - 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x6e, 0x61, - 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x69, 0x6e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, - 0x69, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x72, - 0x66, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x65, - 0x72, 0x66, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, - 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x12, 0x20, 0x0a, - 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x43, 0x61, 0x72, 0x64, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x43, 0x61, 0x72, 0x64, 0x12, - 0x37, 0x0a, 0x06, 0x72, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, - 0x52, 0x06, 0x72, 0x61, 0x72, 0x69, 0x74, 0x79, 0x22, 0x29, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, - 0x53, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, - 0x61, 0x6d, 0x70, 0x2a, 0x9d, 0x01, 0x0a, 0x0a, 0x43, 0x61, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x74, 0x79, 0x70, 0x65, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x74, 0x72, 0x69, 0x61, 0x6c, - 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x10, - 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x73, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x10, 0x05, - 0x12, 0x0a, 0x0a, 0x06, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, - 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x6f, 0x6f, 0x6e, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, - 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x56, 0x65, 0x72, 0x79, 0x53, 0x6f, 0x6f, 0x6e, 0x10, 0x08, - 0x12, 0x11, 0x0a, 0x0d, 0x61, 0x64, 0x76, 0x65, 0x6e, 0x74, 0x75, 0x72, 0x65, 0x49, 0x74, 0x65, - 0x6d, 0x10, 0x09, 0x2a, 0x4d, 0x0a, 0x0a, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, - 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x0c, 0x0a, - 0x08, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x72, - 0x61, 0x72, 0x65, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, - 0x10, 0x04, 0x2a, 0x43, 0x0a, 0x09, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, - 0x0a, 0x0a, 0x06, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x63, - 0x75, 0x6c, 0x74, 0x75, 0x72, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x6d, 0x79, 0x73, 0x74, - 0x69, 0x63, 0x69, 0x73, 0x6d, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x74, 0x65, 0x63, 0x68, 0x6e, - 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x10, 0x03, 0x2a, 0x3e, 0x0a, 0x08, 0x43, 0x61, 0x72, 0x64, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x10, 0x00, 0x12, 0x0a, - 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x71, 0x75, - 0x61, 0x72, 0x74, 0x65, 0x72, 0x10, 0x03, 0x42, 0xd1, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x42, 0x09, 0x43, 0x61, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, - 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_card_proto_rawDescOnce sync.Once - file_cardchain_cardchain_card_proto_rawDescData = file_cardchain_cardchain_card_proto_rawDesc -) - -func file_cardchain_cardchain_card_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_card_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_card_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_card_proto_rawDescData) - }) - return file_cardchain_cardchain_card_proto_rawDescData -} - -var file_cardchain_cardchain_card_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_cardchain_cardchain_card_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cardchain_cardchain_card_proto_goTypes = []interface{}{ - (CardStatus)(0), // 0: cardchain.cardchain.CardStatus - (CardRarity)(0), // 1: cardchain.cardchain.CardRarity - (CardClass)(0), // 2: cardchain.cardchain.CardClass - (CardType)(0), // 3: cardchain.cardchain.CardType - (*Card)(nil), // 4: cardchain.cardchain.Card - (*TimeStamp)(nil), // 5: cardchain.cardchain.TimeStamp - (*v1beta1.Coin)(nil), // 6: cosmos.base.v1beta1.Coin -} -var file_cardchain_cardchain_card_proto_depIdxs = []int32{ - 0, // 0: cardchain.cardchain.Card.status:type_name -> cardchain.cardchain.CardStatus - 6, // 1: cardchain.cardchain.Card.votePool:type_name -> cosmos.base.v1beta1.Coin - 1, // 2: cardchain.cardchain.Card.rarity:type_name -> cardchain.cardchain.CardRarity - 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 - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_card_proto_init() } -func file_cardchain_cardchain_card_proto_init() { - if File_cardchain_cardchain_card_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_card_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Card); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_card_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeStamp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_card_proto_rawDesc, - NumEnums: 4, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_card_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_card_proto_depIdxs, - EnumInfos: file_cardchain_cardchain_card_proto_enumTypes, - MessageInfos: file_cardchain_cardchain_card_proto_msgTypes, - }.Build() - File_cardchain_cardchain_card_proto = out.File - file_cardchain_cardchain_card_proto_rawDesc = nil - file_cardchain_cardchain_card_proto_goTypes = nil - file_cardchain_cardchain_card_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/card_content.pulsar.go b/api/cardchain/cardchain/card_content.pulsar.go deleted file mode 100644 index 11c42425..00000000 --- a/api/cardchain/cardchain/card_content.pulsar.go +++ /dev/null @@ -1,643 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_CardContent protoreflect.MessageDescriptor - fd_CardContent_content protoreflect.FieldDescriptor - fd_CardContent_hash protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_card_content_proto_init() - md_CardContent = File_cardchain_cardchain_card_content_proto.Messages().ByName("CardContent") - fd_CardContent_content = md_CardContent.Fields().ByName("content") - fd_CardContent_hash = md_CardContent.Fields().ByName("hash") -} - -var _ protoreflect.Message = (*fastReflection_CardContent)(nil) - -type fastReflection_CardContent CardContent - -func (x *CardContent) ProtoReflect() protoreflect.Message { - return (*fastReflection_CardContent)(x) -} - -func (x *CardContent) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_card_content_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_CardContent_messageType fastReflection_CardContent_messageType -var _ protoreflect.MessageType = fastReflection_CardContent_messageType{} - -type fastReflection_CardContent_messageType struct{} - -func (x fastReflection_CardContent_messageType) Zero() protoreflect.Message { - return (*fastReflection_CardContent)(nil) -} -func (x fastReflection_CardContent_messageType) New() protoreflect.Message { - return new(fastReflection_CardContent) -} -func (x fastReflection_CardContent_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CardContent -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_CardContent) Descriptor() protoreflect.MessageDescriptor { - return md_CardContent -} - -// 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_CardContent) Type() protoreflect.MessageType { - return _fastReflection_CardContent_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_CardContent) New() protoreflect.Message { - return new(fastReflection_CardContent) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_CardContent) Interface() protoreflect.ProtoMessage { - return (*CardContent)(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_CardContent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Content != "" { - value := protoreflect.ValueOfString(x.Content) - if !f(fd_CardContent_content, value) { - return - } - } - if x.Hash != "" { - value := protoreflect.ValueOfString(x.Hash) - if !f(fd_CardContent_hash, 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_CardContent) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.CardContent.content": - return x.Content != "" - case "cardchain.cardchain.CardContent.hash": - return x.Hash != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardContent 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_CardContent) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.CardContent.content": - x.Content = "" - case "cardchain.cardchain.CardContent.hash": - x.Hash = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardContent 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_CardContent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.CardContent.content": - value := x.Content - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.CardContent.hash": - value := x.Hash - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardContent 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_CardContent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.CardContent.content": - x.Content = value.Interface().(string) - case "cardchain.cardchain.CardContent.hash": - x.Hash = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardContent 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_CardContent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.CardContent.content": - panic(fmt.Errorf("field content of message cardchain.cardchain.CardContent is not mutable")) - case "cardchain.cardchain.CardContent.hash": - panic(fmt.Errorf("field hash of message cardchain.cardchain.CardContent is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardContent 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_CardContent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.CardContent.content": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.CardContent.hash": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardContent 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_CardContent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.CardContent", 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_CardContent) 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_CardContent) 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_CardContent) 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_CardContent) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CardContent) - 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.Content) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Hash) - 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().(*CardContent) - 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.Hash) > 0 { - i -= len(x.Hash) - copy(dAtA[i:], x.Hash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) - i-- - dAtA[i] = 0x12 - } - if len(x.Content) > 0 { - i -= len(x.Content) - copy(dAtA[i:], x.Content) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Content))) - 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().(*CardContent) - 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: CardContent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CardContent: 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 Content", 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.Content = 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 Hash", 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.Hash = 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 -// protoc (unknown) -// source: cardchain/cardchain/card_content.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CardContent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *CardContent) Reset() { - *x = CardContent{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_card_content_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CardContent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CardContent) ProtoMessage() {} - -// Deprecated: Use CardContent.ProtoReflect.Descriptor instead. -func (*CardContent) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_content_proto_rawDescGZIP(), []int{0} -} - -func (x *CardContent) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *CardContent) GetHash() string { - if x != nil { - return x.Hash - } - return "" -} - -var File_cardchain_cardchain_card_content_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_card_content_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x22, 0x3b, 0x0a, - 0x0b, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0xd8, 0x01, 0x0a, 0x17, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x10, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, - 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, - 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_card_content_proto_rawDescOnce sync.Once - file_cardchain_cardchain_card_content_proto_rawDescData = file_cardchain_cardchain_card_content_proto_rawDesc -) - -func file_cardchain_cardchain_card_content_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_card_content_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_card_content_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_card_content_proto_rawDescData) - }) - return file_cardchain_cardchain_card_content_proto_rawDescData -} - -var file_cardchain_cardchain_card_content_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_card_content_proto_goTypes = []interface{}{ - (*CardContent)(nil), // 0: cardchain.cardchain.CardContent -} -var file_cardchain_cardchain_card_content_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_card_content_proto_init() } -func file_cardchain_cardchain_card_content_proto_init() { - if File_cardchain_cardchain_card_content_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_card_content_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CardContent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_card_content_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_card_content_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_card_content_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_card_content_proto_msgTypes, - }.Build() - File_cardchain_cardchain_card_content_proto = out.File - file_cardchain_cardchain_card_content_proto_rawDesc = nil - file_cardchain_cardchain_card_content_proto_goTypes = nil - file_cardchain_cardchain_card_content_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/card_with_image.pulsar.go b/api/cardchain/cardchain/card_with_image.pulsar.go deleted file mode 100644 index c161546e..00000000 --- a/api/cardchain/cardchain/card_with_image.pulsar.go +++ /dev/null @@ -1,741 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_CardWithImage protoreflect.MessageDescriptor - fd_CardWithImage_card protoreflect.FieldDescriptor - fd_CardWithImage_image protoreflect.FieldDescriptor - fd_CardWithImage_hash protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_card_with_image_proto_init() - md_CardWithImage = File_cardchain_cardchain_card_with_image_proto.Messages().ByName("CardWithImage") - fd_CardWithImage_card = md_CardWithImage.Fields().ByName("card") - fd_CardWithImage_image = md_CardWithImage.Fields().ByName("image") - fd_CardWithImage_hash = md_CardWithImage.Fields().ByName("hash") -} - -var _ protoreflect.Message = (*fastReflection_CardWithImage)(nil) - -type fastReflection_CardWithImage CardWithImage - -func (x *CardWithImage) ProtoReflect() protoreflect.Message { - return (*fastReflection_CardWithImage)(x) -} - -func (x *CardWithImage) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_card_with_image_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_CardWithImage_messageType fastReflection_CardWithImage_messageType -var _ protoreflect.MessageType = fastReflection_CardWithImage_messageType{} - -type fastReflection_CardWithImage_messageType struct{} - -func (x fastReflection_CardWithImage_messageType) Zero() protoreflect.Message { - return (*fastReflection_CardWithImage)(nil) -} -func (x fastReflection_CardWithImage_messageType) New() protoreflect.Message { - return new(fastReflection_CardWithImage) -} -func (x fastReflection_CardWithImage_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_CardWithImage -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_CardWithImage) Descriptor() protoreflect.MessageDescriptor { - return md_CardWithImage -} - -// 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_CardWithImage) Type() protoreflect.MessageType { - return _fastReflection_CardWithImage_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_CardWithImage) New() protoreflect.Message { - return new(fastReflection_CardWithImage) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_CardWithImage) Interface() protoreflect.ProtoMessage { - return (*CardWithImage)(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_CardWithImage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Card != nil { - value := protoreflect.ValueOfMessage(x.Card.ProtoReflect()) - if !f(fd_CardWithImage_card, value) { - return - } - } - if x.Image != "" { - value := protoreflect.ValueOfString(x.Image) - if !f(fd_CardWithImage_image, value) { - return - } - } - if x.Hash != "" { - value := protoreflect.ValueOfString(x.Hash) - if !f(fd_CardWithImage_hash, 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_CardWithImage) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.CardWithImage.card": - return x.Card != nil - case "cardchain.cardchain.CardWithImage.image": - return x.Image != "" - case "cardchain.cardchain.CardWithImage.hash": - return x.Hash != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardWithImage 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_CardWithImage) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.CardWithImage.card": - x.Card = nil - case "cardchain.cardchain.CardWithImage.image": - x.Image = "" - case "cardchain.cardchain.CardWithImage.hash": - x.Hash = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardWithImage 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_CardWithImage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.CardWithImage.card": - value := x.Card - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.CardWithImage.image": - value := x.Image - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.CardWithImage.hash": - value := x.Hash - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardWithImage 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_CardWithImage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.CardWithImage.card": - x.Card = value.Message().Interface().(*Card) - case "cardchain.cardchain.CardWithImage.image": - x.Image = value.Interface().(string) - case "cardchain.cardchain.CardWithImage.hash": - x.Hash = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardWithImage 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_CardWithImage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.CardWithImage.card": - if x.Card == nil { - x.Card = new(Card) - } - return protoreflect.ValueOfMessage(x.Card.ProtoReflect()) - case "cardchain.cardchain.CardWithImage.image": - panic(fmt.Errorf("field image of message cardchain.cardchain.CardWithImage is not mutable")) - case "cardchain.cardchain.CardWithImage.hash": - panic(fmt.Errorf("field hash of message cardchain.cardchain.CardWithImage is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardWithImage 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_CardWithImage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.CardWithImage.card": - m := new(Card) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.CardWithImage.image": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.CardWithImage.hash": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.CardWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.CardWithImage 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_CardWithImage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.CardWithImage", 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_CardWithImage) 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_CardWithImage) 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_CardWithImage) 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_CardWithImage) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*CardWithImage) - 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.Card != nil { - l = options.Size(x.Card) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Image) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Hash) - 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().(*CardWithImage) - 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.Hash) > 0 { - i -= len(x.Hash) - copy(dAtA[i:], x.Hash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) - i-- - dAtA[i] = 0x1a - } - if len(x.Image) > 0 { - i -= len(x.Image) - copy(dAtA[i:], x.Image) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Image))) - i-- - dAtA[i] = 0x12 - } - if x.Card != nil { - encoded, err := options.Marshal(x.Card) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*CardWithImage) - 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: CardWithImage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CardWithImage: 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 Card", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Card == nil { - x.Card = &Card{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Card); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Image", 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.Image = 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 Hash", 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.Hash = 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 -// protoc (unknown) -// source: cardchain/cardchain/card_with_image.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CardWithImage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Card *Card `protobuf:"bytes,1,opt,name=card,proto3" json:"card,omitempty"` - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *CardWithImage) Reset() { - *x = CardWithImage{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_card_with_image_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CardWithImage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CardWithImage) ProtoMessage() {} - -// Deprecated: Use CardWithImage.ProtoReflect.Descriptor instead. -func (*CardWithImage) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_card_with_image_proto_rawDescGZIP(), []int{0} -} - -func (x *CardWithImage) GetCard() *Card { - if x != nil { - return x.Card - } - return nil -} - -func (x *CardWithImage) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -func (x *CardWithImage) GetHash() string { - if x != nil { - return x.Hash - } - return "" -} - -var File_cardchain_cardchain_card_with_image_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_card_with_image_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x68, 0x0a, 0x0d, 0x43, 0x61, 0x72, 0x64, 0x57, 0x69, - 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x63, 0x61, 0x72, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, - 0x52, 0x04, 0x63, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, - 0x42, 0xda, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x12, 0x43, 0x61, - 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, - 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_card_with_image_proto_rawDescOnce sync.Once - file_cardchain_cardchain_card_with_image_proto_rawDescData = file_cardchain_cardchain_card_with_image_proto_rawDesc -) - -func file_cardchain_cardchain_card_with_image_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_card_with_image_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_card_with_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_card_with_image_proto_rawDescData) - }) - return file_cardchain_cardchain_card_with_image_proto_rawDescData -} - -var file_cardchain_cardchain_card_with_image_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_card_with_image_proto_goTypes = []interface{}{ - (*CardWithImage)(nil), // 0: cardchain.cardchain.CardWithImage - (*Card)(nil), // 1: cardchain.cardchain.Card -} -var file_cardchain_cardchain_card_with_image_proto_depIdxs = []int32{ - 1, // 0: cardchain.cardchain.CardWithImage.card:type_name -> cardchain.cardchain.Card - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_card_with_image_proto_init() } -func file_cardchain_cardchain_card_with_image_proto_init() { - if File_cardchain_cardchain_card_with_image_proto != nil { - return - } - file_cardchain_cardchain_card_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_card_with_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CardWithImage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_card_with_image_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_card_with_image_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_card_with_image_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_card_with_image_proto_msgTypes, - }.Build() - File_cardchain_cardchain_card_with_image_proto = out.File - file_cardchain_cardchain_card_with_image_proto_rawDesc = nil - file_cardchain_cardchain_card_with_image_proto_goTypes = nil - file_cardchain_cardchain_card_with_image_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/council.pulsar.go b/api/cardchain/cardchain/council.pulsar.go deleted file mode 100644 index ad8e4373..00000000 --- a/api/cardchain/cardchain/council.pulsar.go +++ /dev/null @@ -1,2478 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_Council_2_list)(nil) - -type _Council_2_list struct { - list *[]string -} - -func (x *_Council_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Council_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_Council_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_Council_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_Council_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message Council at list field Voters as it is not of Message kind")) -} - -func (x *_Council_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_Council_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_Council_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Council_3_list)(nil) - -type _Council_3_list struct { - list *[]*WrapHashResponse -} - -func (x *_Council_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Council_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Council_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WrapHashResponse) - (*x.list)[i] = concreteValue -} - -func (x *_Council_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WrapHashResponse) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Council_3_list) AppendMutable() protoreflect.Value { - v := new(WrapHashResponse) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Council_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Council_3_list) NewElement() protoreflect.Value { - v := new(WrapHashResponse) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Council_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Council_4_list)(nil) - -type _Council_4_list struct { - list *[]*WrapClearResponse -} - -func (x *_Council_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Council_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Council_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WrapClearResponse) - (*x.list)[i] = concreteValue -} - -func (x *_Council_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WrapClearResponse) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Council_4_list) AppendMutable() protoreflect.Value { - v := new(WrapClearResponse) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Council_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Council_4_list) NewElement() protoreflect.Value { - v := new(WrapClearResponse) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Council_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_Council protoreflect.MessageDescriptor - fd_Council_cardId protoreflect.FieldDescriptor - fd_Council_voters protoreflect.FieldDescriptor - fd_Council_hashResponses protoreflect.FieldDescriptor - fd_Council_clearResponses protoreflect.FieldDescriptor - fd_Council_treasury protoreflect.FieldDescriptor - fd_Council_status protoreflect.FieldDescriptor - fd_Council_trialStart protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_council_proto_init() - md_Council = File_cardchain_cardchain_council_proto.Messages().ByName("Council") - fd_Council_cardId = md_Council.Fields().ByName("cardId") - fd_Council_voters = md_Council.Fields().ByName("voters") - fd_Council_hashResponses = md_Council.Fields().ByName("hashResponses") - fd_Council_clearResponses = md_Council.Fields().ByName("clearResponses") - fd_Council_treasury = md_Council.Fields().ByName("treasury") - fd_Council_status = md_Council.Fields().ByName("status") - fd_Council_trialStart = md_Council.Fields().ByName("trialStart") -} - -var _ protoreflect.Message = (*fastReflection_Council)(nil) - -type fastReflection_Council Council - -func (x *Council) ProtoReflect() protoreflect.Message { - return (*fastReflection_Council)(x) -} - -func (x *Council) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_council_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Council_messageType fastReflection_Council_messageType -var _ protoreflect.MessageType = fastReflection_Council_messageType{} - -type fastReflection_Council_messageType struct{} - -func (x fastReflection_Council_messageType) Zero() protoreflect.Message { - return (*fastReflection_Council)(nil) -} -func (x fastReflection_Council_messageType) New() protoreflect.Message { - return new(fastReflection_Council) -} -func (x fastReflection_Council_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Council -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Council) Descriptor() protoreflect.MessageDescriptor { - return md_Council -} - -// 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_Council) Type() protoreflect.MessageType { - return _fastReflection_Council_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Council) New() protoreflect.Message { - return new(fastReflection_Council) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Council) Interface() protoreflect.ProtoMessage { - return (*Council)(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_Council) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_Council_cardId, value) { - return - } - } - if len(x.Voters) != 0 { - value := protoreflect.ValueOfList(&_Council_2_list{list: &x.Voters}) - if !f(fd_Council_voters, value) { - return - } - } - if len(x.HashResponses) != 0 { - value := protoreflect.ValueOfList(&_Council_3_list{list: &x.HashResponses}) - if !f(fd_Council_hashResponses, value) { - return - } - } - if len(x.ClearResponses) != 0 { - value := protoreflect.ValueOfList(&_Council_4_list{list: &x.ClearResponses}) - if !f(fd_Council_clearResponses, value) { - return - } - } - if x.Treasury != nil { - value := protoreflect.ValueOfMessage(x.Treasury.ProtoReflect()) - if !f(fd_Council_treasury, value) { - return - } - } - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_Council_status, value) { - return - } - } - if x.TrialStart != uint64(0) { - value := protoreflect.ValueOfUint64(x.TrialStart) - if !f(fd_Council_trialStart, 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_Council) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Council.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.Council.voters": - return len(x.Voters) != 0 - case "cardchain.cardchain.Council.hashResponses": - return len(x.HashResponses) != 0 - case "cardchain.cardchain.Council.clearResponses": - return len(x.ClearResponses) != 0 - case "cardchain.cardchain.Council.treasury": - return x.Treasury != nil - case "cardchain.cardchain.Council.status": - return x.Status != 0 - case "cardchain.cardchain.Council.trialStart": - return x.TrialStart != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Council")) - } - panic(fmt.Errorf("message cardchain.cardchain.Council 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_Council) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Council.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.Council.voters": - x.Voters = nil - case "cardchain.cardchain.Council.hashResponses": - x.HashResponses = nil - case "cardchain.cardchain.Council.clearResponses": - x.ClearResponses = nil - case "cardchain.cardchain.Council.treasury": - x.Treasury = nil - case "cardchain.cardchain.Council.status": - x.Status = 0 - case "cardchain.cardchain.Council.trialStart": - x.TrialStart = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Council")) - } - panic(fmt.Errorf("message cardchain.cardchain.Council 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_Council) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Council.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Council.voters": - if len(x.Voters) == 0 { - return protoreflect.ValueOfList(&_Council_2_list{}) - } - listValue := &_Council_2_list{list: &x.Voters} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Council.hashResponses": - if len(x.HashResponses) == 0 { - return protoreflect.ValueOfList(&_Council_3_list{}) - } - listValue := &_Council_3_list{list: &x.HashResponses} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Council.clearResponses": - if len(x.ClearResponses) == 0 { - return protoreflect.ValueOfList(&_Council_4_list{}) - } - listValue := &_Council_4_list{list: &x.ClearResponses} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Council.treasury": - value := x.Treasury - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Council.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.Council.trialStart": - value := x.TrialStart - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Council")) - } - panic(fmt.Errorf("message cardchain.cardchain.Council 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_Council) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Council.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.Council.voters": - lv := value.List() - clv := lv.(*_Council_2_list) - x.Voters = *clv.list - case "cardchain.cardchain.Council.hashResponses": - lv := value.List() - clv := lv.(*_Council_3_list) - x.HashResponses = *clv.list - case "cardchain.cardchain.Council.clearResponses": - lv := value.List() - clv := lv.(*_Council_4_list) - x.ClearResponses = *clv.list - case "cardchain.cardchain.Council.treasury": - x.Treasury = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Council.status": - x.Status = (CouncelingStatus)(value.Enum()) - case "cardchain.cardchain.Council.trialStart": - x.TrialStart = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Council")) - } - panic(fmt.Errorf("message cardchain.cardchain.Council 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_Council) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Council.voters": - if x.Voters == nil { - x.Voters = []string{} - } - value := &_Council_2_list{list: &x.Voters} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Council.hashResponses": - if x.HashResponses == nil { - x.HashResponses = []*WrapHashResponse{} - } - value := &_Council_3_list{list: &x.HashResponses} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Council.clearResponses": - if x.ClearResponses == nil { - x.ClearResponses = []*WrapClearResponse{} - } - value := &_Council_4_list{list: &x.ClearResponses} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Council.treasury": - if x.Treasury == nil { - x.Treasury = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.Treasury.ProtoReflect()) - case "cardchain.cardchain.Council.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.Council is not mutable")) - case "cardchain.cardchain.Council.status": - panic(fmt.Errorf("field status of message cardchain.cardchain.Council is not mutable")) - case "cardchain.cardchain.Council.trialStart": - panic(fmt.Errorf("field trialStart of message cardchain.cardchain.Council is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Council")) - } - panic(fmt.Errorf("message cardchain.cardchain.Council 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_Council) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Council.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Council.voters": - list := []string{} - return protoreflect.ValueOfList(&_Council_2_list{list: &list}) - case "cardchain.cardchain.Council.hashResponses": - list := []*WrapHashResponse{} - return protoreflect.ValueOfList(&_Council_3_list{list: &list}) - case "cardchain.cardchain.Council.clearResponses": - list := []*WrapClearResponse{} - return protoreflect.ValueOfList(&_Council_4_list{list: &list}) - case "cardchain.cardchain.Council.treasury": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Council.status": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.Council.trialStart": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Council")) - } - panic(fmt.Errorf("message cardchain.cardchain.Council 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_Council) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Council", 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_Council) 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_Council) 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_Council) 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_Council) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Council) - 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.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - if len(x.Voters) > 0 { - for _, s := range x.Voters { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.HashResponses) > 0 { - for _, e := range x.HashResponses { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.ClearResponses) > 0 { - for _, e := range x.ClearResponses { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Treasury != nil { - l = options.Size(x.Treasury) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - if x.TrialStart != 0 { - n += 1 + runtime.Sov(uint64(x.TrialStart)) - } - 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().(*Council) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Treasury != nil { - encoded, err := options.Marshal(x.Treasury) - 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] = 0x42 - } - if x.TrialStart != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TrialStart)) - i-- - dAtA[i] = 0x38 - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x30 - } - if len(x.ClearResponses) > 0 { - for iNdEx := len(x.ClearResponses) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ClearResponses[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.HashResponses) > 0 { - for iNdEx := len(x.HashResponses) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.HashResponses[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.Voters) > 0 { - for iNdEx := len(x.Voters) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Voters[iNdEx]) - copy(dAtA[i:], x.Voters[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voters[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x8 - } - 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().(*Council) - 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: Council: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Council: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Voters", 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.Voters = append(x.Voters, 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 HashResponses", 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.HashResponses = append(x.HashResponses, &WrapHashResponse{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.HashResponses[len(x.HashResponses)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClearResponses", 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.ClearResponses = append(x.ClearResponses, &WrapClearResponse{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ClearResponses[len(x.ClearResponses)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Treasury", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Treasury == nil { - x.Treasury = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Treasury); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= CouncelingStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrialStart", wireType) - } - x.TrialStart = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TrialStart |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_WrapClearResponse protoreflect.MessageDescriptor - fd_WrapClearResponse_user protoreflect.FieldDescriptor - fd_WrapClearResponse_response protoreflect.FieldDescriptor - fd_WrapClearResponse_suggestion protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_council_proto_init() - md_WrapClearResponse = File_cardchain_cardchain_council_proto.Messages().ByName("WrapClearResponse") - fd_WrapClearResponse_user = md_WrapClearResponse.Fields().ByName("user") - fd_WrapClearResponse_response = md_WrapClearResponse.Fields().ByName("response") - fd_WrapClearResponse_suggestion = md_WrapClearResponse.Fields().ByName("suggestion") -} - -var _ protoreflect.Message = (*fastReflection_WrapClearResponse)(nil) - -type fastReflection_WrapClearResponse WrapClearResponse - -func (x *WrapClearResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_WrapClearResponse)(x) -} - -func (x *WrapClearResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_council_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_WrapClearResponse_messageType fastReflection_WrapClearResponse_messageType -var _ protoreflect.MessageType = fastReflection_WrapClearResponse_messageType{} - -type fastReflection_WrapClearResponse_messageType struct{} - -func (x fastReflection_WrapClearResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_WrapClearResponse)(nil) -} -func (x fastReflection_WrapClearResponse_messageType) New() protoreflect.Message { - return new(fastReflection_WrapClearResponse) -} -func (x fastReflection_WrapClearResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_WrapClearResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_WrapClearResponse) Descriptor() protoreflect.MessageDescriptor { - return md_WrapClearResponse -} - -// 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_WrapClearResponse) Type() protoreflect.MessageType { - return _fastReflection_WrapClearResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_WrapClearResponse) New() protoreflect.Message { - return new(fastReflection_WrapClearResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_WrapClearResponse) Interface() protoreflect.ProtoMessage { - return (*WrapClearResponse)(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_WrapClearResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_WrapClearResponse_user, value) { - return - } - } - if x.Response != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Response)) - if !f(fd_WrapClearResponse_response, value) { - return - } - } - if x.Suggestion != "" { - value := protoreflect.ValueOfString(x.Suggestion) - if !f(fd_WrapClearResponse_suggestion, 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_WrapClearResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.WrapClearResponse.user": - return x.User != "" - case "cardchain.cardchain.WrapClearResponse.response": - return x.Response != 0 - case "cardchain.cardchain.WrapClearResponse.suggestion": - return x.Suggestion != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapClearResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapClearResponse 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_WrapClearResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.WrapClearResponse.user": - x.User = "" - case "cardchain.cardchain.WrapClearResponse.response": - x.Response = 0 - case "cardchain.cardchain.WrapClearResponse.suggestion": - x.Suggestion = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapClearResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapClearResponse 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_WrapClearResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.WrapClearResponse.user": - value := x.User - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.WrapClearResponse.response": - value := x.Response - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.WrapClearResponse.suggestion": - value := x.Suggestion - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapClearResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapClearResponse 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_WrapClearResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.WrapClearResponse.user": - x.User = value.Interface().(string) - case "cardchain.cardchain.WrapClearResponse.response": - x.Response = (Response)(value.Enum()) - case "cardchain.cardchain.WrapClearResponse.suggestion": - x.Suggestion = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapClearResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapClearResponse 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_WrapClearResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.WrapClearResponse.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.WrapClearResponse is not mutable")) - case "cardchain.cardchain.WrapClearResponse.response": - panic(fmt.Errorf("field response of message cardchain.cardchain.WrapClearResponse is not mutable")) - case "cardchain.cardchain.WrapClearResponse.suggestion": - panic(fmt.Errorf("field suggestion of message cardchain.cardchain.WrapClearResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapClearResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapClearResponse 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_WrapClearResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.WrapClearResponse.user": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.WrapClearResponse.response": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.WrapClearResponse.suggestion": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapClearResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapClearResponse 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_WrapClearResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.WrapClearResponse", 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_WrapClearResponse) 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_WrapClearResponse) 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_WrapClearResponse) 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_WrapClearResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*WrapClearResponse) - 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.User) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Response != 0 { - n += 1 + runtime.Sov(uint64(x.Response)) - } - l = len(x.Suggestion) - 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().(*WrapClearResponse) - 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.Suggestion) > 0 { - i -= len(x.Suggestion) - copy(dAtA[i:], x.Suggestion) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Suggestion))) - i-- - dAtA[i] = 0x1a - } - if x.Response != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Response)) - i-- - dAtA[i] = 0x10 - } - if len(x.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - 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().(*WrapClearResponse) - 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: WrapClearResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WrapClearResponse: 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 User", 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.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) - } - x.Response = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Response |= Response(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Suggestion", 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.Suggestion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_WrapHashResponse protoreflect.MessageDescriptor - fd_WrapHashResponse_user protoreflect.FieldDescriptor - fd_WrapHashResponse_hash protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_council_proto_init() - md_WrapHashResponse = File_cardchain_cardchain_council_proto.Messages().ByName("WrapHashResponse") - fd_WrapHashResponse_user = md_WrapHashResponse.Fields().ByName("user") - fd_WrapHashResponse_hash = md_WrapHashResponse.Fields().ByName("hash") -} - -var _ protoreflect.Message = (*fastReflection_WrapHashResponse)(nil) - -type fastReflection_WrapHashResponse WrapHashResponse - -func (x *WrapHashResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_WrapHashResponse)(x) -} - -func (x *WrapHashResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_council_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_WrapHashResponse_messageType fastReflection_WrapHashResponse_messageType -var _ protoreflect.MessageType = fastReflection_WrapHashResponse_messageType{} - -type fastReflection_WrapHashResponse_messageType struct{} - -func (x fastReflection_WrapHashResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_WrapHashResponse)(nil) -} -func (x fastReflection_WrapHashResponse_messageType) New() protoreflect.Message { - return new(fastReflection_WrapHashResponse) -} -func (x fastReflection_WrapHashResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_WrapHashResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_WrapHashResponse) Descriptor() protoreflect.MessageDescriptor { - return md_WrapHashResponse -} - -// 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_WrapHashResponse) Type() protoreflect.MessageType { - return _fastReflection_WrapHashResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_WrapHashResponse) New() protoreflect.Message { - return new(fastReflection_WrapHashResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_WrapHashResponse) Interface() protoreflect.ProtoMessage { - return (*WrapHashResponse)(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_WrapHashResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_WrapHashResponse_user, value) { - return - } - } - if x.Hash != "" { - value := protoreflect.ValueOfString(x.Hash) - if !f(fd_WrapHashResponse_hash, 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_WrapHashResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.WrapHashResponse.user": - return x.User != "" - case "cardchain.cardchain.WrapHashResponse.hash": - return x.Hash != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapHashResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapHashResponse 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_WrapHashResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.WrapHashResponse.user": - x.User = "" - case "cardchain.cardchain.WrapHashResponse.hash": - x.Hash = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapHashResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapHashResponse 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_WrapHashResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.WrapHashResponse.user": - value := x.User - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.WrapHashResponse.hash": - value := x.Hash - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapHashResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapHashResponse 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_WrapHashResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.WrapHashResponse.user": - x.User = value.Interface().(string) - case "cardchain.cardchain.WrapHashResponse.hash": - x.Hash = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapHashResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapHashResponse 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_WrapHashResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.WrapHashResponse.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.WrapHashResponse is not mutable")) - case "cardchain.cardchain.WrapHashResponse.hash": - panic(fmt.Errorf("field hash of message cardchain.cardchain.WrapHashResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapHashResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapHashResponse 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_WrapHashResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.WrapHashResponse.user": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.WrapHashResponse.hash": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.WrapHashResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.WrapHashResponse 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_WrapHashResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.WrapHashResponse", 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_WrapHashResponse) 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_WrapHashResponse) 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_WrapHashResponse) 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_WrapHashResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*WrapHashResponse) - 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.User) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Hash) - 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().(*WrapHashResponse) - 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.Hash) > 0 { - i -= len(x.Hash) - copy(dAtA[i:], x.Hash) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) - i-- - dAtA[i] = 0x12 - } - if len(x.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - 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().(*WrapHashResponse) - 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: WrapHashResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WrapHashResponse: 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 User", 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.User = 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 Hash", 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.Hash = 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 -// protoc (unknown) -// source: cardchain/cardchain/council.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Response int32 - -const ( - Response_Yes Response = 0 - Response_No Response = 1 - Response_Suggestion Response = 2 -) - -// Enum value maps for Response. -var ( - Response_name = map[int32]string{ - 0: "Yes", - 1: "No", - 2: "Suggestion", - } - Response_value = map[string]int32{ - "Yes": 0, - "No": 1, - "Suggestion": 2, - } -) - -func (x Response) Enum() *Response { - p := new(Response) - *p = x - return p -} - -func (x Response) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Response) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_council_proto_enumTypes[0].Descriptor() -} - -func (Response) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_council_proto_enumTypes[0] -} - -func (x Response) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Response.Descriptor instead. -func (Response) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_council_proto_rawDescGZIP(), []int{0} -} - -type CouncelingStatus int32 - -const ( - CouncelingStatus_councilOpen CouncelingStatus = 0 - CouncelingStatus_councilCreated CouncelingStatus = 1 - CouncelingStatus_councilClosed CouncelingStatus = 2 - CouncelingStatus_commited CouncelingStatus = 3 - CouncelingStatus_revealed CouncelingStatus = 4 - CouncelingStatus_suggestionsMade CouncelingStatus = 5 -) - -// Enum value maps for CouncelingStatus. -var ( - CouncelingStatus_name = map[int32]string{ - 0: "councilOpen", - 1: "councilCreated", - 2: "councilClosed", - 3: "commited", - 4: "revealed", - 5: "suggestionsMade", - } - CouncelingStatus_value = map[string]int32{ - "councilOpen": 0, - "councilCreated": 1, - "councilClosed": 2, - "commited": 3, - "revealed": 4, - "suggestionsMade": 5, - } -) - -func (x CouncelingStatus) Enum() *CouncelingStatus { - p := new(CouncelingStatus) - *p = x - return p -} - -func (x CouncelingStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CouncelingStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_council_proto_enumTypes[1].Descriptor() -} - -func (CouncelingStatus) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_council_proto_enumTypes[1] -} - -func (x CouncelingStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CouncelingStatus.Descriptor instead. -func (CouncelingStatus) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_council_proto_rawDescGZIP(), []int{1} -} - -type Council struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` - Voters []string `protobuf:"bytes,2,rep,name=voters,proto3" json:"voters,omitempty"` - HashResponses []*WrapHashResponse `protobuf:"bytes,3,rep,name=hashResponses,proto3" json:"hashResponses,omitempty"` - ClearResponses []*WrapClearResponse `protobuf:"bytes,4,rep,name=clearResponses,proto3" json:"clearResponses,omitempty"` - Treasury *v1beta1.Coin `protobuf:"bytes,8,opt,name=treasury,proto3" json:"treasury,omitempty"` - Status CouncelingStatus `protobuf:"varint,6,opt,name=status,proto3,enum=cardchain.cardchain.CouncelingStatus" json:"status,omitempty"` - TrialStart uint64 `protobuf:"varint,7,opt,name=trialStart,proto3" json:"trialStart,omitempty"` -} - -func (x *Council) Reset() { - *x = Council{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_council_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Council) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Council) ProtoMessage() {} - -// Deprecated: Use Council.ProtoReflect.Descriptor instead. -func (*Council) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_council_proto_rawDescGZIP(), []int{0} -} - -func (x *Council) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *Council) GetVoters() []string { - if x != nil { - return x.Voters - } - return nil -} - -func (x *Council) GetHashResponses() []*WrapHashResponse { - if x != nil { - return x.HashResponses - } - return nil -} - -func (x *Council) GetClearResponses() []*WrapClearResponse { - if x != nil { - return x.ClearResponses - } - return nil -} - -func (x *Council) GetTreasury() *v1beta1.Coin { - if x != nil { - return x.Treasury - } - return nil -} - -func (x *Council) GetStatus() CouncelingStatus { - if x != nil { - return x.Status - } - return CouncelingStatus_councilOpen -} - -func (x *Council) GetTrialStart() uint64 { - if x != nil { - return x.TrialStart - } - return 0 -} - -type WrapClearResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Response Response `protobuf:"varint,2,opt,name=response,proto3,enum=cardchain.cardchain.Response" json:"response,omitempty"` - Suggestion string `protobuf:"bytes,3,opt,name=suggestion,proto3" json:"suggestion,omitempty"` -} - -func (x *WrapClearResponse) Reset() { - *x = WrapClearResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_council_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WrapClearResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WrapClearResponse) ProtoMessage() {} - -// Deprecated: Use WrapClearResponse.ProtoReflect.Descriptor instead. -func (*WrapClearResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_council_proto_rawDescGZIP(), []int{1} -} - -func (x *WrapClearResponse) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -func (x *WrapClearResponse) GetResponse() Response { - if x != nil { - return x.Response - } - return Response_Yes -} - -func (x *WrapClearResponse) GetSuggestion() string { - if x != nil { - return x.Suggestion - } - return "" -} - -type WrapHashResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *WrapHashResponse) Reset() { - *x = WrapHashResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_council_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WrapHashResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WrapHashResponse) ProtoMessage() {} - -// Deprecated: Use WrapHashResponse.ProtoReflect.Descriptor instead. -func (*WrapHashResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_council_proto_rawDescGZIP(), []int{2} -} - -func (x *WrapHashResponse) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -func (x *WrapHashResponse) GetHash() string { - if x != nil { - return x.Hash - } - return "" -} - -var File_cardchain_cardchain_council_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_council_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, - 0x02, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x06, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4b, 0x0a, 0x0d, 0x68, 0x61, - 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x57, 0x72, 0x61, 0x70, 0x48, 0x61, 0x73, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0d, 0x68, 0x61, 0x73, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0e, 0x63, 0x6c, 0x65, 0x61, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x57, 0x72, 0x61, 0x70, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0e, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x74, 0x72, 0x65, 0x61, 0x73, - 0x75, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x74, 0x72, 0x65, 0x61, - 0x73, 0x75, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x63, - 0x65, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x22, 0x82, 0x01, 0x0a, 0x11, 0x57, 0x72, 0x61, 0x70, 0x43, 0x6c, 0x65, 0x61, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, - 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, - 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, - 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x0a, 0x10, 0x57, 0x72, 0x61, 0x70, - 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x2a, 0x2b, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x07, 0x0a, 0x03, 0x59, 0x65, 0x73, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x6f, 0x10, - 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x10, - 0x02, 0x2a, 0x7b, 0x0a, 0x10, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6c, 0x69, 0x6e, 0x67, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x4f, 0x70, 0x65, 0x6e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x63, 0x6f, - 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0c, 0x0a, - 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x72, - 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x73, 0x75, 0x67, - 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4d, 0x61, 0x64, 0x65, 0x10, 0x05, 0x42, 0xd4, - 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x43, 0x6f, 0x75, 0x6e, - 0x63, 0x69, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, - 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, - 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_council_proto_rawDescOnce sync.Once - file_cardchain_cardchain_council_proto_rawDescData = file_cardchain_cardchain_council_proto_rawDesc -) - -func file_cardchain_cardchain_council_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_council_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_council_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_council_proto_rawDescData) - }) - return file_cardchain_cardchain_council_proto_rawDescData -} - -var file_cardchain_cardchain_council_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_cardchain_cardchain_council_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_cardchain_cardchain_council_proto_goTypes = []interface{}{ - (Response)(0), // 0: cardchain.cardchain.Response - (CouncelingStatus)(0), // 1: cardchain.cardchain.CouncelingStatus - (*Council)(nil), // 2: cardchain.cardchain.Council - (*WrapClearResponse)(nil), // 3: cardchain.cardchain.WrapClearResponse - (*WrapHashResponse)(nil), // 4: cardchain.cardchain.WrapHashResponse - (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin -} -var file_cardchain_cardchain_council_proto_depIdxs = []int32{ - 4, // 0: cardchain.cardchain.Council.hashResponses:type_name -> cardchain.cardchain.WrapHashResponse - 3, // 1: cardchain.cardchain.Council.clearResponses:type_name -> cardchain.cardchain.WrapClearResponse - 5, // 2: cardchain.cardchain.Council.treasury:type_name -> cosmos.base.v1beta1.Coin - 1, // 3: cardchain.cardchain.Council.status:type_name -> cardchain.cardchain.CouncelingStatus - 0, // 4: cardchain.cardchain.WrapClearResponse.response:type_name -> cardchain.cardchain.Response - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_council_proto_init() } -func file_cardchain_cardchain_council_proto_init() { - if File_cardchain_cardchain_council_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_council_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Council); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_council_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WrapClearResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_council_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WrapHashResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_council_proto_rawDesc, - NumEnums: 2, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_council_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_council_proto_depIdxs, - EnumInfos: file_cardchain_cardchain_council_proto_enumTypes, - MessageInfos: file_cardchain_cardchain_council_proto_msgTypes, - }.Build() - File_cardchain_cardchain_council_proto = out.File - file_cardchain_cardchain_council_proto_rawDesc = nil - file_cardchain_cardchain_council_proto_goTypes = nil - file_cardchain_cardchain_council_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/encounter.pulsar.go b/api/cardchain/cardchain/encounter.pulsar.go deleted file mode 100644 index cd9398ab..00000000 --- a/api/cardchain/cardchain/encounter.pulsar.go +++ /dev/null @@ -1,1337 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sort "sort" - sync "sync" -) - -var _ protoreflect.List = (*_Encounter_2_list)(nil) - -type _Encounter_2_list struct { - list *[]uint64 -} - -func (x *_Encounter_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Encounter_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_Encounter_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_Encounter_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_Encounter_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message Encounter at list field Drawlist as it is not of Message kind")) -} - -func (x *_Encounter_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_Encounter_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_Encounter_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.Map = (*_Encounter_5_map)(nil) - -type _Encounter_5_map struct { - m *map[string]string -} - -func (x *_Encounter_5_map) Len() int { - if x.m == nil { - return 0 - } - return len(*x.m) -} - -func (x *_Encounter_5_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { - if x.m == nil { - return - } - for k, v := range *x.m { - mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) - mapValue := protoreflect.ValueOfString(v) - if !f(mapKey, mapValue) { - break - } - } -} - -func (x *_Encounter_5_map) Has(key protoreflect.MapKey) bool { - if x.m == nil { - return false - } - keyUnwrapped := key.String() - concreteValue := keyUnwrapped - _, ok := (*x.m)[concreteValue] - return ok -} - -func (x *_Encounter_5_map) Clear(key protoreflect.MapKey) { - if x.m == nil { - return - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - delete(*x.m, concreteKey) -} - -func (x *_Encounter_5_map) Get(key protoreflect.MapKey) protoreflect.Value { - if x.m == nil { - return protoreflect.Value{} - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if !ok { - return protoreflect.Value{} - } - return protoreflect.ValueOfString(v) -} - -func (x *_Encounter_5_map) Set(key protoreflect.MapKey, value protoreflect.Value) { - if !key.IsValid() || !value.IsValid() { - panic("invalid key or value provided") - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.m)[concreteKey] = concreteValue -} - -func (x *_Encounter_5_map) Mutable(key protoreflect.MapKey) protoreflect.Value { - panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") -} - -func (x *_Encounter_5_map) NewValue() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_Encounter_5_map) IsValid() bool { - return x.m != nil -} - -var ( - md_Encounter protoreflect.MessageDescriptor - fd_Encounter_id protoreflect.FieldDescriptor - fd_Encounter_drawlist protoreflect.FieldDescriptor - fd_Encounter_proven protoreflect.FieldDescriptor - fd_Encounter_owner protoreflect.FieldDescriptor - fd_Encounter_parameters protoreflect.FieldDescriptor - fd_Encounter_imageId protoreflect.FieldDescriptor - fd_Encounter_name protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_encounter_proto_init() - md_Encounter = File_cardchain_cardchain_encounter_proto.Messages().ByName("Encounter") - fd_Encounter_id = md_Encounter.Fields().ByName("id") - fd_Encounter_drawlist = md_Encounter.Fields().ByName("drawlist") - fd_Encounter_proven = md_Encounter.Fields().ByName("proven") - fd_Encounter_owner = md_Encounter.Fields().ByName("owner") - fd_Encounter_parameters = md_Encounter.Fields().ByName("parameters") - fd_Encounter_imageId = md_Encounter.Fields().ByName("imageId") - fd_Encounter_name = md_Encounter.Fields().ByName("name") -} - -var _ protoreflect.Message = (*fastReflection_Encounter)(nil) - -type fastReflection_Encounter Encounter - -func (x *Encounter) ProtoReflect() protoreflect.Message { - return (*fastReflection_Encounter)(x) -} - -func (x *Encounter) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_encounter_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Encounter_messageType fastReflection_Encounter_messageType -var _ protoreflect.MessageType = fastReflection_Encounter_messageType{} - -type fastReflection_Encounter_messageType struct{} - -func (x fastReflection_Encounter_messageType) Zero() protoreflect.Message { - return (*fastReflection_Encounter)(nil) -} -func (x fastReflection_Encounter_messageType) New() protoreflect.Message { - return new(fastReflection_Encounter) -} -func (x fastReflection_Encounter_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Encounter -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Encounter) Descriptor() protoreflect.MessageDescriptor { - return md_Encounter -} - -// 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_Encounter) Type() protoreflect.MessageType { - return _fastReflection_Encounter_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Encounter) New() protoreflect.Message { - return new(fastReflection_Encounter) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Encounter) Interface() protoreflect.ProtoMessage { - return (*Encounter)(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_Encounter) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_Encounter_id, value) { - return - } - } - if len(x.Drawlist) != 0 { - value := protoreflect.ValueOfList(&_Encounter_2_list{list: &x.Drawlist}) - if !f(fd_Encounter_drawlist, value) { - return - } - } - if x.Proven != false { - value := protoreflect.ValueOfBool(x.Proven) - if !f(fd_Encounter_proven, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_Encounter_owner, value) { - return - } - } - if len(x.Parameters) != 0 { - value := protoreflect.ValueOfMap(&_Encounter_5_map{m: &x.Parameters}) - if !f(fd_Encounter_parameters, value) { - return - } - } - if x.ImageId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ImageId) - if !f(fd_Encounter_imageId, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_Encounter_name, 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_Encounter) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Encounter.id": - return x.Id != uint64(0) - case "cardchain.cardchain.Encounter.drawlist": - return len(x.Drawlist) != 0 - case "cardchain.cardchain.Encounter.proven": - return x.Proven != false - case "cardchain.cardchain.Encounter.owner": - return x.Owner != "" - case "cardchain.cardchain.Encounter.parameters": - return len(x.Parameters) != 0 - case "cardchain.cardchain.Encounter.imageId": - return x.ImageId != uint64(0) - case "cardchain.cardchain.Encounter.name": - return x.Name != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Encounter")) - } - panic(fmt.Errorf("message cardchain.cardchain.Encounter 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_Encounter) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Encounter.id": - x.Id = uint64(0) - case "cardchain.cardchain.Encounter.drawlist": - x.Drawlist = nil - case "cardchain.cardchain.Encounter.proven": - x.Proven = false - case "cardchain.cardchain.Encounter.owner": - x.Owner = "" - case "cardchain.cardchain.Encounter.parameters": - x.Parameters = nil - case "cardchain.cardchain.Encounter.imageId": - x.ImageId = uint64(0) - case "cardchain.cardchain.Encounter.name": - x.Name = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Encounter")) - } - panic(fmt.Errorf("message cardchain.cardchain.Encounter 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_Encounter) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Encounter.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Encounter.drawlist": - if len(x.Drawlist) == 0 { - return protoreflect.ValueOfList(&_Encounter_2_list{}) - } - listValue := &_Encounter_2_list{list: &x.Drawlist} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Encounter.proven": - value := x.Proven - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.Encounter.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Encounter.parameters": - if len(x.Parameters) == 0 { - return protoreflect.ValueOfMap(&_Encounter_5_map{}) - } - mapValue := &_Encounter_5_map{m: &x.Parameters} - return protoreflect.ValueOfMap(mapValue) - case "cardchain.cardchain.Encounter.imageId": - value := x.ImageId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Encounter.name": - value := x.Name - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Encounter")) - } - panic(fmt.Errorf("message cardchain.cardchain.Encounter 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_Encounter) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Encounter.id": - x.Id = value.Uint() - case "cardchain.cardchain.Encounter.drawlist": - lv := value.List() - clv := lv.(*_Encounter_2_list) - x.Drawlist = *clv.list - case "cardchain.cardchain.Encounter.proven": - x.Proven = value.Bool() - case "cardchain.cardchain.Encounter.owner": - x.Owner = value.Interface().(string) - case "cardchain.cardchain.Encounter.parameters": - mv := value.Map() - cmv := mv.(*_Encounter_5_map) - x.Parameters = *cmv.m - case "cardchain.cardchain.Encounter.imageId": - x.ImageId = value.Uint() - case "cardchain.cardchain.Encounter.name": - x.Name = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Encounter")) - } - panic(fmt.Errorf("message cardchain.cardchain.Encounter 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_Encounter) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Encounter.drawlist": - if x.Drawlist == nil { - x.Drawlist = []uint64{} - } - value := &_Encounter_2_list{list: &x.Drawlist} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Encounter.parameters": - if x.Parameters == nil { - x.Parameters = make(map[string]string) - } - value := &_Encounter_5_map{m: &x.Parameters} - return protoreflect.ValueOfMap(value) - case "cardchain.cardchain.Encounter.id": - panic(fmt.Errorf("field id of message cardchain.cardchain.Encounter is not mutable")) - case "cardchain.cardchain.Encounter.proven": - panic(fmt.Errorf("field proven of message cardchain.cardchain.Encounter is not mutable")) - case "cardchain.cardchain.Encounter.owner": - panic(fmt.Errorf("field owner of message cardchain.cardchain.Encounter is not mutable")) - case "cardchain.cardchain.Encounter.imageId": - panic(fmt.Errorf("field imageId of message cardchain.cardchain.Encounter is not mutable")) - case "cardchain.cardchain.Encounter.name": - panic(fmt.Errorf("field name of message cardchain.cardchain.Encounter is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Encounter")) - } - panic(fmt.Errorf("message cardchain.cardchain.Encounter 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_Encounter) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Encounter.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Encounter.drawlist": - list := []uint64{} - return protoreflect.ValueOfList(&_Encounter_2_list{list: &list}) - case "cardchain.cardchain.Encounter.proven": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.Encounter.owner": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Encounter.parameters": - m := make(map[string]string) - return protoreflect.ValueOfMap(&_Encounter_5_map{m: &m}) - case "cardchain.cardchain.Encounter.imageId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Encounter.name": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Encounter")) - } - panic(fmt.Errorf("message cardchain.cardchain.Encounter 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_Encounter) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Encounter", 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_Encounter) 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_Encounter) 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_Encounter) 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_Encounter) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Encounter) - 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.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - if len(x.Drawlist) > 0 { - l = 0 - for _, e := range x.Drawlist { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if x.Proven { - n += 2 - } - l = len(x.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Parameters) > 0 { - SiZeMaP := func(k string, v string) { - mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v))) - n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) - } - if options.Deterministic { - sortme := make([]string, 0, len(x.Parameters)) - for k := range x.Parameters { - sortme = append(sortme, k) - } - sort.Strings(sortme) - for _, k := range sortme { - v := x.Parameters[k] - SiZeMaP(k, v) - } - } else { - for k, v := range x.Parameters { - SiZeMaP(k, v) - } - } - } - if x.ImageId != 0 { - n += 1 + runtime.Sov(uint64(x.ImageId)) - } - l = len(x.Name) - 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().(*Encounter) - 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.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x3a - } - if x.ImageId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ImageId)) - i-- - dAtA[i] = 0x30 - } - if len(x.Parameters) > 0 { - MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) { - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - return protoiface.MarshalOutput{}, nil - } - if options.Deterministic { - keysForParameters := make([]string, 0, len(x.Parameters)) - for k := range x.Parameters { - keysForParameters = append(keysForParameters, string(k)) - } - sort.Slice(keysForParameters, func(i, j int) bool { - return keysForParameters[i] < keysForParameters[j] - }) - for iNdEx := len(keysForParameters) - 1; iNdEx >= 0; iNdEx-- { - v := x.Parameters[string(keysForParameters[iNdEx])] - out, err := MaRsHaLmAp(keysForParameters[iNdEx], v) - if err != nil { - return out, err - } - } - } else { - for k := range x.Parameters { - v := x.Parameters[k] - out, err := MaRsHaLmAp(k, v) - if err != nil { - return out, err - } - } - } - } - 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 x.Proven { - i-- - if x.Proven { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(x.Drawlist) > 0 { - var pksize2 int - for _, num := range x.Drawlist { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.Drawlist { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 - } - 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().(*Encounter) - 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: Encounter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Encounter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Drawlist = append(x.Drawlist, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Drawlist) == 0 { - x.Drawlist = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Drawlist = append(x.Drawlist, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Drawlist", wireType) - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proven", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Proven = bool(v != 0) - 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 Parameters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Parameters == nil { - x.Parameters = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey 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++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapkey > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue 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++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - 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) > postIndex { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - x.Parameters[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ImageId", wireType) - } - x.ImageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ImageId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = 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 -// protoc (unknown) -// source: cardchain/cardchain/encounter.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Encounter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Drawlist []uint64 `protobuf:"varint,2,rep,packed,name=drawlist,proto3" json:"drawlist,omitempty"` - Proven bool `protobuf:"varint,3,opt,name=proven,proto3" json:"proven,omitempty"` - Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` - Parameters map[string]string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ImageId uint64 `protobuf:"varint,6,opt,name=imageId,proto3" json:"imageId,omitempty"` - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *Encounter) Reset() { - *x = Encounter{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_encounter_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Encounter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Encounter) ProtoMessage() {} - -// Deprecated: Use Encounter.ProtoReflect.Descriptor instead. -func (*Encounter) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_encounter_proto_rawDescGZIP(), []int{0} -} - -func (x *Encounter) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *Encounter) GetDrawlist() []uint64 { - if x != nil { - return x.Drawlist - } - return nil -} - -func (x *Encounter) GetProven() bool { - if x != nil { - return x.Proven - } - return false -} - -func (x *Encounter) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *Encounter) GetParameters() map[string]string { - if x != nil { - return x.Parameters - } - return nil -} - -func (x *Encounter) GetImageId() uint64 { - if x != nil { - return x.ImageId - } - return 0 -} - -func (x *Encounter) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -var File_cardchain_cardchain_encounter_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_encounter_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xa2, 0x02, 0x0a, 0x09, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, - 0x0a, 0x08, 0x64, 0x72, 0x61, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, - 0x52, 0x08, 0x64, 0x72, 0x61, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, - 0x6f, 0x76, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x76, - 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xd6, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x42, 0x0e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, - 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, - 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_encounter_proto_rawDescOnce sync.Once - file_cardchain_cardchain_encounter_proto_rawDescData = file_cardchain_cardchain_encounter_proto_rawDesc -) - -func file_cardchain_cardchain_encounter_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_encounter_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_encounter_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_encounter_proto_rawDescData) - }) - return file_cardchain_cardchain_encounter_proto_rawDescData -} - -var file_cardchain_cardchain_encounter_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cardchain_cardchain_encounter_proto_goTypes = []interface{}{ - (*Encounter)(nil), // 0: cardchain.cardchain.Encounter - nil, // 1: cardchain.cardchain.Encounter.ParametersEntry -} -var file_cardchain_cardchain_encounter_proto_depIdxs = []int32{ - 1, // 0: cardchain.cardchain.Encounter.parameters:type_name -> cardchain.cardchain.Encounter.ParametersEntry - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_encounter_proto_init() } -func file_cardchain_cardchain_encounter_proto_init() { - if File_cardchain_cardchain_encounter_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_encounter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Encounter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_encounter_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_encounter_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_encounter_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_encounter_proto_msgTypes, - }.Build() - File_cardchain_cardchain_encounter_proto = out.File - file_cardchain_cardchain_encounter_proto_rawDesc = nil - file_cardchain_cardchain_encounter_proto_goTypes = nil - file_cardchain_cardchain_encounter_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/encounter_with_image.pulsar.go b/api/cardchain/cardchain/encounter_with_image.pulsar.go deleted file mode 100644 index cff87a07..00000000 --- a/api/cardchain/cardchain/encounter_with_image.pulsar.go +++ /dev/null @@ -1,670 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_EncounterWithImage protoreflect.MessageDescriptor - fd_EncounterWithImage_encounter protoreflect.FieldDescriptor - fd_EncounterWithImage_image protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_encounter_with_image_proto_init() - md_EncounterWithImage = File_cardchain_cardchain_encounter_with_image_proto.Messages().ByName("EncounterWithImage") - fd_EncounterWithImage_encounter = md_EncounterWithImage.Fields().ByName("encounter") - fd_EncounterWithImage_image = md_EncounterWithImage.Fields().ByName("image") -} - -var _ protoreflect.Message = (*fastReflection_EncounterWithImage)(nil) - -type fastReflection_EncounterWithImage EncounterWithImage - -func (x *EncounterWithImage) ProtoReflect() protoreflect.Message { - return (*fastReflection_EncounterWithImage)(x) -} - -func (x *EncounterWithImage) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_encounter_with_image_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EncounterWithImage_messageType fastReflection_EncounterWithImage_messageType -var _ protoreflect.MessageType = fastReflection_EncounterWithImage_messageType{} - -type fastReflection_EncounterWithImage_messageType struct{} - -func (x fastReflection_EncounterWithImage_messageType) Zero() protoreflect.Message { - return (*fastReflection_EncounterWithImage)(nil) -} -func (x fastReflection_EncounterWithImage_messageType) New() protoreflect.Message { - return new(fastReflection_EncounterWithImage) -} -func (x fastReflection_EncounterWithImage_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EncounterWithImage -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EncounterWithImage) Descriptor() protoreflect.MessageDescriptor { - return md_EncounterWithImage -} - -// 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_EncounterWithImage) Type() protoreflect.MessageType { - return _fastReflection_EncounterWithImage_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EncounterWithImage) New() protoreflect.Message { - return new(fastReflection_EncounterWithImage) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EncounterWithImage) Interface() protoreflect.ProtoMessage { - return (*EncounterWithImage)(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_EncounterWithImage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Encounter != nil { - value := protoreflect.ValueOfMessage(x.Encounter.ProtoReflect()) - if !f(fd_EncounterWithImage_encounter, value) { - return - } - } - if x.Image != "" { - value := protoreflect.ValueOfString(x.Image) - if !f(fd_EncounterWithImage_image, 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_EncounterWithImage) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.EncounterWithImage.encounter": - return x.Encounter != nil - case "cardchain.cardchain.EncounterWithImage.image": - return x.Image != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EncounterWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.EncounterWithImage 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_EncounterWithImage) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.EncounterWithImage.encounter": - x.Encounter = nil - case "cardchain.cardchain.EncounterWithImage.image": - x.Image = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EncounterWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.EncounterWithImage 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_EncounterWithImage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.EncounterWithImage.encounter": - value := x.Encounter - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.EncounterWithImage.image": - value := x.Image - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EncounterWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.EncounterWithImage 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_EncounterWithImage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.EncounterWithImage.encounter": - x.Encounter = value.Message().Interface().(*Encounter) - case "cardchain.cardchain.EncounterWithImage.image": - x.Image = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EncounterWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.EncounterWithImage 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_EncounterWithImage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.EncounterWithImage.encounter": - if x.Encounter == nil { - x.Encounter = new(Encounter) - } - return protoreflect.ValueOfMessage(x.Encounter.ProtoReflect()) - case "cardchain.cardchain.EncounterWithImage.image": - panic(fmt.Errorf("field image of message cardchain.cardchain.EncounterWithImage is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EncounterWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.EncounterWithImage 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_EncounterWithImage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.EncounterWithImage.encounter": - m := new(Encounter) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.EncounterWithImage.image": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EncounterWithImage")) - } - panic(fmt.Errorf("message cardchain.cardchain.EncounterWithImage 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_EncounterWithImage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.EncounterWithImage", 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_EncounterWithImage) 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_EncounterWithImage) 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_EncounterWithImage) 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_EncounterWithImage) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EncounterWithImage) - 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.Encounter != nil { - l = options.Size(x.Encounter) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Image) - 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().(*EncounterWithImage) - 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.Image) > 0 { - i -= len(x.Image) - copy(dAtA[i:], x.Image) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Image))) - i-- - dAtA[i] = 0x12 - } - if x.Encounter != nil { - encoded, err := options.Marshal(x.Encounter) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EncounterWithImage) - 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: EncounterWithImage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncounterWithImage: 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 Encounter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Encounter == nil { - x.Encounter = &Encounter{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Encounter); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Image", 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.Image = 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 -// protoc (unknown) -// source: cardchain/cardchain/encounter_with_image.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type EncounterWithImage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Encounter *Encounter `protobuf:"bytes,1,opt,name=encounter,proto3" json:"encounter,omitempty"` - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` -} - -func (x *EncounterWithImage) Reset() { - *x = EncounterWithImage{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_encounter_with_image_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EncounterWithImage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EncounterWithImage) ProtoMessage() {} - -// Deprecated: Use EncounterWithImage.ProtoReflect.Descriptor instead. -func (*EncounterWithImage) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_encounter_with_image_proto_rawDescGZIP(), []int{0} -} - -func (x *EncounterWithImage) GetEncounter() *Encounter { - if x != nil { - return x.Encounter - } - return nil -} - -func (x *EncounterWithImage) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -var File_cardchain_cardchain_encounter_with_image_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_encounter_with_image_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x5f, - 0x77, 0x69, 0x74, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x68, 0x0a, 0x12, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x57, 0x69, 0x74, - 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0xdf, 0x01, 0x0a, 0x17, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x17, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, - 0x72, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_encounter_with_image_proto_rawDescOnce sync.Once - file_cardchain_cardchain_encounter_with_image_proto_rawDescData = file_cardchain_cardchain_encounter_with_image_proto_rawDesc -) - -func file_cardchain_cardchain_encounter_with_image_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_encounter_with_image_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_encounter_with_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_encounter_with_image_proto_rawDescData) - }) - return file_cardchain_cardchain_encounter_with_image_proto_rawDescData -} - -var file_cardchain_cardchain_encounter_with_image_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_encounter_with_image_proto_goTypes = []interface{}{ - (*EncounterWithImage)(nil), // 0: cardchain.cardchain.EncounterWithImage - (*Encounter)(nil), // 1: cardchain.cardchain.Encounter -} -var file_cardchain_cardchain_encounter_with_image_proto_depIdxs = []int32{ - 1, // 0: cardchain.cardchain.EncounterWithImage.encounter:type_name -> cardchain.cardchain.Encounter - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_encounter_with_image_proto_init() } -func file_cardchain_cardchain_encounter_with_image_proto_init() { - if File_cardchain_cardchain_encounter_with_image_proto != nil { - return - } - file_cardchain_cardchain_encounter_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_encounter_with_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncounterWithImage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_encounter_with_image_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_encounter_with_image_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_encounter_with_image_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_encounter_with_image_proto_msgTypes, - }.Build() - File_cardchain_cardchain_encounter_with_image_proto = out.File - file_cardchain_cardchain_encounter_with_image_proto_rawDesc = nil - file_cardchain_cardchain_encounter_with_image_proto_goTypes = nil - file_cardchain_cardchain_encounter_with_image_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/genesis.pulsar.go b/api/cardchain/cardchain/genesis.pulsar.go deleted file mode 100644 index 07d8b7d0..00000000 --- a/api/cardchain/cardchain/genesis.pulsar.go +++ /dev/null @@ -1,2782 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - _ "cosmossdk.io/api/amino" - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_GenesisState_2_list)(nil) - -type _GenesisState_2_list struct { - list *[]*Card -} - -func (x *_GenesisState_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Card) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Card) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value { - v := new(Card) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_2_list) NewElement() protoreflect.Value { - v := new(Card) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_3_list)(nil) - -type _GenesisState_3_list struct { - list *[]*User -} - -func (x *_GenesisState_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*User) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*User) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { - v := new(User) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_3_list) NewElement() protoreflect.Value { - v := new(User) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_4_list)(nil) - -type _GenesisState_4_list struct { - list *[]string -} - -func (x *_GenesisState_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field Addresses as it is not of Message kind")) -} - -func (x *_GenesisState_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_4_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_GenesisState_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_6_list)(nil) - -type _GenesisState_6_list struct { - list *[]*Match -} - -func (x *_GenesisState_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Match) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Match) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_6_list) AppendMutable() protoreflect.Value { - v := new(Match) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_6_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_6_list) NewElement() protoreflect.Value { - v := new(Match) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_6_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_7_list)(nil) - -type _GenesisState_7_list struct { - list *[]*Set -} - -func (x *_GenesisState_7_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_7_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_7_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Set) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_7_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Set) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_7_list) AppendMutable() protoreflect.Value { - v := new(Set) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_7_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_7_list) NewElement() protoreflect.Value { - v := new(Set) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_7_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_8_list)(nil) - -type _GenesisState_8_list struct { - list *[]*SellOffer -} - -func (x *_GenesisState_8_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_8_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_8_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SellOffer) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_8_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SellOffer) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_8_list) AppendMutable() protoreflect.Value { - v := new(SellOffer) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_8_list) NewElement() protoreflect.Value { - v := new(SellOffer) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_8_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_9_list)(nil) - -type _GenesisState_9_list struct { - list *[]*v1beta1.Coin -} - -func (x *_GenesisState_9_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_9_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_9_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_9_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_9_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_9_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_9_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_9_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_12_list)(nil) - -type _GenesisState_12_list struct { - list *[]*Council -} - -func (x *_GenesisState_12_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_12_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_12_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Council) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_12_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Council) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_12_list) AppendMutable() protoreflect.Value { - v := new(Council) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_12_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_12_list) NewElement() protoreflect.Value { - v := new(Council) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_12_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_13_list)(nil) - -type _GenesisState_13_list struct { - list *[]*RunningAverage -} - -func (x *_GenesisState_13_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_13_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_13_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*RunningAverage) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_13_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*RunningAverage) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_13_list) AppendMutable() protoreflect.Value { - v := new(RunningAverage) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_13_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_13_list) NewElement() protoreflect.Value { - v := new(RunningAverage) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_13_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_14_list)(nil) - -type _GenesisState_14_list struct { - list *[]*Image -} - -func (x *_GenesisState_14_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_14_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_14_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Image) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_14_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Image) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_14_list) AppendMutable() protoreflect.Value { - v := new(Image) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_14_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_14_list) NewElement() protoreflect.Value { - v := new(Image) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_14_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_15_list)(nil) - -type _GenesisState_15_list struct { - list *[]*Server -} - -func (x *_GenesisState_15_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_15_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_15_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Server) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_15_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Server) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_15_list) AppendMutable() protoreflect.Value { - v := new(Server) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_15_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_15_list) NewElement() protoreflect.Value { - v := new(Server) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_15_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_17_list)(nil) - -type _GenesisState_17_list struct { - list *[]*Zealy -} - -func (x *_GenesisState_17_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_17_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_17_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Zealy) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_17_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Zealy) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_17_list) AppendMutable() protoreflect.Value { - v := new(Zealy) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_17_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_17_list) NewElement() protoreflect.Value { - v := new(Zealy) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_17_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_18_list)(nil) - -type _GenesisState_18_list struct { - list *[]*Encounter -} - -func (x *_GenesisState_18_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_18_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_18_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Encounter) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_18_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Encounter) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_18_list) AppendMutable() protoreflect.Value { - v := new(Encounter) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_18_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_18_list) NewElement() protoreflect.Value { - v := new(Encounter) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_18_list) IsValid() bool { - return x.list != nil -} - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_cardRecords protoreflect.FieldDescriptor - fd_GenesisState_users protoreflect.FieldDescriptor - fd_GenesisState_addresses protoreflect.FieldDescriptor - fd_GenesisState_matches protoreflect.FieldDescriptor - fd_GenesisState_sets protoreflect.FieldDescriptor - fd_GenesisState_sellOffers protoreflect.FieldDescriptor - fd_GenesisState_pools protoreflect.FieldDescriptor - fd_GenesisState_cardAuctionPrice protoreflect.FieldDescriptor - fd_GenesisState_councils protoreflect.FieldDescriptor - fd_GenesisState_runningAverages protoreflect.FieldDescriptor - fd_GenesisState_images protoreflect.FieldDescriptor - fd_GenesisState_servers protoreflect.FieldDescriptor - fd_GenesisState_lastCardModified protoreflect.FieldDescriptor - fd_GenesisState_zealys protoreflect.FieldDescriptor - fd_GenesisState_encounters protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_genesis_proto_init() - md_GenesisState = File_cardchain_cardchain_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_params = md_GenesisState.Fields().ByName("params") - fd_GenesisState_cardRecords = md_GenesisState.Fields().ByName("cardRecords") - fd_GenesisState_users = md_GenesisState.Fields().ByName("users") - fd_GenesisState_addresses = md_GenesisState.Fields().ByName("addresses") - fd_GenesisState_matches = md_GenesisState.Fields().ByName("matches") - fd_GenesisState_sets = md_GenesisState.Fields().ByName("sets") - fd_GenesisState_sellOffers = md_GenesisState.Fields().ByName("sellOffers") - fd_GenesisState_pools = md_GenesisState.Fields().ByName("pools") - fd_GenesisState_cardAuctionPrice = md_GenesisState.Fields().ByName("cardAuctionPrice") - fd_GenesisState_councils = md_GenesisState.Fields().ByName("councils") - fd_GenesisState_runningAverages = md_GenesisState.Fields().ByName("runningAverages") - fd_GenesisState_images = md_GenesisState.Fields().ByName("images") - fd_GenesisState_servers = md_GenesisState.Fields().ByName("servers") - fd_GenesisState_lastCardModified = md_GenesisState.Fields().ByName("lastCardModified") - fd_GenesisState_zealys = md_GenesisState.Fields().ByName("zealys") - fd_GenesisState_encounters = md_GenesisState.Fields().ByName("encounters") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_genesis_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// 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_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_GenesisState_params, value) { - return - } - } - if len(x.CardRecords) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.CardRecords}) - if !f(fd_GenesisState_cardRecords, value) { - return - } - } - if len(x.Users) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.Users}) - if !f(fd_GenesisState_users, value) { - return - } - } - if len(x.Addresses) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.Addresses}) - if !f(fd_GenesisState_addresses, value) { - return - } - } - if len(x.Matches) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.Matches}) - if !f(fd_GenesisState_matches, value) { - return - } - } - if len(x.Sets) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_7_list{list: &x.Sets}) - if !f(fd_GenesisState_sets, value) { - return - } - } - if len(x.SellOffers) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.SellOffers}) - if !f(fd_GenesisState_sellOffers, value) { - return - } - } - if len(x.Pools) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_9_list{list: &x.Pools}) - if !f(fd_GenesisState_pools, value) { - return - } - } - if x.CardAuctionPrice != nil { - value := protoreflect.ValueOfMessage(x.CardAuctionPrice.ProtoReflect()) - if !f(fd_GenesisState_cardAuctionPrice, value) { - return - } - } - if len(x.Councils) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_12_list{list: &x.Councils}) - if !f(fd_GenesisState_councils, value) { - return - } - } - if len(x.RunningAverages) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_13_list{list: &x.RunningAverages}) - if !f(fd_GenesisState_runningAverages, value) { - return - } - } - if len(x.Images) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_14_list{list: &x.Images}) - if !f(fd_GenesisState_images, value) { - return - } - } - if len(x.Servers) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_15_list{list: &x.Servers}) - if !f(fd_GenesisState_servers, value) { - return - } - } - if x.LastCardModified != nil { - value := protoreflect.ValueOfMessage(x.LastCardModified.ProtoReflect()) - if !f(fd_GenesisState_lastCardModified, value) { - return - } - } - if len(x.Zealys) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_17_list{list: &x.Zealys}) - if !f(fd_GenesisState_zealys, value) { - return - } - } - if len(x.Encounters) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_18_list{list: &x.Encounters}) - if !f(fd_GenesisState_encounters, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.GenesisState.params": - return x.Params != nil - case "cardchain.cardchain.GenesisState.cardRecords": - return len(x.CardRecords) != 0 - case "cardchain.cardchain.GenesisState.users": - return len(x.Users) != 0 - case "cardchain.cardchain.GenesisState.addresses": - return len(x.Addresses) != 0 - case "cardchain.cardchain.GenesisState.matches": - return len(x.Matches) != 0 - case "cardchain.cardchain.GenesisState.sets": - return len(x.Sets) != 0 - case "cardchain.cardchain.GenesisState.sellOffers": - return len(x.SellOffers) != 0 - case "cardchain.cardchain.GenesisState.pools": - return len(x.Pools) != 0 - case "cardchain.cardchain.GenesisState.cardAuctionPrice": - return x.CardAuctionPrice != nil - case "cardchain.cardchain.GenesisState.councils": - return len(x.Councils) != 0 - case "cardchain.cardchain.GenesisState.runningAverages": - return len(x.RunningAverages) != 0 - case "cardchain.cardchain.GenesisState.images": - return len(x.Images) != 0 - case "cardchain.cardchain.GenesisState.servers": - return len(x.Servers) != 0 - case "cardchain.cardchain.GenesisState.lastCardModified": - return x.LastCardModified != nil - case "cardchain.cardchain.GenesisState.zealys": - return len(x.Zealys) != 0 - case "cardchain.cardchain.GenesisState.encounters": - return len(x.Encounters) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.GenesisState")) - } - panic(fmt.Errorf("message cardchain.cardchain.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.GenesisState.params": - x.Params = nil - case "cardchain.cardchain.GenesisState.cardRecords": - x.CardRecords = nil - case "cardchain.cardchain.GenesisState.users": - x.Users = nil - case "cardchain.cardchain.GenesisState.addresses": - x.Addresses = nil - case "cardchain.cardchain.GenesisState.matches": - x.Matches = nil - case "cardchain.cardchain.GenesisState.sets": - x.Sets = nil - case "cardchain.cardchain.GenesisState.sellOffers": - x.SellOffers = nil - case "cardchain.cardchain.GenesisState.pools": - x.Pools = nil - case "cardchain.cardchain.GenesisState.cardAuctionPrice": - x.CardAuctionPrice = nil - case "cardchain.cardchain.GenesisState.councils": - x.Councils = nil - case "cardchain.cardchain.GenesisState.runningAverages": - x.RunningAverages = nil - case "cardchain.cardchain.GenesisState.images": - x.Images = nil - case "cardchain.cardchain.GenesisState.servers": - x.Servers = nil - case "cardchain.cardchain.GenesisState.lastCardModified": - x.LastCardModified = nil - case "cardchain.cardchain.GenesisState.zealys": - x.Zealys = nil - case "cardchain.cardchain.GenesisState.encounters": - x.Encounters = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.GenesisState")) - } - panic(fmt.Errorf("message cardchain.cardchain.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.GenesisState.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.GenesisState.cardRecords": - if len(x.CardRecords) == 0 { - return protoreflect.ValueOfList(&_GenesisState_2_list{}) - } - listValue := &_GenesisState_2_list{list: &x.CardRecords} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.users": - if len(x.Users) == 0 { - return protoreflect.ValueOfList(&_GenesisState_3_list{}) - } - listValue := &_GenesisState_3_list{list: &x.Users} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.addresses": - if len(x.Addresses) == 0 { - return protoreflect.ValueOfList(&_GenesisState_4_list{}) - } - listValue := &_GenesisState_4_list{list: &x.Addresses} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.matches": - if len(x.Matches) == 0 { - return protoreflect.ValueOfList(&_GenesisState_6_list{}) - } - listValue := &_GenesisState_6_list{list: &x.Matches} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.sets": - if len(x.Sets) == 0 { - return protoreflect.ValueOfList(&_GenesisState_7_list{}) - } - listValue := &_GenesisState_7_list{list: &x.Sets} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.sellOffers": - if len(x.SellOffers) == 0 { - return protoreflect.ValueOfList(&_GenesisState_8_list{}) - } - listValue := &_GenesisState_8_list{list: &x.SellOffers} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.pools": - if len(x.Pools) == 0 { - return protoreflect.ValueOfList(&_GenesisState_9_list{}) - } - listValue := &_GenesisState_9_list{list: &x.Pools} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.cardAuctionPrice": - value := x.CardAuctionPrice - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.GenesisState.councils": - if len(x.Councils) == 0 { - return protoreflect.ValueOfList(&_GenesisState_12_list{}) - } - listValue := &_GenesisState_12_list{list: &x.Councils} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.runningAverages": - if len(x.RunningAverages) == 0 { - return protoreflect.ValueOfList(&_GenesisState_13_list{}) - } - listValue := &_GenesisState_13_list{list: &x.RunningAverages} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.images": - if len(x.Images) == 0 { - return protoreflect.ValueOfList(&_GenesisState_14_list{}) - } - listValue := &_GenesisState_14_list{list: &x.Images} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.servers": - if len(x.Servers) == 0 { - return protoreflect.ValueOfList(&_GenesisState_15_list{}) - } - listValue := &_GenesisState_15_list{list: &x.Servers} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.lastCardModified": - value := x.LastCardModified - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.GenesisState.zealys": - if len(x.Zealys) == 0 { - return protoreflect.ValueOfList(&_GenesisState_17_list{}) - } - listValue := &_GenesisState_17_list{list: &x.Zealys} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.GenesisState.encounters": - if len(x.Encounters) == 0 { - return protoreflect.ValueOfList(&_GenesisState_18_list{}) - } - listValue := &_GenesisState_18_list{list: &x.Encounters} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.GenesisState")) - } - panic(fmt.Errorf("message cardchain.cardchain.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.GenesisState.params": - x.Params = value.Message().Interface().(*Params) - case "cardchain.cardchain.GenesisState.cardRecords": - lv := value.List() - clv := lv.(*_GenesisState_2_list) - x.CardRecords = *clv.list - case "cardchain.cardchain.GenesisState.users": - lv := value.List() - clv := lv.(*_GenesisState_3_list) - x.Users = *clv.list - case "cardchain.cardchain.GenesisState.addresses": - lv := value.List() - clv := lv.(*_GenesisState_4_list) - x.Addresses = *clv.list - case "cardchain.cardchain.GenesisState.matches": - lv := value.List() - clv := lv.(*_GenesisState_6_list) - x.Matches = *clv.list - case "cardchain.cardchain.GenesisState.sets": - lv := value.List() - clv := lv.(*_GenesisState_7_list) - x.Sets = *clv.list - case "cardchain.cardchain.GenesisState.sellOffers": - lv := value.List() - clv := lv.(*_GenesisState_8_list) - x.SellOffers = *clv.list - case "cardchain.cardchain.GenesisState.pools": - lv := value.List() - clv := lv.(*_GenesisState_9_list) - x.Pools = *clv.list - case "cardchain.cardchain.GenesisState.cardAuctionPrice": - x.CardAuctionPrice = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.GenesisState.councils": - lv := value.List() - clv := lv.(*_GenesisState_12_list) - x.Councils = *clv.list - case "cardchain.cardchain.GenesisState.runningAverages": - lv := value.List() - clv := lv.(*_GenesisState_13_list) - x.RunningAverages = *clv.list - case "cardchain.cardchain.GenesisState.images": - lv := value.List() - clv := lv.(*_GenesisState_14_list) - x.Images = *clv.list - case "cardchain.cardchain.GenesisState.servers": - lv := value.List() - clv := lv.(*_GenesisState_15_list) - x.Servers = *clv.list - case "cardchain.cardchain.GenesisState.lastCardModified": - x.LastCardModified = value.Message().Interface().(*TimeStamp) - case "cardchain.cardchain.GenesisState.zealys": - lv := value.List() - clv := lv.(*_GenesisState_17_list) - x.Zealys = *clv.list - case "cardchain.cardchain.GenesisState.encounters": - lv := value.List() - clv := lv.(*_GenesisState_18_list) - x.Encounters = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.GenesisState")) - } - panic(fmt.Errorf("message cardchain.cardchain.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.GenesisState.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "cardchain.cardchain.GenesisState.cardRecords": - if x.CardRecords == nil { - x.CardRecords = []*Card{} - } - value := &_GenesisState_2_list{list: &x.CardRecords} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.users": - if x.Users == nil { - x.Users = []*User{} - } - value := &_GenesisState_3_list{list: &x.Users} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.addresses": - if x.Addresses == nil { - x.Addresses = []string{} - } - value := &_GenesisState_4_list{list: &x.Addresses} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.matches": - if x.Matches == nil { - x.Matches = []*Match{} - } - value := &_GenesisState_6_list{list: &x.Matches} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.sets": - if x.Sets == nil { - x.Sets = []*Set{} - } - value := &_GenesisState_7_list{list: &x.Sets} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.sellOffers": - if x.SellOffers == nil { - x.SellOffers = []*SellOffer{} - } - value := &_GenesisState_8_list{list: &x.SellOffers} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.pools": - if x.Pools == nil { - x.Pools = []*v1beta1.Coin{} - } - value := &_GenesisState_9_list{list: &x.Pools} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.cardAuctionPrice": - if x.CardAuctionPrice == nil { - x.CardAuctionPrice = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.CardAuctionPrice.ProtoReflect()) - case "cardchain.cardchain.GenesisState.councils": - if x.Councils == nil { - x.Councils = []*Council{} - } - value := &_GenesisState_12_list{list: &x.Councils} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.runningAverages": - if x.RunningAverages == nil { - x.RunningAverages = []*RunningAverage{} - } - value := &_GenesisState_13_list{list: &x.RunningAverages} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.images": - if x.Images == nil { - x.Images = []*Image{} - } - value := &_GenesisState_14_list{list: &x.Images} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.servers": - if x.Servers == nil { - x.Servers = []*Server{} - } - value := &_GenesisState_15_list{list: &x.Servers} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.lastCardModified": - if x.LastCardModified == nil { - x.LastCardModified = new(TimeStamp) - } - return protoreflect.ValueOfMessage(x.LastCardModified.ProtoReflect()) - case "cardchain.cardchain.GenesisState.zealys": - if x.Zealys == nil { - x.Zealys = []*Zealy{} - } - value := &_GenesisState_17_list{list: &x.Zealys} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.GenesisState.encounters": - if x.Encounters == nil { - x.Encounters = []*Encounter{} - } - value := &_GenesisState_18_list{list: &x.Encounters} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.GenesisState")) - } - panic(fmt.Errorf("message cardchain.cardchain.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.GenesisState.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.GenesisState.cardRecords": - list := []*Card{} - return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) - case "cardchain.cardchain.GenesisState.users": - list := []*User{} - return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "cardchain.cardchain.GenesisState.addresses": - list := []string{} - return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) - case "cardchain.cardchain.GenesisState.matches": - list := []*Match{} - return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) - case "cardchain.cardchain.GenesisState.sets": - list := []*Set{} - return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) - case "cardchain.cardchain.GenesisState.sellOffers": - list := []*SellOffer{} - return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) - case "cardchain.cardchain.GenesisState.pools": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) - case "cardchain.cardchain.GenesisState.cardAuctionPrice": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.GenesisState.councils": - list := []*Council{} - return protoreflect.ValueOfList(&_GenesisState_12_list{list: &list}) - case "cardchain.cardchain.GenesisState.runningAverages": - list := []*RunningAverage{} - return protoreflect.ValueOfList(&_GenesisState_13_list{list: &list}) - case "cardchain.cardchain.GenesisState.images": - list := []*Image{} - return protoreflect.ValueOfList(&_GenesisState_14_list{list: &list}) - case "cardchain.cardchain.GenesisState.servers": - list := []*Server{} - return protoreflect.ValueOfList(&_GenesisState_15_list{list: &list}) - case "cardchain.cardchain.GenesisState.lastCardModified": - m := new(TimeStamp) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.GenesisState.zealys": - list := []*Zealy{} - return protoreflect.ValueOfList(&_GenesisState_17_list{list: &list}) - case "cardchain.cardchain.GenesisState.encounters": - list := []*Encounter{} - return protoreflect.ValueOfList(&_GenesisState_18_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.GenesisState")) - } - panic(fmt.Errorf("message cardchain.cardchain.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - 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.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.CardRecords) > 0 { - for _, e := range x.CardRecords { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Users) > 0 { - for _, e := range x.Users { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Addresses) > 0 { - for _, s := range x.Addresses { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Matches) > 0 { - for _, e := range x.Matches { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Sets) > 0 { - for _, e := range x.Sets { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.SellOffers) > 0 { - for _, e := range x.SellOffers { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Pools) > 0 { - for _, e := range x.Pools { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.CardAuctionPrice != nil { - l = options.Size(x.CardAuctionPrice) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Councils) > 0 { - for _, e := range x.Councils { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.RunningAverages) > 0 { - for _, e := range x.RunningAverages { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Images) > 0 { - for _, e := range x.Images { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Servers) > 0 { - for _, e := range x.Servers { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.LastCardModified != nil { - l = options.Size(x.LastCardModified) - n += 2 + l + runtime.Sov(uint64(l)) - } - if len(x.Zealys) > 0 { - for _, e := range x.Zealys { - l = options.Size(e) - n += 2 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Encounters) > 0 { - for _, e := range x.Encounters { - l = options.Size(e) - n += 2 + 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().(*GenesisState) - 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.Encounters) > 0 { - for iNdEx := len(x.Encounters) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Encounters[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] = 0x1 - i-- - dAtA[i] = 0x92 - } - } - if len(x.Zealys) > 0 { - for iNdEx := len(x.Zealys) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Zealys[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] = 0x1 - i-- - dAtA[i] = 0x8a - } - } - if x.LastCardModified != nil { - encoded, err := options.Marshal(x.LastCardModified) - 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] = 0x1 - i-- - dAtA[i] = 0x82 - } - if len(x.Servers) > 0 { - for iNdEx := len(x.Servers) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Servers[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] = 0x7a - } - } - if len(x.Images) > 0 { - for iNdEx := len(x.Images) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Images[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] = 0x72 - } - } - if len(x.RunningAverages) > 0 { - for iNdEx := len(x.RunningAverages) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.RunningAverages[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] = 0x6a - } - } - if len(x.Councils) > 0 { - for iNdEx := len(x.Councils) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Councils[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] = 0x62 - } - } - if x.CardAuctionPrice != nil { - encoded, err := options.Marshal(x.CardAuctionPrice) - 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] = 0x5a - } - if len(x.Pools) > 0 { - for iNdEx := len(x.Pools) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Pools[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] = 0x4a - } - } - if len(x.SellOffers) > 0 { - for iNdEx := len(x.SellOffers) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.SellOffers[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] = 0x42 - } - } - if len(x.Sets) > 0 { - for iNdEx := len(x.Sets) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Sets[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] = 0x3a - } - } - if len(x.Matches) > 0 { - for iNdEx := len(x.Matches) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Matches[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] = 0x32 - } - } - if len(x.Addresses) > 0 { - for iNdEx := len(x.Addresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Addresses[iNdEx]) - copy(dAtA[i:], x.Addresses[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Addresses[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.Users) > 0 { - for iNdEx := len(x.Users) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Users[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.CardRecords) > 0 { - for iNdEx := len(x.CardRecords) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.CardRecords[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] = 0x12 - } - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 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().(*GenesisState) - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardRecords", 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.CardRecords = append(x.CardRecords, &Card{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CardRecords[len(x.CardRecords)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Users", 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.Users = append(x.Users, &User{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Users[len(x.Users)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Addresses", 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.Addresses = append(x.Addresses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Matches", 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.Matches = append(x.Matches, &Match{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Matches[len(x.Matches)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sets", 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.Sets = append(x.Sets, &Set{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Sets[len(x.Sets)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOffers", 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.SellOffers = append(x.SellOffers, &SellOffer{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SellOffers[len(x.SellOffers)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pools", 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.Pools = append(x.Pools, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pools[len(x.Pools)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardAuctionPrice", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.CardAuctionPrice == nil { - x.CardAuctionPrice = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CardAuctionPrice); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Councils", 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.Councils = append(x.Councils, &Council{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Councils[len(x.Councils)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RunningAverages", 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.RunningAverages = append(x.RunningAverages, &RunningAverage{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RunningAverages[len(x.RunningAverages)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Images", 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.Images = append(x.Images, &Image{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Images[len(x.Images)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Servers", 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.Servers = append(x.Servers, &Server{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Servers[len(x.Servers)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCardModified", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.LastCardModified == nil { - x.LastCardModified = &TimeStamp{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCardModified); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Zealys", 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.Zealys = append(x.Zealys, &Zealy{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Zealys[len(x.Zealys)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 18: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Encounters", 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.Encounters = append(x.Encounters, &Encounter{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Encounters[len(x.Encounters)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/genesis.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenesisState defines the cardchain module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - CardRecords []*Card `protobuf:"bytes,2,rep,name=cardRecords,proto3" json:"cardRecords,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - Addresses []string `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"` - Matches []*Match `protobuf:"bytes,6,rep,name=matches,proto3" json:"matches,omitempty"` - Sets []*Set `protobuf:"bytes,7,rep,name=sets,proto3" json:"sets,omitempty"` - SellOffers []*SellOffer `protobuf:"bytes,8,rep,name=sellOffers,proto3" json:"sellOffers,omitempty"` - Pools []*v1beta1.Coin `protobuf:"bytes,9,rep,name=pools,proto3" json:"pools,omitempty"` - CardAuctionPrice *v1beta1.Coin `protobuf:"bytes,11,opt,name=cardAuctionPrice,proto3" json:"cardAuctionPrice,omitempty"` - Councils []*Council `protobuf:"bytes,12,rep,name=councils,proto3" json:"councils,omitempty"` - RunningAverages []*RunningAverage `protobuf:"bytes,13,rep,name=runningAverages,proto3" json:"runningAverages,omitempty"` - Images []*Image `protobuf:"bytes,14,rep,name=images,proto3" json:"images,omitempty"` - Servers []*Server `protobuf:"bytes,15,rep,name=servers,proto3" json:"servers,omitempty"` - LastCardModified *TimeStamp `protobuf:"bytes,16,opt,name=lastCardModified,proto3" json:"lastCardModified,omitempty"` - Zealys []*Zealy `protobuf:"bytes,17,rep,name=zealys,proto3" json:"zealys,omitempty"` - Encounters []*Encounter `protobuf:"bytes,18,rep,name=encounters,proto3" json:"encounters,omitempty"` // this line is used by starport scaffolding # genesis/proto/state -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_genesis_proto_rawDescGZIP(), []int{0} -} - -func (x *GenesisState) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -func (x *GenesisState) GetCardRecords() []*Card { - if x != nil { - return x.CardRecords - } - return nil -} - -func (x *GenesisState) GetUsers() []*User { - if x != nil { - return x.Users - } - return nil -} - -func (x *GenesisState) GetAddresses() []string { - if x != nil { - return x.Addresses - } - return nil -} - -func (x *GenesisState) GetMatches() []*Match { - if x != nil { - return x.Matches - } - return nil -} - -func (x *GenesisState) GetSets() []*Set { - if x != nil { - return x.Sets - } - return nil -} - -func (x *GenesisState) GetSellOffers() []*SellOffer { - if x != nil { - return x.SellOffers - } - return nil -} - -func (x *GenesisState) GetPools() []*v1beta1.Coin { - if x != nil { - return x.Pools - } - return nil -} - -func (x *GenesisState) GetCardAuctionPrice() *v1beta1.Coin { - if x != nil { - return x.CardAuctionPrice - } - return nil -} - -func (x *GenesisState) GetCouncils() []*Council { - if x != nil { - return x.Councils - } - return nil -} - -func (x *GenesisState) GetRunningAverages() []*RunningAverage { - if x != nil { - return x.RunningAverages - } - return nil -} - -func (x *GenesisState) GetImages() []*Image { - if x != nil { - return x.Images - } - return nil -} - -func (x *GenesisState) GetServers() []*Server { - if x != nil { - return x.Servers - } - return nil -} - -func (x *GenesisState) GetLastCardModified() *TimeStamp { - if x != nil { - return x.LastCardModified - } - return nil -} - -func (x *GenesisState) GetZealys() []*Zealy { - if x != nil { - return x.Zealys - } - return nil -} - -func (x *GenesisState) GetEncounters() []*Encounter { - if x != nil { - return x.Encounters - } - return nil -} - -var File_cardchain_cardchain_genesis_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_genesis_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, - 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, - 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x66, - 0x66, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x72, - 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x69, 0x6d, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x7a, 0x65, 0x61, 0x6c, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xb6, 0x07, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, - 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, - 0x64, 0x52, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x2f, - 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, - 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x34, 0x0a, - 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x73, 0x65, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x04, 0x73, 0x65, 0x74, - 0x73, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x6c, 0x6c, - 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0a, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, - 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x70, 0x6f, 0x6f, - 0x6c, 0x73, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x61, 0x72, 0x64, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x63, - 0x61, 0x72, 0x64, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, - 0x38, 0x0a, 0x08, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, - 0x08, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x73, 0x12, 0x4d, 0x0a, 0x0f, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x07, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x73, 0x12, 0x50, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4d, - 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4d, 0x6f, 0x64, - 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x7a, 0x65, 0x61, 0x6c, 0x79, 0x73, 0x18, - 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x5a, 0x65, 0x61, 0x6c, - 0x79, 0x52, 0x06, 0x7a, 0x65, 0x61, 0x6c, 0x79, 0x73, 0x12, 0x3e, 0x0a, 0x0a, 0x65, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x65, - 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x42, 0xd4, 0x01, 0x0a, 0x17, 0x63, 0x6f, - 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, - 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_genesis_proto_rawDescOnce sync.Once - file_cardchain_cardchain_genesis_proto_rawDescData = file_cardchain_cardchain_genesis_proto_rawDesc -) - -func file_cardchain_cardchain_genesis_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_genesis_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_genesis_proto_rawDescData) - }) - return file_cardchain_cardchain_genesis_proto_rawDescData -} - -var file_cardchain_cardchain_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: cardchain.cardchain.GenesisState - (*Params)(nil), // 1: cardchain.cardchain.Params - (*Card)(nil), // 2: cardchain.cardchain.Card - (*User)(nil), // 3: cardchain.cardchain.User - (*Match)(nil), // 4: cardchain.cardchain.Match - (*Set)(nil), // 5: cardchain.cardchain.Set - (*SellOffer)(nil), // 6: cardchain.cardchain.SellOffer - (*v1beta1.Coin)(nil), // 7: cosmos.base.v1beta1.Coin - (*Council)(nil), // 8: cardchain.cardchain.Council - (*RunningAverage)(nil), // 9: cardchain.cardchain.RunningAverage - (*Image)(nil), // 10: cardchain.cardchain.Image - (*Server)(nil), // 11: cardchain.cardchain.Server - (*TimeStamp)(nil), // 12: cardchain.cardchain.TimeStamp - (*Zealy)(nil), // 13: cardchain.cardchain.Zealy - (*Encounter)(nil), // 14: cardchain.cardchain.Encounter -} -var file_cardchain_cardchain_genesis_proto_depIdxs = []int32{ - 1, // 0: cardchain.cardchain.GenesisState.params:type_name -> cardchain.cardchain.Params - 2, // 1: cardchain.cardchain.GenesisState.cardRecords:type_name -> cardchain.cardchain.Card - 3, // 2: cardchain.cardchain.GenesisState.users:type_name -> cardchain.cardchain.User - 4, // 3: cardchain.cardchain.GenesisState.matches:type_name -> cardchain.cardchain.Match - 5, // 4: cardchain.cardchain.GenesisState.sets:type_name -> cardchain.cardchain.Set - 6, // 5: cardchain.cardchain.GenesisState.sellOffers:type_name -> cardchain.cardchain.SellOffer - 7, // 6: cardchain.cardchain.GenesisState.pools:type_name -> cosmos.base.v1beta1.Coin - 7, // 7: cardchain.cardchain.GenesisState.cardAuctionPrice:type_name -> cosmos.base.v1beta1.Coin - 8, // 8: cardchain.cardchain.GenesisState.councils:type_name -> cardchain.cardchain.Council - 9, // 9: cardchain.cardchain.GenesisState.runningAverages:type_name -> cardchain.cardchain.RunningAverage - 10, // 10: cardchain.cardchain.GenesisState.images:type_name -> cardchain.cardchain.Image - 11, // 11: cardchain.cardchain.GenesisState.servers:type_name -> cardchain.cardchain.Server - 12, // 12: cardchain.cardchain.GenesisState.lastCardModified:type_name -> cardchain.cardchain.TimeStamp - 13, // 13: cardchain.cardchain.GenesisState.zealys:type_name -> cardchain.cardchain.Zealy - 14, // 14: cardchain.cardchain.GenesisState.encounters:type_name -> cardchain.cardchain.Encounter - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_genesis_proto_init() } -func file_cardchain_cardchain_genesis_proto_init() { - if File_cardchain_cardchain_genesis_proto != nil { - return - } - file_cardchain_cardchain_params_proto_init() - file_cardchain_cardchain_card_proto_init() - file_cardchain_cardchain_user_proto_init() - file_cardchain_cardchain_match_proto_init() - file_cardchain_cardchain_set_proto_init() - file_cardchain_cardchain_sell_offer_proto_init() - file_cardchain_cardchain_running_average_proto_init() - file_cardchain_cardchain_council_proto_init() - file_cardchain_cardchain_image_proto_init() - file_cardchain_cardchain_server_proto_init() - file_cardchain_cardchain_zealy_proto_init() - file_cardchain_cardchain_encounter_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_genesis_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_genesis_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_genesis_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_genesis_proto_msgTypes, - }.Build() - File_cardchain_cardchain_genesis_proto = out.File - file_cardchain_cardchain_genesis_proto_rawDesc = nil - file_cardchain_cardchain_genesis_proto_goTypes = nil - file_cardchain_cardchain_genesis_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/image.pulsar.go b/api/cardchain/cardchain/image.pulsar.go deleted file mode 100644 index 627dece1..00000000 --- a/api/cardchain/cardchain/image.pulsar.go +++ /dev/null @@ -1,571 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Image protoreflect.MessageDescriptor - fd_Image_image protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_image_proto_init() - md_Image = File_cardchain_cardchain_image_proto.Messages().ByName("Image") - fd_Image_image = md_Image.Fields().ByName("image") -} - -var _ protoreflect.Message = (*fastReflection_Image)(nil) - -type fastReflection_Image Image - -func (x *Image) ProtoReflect() protoreflect.Message { - return (*fastReflection_Image)(x) -} - -func (x *Image) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_image_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Image_messageType fastReflection_Image_messageType -var _ protoreflect.MessageType = fastReflection_Image_messageType{} - -type fastReflection_Image_messageType struct{} - -func (x fastReflection_Image_messageType) Zero() protoreflect.Message { - return (*fastReflection_Image)(nil) -} -func (x fastReflection_Image_messageType) New() protoreflect.Message { - return new(fastReflection_Image) -} -func (x fastReflection_Image_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Image -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Image) Descriptor() protoreflect.MessageDescriptor { - return md_Image -} - -// 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_Image) Type() protoreflect.MessageType { - return _fastReflection_Image_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Image) New() protoreflect.Message { - return new(fastReflection_Image) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Image) Interface() protoreflect.ProtoMessage { - return (*Image)(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_Image) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Image) != 0 { - value := protoreflect.ValueOfBytes(x.Image) - if !f(fd_Image_image, 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_Image) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Image.image": - return len(x.Image) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Image")) - } - panic(fmt.Errorf("message cardchain.cardchain.Image 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_Image) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Image.image": - x.Image = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Image")) - } - panic(fmt.Errorf("message cardchain.cardchain.Image 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_Image) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Image.image": - value := x.Image - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Image")) - } - panic(fmt.Errorf("message cardchain.cardchain.Image 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_Image) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Image.image": - x.Image = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Image")) - } - panic(fmt.Errorf("message cardchain.cardchain.Image 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_Image) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Image.image": - panic(fmt.Errorf("field image of message cardchain.cardchain.Image is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Image")) - } - panic(fmt.Errorf("message cardchain.cardchain.Image 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_Image) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Image.image": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Image")) - } - panic(fmt.Errorf("message cardchain.cardchain.Image 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_Image) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Image", 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_Image) 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_Image) 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_Image) 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_Image) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Image) - 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.Image) - 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().(*Image) - 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.Image) > 0 { - i -= len(x.Image) - copy(dAtA[i:], x.Image) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Image))) - 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().(*Image) - 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: Image: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Image: 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 Image", wireType) - } - var byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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.Image = append(x.Image[:0], dAtA[iNdEx:postIndex]...) - if x.Image == nil { - x.Image = []byte{} - } - 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 -// protoc (unknown) -// source: cardchain/cardchain/image.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Image struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` -} - -func (x *Image) Reset() { - *x = Image{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_image_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Image) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Image) ProtoMessage() {} - -// Deprecated: Use Image.ProtoReflect.Descriptor instead. -func (*Image) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_image_proto_rawDescGZIP(), []int{0} -} - -func (x *Image) GetImage() []byte { - if x != nil { - return x.Image - } - return nil -} - -var File_cardchain_cardchain_image_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_image_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x22, 0x1d, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0xd2, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x42, 0x0a, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, - 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, - 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, - 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_image_proto_rawDescOnce sync.Once - file_cardchain_cardchain_image_proto_rawDescData = file_cardchain_cardchain_image_proto_rawDesc -) - -func file_cardchain_cardchain_image_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_image_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_image_proto_rawDescData) - }) - return file_cardchain_cardchain_image_proto_rawDescData -} - -var file_cardchain_cardchain_image_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_image_proto_goTypes = []interface{}{ - (*Image)(nil), // 0: cardchain.cardchain.Image -} -var file_cardchain_cardchain_image_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_image_proto_init() } -func file_cardchain_cardchain_image_proto_init() { - if File_cardchain_cardchain_image_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Image); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_image_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_image_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_image_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_image_proto_msgTypes, - }.Build() - File_cardchain_cardchain_image_proto = out.File - file_cardchain_cardchain_image_proto_rawDesc = nil - file_cardchain_cardchain_image_proto_goTypes = nil - file_cardchain_cardchain_image_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/match.pulsar.go b/api/cardchain/cardchain/match.pulsar.go deleted file mode 100644 index 8c0f3591..00000000 --- a/api/cardchain/cardchain/match.pulsar.go +++ /dev/null @@ -1,2192 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Match protoreflect.MessageDescriptor - fd_Match_timestamp protoreflect.FieldDescriptor - fd_Match_reporter protoreflect.FieldDescriptor - fd_Match_playerA protoreflect.FieldDescriptor - fd_Match_playerB protoreflect.FieldDescriptor - fd_Match_outcome protoreflect.FieldDescriptor - fd_Match_coinsDistributed protoreflect.FieldDescriptor - fd_Match_serverConfirmed protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_match_proto_init() - md_Match = File_cardchain_cardchain_match_proto.Messages().ByName("Match") - fd_Match_timestamp = md_Match.Fields().ByName("timestamp") - fd_Match_reporter = md_Match.Fields().ByName("reporter") - fd_Match_playerA = md_Match.Fields().ByName("playerA") - fd_Match_playerB = md_Match.Fields().ByName("playerB") - fd_Match_outcome = md_Match.Fields().ByName("outcome") - fd_Match_coinsDistributed = md_Match.Fields().ByName("coinsDistributed") - fd_Match_serverConfirmed = md_Match.Fields().ByName("serverConfirmed") -} - -var _ protoreflect.Message = (*fastReflection_Match)(nil) - -type fastReflection_Match Match - -func (x *Match) ProtoReflect() protoreflect.Message { - return (*fastReflection_Match)(x) -} - -func (x *Match) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_match_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Match_messageType fastReflection_Match_messageType -var _ protoreflect.MessageType = fastReflection_Match_messageType{} - -type fastReflection_Match_messageType struct{} - -func (x fastReflection_Match_messageType) Zero() protoreflect.Message { - return (*fastReflection_Match)(nil) -} -func (x fastReflection_Match_messageType) New() protoreflect.Message { - return new(fastReflection_Match) -} -func (x fastReflection_Match_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Match -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Match) Descriptor() protoreflect.MessageDescriptor { - return md_Match -} - -// 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_Match) Type() protoreflect.MessageType { - return _fastReflection_Match_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Match) New() protoreflect.Message { - return new(fastReflection_Match) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Match) Interface() protoreflect.ProtoMessage { - return (*Match)(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_Match) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Timestamp != uint64(0) { - value := protoreflect.ValueOfUint64(x.Timestamp) - if !f(fd_Match_timestamp, value) { - return - } - } - if x.Reporter != "" { - value := protoreflect.ValueOfString(x.Reporter) - if !f(fd_Match_reporter, value) { - return - } - } - if x.PlayerA != nil { - value := protoreflect.ValueOfMessage(x.PlayerA.ProtoReflect()) - if !f(fd_Match_playerA, value) { - return - } - } - if x.PlayerB != nil { - value := protoreflect.ValueOfMessage(x.PlayerB.ProtoReflect()) - if !f(fd_Match_playerB, value) { - return - } - } - if x.Outcome != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Outcome)) - if !f(fd_Match_outcome, value) { - return - } - } - if x.CoinsDistributed != false { - value := protoreflect.ValueOfBool(x.CoinsDistributed) - if !f(fd_Match_coinsDistributed, value) { - return - } - } - if x.ServerConfirmed != false { - value := protoreflect.ValueOfBool(x.ServerConfirmed) - if !f(fd_Match_serverConfirmed, 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_Match) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Match.timestamp": - return x.Timestamp != uint64(0) - case "cardchain.cardchain.Match.reporter": - return x.Reporter != "" - case "cardchain.cardchain.Match.playerA": - return x.PlayerA != nil - case "cardchain.cardchain.Match.playerB": - return x.PlayerB != nil - case "cardchain.cardchain.Match.outcome": - return x.Outcome != 0 - case "cardchain.cardchain.Match.coinsDistributed": - return x.CoinsDistributed != false - case "cardchain.cardchain.Match.serverConfirmed": - return x.ServerConfirmed != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) - } - panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Match.timestamp": - x.Timestamp = uint64(0) - case "cardchain.cardchain.Match.reporter": - x.Reporter = "" - case "cardchain.cardchain.Match.playerA": - x.PlayerA = nil - case "cardchain.cardchain.Match.playerB": - x.PlayerB = nil - case "cardchain.cardchain.Match.outcome": - x.Outcome = 0 - case "cardchain.cardchain.Match.coinsDistributed": - x.CoinsDistributed = false - case "cardchain.cardchain.Match.serverConfirmed": - x.ServerConfirmed = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) - } - panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Match.timestamp": - value := x.Timestamp - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Match.reporter": - value := x.Reporter - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Match.playerA": - value := x.PlayerA - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Match.playerB": - value := x.PlayerB - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Match.outcome": - value := x.Outcome - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.Match.coinsDistributed": - value := x.CoinsDistributed - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.Match.serverConfirmed": - value := x.ServerConfirmed - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) - } - panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Match.timestamp": - x.Timestamp = value.Uint() - case "cardchain.cardchain.Match.reporter": - x.Reporter = value.Interface().(string) - case "cardchain.cardchain.Match.playerA": - x.PlayerA = value.Message().Interface().(*MatchPlayer) - case "cardchain.cardchain.Match.playerB": - x.PlayerB = value.Message().Interface().(*MatchPlayer) - case "cardchain.cardchain.Match.outcome": - x.Outcome = (Outcome)(value.Enum()) - case "cardchain.cardchain.Match.coinsDistributed": - x.CoinsDistributed = value.Bool() - case "cardchain.cardchain.Match.serverConfirmed": - x.ServerConfirmed = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) - } - panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Match.playerA": - if x.PlayerA == nil { - x.PlayerA = new(MatchPlayer) - } - return protoreflect.ValueOfMessage(x.PlayerA.ProtoReflect()) - case "cardchain.cardchain.Match.playerB": - if x.PlayerB == nil { - x.PlayerB = new(MatchPlayer) - } - return protoreflect.ValueOfMessage(x.PlayerB.ProtoReflect()) - case "cardchain.cardchain.Match.timestamp": - panic(fmt.Errorf("field timestamp of message cardchain.cardchain.Match is not mutable")) - case "cardchain.cardchain.Match.reporter": - panic(fmt.Errorf("field reporter of message cardchain.cardchain.Match is not mutable")) - case "cardchain.cardchain.Match.outcome": - panic(fmt.Errorf("field outcome of message cardchain.cardchain.Match is not mutable")) - case "cardchain.cardchain.Match.coinsDistributed": - panic(fmt.Errorf("field coinsDistributed of message cardchain.cardchain.Match is not mutable")) - case "cardchain.cardchain.Match.serverConfirmed": - panic(fmt.Errorf("field serverConfirmed of message cardchain.cardchain.Match is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) - } - panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Match.timestamp": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Match.reporter": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Match.playerA": - m := new(MatchPlayer) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Match.playerB": - m := new(MatchPlayer) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Match.outcome": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.Match.coinsDistributed": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.Match.serverConfirmed": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Match")) - } - panic(fmt.Errorf("message cardchain.cardchain.Match 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_Match) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Match", 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_Match) 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_Match) 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_Match) 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_Match) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Match) - 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.Timestamp != 0 { - n += 1 + runtime.Sov(uint64(x.Timestamp)) - } - l = len(x.Reporter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.PlayerA != nil { - l = options.Size(x.PlayerA) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.PlayerB != nil { - l = options.Size(x.PlayerB) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Outcome != 0 { - n += 1 + runtime.Sov(uint64(x.Outcome)) - } - if x.CoinsDistributed { - n += 2 - } - if x.ServerConfirmed { - n += 2 - } - 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().(*Match) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CoinsDistributed { - i-- - if x.CoinsDistributed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if x.ServerConfirmed { - i-- - if x.ServerConfirmed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if x.Outcome != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) - i-- - dAtA[i] = 0x38 - } - if x.PlayerB != nil { - encoded, err := options.Marshal(x.PlayerB) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - if x.PlayerA != nil { - encoded, err := options.Marshal(x.PlayerA) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if len(x.Reporter) > 0 { - i -= len(x.Reporter) - copy(dAtA[i:], x.Reporter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reporter))) - i-- - dAtA[i] = 0x12 - } - if x.Timestamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) - i-- - dAtA[i] = 0x8 - } - 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().(*Match) - 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: Match: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Match: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - x.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Timestamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reporter", 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.Reporter = 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 PlayerA", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.PlayerA == nil { - x.PlayerA = &MatchPlayer{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PlayerA); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayerB", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.PlayerB == nil { - x.PlayerB = &MatchPlayer{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PlayerB); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) - } - x.Outcome = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Outcome |= Outcome(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoinsDistributed", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CoinsDistributed = bool(v != 0) - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ServerConfirmed", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ServerConfirmed = bool(v != 0) - 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 = (*_MatchPlayer_2_list)(nil) - -type _MatchPlayer_2_list struct { - list *[]uint64 -} - -func (x *_MatchPlayer_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MatchPlayer_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MatchPlayer_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MatchPlayer_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MatchPlayer_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MatchPlayer at list field PlayedCards as it is not of Message kind")) -} - -func (x *_MatchPlayer_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MatchPlayer_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MatchPlayer_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MatchPlayer_5_list)(nil) - -type _MatchPlayer_5_list struct { - list *[]uint64 -} - -func (x *_MatchPlayer_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MatchPlayer_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MatchPlayer_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MatchPlayer_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MatchPlayer_5_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MatchPlayer at list field Deck as it is not of Message kind")) -} - -func (x *_MatchPlayer_5_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MatchPlayer_5_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MatchPlayer_5_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MatchPlayer_6_list)(nil) - -type _MatchPlayer_6_list struct { - list *[]*SingleVote -} - -func (x *_MatchPlayer_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MatchPlayer_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MatchPlayer_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SingleVote) - (*x.list)[i] = concreteValue -} - -func (x *_MatchPlayer_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SingleVote) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MatchPlayer_6_list) AppendMutable() protoreflect.Value { - v := new(SingleVote) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MatchPlayer_6_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MatchPlayer_6_list) NewElement() protoreflect.Value { - v := new(SingleVote) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MatchPlayer_6_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MatchPlayer protoreflect.MessageDescriptor - fd_MatchPlayer_addr protoreflect.FieldDescriptor - fd_MatchPlayer_playedCards protoreflect.FieldDescriptor - fd_MatchPlayer_confirmed protoreflect.FieldDescriptor - fd_MatchPlayer_outcome protoreflect.FieldDescriptor - fd_MatchPlayer_deck protoreflect.FieldDescriptor - fd_MatchPlayer_votedCards protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_match_proto_init() - md_MatchPlayer = File_cardchain_cardchain_match_proto.Messages().ByName("MatchPlayer") - fd_MatchPlayer_addr = md_MatchPlayer.Fields().ByName("addr") - fd_MatchPlayer_playedCards = md_MatchPlayer.Fields().ByName("playedCards") - fd_MatchPlayer_confirmed = md_MatchPlayer.Fields().ByName("confirmed") - fd_MatchPlayer_outcome = md_MatchPlayer.Fields().ByName("outcome") - fd_MatchPlayer_deck = md_MatchPlayer.Fields().ByName("deck") - fd_MatchPlayer_votedCards = md_MatchPlayer.Fields().ByName("votedCards") -} - -var _ protoreflect.Message = (*fastReflection_MatchPlayer)(nil) - -type fastReflection_MatchPlayer MatchPlayer - -func (x *MatchPlayer) ProtoReflect() protoreflect.Message { - return (*fastReflection_MatchPlayer)(x) -} - -func (x *MatchPlayer) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_match_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MatchPlayer_messageType fastReflection_MatchPlayer_messageType -var _ protoreflect.MessageType = fastReflection_MatchPlayer_messageType{} - -type fastReflection_MatchPlayer_messageType struct{} - -func (x fastReflection_MatchPlayer_messageType) Zero() protoreflect.Message { - return (*fastReflection_MatchPlayer)(nil) -} -func (x fastReflection_MatchPlayer_messageType) New() protoreflect.Message { - return new(fastReflection_MatchPlayer) -} -func (x fastReflection_MatchPlayer_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MatchPlayer -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MatchPlayer) Descriptor() protoreflect.MessageDescriptor { - return md_MatchPlayer -} - -// 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_MatchPlayer) Type() protoreflect.MessageType { - return _fastReflection_MatchPlayer_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MatchPlayer) New() protoreflect.Message { - return new(fastReflection_MatchPlayer) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MatchPlayer) Interface() protoreflect.ProtoMessage { - return (*MatchPlayer)(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_MatchPlayer) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Addr != "" { - value := protoreflect.ValueOfString(x.Addr) - if !f(fd_MatchPlayer_addr, value) { - return - } - } - if len(x.PlayedCards) != 0 { - value := protoreflect.ValueOfList(&_MatchPlayer_2_list{list: &x.PlayedCards}) - if !f(fd_MatchPlayer_playedCards, value) { - return - } - } - if x.Confirmed != false { - value := protoreflect.ValueOfBool(x.Confirmed) - if !f(fd_MatchPlayer_confirmed, value) { - return - } - } - if x.Outcome != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Outcome)) - if !f(fd_MatchPlayer_outcome, value) { - return - } - } - if len(x.Deck) != 0 { - value := protoreflect.ValueOfList(&_MatchPlayer_5_list{list: &x.Deck}) - if !f(fd_MatchPlayer_deck, value) { - return - } - } - if len(x.VotedCards) != 0 { - value := protoreflect.ValueOfList(&_MatchPlayer_6_list{list: &x.VotedCards}) - if !f(fd_MatchPlayer_votedCards, 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_MatchPlayer) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MatchPlayer.addr": - return x.Addr != "" - case "cardchain.cardchain.MatchPlayer.playedCards": - return len(x.PlayedCards) != 0 - case "cardchain.cardchain.MatchPlayer.confirmed": - return x.Confirmed != false - case "cardchain.cardchain.MatchPlayer.outcome": - return x.Outcome != 0 - case "cardchain.cardchain.MatchPlayer.deck": - return len(x.Deck) != 0 - case "cardchain.cardchain.MatchPlayer.votedCards": - return len(x.VotedCards) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MatchPlayer.addr": - x.Addr = "" - case "cardchain.cardchain.MatchPlayer.playedCards": - x.PlayedCards = nil - case "cardchain.cardchain.MatchPlayer.confirmed": - x.Confirmed = false - case "cardchain.cardchain.MatchPlayer.outcome": - x.Outcome = 0 - case "cardchain.cardchain.MatchPlayer.deck": - x.Deck = nil - case "cardchain.cardchain.MatchPlayer.votedCards": - x.VotedCards = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MatchPlayer.addr": - value := x.Addr - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MatchPlayer.playedCards": - if len(x.PlayedCards) == 0 { - return protoreflect.ValueOfList(&_MatchPlayer_2_list{}) - } - listValue := &_MatchPlayer_2_list{list: &x.PlayedCards} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.MatchPlayer.confirmed": - value := x.Confirmed - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.MatchPlayer.outcome": - value := x.Outcome - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.MatchPlayer.deck": - if len(x.Deck) == 0 { - return protoreflect.ValueOfList(&_MatchPlayer_5_list{}) - } - listValue := &_MatchPlayer_5_list{list: &x.Deck} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.MatchPlayer.votedCards": - if len(x.VotedCards) == 0 { - return protoreflect.ValueOfList(&_MatchPlayer_6_list{}) - } - listValue := &_MatchPlayer_6_list{list: &x.VotedCards} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MatchPlayer.addr": - x.Addr = value.Interface().(string) - case "cardchain.cardchain.MatchPlayer.playedCards": - lv := value.List() - clv := lv.(*_MatchPlayer_2_list) - x.PlayedCards = *clv.list - case "cardchain.cardchain.MatchPlayer.confirmed": - x.Confirmed = value.Bool() - case "cardchain.cardchain.MatchPlayer.outcome": - x.Outcome = (Outcome)(value.Enum()) - case "cardchain.cardchain.MatchPlayer.deck": - lv := value.List() - clv := lv.(*_MatchPlayer_5_list) - x.Deck = *clv.list - case "cardchain.cardchain.MatchPlayer.votedCards": - lv := value.List() - clv := lv.(*_MatchPlayer_6_list) - x.VotedCards = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MatchPlayer.playedCards": - if x.PlayedCards == nil { - x.PlayedCards = []uint64{} - } - value := &_MatchPlayer_2_list{list: &x.PlayedCards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MatchPlayer.deck": - if x.Deck == nil { - x.Deck = []uint64{} - } - value := &_MatchPlayer_5_list{list: &x.Deck} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MatchPlayer.votedCards": - if x.VotedCards == nil { - x.VotedCards = []*SingleVote{} - } - value := &_MatchPlayer_6_list{list: &x.VotedCards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MatchPlayer.addr": - panic(fmt.Errorf("field addr of message cardchain.cardchain.MatchPlayer is not mutable")) - case "cardchain.cardchain.MatchPlayer.confirmed": - panic(fmt.Errorf("field confirmed of message cardchain.cardchain.MatchPlayer is not mutable")) - case "cardchain.cardchain.MatchPlayer.outcome": - panic(fmt.Errorf("field outcome of message cardchain.cardchain.MatchPlayer is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MatchPlayer.addr": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MatchPlayer.playedCards": - list := []uint64{} - return protoreflect.ValueOfList(&_MatchPlayer_2_list{list: &list}) - case "cardchain.cardchain.MatchPlayer.confirmed": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.MatchPlayer.outcome": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.MatchPlayer.deck": - list := []uint64{} - return protoreflect.ValueOfList(&_MatchPlayer_5_list{list: &list}) - case "cardchain.cardchain.MatchPlayer.votedCards": - list := []*SingleVote{} - return protoreflect.ValueOfList(&_MatchPlayer_6_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MatchPlayer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MatchPlayer 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_MatchPlayer) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MatchPlayer", 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_MatchPlayer) 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_MatchPlayer) 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_MatchPlayer) 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_MatchPlayer) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MatchPlayer) - 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.Addr) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.PlayedCards) > 0 { - l = 0 - for _, e := range x.PlayedCards { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if x.Confirmed { - n += 2 - } - if x.Outcome != 0 { - n += 1 + runtime.Sov(uint64(x.Outcome)) - } - if len(x.Deck) > 0 { - l = 0 - for _, e := range x.Deck { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.VotedCards) > 0 { - for _, e := range x.VotedCards { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MatchPlayer) - 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.VotedCards) > 0 { - for iNdEx := len(x.VotedCards) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.VotedCards[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] = 0x32 - } - } - if len(x.Deck) > 0 { - var pksize2 int - for _, num := range x.Deck { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.Deck { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x2a - } - if x.Outcome != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) - i-- - dAtA[i] = 0x20 - } - if x.Confirmed { - i-- - if x.Confirmed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(x.PlayedCards) > 0 { - var pksize4 int - for _, num := range x.PlayedCards { - pksize4 += runtime.Sov(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num := range x.PlayedCards { - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) - i-- - dAtA[i] = 0x12 - } - if len(x.Addr) > 0 { - i -= len(x.Addr) - copy(dAtA[i:], x.Addr) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Addr))) - 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().(*MatchPlayer) - 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: MatchPlayer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MatchPlayer: 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 Addr", 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.Addr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayedCards = append(x.PlayedCards, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.PlayedCards) == 0 { - x.PlayedCards = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayedCards = append(x.PlayedCards, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayedCards", wireType) - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Confirmed", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Confirmed = bool(v != 0) - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) - } - x.Outcome = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Outcome |= Outcome(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Deck = append(x.Deck, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Deck) == 0 { - x.Deck = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Deck = append(x.Deck, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deck", wireType) - } - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotedCards", 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.VotedCards = append(x.VotedCards, &SingleVote{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VotedCards[len(x.VotedCards)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/match.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Outcome int32 - -const ( - Outcome_Undefined Outcome = 0 - Outcome_AWon Outcome = 1 - Outcome_BWon Outcome = 2 - Outcome_Draw Outcome = 3 - Outcome_Aborted Outcome = 4 -) - -// Enum value maps for Outcome. -var ( - Outcome_name = map[int32]string{ - 0: "Undefined", - 1: "AWon", - 2: "BWon", - 3: "Draw", - 4: "Aborted", - } - Outcome_value = map[string]int32{ - "Undefined": 0, - "AWon": 1, - "BWon": 2, - "Draw": 3, - "Aborted": 4, - } -) - -func (x Outcome) Enum() *Outcome { - p := new(Outcome) - *p = x - return p -} - -func (x Outcome) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Outcome) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_match_proto_enumTypes[0].Descriptor() -} - -func (Outcome) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_match_proto_enumTypes[0] -} - -func (x Outcome) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Outcome.Descriptor instead. -func (Outcome) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_match_proto_rawDescGZIP(), []int{0} -} - -type Match struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"` - PlayerA *MatchPlayer `protobuf:"bytes,3,opt,name=playerA,proto3" json:"playerA,omitempty"` - PlayerB *MatchPlayer `protobuf:"bytes,4,opt,name=playerB,proto3" json:"playerB,omitempty"` - Outcome Outcome `protobuf:"varint,7,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` - CoinsDistributed bool `protobuf:"varint,10,opt,name=coinsDistributed,proto3" json:"coinsDistributed,omitempty"` - ServerConfirmed bool `protobuf:"varint,8,opt,name=serverConfirmed,proto3" json:"serverConfirmed,omitempty"` -} - -func (x *Match) Reset() { - *x = Match{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_match_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Match) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Match) ProtoMessage() {} - -// Deprecated: Use Match.ProtoReflect.Descriptor instead. -func (*Match) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_match_proto_rawDescGZIP(), []int{0} -} - -func (x *Match) GetTimestamp() uint64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -func (x *Match) GetReporter() string { - if x != nil { - return x.Reporter - } - return "" -} - -func (x *Match) GetPlayerA() *MatchPlayer { - if x != nil { - return x.PlayerA - } - return nil -} - -func (x *Match) GetPlayerB() *MatchPlayer { - if x != nil { - return x.PlayerB - } - return nil -} - -func (x *Match) GetOutcome() Outcome { - if x != nil { - return x.Outcome - } - return Outcome_Undefined -} - -func (x *Match) GetCoinsDistributed() bool { - if x != nil { - return x.CoinsDistributed - } - return false -} - -func (x *Match) GetServerConfirmed() bool { - if x != nil { - return x.ServerConfirmed - } - return false -} - -type MatchPlayer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - PlayedCards []uint64 `protobuf:"varint,2,rep,packed,name=playedCards,proto3" json:"playedCards,omitempty"` - Confirmed bool `protobuf:"varint,3,opt,name=confirmed,proto3" json:"confirmed,omitempty"` - Outcome Outcome `protobuf:"varint,4,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` - Deck []uint64 `protobuf:"varint,5,rep,packed,name=deck,proto3" json:"deck,omitempty"` - VotedCards []*SingleVote `protobuf:"bytes,6,rep,name=votedCards,proto3" json:"votedCards,omitempty"` -} - -func (x *MatchPlayer) Reset() { - *x = MatchPlayer{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_match_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MatchPlayer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MatchPlayer) ProtoMessage() {} - -// Deprecated: Use MatchPlayer.ProtoReflect.Descriptor instead. -func (*MatchPlayer) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_match_proto_rawDescGZIP(), []int{1} -} - -func (x *MatchPlayer) GetAddr() string { - if x != nil { - return x.Addr - } - return "" -} - -func (x *MatchPlayer) GetPlayedCards() []uint64 { - if x != nil { - return x.PlayedCards - } - return nil -} - -func (x *MatchPlayer) GetConfirmed() bool { - if x != nil { - return x.Confirmed - } - return false -} - -func (x *MatchPlayer) GetOutcome() Outcome { - if x != nil { - return x.Outcome - } - return Outcome_Undefined -} - -func (x *MatchPlayer) GetDeck() []uint64 { - if x != nil { - return x.Deck - } - return nil -} - -func (x *MatchPlayer) GetVotedCards() []*SingleVote { - if x != nil { - return x.VotedCards - } - return nil -} - -var File_cardchain_cardchain_match_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_match_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x02, 0x0a, 0x05, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x07, - 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, - 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x42, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x07, 0x70, 0x6c, 0x61, - 0x79, 0x65, 0x72, 0x42, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4f, 0x75, 0x74, 0x63, - 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, - 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x44, 0x69, 0x73, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, - 0x65, 0x64, 0x22, 0xee, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64, - 0x43, 0x61, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x6c, 0x61, - 0x79, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4f, 0x75, - 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x03, 0x28, 0x04, 0x52, 0x04, 0x64, 0x65, - 0x63, 0x6b, 0x12, 0x3f, 0x0a, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, - 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x6e, - 0x67, 0x6c, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, - 0x72, 0x64, 0x73, 0x2a, 0x43, 0x0a, 0x07, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x0d, - 0x0a, 0x09, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x08, 0x0a, - 0x04, 0x41, 0x57, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x57, 0x6f, 0x6e, 0x10, - 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x61, 0x77, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x41, - 0x62, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x10, 0x04, 0x42, 0xd2, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0a, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, - 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_match_proto_rawDescOnce sync.Once - file_cardchain_cardchain_match_proto_rawDescData = file_cardchain_cardchain_match_proto_rawDesc -) - -func file_cardchain_cardchain_match_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_match_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_match_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_match_proto_rawDescData) - }) - return file_cardchain_cardchain_match_proto_rawDescData -} - -var file_cardchain_cardchain_match_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cardchain_cardchain_match_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cardchain_cardchain_match_proto_goTypes = []interface{}{ - (Outcome)(0), // 0: cardchain.cardchain.Outcome - (*Match)(nil), // 1: cardchain.cardchain.Match - (*MatchPlayer)(nil), // 2: cardchain.cardchain.MatchPlayer - (*SingleVote)(nil), // 3: cardchain.cardchain.SingleVote -} -var file_cardchain_cardchain_match_proto_depIdxs = []int32{ - 2, // 0: cardchain.cardchain.Match.playerA:type_name -> cardchain.cardchain.MatchPlayer - 2, // 1: cardchain.cardchain.Match.playerB:type_name -> cardchain.cardchain.MatchPlayer - 0, // 2: cardchain.cardchain.Match.outcome:type_name -> cardchain.cardchain.Outcome - 0, // 3: cardchain.cardchain.MatchPlayer.outcome:type_name -> cardchain.cardchain.Outcome - 3, // 4: cardchain.cardchain.MatchPlayer.votedCards:type_name -> cardchain.cardchain.SingleVote - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_match_proto_init() } -func file_cardchain_cardchain_match_proto_init() { - if File_cardchain_cardchain_match_proto != nil { - return - } - file_cardchain_cardchain_voting_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_match_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Match); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_match_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MatchPlayer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_match_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_match_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_match_proto_depIdxs, - EnumInfos: file_cardchain_cardchain_match_proto_enumTypes, - MessageInfos: file_cardchain_cardchain_match_proto_msgTypes, - }.Build() - File_cardchain_cardchain_match_proto = out.File - file_cardchain_cardchain_match_proto_rawDesc = nil - file_cardchain_cardchain_match_proto_goTypes = nil - file_cardchain_cardchain_match_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/module/module.pulsar.go b/api/cardchain/cardchain/module/module.pulsar.go deleted file mode 100644 index 2b190f83..00000000 --- a/api/cardchain/cardchain/module/module.pulsar.go +++ /dev/null @@ -1,582 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package module - -import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor - fd_Module_authority protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_module_module_proto_init() - md_Module = File_cardchain_cardchain_module_module_proto.Messages().ByName("Module") - fd_Module_authority = md_Module.Fields().ByName("authority") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_module_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// 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_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(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_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_Module_authority, 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_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.module.Module.authority": - return x.Authority != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.module.Module")) - } - panic(fmt.Errorf("message cardchain.cardchain.module.Module 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_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.module.Module.authority": - x.Authority = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.module.Module")) - } - panic(fmt.Errorf("message cardchain.cardchain.module.Module 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_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.module.Module.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.module.Module")) - } - panic(fmt.Errorf("message cardchain.cardchain.module.Module 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_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.module.Module.authority": - x.Authority = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.module.Module")) - } - panic(fmt.Errorf("message cardchain.cardchain.module.Module 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_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.module.Module.authority": - panic(fmt.Errorf("field authority of message cardchain.cardchain.module.Module is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.module.Module")) - } - panic(fmt.Errorf("message cardchain.cardchain.module.Module 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_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.module.Module.authority": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.module.Module")) - } - panic(fmt.Errorf("message cardchain.cardchain.module.Module 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_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.module.Module", 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_Module) 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_Module) 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_Module) 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_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.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().(*Module) - 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.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - 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: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/module/module.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Module is the config object for the module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority defines the custom module authority. If not set, defaults to the governance module. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_module_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_module_module_proto_rawDescGZIP(), []int{0} -} - -func (x *Module) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -var File_cardchain_cardchain_module_module_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_module_module_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, - 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x62, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, - 0x3a, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x34, 0x0a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, - 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x78, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0xfe, 0x01, 0x0a, 0x1e, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, - 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x4d, 0xaa, 0x02, 0x1a, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x1a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x26, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_module_module_proto_rawDescOnce sync.Once - file_cardchain_cardchain_module_module_proto_rawDescData = file_cardchain_cardchain_module_module_proto_rawDesc -) - -func file_cardchain_cardchain_module_module_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_module_module_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_module_module_proto_rawDescData) - }) - return file_cardchain_cardchain_module_module_proto_rawDescData -} - -var file_cardchain_cardchain_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_module_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: cardchain.cardchain.module.Module -} -var file_cardchain_cardchain_module_module_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_module_module_proto_init() } -func file_cardchain_cardchain_module_module_proto_init() { - if File_cardchain_cardchain_module_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_module_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_module_module_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_module_module_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_module_module_proto_msgTypes, - }.Build() - File_cardchain_cardchain_module_module_proto = out.File - file_cardchain_cardchain_module_module_proto_rawDesc = nil - file_cardchain_cardchain_module_module_proto_goTypes = nil - file_cardchain_cardchain_module_module_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/num.pulsar.go b/api/cardchain/cardchain/num.pulsar.go deleted file mode 100644 index d43dae35..00000000 --- a/api/cardchain/cardchain/num.pulsar.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -var ( - md_Num protoreflect.MessageDescriptor - fd_Num_num protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_num_proto_init() - md_Num = File_cardchain_cardchain_num_proto.Messages().ByName("Num") - fd_Num_num = md_Num.Fields().ByName("num") -} - -var _ protoreflect.Message = (*fastReflection_Num)(nil) - -type fastReflection_Num Num - -func (x *Num) ProtoReflect() protoreflect.Message { - return (*fastReflection_Num)(x) -} - -func (x *Num) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_num_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Num_messageType fastReflection_Num_messageType -var _ protoreflect.MessageType = fastReflection_Num_messageType{} - -type fastReflection_Num_messageType struct{} - -func (x fastReflection_Num_messageType) Zero() protoreflect.Message { - return (*fastReflection_Num)(nil) -} -func (x fastReflection_Num_messageType) New() protoreflect.Message { - return new(fastReflection_Num) -} -func (x fastReflection_Num_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Num -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Num) Descriptor() protoreflect.MessageDescriptor { - return md_Num -} - -// 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_Num) Type() protoreflect.MessageType { - return _fastReflection_Num_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Num) New() protoreflect.Message { - return new(fastReflection_Num) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Num) Interface() protoreflect.ProtoMessage { - return (*Num)(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_Num) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Num != uint64(0) { - value := protoreflect.ValueOfUint64(x.Num) - if !f(fd_Num_num, 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_Num) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Num.num": - return x.Num != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Num")) - } - panic(fmt.Errorf("message cardchain.cardchain.Num 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_Num) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Num.num": - x.Num = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Num")) - } - panic(fmt.Errorf("message cardchain.cardchain.Num 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_Num) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Num.num": - value := x.Num - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Num")) - } - panic(fmt.Errorf("message cardchain.cardchain.Num 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_Num) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Num.num": - x.Num = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Num")) - } - panic(fmt.Errorf("message cardchain.cardchain.Num 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_Num) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Num.num": - panic(fmt.Errorf("field num of message cardchain.cardchain.Num is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Num")) - } - panic(fmt.Errorf("message cardchain.cardchain.Num 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_Num) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Num.num": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Num")) - } - panic(fmt.Errorf("message cardchain.cardchain.Num 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_Num) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Num", 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_Num) 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_Num) 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_Num) 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_Num) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Num) - 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.Num != 0 { - n += 1 + runtime.Sov(uint64(x.Num)) - } - 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().(*Num) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Num != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Num)) - i-- - dAtA[i] = 0x8 - } - 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().(*Num) - 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: Num: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Num: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Num", wireType) - } - x.Num = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Num |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/num.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Num struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Num uint64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` -} - -func (x *Num) Reset() { - *x = Num{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_num_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Num) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Num) ProtoMessage() {} - -// Deprecated: Use Num.ProtoReflect.Descriptor instead. -func (*Num) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_num_proto_rawDescGZIP(), []int{0} -} - -func (x *Num) GetNum() uint64 { - if x != nil { - return x.Num - } - return 0 -} - -var File_cardchain_cardchain_num_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_num_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x22, 0x17, 0x0a, 0x03, 0x4e, 0x75, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6e, - 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x42, 0xd0, 0x01, - 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x08, 0x4e, 0x75, 0x6d, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, - 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_num_proto_rawDescOnce sync.Once - file_cardchain_cardchain_num_proto_rawDescData = file_cardchain_cardchain_num_proto_rawDesc -) - -func file_cardchain_cardchain_num_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_num_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_num_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_num_proto_rawDescData) - }) - return file_cardchain_cardchain_num_proto_rawDescData -} - -var file_cardchain_cardchain_num_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_num_proto_goTypes = []interface{}{ - (*Num)(nil), // 0: cardchain.cardchain.Num -} -var file_cardchain_cardchain_num_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_num_proto_init() } -func file_cardchain_cardchain_num_proto_init() { - if File_cardchain_cardchain_num_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_num_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Num); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_num_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_num_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_num_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_num_proto_msgTypes, - }.Build() - File_cardchain_cardchain_num_proto = out.File - file_cardchain_cardchain_num_proto_rawDesc = nil - file_cardchain_cardchain_num_proto_goTypes = nil - file_cardchain_cardchain_num_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/params.pulsar.go b/api/cardchain/cardchain/params.pulsar.go deleted file mode 100644 index 11ddc437..00000000 --- a/api/cardchain/cardchain/params.pulsar.go +++ /dev/null @@ -1,2153 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - _ "cosmossdk.io/api/amino" - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Params protoreflect.MessageDescriptor - fd_Params_votingRightsExpirationTime protoreflect.FieldDescriptor - fd_Params_setSize protoreflect.FieldDescriptor - fd_Params_setPrice protoreflect.FieldDescriptor - fd_Params_activeSetsAmount protoreflect.FieldDescriptor - fd_Params_setCreationFee protoreflect.FieldDescriptor - fd_Params_collateralDeposit protoreflect.FieldDescriptor - fd_Params_winnerReward protoreflect.FieldDescriptor - fd_Params_hourlyFaucet protoreflect.FieldDescriptor - fd_Params_inflationRate protoreflect.FieldDescriptor - fd_Params_raresPerPack protoreflect.FieldDescriptor - fd_Params_commonsPerPack protoreflect.FieldDescriptor - fd_Params_unCommonsPerPack protoreflect.FieldDescriptor - fd_Params_trialPeriod protoreflect.FieldDescriptor - fd_Params_gameVoteRatio protoreflect.FieldDescriptor - fd_Params_cardAuctionPriceReductionPeriod protoreflect.FieldDescriptor - fd_Params_airDropValue protoreflect.FieldDescriptor - fd_Params_airDropMaxBlockHeight protoreflect.FieldDescriptor - fd_Params_trialVoteReward protoreflect.FieldDescriptor - fd_Params_votePoolFraction protoreflect.FieldDescriptor - fd_Params_votingRewardCap protoreflect.FieldDescriptor - fd_Params_matchWorkerDelay protoreflect.FieldDescriptor - fd_Params_rareDropRatio protoreflect.FieldDescriptor - fd_Params_exceptionalDropRatio protoreflect.FieldDescriptor - fd_Params_uniqueDropRatio protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_params_proto_init() - md_Params = File_cardchain_cardchain_params_proto.Messages().ByName("Params") - fd_Params_votingRightsExpirationTime = md_Params.Fields().ByName("votingRightsExpirationTime") - fd_Params_setSize = md_Params.Fields().ByName("setSize") - fd_Params_setPrice = md_Params.Fields().ByName("setPrice") - fd_Params_activeSetsAmount = md_Params.Fields().ByName("activeSetsAmount") - fd_Params_setCreationFee = md_Params.Fields().ByName("setCreationFee") - fd_Params_collateralDeposit = md_Params.Fields().ByName("collateralDeposit") - fd_Params_winnerReward = md_Params.Fields().ByName("winnerReward") - fd_Params_hourlyFaucet = md_Params.Fields().ByName("hourlyFaucet") - fd_Params_inflationRate = md_Params.Fields().ByName("inflationRate") - fd_Params_raresPerPack = md_Params.Fields().ByName("raresPerPack") - fd_Params_commonsPerPack = md_Params.Fields().ByName("commonsPerPack") - fd_Params_unCommonsPerPack = md_Params.Fields().ByName("unCommonsPerPack") - fd_Params_trialPeriod = md_Params.Fields().ByName("trialPeriod") - fd_Params_gameVoteRatio = md_Params.Fields().ByName("gameVoteRatio") - fd_Params_cardAuctionPriceReductionPeriod = md_Params.Fields().ByName("cardAuctionPriceReductionPeriod") - fd_Params_airDropValue = md_Params.Fields().ByName("airDropValue") - fd_Params_airDropMaxBlockHeight = md_Params.Fields().ByName("airDropMaxBlockHeight") - fd_Params_trialVoteReward = md_Params.Fields().ByName("trialVoteReward") - fd_Params_votePoolFraction = md_Params.Fields().ByName("votePoolFraction") - fd_Params_votingRewardCap = md_Params.Fields().ByName("votingRewardCap") - fd_Params_matchWorkerDelay = md_Params.Fields().ByName("matchWorkerDelay") - fd_Params_rareDropRatio = md_Params.Fields().ByName("rareDropRatio") - fd_Params_exceptionalDropRatio = md_Params.Fields().ByName("exceptionalDropRatio") - fd_Params_uniqueDropRatio = md_Params.Fields().ByName("uniqueDropRatio") -} - -var _ protoreflect.Message = (*fastReflection_Params)(nil) - -type fastReflection_Params Params - -func (x *Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_Params)(x) -} - -func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_params_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Params_messageType fastReflection_Params_messageType -var _ protoreflect.MessageType = fastReflection_Params_messageType{} - -type fastReflection_Params_messageType struct{} - -func (x fastReflection_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_Params)(nil) -} -func (x fastReflection_Params_messageType) New() protoreflect.Message { - return new(fastReflection_Params) -} -func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// 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_Params) Type() protoreflect.MessageType { - return _fastReflection_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Params) New() protoreflect.Message { - return new(fastReflection_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { - return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.VotingRightsExpirationTime != int64(0) { - value := protoreflect.ValueOfInt64(x.VotingRightsExpirationTime) - if !f(fd_Params_votingRightsExpirationTime, value) { - return - } - } - if x.SetSize != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetSize) - if !f(fd_Params_setSize, value) { - return - } - } - if x.SetPrice != nil { - value := protoreflect.ValueOfMessage(x.SetPrice.ProtoReflect()) - if !f(fd_Params_setPrice, value) { - return - } - } - if x.ActiveSetsAmount != uint64(0) { - value := protoreflect.ValueOfUint64(x.ActiveSetsAmount) - if !f(fd_Params_activeSetsAmount, value) { - return - } - } - if x.SetCreationFee != nil { - value := protoreflect.ValueOfMessage(x.SetCreationFee.ProtoReflect()) - if !f(fd_Params_setCreationFee, value) { - return - } - } - if x.CollateralDeposit != nil { - value := protoreflect.ValueOfMessage(x.CollateralDeposit.ProtoReflect()) - if !f(fd_Params_collateralDeposit, value) { - return - } - } - if x.WinnerReward != int64(0) { - value := protoreflect.ValueOfInt64(x.WinnerReward) - if !f(fd_Params_winnerReward, value) { - return - } - } - if x.HourlyFaucet != nil { - value := protoreflect.ValueOfMessage(x.HourlyFaucet.ProtoReflect()) - if !f(fd_Params_hourlyFaucet, value) { - return - } - } - if x.InflationRate != "" { - value := protoreflect.ValueOfString(x.InflationRate) - if !f(fd_Params_inflationRate, value) { - return - } - } - if x.RaresPerPack != uint64(0) { - value := protoreflect.ValueOfUint64(x.RaresPerPack) - if !f(fd_Params_raresPerPack, value) { - return - } - } - if x.CommonsPerPack != uint64(0) { - value := protoreflect.ValueOfUint64(x.CommonsPerPack) - if !f(fd_Params_commonsPerPack, value) { - return - } - } - if x.UnCommonsPerPack != uint64(0) { - value := protoreflect.ValueOfUint64(x.UnCommonsPerPack) - if !f(fd_Params_unCommonsPerPack, value) { - return - } - } - if x.TrialPeriod != uint64(0) { - value := protoreflect.ValueOfUint64(x.TrialPeriod) - if !f(fd_Params_trialPeriod, value) { - return - } - } - if x.GameVoteRatio != int64(0) { - value := protoreflect.ValueOfInt64(x.GameVoteRatio) - if !f(fd_Params_gameVoteRatio, value) { - return - } - } - if x.CardAuctionPriceReductionPeriod != int64(0) { - value := protoreflect.ValueOfInt64(x.CardAuctionPriceReductionPeriod) - if !f(fd_Params_cardAuctionPriceReductionPeriod, value) { - return - } - } - if x.AirDropValue != nil { - value := protoreflect.ValueOfMessage(x.AirDropValue.ProtoReflect()) - if !f(fd_Params_airDropValue, value) { - return - } - } - if x.AirDropMaxBlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.AirDropMaxBlockHeight) - if !f(fd_Params_airDropMaxBlockHeight, value) { - return - } - } - if x.TrialVoteReward != nil { - value := protoreflect.ValueOfMessage(x.TrialVoteReward.ProtoReflect()) - if !f(fd_Params_trialVoteReward, value) { - return - } - } - if x.VotePoolFraction != int64(0) { - value := protoreflect.ValueOfInt64(x.VotePoolFraction) - if !f(fd_Params_votePoolFraction, value) { - return - } - } - if x.VotingRewardCap != int64(0) { - value := protoreflect.ValueOfInt64(x.VotingRewardCap) - if !f(fd_Params_votingRewardCap, value) { - return - } - } - if x.MatchWorkerDelay != uint64(0) { - value := protoreflect.ValueOfUint64(x.MatchWorkerDelay) - if !f(fd_Params_matchWorkerDelay, value) { - return - } - } - if x.RareDropRatio != uint64(0) { - value := protoreflect.ValueOfUint64(x.RareDropRatio) - if !f(fd_Params_rareDropRatio, value) { - return - } - } - if x.ExceptionalDropRatio != uint64(0) { - value := protoreflect.ValueOfUint64(x.ExceptionalDropRatio) - if !f(fd_Params_exceptionalDropRatio, value) { - return - } - } - if x.UniqueDropRatio != uint64(0) { - value := protoreflect.ValueOfUint64(x.UniqueDropRatio) - if !f(fd_Params_uniqueDropRatio, 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_Params) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Params.votingRightsExpirationTime": - return x.VotingRightsExpirationTime != int64(0) - case "cardchain.cardchain.Params.setSize": - return x.SetSize != uint64(0) - case "cardchain.cardchain.Params.setPrice": - return x.SetPrice != nil - case "cardchain.cardchain.Params.activeSetsAmount": - return x.ActiveSetsAmount != uint64(0) - case "cardchain.cardchain.Params.setCreationFee": - return x.SetCreationFee != nil - case "cardchain.cardchain.Params.collateralDeposit": - return x.CollateralDeposit != nil - case "cardchain.cardchain.Params.winnerReward": - return x.WinnerReward != int64(0) - case "cardchain.cardchain.Params.hourlyFaucet": - return x.HourlyFaucet != nil - case "cardchain.cardchain.Params.inflationRate": - return x.InflationRate != "" - case "cardchain.cardchain.Params.raresPerPack": - return x.RaresPerPack != uint64(0) - case "cardchain.cardchain.Params.commonsPerPack": - return x.CommonsPerPack != uint64(0) - case "cardchain.cardchain.Params.unCommonsPerPack": - return x.UnCommonsPerPack != uint64(0) - case "cardchain.cardchain.Params.trialPeriod": - return x.TrialPeriod != uint64(0) - case "cardchain.cardchain.Params.gameVoteRatio": - return x.GameVoteRatio != int64(0) - case "cardchain.cardchain.Params.cardAuctionPriceReductionPeriod": - return x.CardAuctionPriceReductionPeriod != int64(0) - case "cardchain.cardchain.Params.airDropValue": - return x.AirDropValue != nil - case "cardchain.cardchain.Params.airDropMaxBlockHeight": - return x.AirDropMaxBlockHeight != int64(0) - case "cardchain.cardchain.Params.trialVoteReward": - return x.TrialVoteReward != nil - case "cardchain.cardchain.Params.votePoolFraction": - return x.VotePoolFraction != int64(0) - case "cardchain.cardchain.Params.votingRewardCap": - return x.VotingRewardCap != int64(0) - case "cardchain.cardchain.Params.matchWorkerDelay": - return x.MatchWorkerDelay != uint64(0) - case "cardchain.cardchain.Params.rareDropRatio": - return x.RareDropRatio != uint64(0) - case "cardchain.cardchain.Params.exceptionalDropRatio": - return x.ExceptionalDropRatio != uint64(0) - case "cardchain.cardchain.Params.uniqueDropRatio": - return x.UniqueDropRatio != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Params")) - } - panic(fmt.Errorf("message cardchain.cardchain.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Params.votingRightsExpirationTime": - x.VotingRightsExpirationTime = int64(0) - case "cardchain.cardchain.Params.setSize": - x.SetSize = uint64(0) - case "cardchain.cardchain.Params.setPrice": - x.SetPrice = nil - case "cardchain.cardchain.Params.activeSetsAmount": - x.ActiveSetsAmount = uint64(0) - case "cardchain.cardchain.Params.setCreationFee": - x.SetCreationFee = nil - case "cardchain.cardchain.Params.collateralDeposit": - x.CollateralDeposit = nil - case "cardchain.cardchain.Params.winnerReward": - x.WinnerReward = int64(0) - case "cardchain.cardchain.Params.hourlyFaucet": - x.HourlyFaucet = nil - case "cardchain.cardchain.Params.inflationRate": - x.InflationRate = "" - case "cardchain.cardchain.Params.raresPerPack": - x.RaresPerPack = uint64(0) - case "cardchain.cardchain.Params.commonsPerPack": - x.CommonsPerPack = uint64(0) - case "cardchain.cardchain.Params.unCommonsPerPack": - x.UnCommonsPerPack = uint64(0) - case "cardchain.cardchain.Params.trialPeriod": - x.TrialPeriod = uint64(0) - case "cardchain.cardchain.Params.gameVoteRatio": - x.GameVoteRatio = int64(0) - case "cardchain.cardchain.Params.cardAuctionPriceReductionPeriod": - x.CardAuctionPriceReductionPeriod = int64(0) - case "cardchain.cardchain.Params.airDropValue": - x.AirDropValue = nil - case "cardchain.cardchain.Params.airDropMaxBlockHeight": - x.AirDropMaxBlockHeight = int64(0) - case "cardchain.cardchain.Params.trialVoteReward": - x.TrialVoteReward = nil - case "cardchain.cardchain.Params.votePoolFraction": - x.VotePoolFraction = int64(0) - case "cardchain.cardchain.Params.votingRewardCap": - x.VotingRewardCap = int64(0) - case "cardchain.cardchain.Params.matchWorkerDelay": - x.MatchWorkerDelay = uint64(0) - case "cardchain.cardchain.Params.rareDropRatio": - x.RareDropRatio = uint64(0) - case "cardchain.cardchain.Params.exceptionalDropRatio": - x.ExceptionalDropRatio = uint64(0) - case "cardchain.cardchain.Params.uniqueDropRatio": - x.UniqueDropRatio = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Params")) - } - panic(fmt.Errorf("message cardchain.cardchain.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Params.votingRightsExpirationTime": - value := x.VotingRightsExpirationTime - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Params.setSize": - value := x.SetSize - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.setPrice": - value := x.SetPrice - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Params.activeSetsAmount": - value := x.ActiveSetsAmount - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.setCreationFee": - value := x.SetCreationFee - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Params.collateralDeposit": - value := x.CollateralDeposit - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Params.winnerReward": - value := x.WinnerReward - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Params.hourlyFaucet": - value := x.HourlyFaucet - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Params.inflationRate": - value := x.InflationRate - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Params.raresPerPack": - value := x.RaresPerPack - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.commonsPerPack": - value := x.CommonsPerPack - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.unCommonsPerPack": - value := x.UnCommonsPerPack - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.trialPeriod": - value := x.TrialPeriod - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.gameVoteRatio": - value := x.GameVoteRatio - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Params.cardAuctionPriceReductionPeriod": - value := x.CardAuctionPriceReductionPeriod - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Params.airDropValue": - value := x.AirDropValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Params.airDropMaxBlockHeight": - value := x.AirDropMaxBlockHeight - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Params.trialVoteReward": - value := x.TrialVoteReward - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.Params.votePoolFraction": - value := x.VotePoolFraction - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Params.votingRewardCap": - value := x.VotingRewardCap - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Params.matchWorkerDelay": - value := x.MatchWorkerDelay - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.rareDropRatio": - value := x.RareDropRatio - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.exceptionalDropRatio": - value := x.ExceptionalDropRatio - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Params.uniqueDropRatio": - value := x.UniqueDropRatio - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Params")) - } - panic(fmt.Errorf("message cardchain.cardchain.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Params.votingRightsExpirationTime": - x.VotingRightsExpirationTime = value.Int() - case "cardchain.cardchain.Params.setSize": - x.SetSize = value.Uint() - case "cardchain.cardchain.Params.setPrice": - x.SetPrice = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Params.activeSetsAmount": - x.ActiveSetsAmount = value.Uint() - case "cardchain.cardchain.Params.setCreationFee": - x.SetCreationFee = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Params.collateralDeposit": - x.CollateralDeposit = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Params.winnerReward": - x.WinnerReward = value.Int() - case "cardchain.cardchain.Params.hourlyFaucet": - x.HourlyFaucet = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Params.inflationRate": - x.InflationRate = value.Interface().(string) - case "cardchain.cardchain.Params.raresPerPack": - x.RaresPerPack = value.Uint() - case "cardchain.cardchain.Params.commonsPerPack": - x.CommonsPerPack = value.Uint() - case "cardchain.cardchain.Params.unCommonsPerPack": - x.UnCommonsPerPack = value.Uint() - case "cardchain.cardchain.Params.trialPeriod": - x.TrialPeriod = value.Uint() - case "cardchain.cardchain.Params.gameVoteRatio": - x.GameVoteRatio = value.Int() - case "cardchain.cardchain.Params.cardAuctionPriceReductionPeriod": - x.CardAuctionPriceReductionPeriod = value.Int() - case "cardchain.cardchain.Params.airDropValue": - x.AirDropValue = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Params.airDropMaxBlockHeight": - x.AirDropMaxBlockHeight = value.Int() - case "cardchain.cardchain.Params.trialVoteReward": - x.TrialVoteReward = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.Params.votePoolFraction": - x.VotePoolFraction = value.Int() - case "cardchain.cardchain.Params.votingRewardCap": - x.VotingRewardCap = value.Int() - case "cardchain.cardchain.Params.matchWorkerDelay": - x.MatchWorkerDelay = value.Uint() - case "cardchain.cardchain.Params.rareDropRatio": - x.RareDropRatio = value.Uint() - case "cardchain.cardchain.Params.exceptionalDropRatio": - x.ExceptionalDropRatio = value.Uint() - case "cardchain.cardchain.Params.uniqueDropRatio": - x.UniqueDropRatio = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Params")) - } - panic(fmt.Errorf("message cardchain.cardchain.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Params.setPrice": - if x.SetPrice == nil { - x.SetPrice = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.SetPrice.ProtoReflect()) - case "cardchain.cardchain.Params.setCreationFee": - if x.SetCreationFee == nil { - x.SetCreationFee = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.SetCreationFee.ProtoReflect()) - case "cardchain.cardchain.Params.collateralDeposit": - if x.CollateralDeposit == nil { - x.CollateralDeposit = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.CollateralDeposit.ProtoReflect()) - case "cardchain.cardchain.Params.hourlyFaucet": - if x.HourlyFaucet == nil { - x.HourlyFaucet = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.HourlyFaucet.ProtoReflect()) - case "cardchain.cardchain.Params.airDropValue": - if x.AirDropValue == nil { - x.AirDropValue = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.AirDropValue.ProtoReflect()) - case "cardchain.cardchain.Params.trialVoteReward": - if x.TrialVoteReward == nil { - x.TrialVoteReward = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.TrialVoteReward.ProtoReflect()) - case "cardchain.cardchain.Params.votingRightsExpirationTime": - panic(fmt.Errorf("field votingRightsExpirationTime of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.setSize": - panic(fmt.Errorf("field setSize of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.activeSetsAmount": - panic(fmt.Errorf("field activeSetsAmount of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.winnerReward": - panic(fmt.Errorf("field winnerReward of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.inflationRate": - panic(fmt.Errorf("field inflationRate of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.raresPerPack": - panic(fmt.Errorf("field raresPerPack of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.commonsPerPack": - panic(fmt.Errorf("field commonsPerPack of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.unCommonsPerPack": - panic(fmt.Errorf("field unCommonsPerPack of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.trialPeriod": - panic(fmt.Errorf("field trialPeriod of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.gameVoteRatio": - panic(fmt.Errorf("field gameVoteRatio of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.cardAuctionPriceReductionPeriod": - panic(fmt.Errorf("field cardAuctionPriceReductionPeriod of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.airDropMaxBlockHeight": - panic(fmt.Errorf("field airDropMaxBlockHeight of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.votePoolFraction": - panic(fmt.Errorf("field votePoolFraction of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.votingRewardCap": - panic(fmt.Errorf("field votingRewardCap of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.matchWorkerDelay": - panic(fmt.Errorf("field matchWorkerDelay of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.rareDropRatio": - panic(fmt.Errorf("field rareDropRatio of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.exceptionalDropRatio": - panic(fmt.Errorf("field exceptionalDropRatio of message cardchain.cardchain.Params is not mutable")) - case "cardchain.cardchain.Params.uniqueDropRatio": - panic(fmt.Errorf("field uniqueDropRatio of message cardchain.cardchain.Params is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Params")) - } - panic(fmt.Errorf("message cardchain.cardchain.Params 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_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Params.votingRightsExpirationTime": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Params.setSize": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.setPrice": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Params.activeSetsAmount": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.setCreationFee": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Params.collateralDeposit": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Params.winnerReward": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Params.hourlyFaucet": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Params.inflationRate": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Params.raresPerPack": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.commonsPerPack": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.unCommonsPerPack": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.trialPeriod": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.gameVoteRatio": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Params.cardAuctionPriceReductionPeriod": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Params.airDropValue": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Params.airDropMaxBlockHeight": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Params.trialVoteReward": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.Params.votePoolFraction": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Params.votingRewardCap": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Params.matchWorkerDelay": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.rareDropRatio": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.exceptionalDropRatio": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Params.uniqueDropRatio": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Params")) - } - panic(fmt.Errorf("message cardchain.cardchain.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Params) - 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.VotingRightsExpirationTime != 0 { - n += 1 + runtime.Sov(uint64(x.VotingRightsExpirationTime)) - } - if x.SetSize != 0 { - n += 1 + runtime.Sov(uint64(x.SetSize)) - } - if x.SetPrice != nil { - l = options.Size(x.SetPrice) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ActiveSetsAmount != 0 { - n += 1 + runtime.Sov(uint64(x.ActiveSetsAmount)) - } - if x.SetCreationFee != nil { - l = options.Size(x.SetCreationFee) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CollateralDeposit != nil { - l = options.Size(x.CollateralDeposit) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.WinnerReward != 0 { - n += 1 + runtime.Sov(uint64(x.WinnerReward)) - } - if x.HourlyFaucet != nil { - l = options.Size(x.HourlyFaucet) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.InflationRate) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.RaresPerPack != 0 { - n += 1 + runtime.Sov(uint64(x.RaresPerPack)) - } - if x.CommonsPerPack != 0 { - n += 1 + runtime.Sov(uint64(x.CommonsPerPack)) - } - if x.UnCommonsPerPack != 0 { - n += 1 + runtime.Sov(uint64(x.UnCommonsPerPack)) - } - if x.TrialPeriod != 0 { - n += 1 + runtime.Sov(uint64(x.TrialPeriod)) - } - if x.GameVoteRatio != 0 { - n += 1 + runtime.Sov(uint64(x.GameVoteRatio)) - } - if x.CardAuctionPriceReductionPeriod != 0 { - n += 2 + runtime.Sov(uint64(x.CardAuctionPriceReductionPeriod)) - } - if x.AirDropValue != nil { - l = options.Size(x.AirDropValue) - n += 2 + l + runtime.Sov(uint64(l)) - } - if x.AirDropMaxBlockHeight != 0 { - n += 2 + runtime.Sov(uint64(x.AirDropMaxBlockHeight)) - } - if x.TrialVoteReward != nil { - l = options.Size(x.TrialVoteReward) - n += 2 + l + runtime.Sov(uint64(l)) - } - if x.VotePoolFraction != 0 { - n += 2 + runtime.Sov(uint64(x.VotePoolFraction)) - } - if x.VotingRewardCap != 0 { - n += 1 + runtime.Sov(uint64(x.VotingRewardCap)) - } - if x.MatchWorkerDelay != 0 { - n += 2 + runtime.Sov(uint64(x.MatchWorkerDelay)) - } - if x.RareDropRatio != 0 { - n += 2 + runtime.Sov(uint64(x.RareDropRatio)) - } - if x.ExceptionalDropRatio != 0 { - n += 2 + runtime.Sov(uint64(x.ExceptionalDropRatio)) - } - if x.UniqueDropRatio != 0 { - n += 2 + runtime.Sov(uint64(x.UniqueDropRatio)) - } - 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().(*Params) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.UniqueDropRatio != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.UniqueDropRatio)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc0 - } - if x.ExceptionalDropRatio != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ExceptionalDropRatio)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb8 - } - if x.RareDropRatio != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RareDropRatio)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb0 - } - if x.MatchWorkerDelay != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MatchWorkerDelay)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa8 - } - if x.VotePoolFraction != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.VotePoolFraction)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa0 - } - if x.TrialVoteReward != nil { - encoded, err := options.Marshal(x.TrialVoteReward) - 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] = 0x1 - i-- - dAtA[i] = 0x9a - } - if x.AirDropMaxBlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.AirDropMaxBlockHeight)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 - } - if x.AirDropValue != nil { - encoded, err := options.Marshal(x.AirDropValue) - 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] = 0x1 - i-- - dAtA[i] = 0x8a - } - if x.CardAuctionPriceReductionPeriod != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardAuctionPriceReductionPeriod)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if x.GameVoteRatio != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.GameVoteRatio)) - i-- - dAtA[i] = 0x78 - } - if x.TrialPeriod != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TrialPeriod)) - i-- - dAtA[i] = 0x70 - } - if x.UnCommonsPerPack != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.UnCommonsPerPack)) - i-- - dAtA[i] = 0x68 - } - if x.CommonsPerPack != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CommonsPerPack)) - i-- - dAtA[i] = 0x60 - } - if x.RaresPerPack != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.RaresPerPack)) - i-- - dAtA[i] = 0x58 - } - if len(x.InflationRate) > 0 { - i -= len(x.InflationRate) - copy(dAtA[i:], x.InflationRate) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InflationRate))) - i-- - dAtA[i] = 0x52 - } - if x.HourlyFaucet != nil { - encoded, err := options.Marshal(x.HourlyFaucet) - 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] = 0x4a - } - if x.VotingRewardCap != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.VotingRewardCap)) - i-- - dAtA[i] = 0x40 - } - if x.WinnerReward != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.WinnerReward)) - i-- - dAtA[i] = 0x38 - } - if x.CollateralDeposit != nil { - encoded, err := options.Marshal(x.CollateralDeposit) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if x.SetCreationFee != nil { - encoded, err := options.Marshal(x.SetCreationFee) - 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 x.ActiveSetsAmount != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ActiveSetsAmount)) - i-- - dAtA[i] = 0x20 - } - if x.SetPrice != nil { - encoded, err := options.Marshal(x.SetPrice) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.SetSize != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetSize)) - i-- - dAtA[i] = 0x10 - } - if x.VotingRightsExpirationTime != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.VotingRightsExpirationTime)) - i-- - dAtA[i] = 0x8 - } - 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().(*Params) - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotingRightsExpirationTime", wireType) - } - x.VotingRightsExpirationTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.VotingRightsExpirationTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetSize", wireType) - } - x.SetSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetPrice", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.SetPrice == nil { - x.SetPrice = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SetPrice); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveSetsAmount", wireType) - } - x.ActiveSetsAmount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ActiveSetsAmount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetCreationFee", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.SetCreationFee == nil { - x.SetCreationFee = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SetCreationFee); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CollateralDeposit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.CollateralDeposit == nil { - x.CollateralDeposit = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CollateralDeposit); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WinnerReward", wireType) - } - x.WinnerReward = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.WinnerReward |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HourlyFaucet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.HourlyFaucet == nil { - x.HourlyFaucet = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.HourlyFaucet); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InflationRate", 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.InflationRate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RaresPerPack", wireType) - } - x.RaresPerPack = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.RaresPerPack |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CommonsPerPack", wireType) - } - x.CommonsPerPack = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CommonsPerPack |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnCommonsPerPack", wireType) - } - x.UnCommonsPerPack = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.UnCommonsPerPack |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrialPeriod", wireType) - } - x.TrialPeriod = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TrialPeriod |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GameVoteRatio", wireType) - } - x.GameVoteRatio = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.GameVoteRatio |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardAuctionPriceReductionPeriod", wireType) - } - x.CardAuctionPriceReductionPeriod = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardAuctionPriceReductionPeriod |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirDropValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.AirDropValue == nil { - x.AirDropValue = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AirDropValue); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 18: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirDropMaxBlockHeight", wireType) - } - x.AirDropMaxBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.AirDropMaxBlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 19: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrialVoteReward", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.TrialVoteReward == nil { - x.TrialVoteReward = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TrialVoteReward); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 20: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotePoolFraction", wireType) - } - x.VotePoolFraction = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.VotePoolFraction |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotingRewardCap", wireType) - } - x.VotingRewardCap = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.VotingRewardCap |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 21: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MatchWorkerDelay", wireType) - } - x.MatchWorkerDelay = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.MatchWorkerDelay |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 22: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RareDropRatio", wireType) - } - x.RareDropRatio = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.RareDropRatio |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 23: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExceptionalDropRatio", wireType) - } - x.ExceptionalDropRatio = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ExceptionalDropRatio |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 24: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UniqueDropRatio", wireType) - } - x.UniqueDropRatio = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.UniqueDropRatio |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/params.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Params defines the parameters for the module. -type Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - VotingRightsExpirationTime int64 `protobuf:"varint,1,opt,name=votingRightsExpirationTime,proto3" json:"votingRightsExpirationTime,omitempty"` - SetSize uint64 `protobuf:"varint,2,opt,name=setSize,proto3" json:"setSize,omitempty"` - SetPrice *v1beta1.Coin `protobuf:"bytes,3,opt,name=setPrice,proto3" json:"setPrice,omitempty"` - ActiveSetsAmount uint64 `protobuf:"varint,4,opt,name=activeSetsAmount,proto3" json:"activeSetsAmount,omitempty"` - SetCreationFee *v1beta1.Coin `protobuf:"bytes,5,opt,name=setCreationFee,proto3" json:"setCreationFee,omitempty"` - CollateralDeposit *v1beta1.Coin `protobuf:"bytes,6,opt,name=collateralDeposit,proto3" json:"collateralDeposit,omitempty"` - WinnerReward int64 `protobuf:"varint,7,opt,name=winnerReward,proto3" json:"winnerReward,omitempty"` - HourlyFaucet *v1beta1.Coin `protobuf:"bytes,9,opt,name=hourlyFaucet,proto3" json:"hourlyFaucet,omitempty"` - InflationRate string `protobuf:"bytes,10,opt,name=inflationRate,proto3" json:"inflationRate,omitempty"` - RaresPerPack uint64 `protobuf:"varint,11,opt,name=raresPerPack,proto3" json:"raresPerPack,omitempty"` - CommonsPerPack uint64 `protobuf:"varint,12,opt,name=commonsPerPack,proto3" json:"commonsPerPack,omitempty"` - UnCommonsPerPack uint64 `protobuf:"varint,13,opt,name=unCommonsPerPack,proto3" json:"unCommonsPerPack,omitempty"` - TrialPeriod uint64 `protobuf:"varint,14,opt,name=trialPeriod,proto3" json:"trialPeriod,omitempty"` - GameVoteRatio int64 `protobuf:"varint,15,opt,name=gameVoteRatio,proto3" json:"gameVoteRatio,omitempty"` - CardAuctionPriceReductionPeriod int64 `protobuf:"varint,16,opt,name=cardAuctionPriceReductionPeriod,proto3" json:"cardAuctionPriceReductionPeriod,omitempty"` - AirDropValue *v1beta1.Coin `protobuf:"bytes,17,opt,name=airDropValue,proto3" json:"airDropValue,omitempty"` - AirDropMaxBlockHeight int64 `protobuf:"varint,18,opt,name=airDropMaxBlockHeight,proto3" json:"airDropMaxBlockHeight,omitempty"` - TrialVoteReward *v1beta1.Coin `protobuf:"bytes,19,opt,name=trialVoteReward,proto3" json:"trialVoteReward,omitempty"` - VotePoolFraction int64 `protobuf:"varint,20,opt,name=votePoolFraction,proto3" json:"votePoolFraction,omitempty"` - VotingRewardCap int64 `protobuf:"varint,8,opt,name=votingRewardCap,proto3" json:"votingRewardCap,omitempty"` - MatchWorkerDelay uint64 `protobuf:"varint,21,opt,name=matchWorkerDelay,proto3" json:"matchWorkerDelay,omitempty"` - RareDropRatio uint64 `protobuf:"varint,22,opt,name=rareDropRatio,proto3" json:"rareDropRatio,omitempty"` - ExceptionalDropRatio uint64 `protobuf:"varint,23,opt,name=exceptionalDropRatio,proto3" json:"exceptionalDropRatio,omitempty"` - UniqueDropRatio uint64 `protobuf:"varint,24,opt,name=uniqueDropRatio,proto3" json:"uniqueDropRatio,omitempty"` -} - -func (x *Params) Reset() { - *x = Params{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_params_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Params) ProtoMessage() {} - -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_params_proto_rawDescGZIP(), []int{0} -} - -func (x *Params) GetVotingRightsExpirationTime() int64 { - if x != nil { - return x.VotingRightsExpirationTime - } - return 0 -} - -func (x *Params) GetSetSize() uint64 { - if x != nil { - return x.SetSize - } - return 0 -} - -func (x *Params) GetSetPrice() *v1beta1.Coin { - if x != nil { - return x.SetPrice - } - return nil -} - -func (x *Params) GetActiveSetsAmount() uint64 { - if x != nil { - return x.ActiveSetsAmount - } - return 0 -} - -func (x *Params) GetSetCreationFee() *v1beta1.Coin { - if x != nil { - return x.SetCreationFee - } - return nil -} - -func (x *Params) GetCollateralDeposit() *v1beta1.Coin { - if x != nil { - return x.CollateralDeposit - } - return nil -} - -func (x *Params) GetWinnerReward() int64 { - if x != nil { - return x.WinnerReward - } - return 0 -} - -func (x *Params) GetHourlyFaucet() *v1beta1.Coin { - if x != nil { - return x.HourlyFaucet - } - return nil -} - -func (x *Params) GetInflationRate() string { - if x != nil { - return x.InflationRate - } - return "" -} - -func (x *Params) GetRaresPerPack() uint64 { - if x != nil { - return x.RaresPerPack - } - return 0 -} - -func (x *Params) GetCommonsPerPack() uint64 { - if x != nil { - return x.CommonsPerPack - } - return 0 -} - -func (x *Params) GetUnCommonsPerPack() uint64 { - if x != nil { - return x.UnCommonsPerPack - } - return 0 -} - -func (x *Params) GetTrialPeriod() uint64 { - if x != nil { - return x.TrialPeriod - } - return 0 -} - -func (x *Params) GetGameVoteRatio() int64 { - if x != nil { - return x.GameVoteRatio - } - return 0 -} - -func (x *Params) GetCardAuctionPriceReductionPeriod() int64 { - if x != nil { - return x.CardAuctionPriceReductionPeriod - } - return 0 -} - -func (x *Params) GetAirDropValue() *v1beta1.Coin { - if x != nil { - return x.AirDropValue - } - return nil -} - -func (x *Params) GetAirDropMaxBlockHeight() int64 { - if x != nil { - return x.AirDropMaxBlockHeight - } - return 0 -} - -func (x *Params) GetTrialVoteReward() *v1beta1.Coin { - if x != nil { - return x.TrialVoteReward - } - return nil -} - -func (x *Params) GetVotePoolFraction() int64 { - if x != nil { - return x.VotePoolFraction - } - return 0 -} - -func (x *Params) GetVotingRewardCap() int64 { - if x != nil { - return x.VotingRewardCap - } - return 0 -} - -func (x *Params) GetMatchWorkerDelay() uint64 { - if x != nil { - return x.MatchWorkerDelay - } - return 0 -} - -func (x *Params) GetRareDropRatio() uint64 { - if x != nil { - return x.RareDropRatio - } - return 0 -} - -func (x *Params) GetExceptionalDropRatio() uint64 { - if x != nil { - return x.ExceptionalDropRatio - } - return 0 -} - -func (x *Params) GetUniqueDropRatio() uint64 { - if x != nil { - return x.UniqueDropRatio - } - return 0 -} - -var File_cardchain_cardchain_params_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_params_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, - 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xef, 0x09, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3e, 0x0a, 0x1a, 0x76, - 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x69, 0x67, 0x68, 0x74, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x1a, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x69, 0x67, 0x68, 0x74, 0x73, 0x45, 0x78, 0x70, - 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x65, - 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x50, 0x72, 0x69, - 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x73, - 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x73, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x47, - 0x0a, 0x0e, 0x73, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x73, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x4d, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x61, - 0x74, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x44, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x69, 0x6e, 0x6e, 0x65, 0x72, - 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x77, 0x69, - 0x6e, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x43, 0x0a, 0x0c, 0x68, 0x6f, - 0x75, 0x72, 0x6c, 0x79, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x0c, 0x68, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x12, - 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x66, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x66, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x61, 0x72, 0x65, 0x73, 0x50, 0x65, - 0x72, 0x50, 0x61, 0x63, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x61, 0x72, - 0x65, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x63, - 0x6b, 0x12, 0x2a, 0x0a, 0x10, 0x75, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x73, 0x50, 0x65, - 0x72, 0x50, 0x61, 0x63, 0x6b, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x75, 0x6e, 0x43, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x12, 0x20, 0x0a, - 0x0b, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x0e, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, - 0x24, 0x0a, 0x0d, 0x67, 0x61, 0x6d, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x67, 0x61, 0x6d, 0x65, 0x56, 0x6f, 0x74, 0x65, - 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x48, 0x0a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x41, 0x75, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1f, - 0x63, 0x61, 0x72, 0x64, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x52, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, - 0x43, 0x0a, 0x0c, 0x61, 0x69, 0x72, 0x44, 0x72, 0x6f, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x69, 0x72, 0x44, 0x72, 0x6f, 0x70, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x69, 0x72, 0x44, 0x72, 0x6f, 0x70, 0x4d, - 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x12, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x15, 0x61, 0x69, 0x72, 0x44, 0x72, 0x6f, 0x70, 0x4d, 0x61, 0x78, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x49, 0x0a, 0x0f, 0x74, 0x72, - 0x69, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x13, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, - 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x76, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x6f, - 0x6c, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x10, 0x76, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x43, 0x61, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x76, 0x6f, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x43, 0x61, 0x70, 0x12, 0x2a, 0x0a, 0x10, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x18, - 0x15, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x61, 0x72, 0x65, 0x44, - 0x72, 0x6f, 0x70, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x16, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, - 0x72, 0x61, 0x72, 0x65, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x32, 0x0a, - 0x14, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x44, 0x72, 0x6f, 0x70, - 0x52, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x17, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x65, 0x78, 0x63, - 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x61, 0x74, 0x69, - 0x6f, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x44, 0x72, 0x6f, 0x70, 0x52, - 0x61, 0x74, 0x69, 0x6f, 0x18, 0x18, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x75, 0x6e, 0x69, 0x71, - 0x75, 0x65, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x3a, 0x25, 0xe8, 0xa0, 0x1f, - 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x1c, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x78, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x42, 0xd3, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0b, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, - 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, - 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, - 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_params_proto_rawDescOnce sync.Once - file_cardchain_cardchain_params_proto_rawDescData = file_cardchain_cardchain_params_proto_rawDesc -) - -func file_cardchain_cardchain_params_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_params_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_params_proto_rawDescData) - }) - return file_cardchain_cardchain_params_proto_rawDescData -} - -var file_cardchain_cardchain_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: cardchain.cardchain.Params - (*v1beta1.Coin)(nil), // 1: cosmos.base.v1beta1.Coin -} -var file_cardchain_cardchain_params_proto_depIdxs = []int32{ - 1, // 0: cardchain.cardchain.Params.setPrice:type_name -> cosmos.base.v1beta1.Coin - 1, // 1: cardchain.cardchain.Params.setCreationFee:type_name -> cosmos.base.v1beta1.Coin - 1, // 2: cardchain.cardchain.Params.collateralDeposit:type_name -> cosmos.base.v1beta1.Coin - 1, // 3: cardchain.cardchain.Params.hourlyFaucet:type_name -> cosmos.base.v1beta1.Coin - 1, // 4: cardchain.cardchain.Params.airDropValue:type_name -> cosmos.base.v1beta1.Coin - 1, // 5: cardchain.cardchain.Params.trialVoteReward:type_name -> cosmos.base.v1beta1.Coin - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_params_proto_init() } -func file_cardchain_cardchain_params_proto_init() { - if File_cardchain_cardchain_params_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_params_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_params_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_params_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_params_proto_msgTypes, - }.Build() - File_cardchain_cardchain_params_proto = out.File - file_cardchain_cardchain_params_proto_rawDesc = nil - file_cardchain_cardchain_params_proto_goTypes = nil - file_cardchain_cardchain_params_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/query.pulsar.go b/api/cardchain/cardchain/query.pulsar.go deleted file mode 100644 index 07407748..00000000 --- a/api/cardchain/cardchain/query.pulsar.go +++ /dev/null @@ -1,25311 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/base/query/v1beta1" - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryParamsRequest protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryParamsRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryParamsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) - -type fastReflection_QueryParamsRequest QueryParamsRequest - -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) -} - -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} - -type fastReflection_QueryParamsRequest_messageType struct{} - -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) -} -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// 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_QueryParamsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) - 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().(*QueryParamsRequest) - 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().(*QueryParamsRequest) - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryParamsResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) - -type fastReflection_QueryParamsResponse QueryParamsResponse - -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) -} - -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} - -type fastReflection_QueryParamsResponse_messageType struct{} - -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) -} -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// 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_QueryParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(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_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_QueryParamsResponse_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryParamsResponse.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryParamsResponse.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryParamsResponse.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryParamsResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) - 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.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 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().(*QueryParamsResponse) - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: 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 Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryCardRequest protoreflect.MessageDescriptor - fd_QueryCardRequest_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardRequest") - fd_QueryCardRequest_cardId = md_QueryCardRequest.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardRequest)(nil) - -type fastReflection_QueryCardRequest QueryCardRequest - -func (x *QueryCardRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardRequest)(x) -} - -func (x *QueryCardRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryCardRequest_messageType fastReflection_QueryCardRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardRequest_messageType{} - -type fastReflection_QueryCardRequest_messageType struct{} - -func (x fastReflection_QueryCardRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardRequest)(nil) -} -func (x fastReflection_QueryCardRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardRequest) -} -func (x fastReflection_QueryCardRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardRequest -} - -// 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_QueryCardRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryCardRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardRequest) New() protoreflect.Message { - return new(fastReflection_QueryCardRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardRequest) Interface() protoreflect.ProtoMessage { - return (*QueryCardRequest)(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_QueryCardRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_QueryCardRequest_cardId, 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_QueryCardRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardRequest.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardRequest 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_QueryCardRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardRequest.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardRequest 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_QueryCardRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardRequest.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardRequest 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_QueryCardRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardRequest.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardRequest 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_QueryCardRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardRequest.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.QueryCardRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardRequest 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_QueryCardRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardRequest.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardRequest 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_QueryCardRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardRequest", 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_QueryCardRequest) 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_QueryCardRequest) 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_QueryCardRequest) 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_QueryCardRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardRequest) - 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.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*QueryCardRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryCardRequest) - 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: QueryCardRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryCardResponse protoreflect.MessageDescriptor - fd_QueryCardResponse_card protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardResponse") - fd_QueryCardResponse_card = md_QueryCardResponse.Fields().ByName("card") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardResponse)(nil) - -type fastReflection_QueryCardResponse QueryCardResponse - -func (x *QueryCardResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardResponse)(x) -} - -func (x *QueryCardResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_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_QueryCardResponse_messageType fastReflection_QueryCardResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardResponse_messageType{} - -type fastReflection_QueryCardResponse_messageType struct{} - -func (x fastReflection_QueryCardResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardResponse)(nil) -} -func (x fastReflection_QueryCardResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardResponse) -} -func (x fastReflection_QueryCardResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardResponse -} - -// 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_QueryCardResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryCardResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardResponse) New() protoreflect.Message { - return new(fastReflection_QueryCardResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardResponse) Interface() protoreflect.ProtoMessage { - return (*QueryCardResponse)(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_QueryCardResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Card != nil { - value := protoreflect.ValueOfMessage(x.Card.ProtoReflect()) - if !f(fd_QueryCardResponse_card, 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_QueryCardResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardResponse.card": - return x.Card != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardResponse 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_QueryCardResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardResponse.card": - x.Card = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardResponse 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_QueryCardResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardResponse.card": - value := x.Card - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardResponse 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_QueryCardResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardResponse.card": - x.Card = value.Message().Interface().(*CardWithImage) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardResponse 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_QueryCardResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardResponse.card": - if x.Card == nil { - x.Card = new(CardWithImage) - } - return protoreflect.ValueOfMessage(x.Card.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardResponse 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_QueryCardResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardResponse.card": - m := new(CardWithImage) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardResponse 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_QueryCardResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardResponse", 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_QueryCardResponse) 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_QueryCardResponse) 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_QueryCardResponse) 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_QueryCardResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardResponse) - 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.Card != nil { - l = options.Size(x.Card) - 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().(*QueryCardResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Card != nil { - encoded, err := options.Marshal(x.Card) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryCardResponse) - 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: QueryCardResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardResponse: 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 Card", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Card == nil { - x.Card = &CardWithImage{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Card); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryUserRequest protoreflect.MessageDescriptor - fd_QueryUserRequest_address protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryUserRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryUserRequest") - fd_QueryUserRequest_address = md_QueryUserRequest.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_QueryUserRequest)(nil) - -type fastReflection_QueryUserRequest QueryUserRequest - -func (x *QueryUserRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryUserRequest)(x) -} - -func (x *QueryUserRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryUserRequest_messageType fastReflection_QueryUserRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryUserRequest_messageType{} - -type fastReflection_QueryUserRequest_messageType struct{} - -func (x fastReflection_QueryUserRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryUserRequest)(nil) -} -func (x fastReflection_QueryUserRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryUserRequest) -} -func (x fastReflection_QueryUserRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUserRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryUserRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUserRequest -} - -// 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_QueryUserRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryUserRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryUserRequest) New() protoreflect.Message { - return new(fastReflection_QueryUserRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryUserRequest) Interface() protoreflect.ProtoMessage { - return (*QueryUserRequest)(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_QueryUserRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryUserRequest_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryUserRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserRequest.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserRequest 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_QueryUserRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserRequest.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserRequest 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_QueryUserRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryUserRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserRequest 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_QueryUserRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserRequest.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserRequest 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_QueryUserRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserRequest.address": - panic(fmt.Errorf("field address of message cardchain.cardchain.QueryUserRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserRequest 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_QueryUserRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserRequest.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserRequest 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_QueryUserRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryUserRequest", 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_QueryUserRequest) 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_QueryUserRequest) 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_QueryUserRequest) 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_QueryUserRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryUserRequest) - 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.Address) - 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().(*QueryUserRequest) - 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.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - 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().(*QueryUserRequest) - 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: QueryUserRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserRequest: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryUserResponse protoreflect.MessageDescriptor - fd_QueryUserResponse_user protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryUserResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryUserResponse") - fd_QueryUserResponse_user = md_QueryUserResponse.Fields().ByName("user") -} - -var _ protoreflect.Message = (*fastReflection_QueryUserResponse)(nil) - -type fastReflection_QueryUserResponse QueryUserResponse - -func (x *QueryUserResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryUserResponse)(x) -} - -func (x *QueryUserResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryUserResponse_messageType fastReflection_QueryUserResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryUserResponse_messageType{} - -type fastReflection_QueryUserResponse_messageType struct{} - -func (x fastReflection_QueryUserResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryUserResponse)(nil) -} -func (x fastReflection_QueryUserResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryUserResponse) -} -func (x fastReflection_QueryUserResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUserResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryUserResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUserResponse -} - -// 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_QueryUserResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryUserResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryUserResponse) New() protoreflect.Message { - return new(fastReflection_QueryUserResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryUserResponse) Interface() protoreflect.ProtoMessage { - return (*QueryUserResponse)(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_QueryUserResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.User != nil { - value := protoreflect.ValueOfMessage(x.User.ProtoReflect()) - if !f(fd_QueryUserResponse_user, 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_QueryUserResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserResponse.user": - return x.User != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserResponse 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_QueryUserResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserResponse.user": - x.User = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserResponse 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_QueryUserResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryUserResponse.user": - value := x.User - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserResponse 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_QueryUserResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserResponse.user": - x.User = value.Message().Interface().(*User) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserResponse 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_QueryUserResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserResponse.user": - if x.User == nil { - x.User = new(User) - } - return protoreflect.ValueOfMessage(x.User.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserResponse 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_QueryUserResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryUserResponse.user": - m := new(User) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryUserResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryUserResponse 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_QueryUserResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryUserResponse", 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_QueryUserResponse) 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_QueryUserResponse) 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_QueryUserResponse) 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_QueryUserResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryUserResponse) - 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.User != nil { - l = options.Size(x.User) - 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().(*QueryUserResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.User != nil { - encoded, err := options.Marshal(x.User) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryUserResponse) - 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: QueryUserResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserResponse: 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 User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.User == nil { - x.User = &User{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.User); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryCardsRequest_2_list)(nil) - -type _QueryCardsRequest_2_list struct { - list *[]CardStatus -} - -func (x *_QueryCardsRequest_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardsRequest_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) -} - -func (x *_QueryCardsRequest_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardStatus)(valueUnwrapped) - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardsRequest_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardStatus)(valueUnwrapped) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardsRequest_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryCardsRequest at list field Status as it is not of Message kind")) -} - -func (x *_QueryCardsRequest_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardsRequest_2_list) NewElement() protoreflect.Value { - v := 0 - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) -} - -func (x *_QueryCardsRequest_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QueryCardsRequest_3_list)(nil) - -type _QueryCardsRequest_3_list struct { - list *[]CardType -} - -func (x *_QueryCardsRequest_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardsRequest_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) -} - -func (x *_QueryCardsRequest_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardType)(valueUnwrapped) - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardsRequest_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardType)(valueUnwrapped) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardsRequest_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryCardsRequest at list field CardType as it is not of Message kind")) -} - -func (x *_QueryCardsRequest_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardsRequest_3_list) NewElement() protoreflect.Value { - v := 0 - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) -} - -func (x *_QueryCardsRequest_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QueryCardsRequest_4_list)(nil) - -type _QueryCardsRequest_4_list struct { - list *[]CardClass -} - -func (x *_QueryCardsRequest_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardsRequest_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) -} - -func (x *_QueryCardsRequest_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardClass)(valueUnwrapped) - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardsRequest_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardClass)(valueUnwrapped) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardsRequest_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryCardsRequest at list field Class as it is not of Message kind")) -} - -func (x *_QueryCardsRequest_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardsRequest_4_list) NewElement() protoreflect.Value { - v := 0 - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) -} - -func (x *_QueryCardsRequest_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QueryCardsRequest_11_list)(nil) - -type _QueryCardsRequest_11_list struct { - list *[]CardRarity -} - -func (x *_QueryCardsRequest_11_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardsRequest_11_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) -} - -func (x *_QueryCardsRequest_11_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardRarity)(valueUnwrapped) - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardsRequest_11_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Enum() - concreteValue := (CardRarity)(valueUnwrapped) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardsRequest_11_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryCardsRequest at list field Rarities as it is not of Message kind")) -} - -func (x *_QueryCardsRequest_11_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardsRequest_11_list) NewElement() protoreflect.Value { - v := 0 - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) -} - -func (x *_QueryCardsRequest_11_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryCardsRequest protoreflect.MessageDescriptor - fd_QueryCardsRequest_owner protoreflect.FieldDescriptor - fd_QueryCardsRequest_status protoreflect.FieldDescriptor - fd_QueryCardsRequest_cardType protoreflect.FieldDescriptor - fd_QueryCardsRequest_class protoreflect.FieldDescriptor - fd_QueryCardsRequest_sortBy protoreflect.FieldDescriptor - fd_QueryCardsRequest_nameContains protoreflect.FieldDescriptor - fd_QueryCardsRequest_keywordsContains protoreflect.FieldDescriptor - fd_QueryCardsRequest_notesContains protoreflect.FieldDescriptor - fd_QueryCardsRequest_onlyStarterCard protoreflect.FieldDescriptor - fd_QueryCardsRequest_onlyBalanceAnchors protoreflect.FieldDescriptor - fd_QueryCardsRequest_rarities protoreflect.FieldDescriptor - fd_QueryCardsRequest_multiClassOnly protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardsRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardsRequest") - fd_QueryCardsRequest_owner = md_QueryCardsRequest.Fields().ByName("owner") - fd_QueryCardsRequest_status = md_QueryCardsRequest.Fields().ByName("status") - fd_QueryCardsRequest_cardType = md_QueryCardsRequest.Fields().ByName("cardType") - fd_QueryCardsRequest_class = md_QueryCardsRequest.Fields().ByName("class") - fd_QueryCardsRequest_sortBy = md_QueryCardsRequest.Fields().ByName("sortBy") - fd_QueryCardsRequest_nameContains = md_QueryCardsRequest.Fields().ByName("nameContains") - fd_QueryCardsRequest_keywordsContains = md_QueryCardsRequest.Fields().ByName("keywordsContains") - fd_QueryCardsRequest_notesContains = md_QueryCardsRequest.Fields().ByName("notesContains") - fd_QueryCardsRequest_onlyStarterCard = md_QueryCardsRequest.Fields().ByName("onlyStarterCard") - fd_QueryCardsRequest_onlyBalanceAnchors = md_QueryCardsRequest.Fields().ByName("onlyBalanceAnchors") - fd_QueryCardsRequest_rarities = md_QueryCardsRequest.Fields().ByName("rarities") - fd_QueryCardsRequest_multiClassOnly = md_QueryCardsRequest.Fields().ByName("multiClassOnly") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardsRequest)(nil) - -type fastReflection_QueryCardsRequest QueryCardsRequest - -func (x *QueryCardsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardsRequest)(x) -} - -func (x *QueryCardsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryCardsRequest_messageType fastReflection_QueryCardsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardsRequest_messageType{} - -type fastReflection_QueryCardsRequest_messageType struct{} - -func (x fastReflection_QueryCardsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardsRequest)(nil) -} -func (x fastReflection_QueryCardsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardsRequest) -} -func (x fastReflection_QueryCardsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardsRequest -} - -// 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_QueryCardsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryCardsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardsRequest) New() protoreflect.Message { - return new(fastReflection_QueryCardsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryCardsRequest)(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_QueryCardsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_QueryCardsRequest_owner, value) { - return - } - } - if len(x.Status) != 0 { - value := protoreflect.ValueOfList(&_QueryCardsRequest_2_list{list: &x.Status}) - if !f(fd_QueryCardsRequest_status, value) { - return - } - } - if len(x.CardType) != 0 { - value := protoreflect.ValueOfList(&_QueryCardsRequest_3_list{list: &x.CardType}) - if !f(fd_QueryCardsRequest_cardType, value) { - return - } - } - if len(x.Class) != 0 { - value := protoreflect.ValueOfList(&_QueryCardsRequest_4_list{list: &x.Class}) - if !f(fd_QueryCardsRequest_class, value) { - return - } - } - if x.SortBy != "" { - value := protoreflect.ValueOfString(x.SortBy) - if !f(fd_QueryCardsRequest_sortBy, value) { - return - } - } - if x.NameContains != "" { - value := protoreflect.ValueOfString(x.NameContains) - if !f(fd_QueryCardsRequest_nameContains, value) { - return - } - } - if x.KeywordsContains != "" { - value := protoreflect.ValueOfString(x.KeywordsContains) - if !f(fd_QueryCardsRequest_keywordsContains, value) { - return - } - } - if x.NotesContains != "" { - value := protoreflect.ValueOfString(x.NotesContains) - if !f(fd_QueryCardsRequest_notesContains, value) { - return - } - } - if x.OnlyStarterCard != false { - value := protoreflect.ValueOfBool(x.OnlyStarterCard) - if !f(fd_QueryCardsRequest_onlyStarterCard, value) { - return - } - } - if x.OnlyBalanceAnchors != false { - value := protoreflect.ValueOfBool(x.OnlyBalanceAnchors) - if !f(fd_QueryCardsRequest_onlyBalanceAnchors, value) { - return - } - } - if len(x.Rarities) != 0 { - value := protoreflect.ValueOfList(&_QueryCardsRequest_11_list{list: &x.Rarities}) - if !f(fd_QueryCardsRequest_rarities, value) { - return - } - } - if x.MultiClassOnly != false { - value := protoreflect.ValueOfBool(x.MultiClassOnly) - if !f(fd_QueryCardsRequest_multiClassOnly, 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_QueryCardsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsRequest.owner": - return x.Owner != "" - case "cardchain.cardchain.QueryCardsRequest.status": - return len(x.Status) != 0 - case "cardchain.cardchain.QueryCardsRequest.cardType": - return len(x.CardType) != 0 - case "cardchain.cardchain.QueryCardsRequest.class": - return len(x.Class) != 0 - case "cardchain.cardchain.QueryCardsRequest.sortBy": - return x.SortBy != "" - case "cardchain.cardchain.QueryCardsRequest.nameContains": - return x.NameContains != "" - case "cardchain.cardchain.QueryCardsRequest.keywordsContains": - return x.KeywordsContains != "" - case "cardchain.cardchain.QueryCardsRequest.notesContains": - return x.NotesContains != "" - case "cardchain.cardchain.QueryCardsRequest.onlyStarterCard": - return x.OnlyStarterCard != false - case "cardchain.cardchain.QueryCardsRequest.onlyBalanceAnchors": - return x.OnlyBalanceAnchors != false - case "cardchain.cardchain.QueryCardsRequest.rarities": - return len(x.Rarities) != 0 - case "cardchain.cardchain.QueryCardsRequest.multiClassOnly": - return x.MultiClassOnly != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsRequest 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_QueryCardsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsRequest.owner": - x.Owner = "" - case "cardchain.cardchain.QueryCardsRequest.status": - x.Status = nil - case "cardchain.cardchain.QueryCardsRequest.cardType": - x.CardType = nil - case "cardchain.cardchain.QueryCardsRequest.class": - x.Class = nil - case "cardchain.cardchain.QueryCardsRequest.sortBy": - x.SortBy = "" - case "cardchain.cardchain.QueryCardsRequest.nameContains": - x.NameContains = "" - case "cardchain.cardchain.QueryCardsRequest.keywordsContains": - x.KeywordsContains = "" - case "cardchain.cardchain.QueryCardsRequest.notesContains": - x.NotesContains = "" - case "cardchain.cardchain.QueryCardsRequest.onlyStarterCard": - x.OnlyStarterCard = false - case "cardchain.cardchain.QueryCardsRequest.onlyBalanceAnchors": - x.OnlyBalanceAnchors = false - case "cardchain.cardchain.QueryCardsRequest.rarities": - x.Rarities = nil - case "cardchain.cardchain.QueryCardsRequest.multiClassOnly": - x.MultiClassOnly = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsRequest 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_QueryCardsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardsRequest.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QueryCardsRequest.status": - if len(x.Status) == 0 { - return protoreflect.ValueOfList(&_QueryCardsRequest_2_list{}) - } - listValue := &_QueryCardsRequest_2_list{list: &x.Status} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QueryCardsRequest.cardType": - if len(x.CardType) == 0 { - return protoreflect.ValueOfList(&_QueryCardsRequest_3_list{}) - } - listValue := &_QueryCardsRequest_3_list{list: &x.CardType} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QueryCardsRequest.class": - if len(x.Class) == 0 { - return protoreflect.ValueOfList(&_QueryCardsRequest_4_list{}) - } - listValue := &_QueryCardsRequest_4_list{list: &x.Class} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QueryCardsRequest.sortBy": - value := x.SortBy - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QueryCardsRequest.nameContains": - value := x.NameContains - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QueryCardsRequest.keywordsContains": - value := x.KeywordsContains - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QueryCardsRequest.notesContains": - value := x.NotesContains - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QueryCardsRequest.onlyStarterCard": - value := x.OnlyStarterCard - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.QueryCardsRequest.onlyBalanceAnchors": - value := x.OnlyBalanceAnchors - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.QueryCardsRequest.rarities": - if len(x.Rarities) == 0 { - return protoreflect.ValueOfList(&_QueryCardsRequest_11_list{}) - } - listValue := &_QueryCardsRequest_11_list{list: &x.Rarities} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QueryCardsRequest.multiClassOnly": - value := x.MultiClassOnly - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsRequest 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_QueryCardsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsRequest.owner": - x.Owner = value.Interface().(string) - case "cardchain.cardchain.QueryCardsRequest.status": - lv := value.List() - clv := lv.(*_QueryCardsRequest_2_list) - x.Status = *clv.list - case "cardchain.cardchain.QueryCardsRequest.cardType": - lv := value.List() - clv := lv.(*_QueryCardsRequest_3_list) - x.CardType = *clv.list - case "cardchain.cardchain.QueryCardsRequest.class": - lv := value.List() - clv := lv.(*_QueryCardsRequest_4_list) - x.Class = *clv.list - case "cardchain.cardchain.QueryCardsRequest.sortBy": - x.SortBy = value.Interface().(string) - case "cardchain.cardchain.QueryCardsRequest.nameContains": - x.NameContains = value.Interface().(string) - case "cardchain.cardchain.QueryCardsRequest.keywordsContains": - x.KeywordsContains = value.Interface().(string) - case "cardchain.cardchain.QueryCardsRequest.notesContains": - x.NotesContains = value.Interface().(string) - case "cardchain.cardchain.QueryCardsRequest.onlyStarterCard": - x.OnlyStarterCard = value.Bool() - case "cardchain.cardchain.QueryCardsRequest.onlyBalanceAnchors": - x.OnlyBalanceAnchors = value.Bool() - case "cardchain.cardchain.QueryCardsRequest.rarities": - lv := value.List() - clv := lv.(*_QueryCardsRequest_11_list) - x.Rarities = *clv.list - case "cardchain.cardchain.QueryCardsRequest.multiClassOnly": - x.MultiClassOnly = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsRequest 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_QueryCardsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsRequest.status": - if x.Status == nil { - x.Status = []CardStatus{} - } - value := &_QueryCardsRequest_2_list{list: &x.Status} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryCardsRequest.cardType": - if x.CardType == nil { - x.CardType = []CardType{} - } - value := &_QueryCardsRequest_3_list{list: &x.CardType} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryCardsRequest.class": - if x.Class == nil { - x.Class = []CardClass{} - } - value := &_QueryCardsRequest_4_list{list: &x.Class} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryCardsRequest.rarities": - if x.Rarities == nil { - x.Rarities = []CardRarity{} - } - value := &_QueryCardsRequest_11_list{list: &x.Rarities} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryCardsRequest.owner": - panic(fmt.Errorf("field owner of message cardchain.cardchain.QueryCardsRequest is not mutable")) - case "cardchain.cardchain.QueryCardsRequest.sortBy": - panic(fmt.Errorf("field sortBy of message cardchain.cardchain.QueryCardsRequest is not mutable")) - case "cardchain.cardchain.QueryCardsRequest.nameContains": - panic(fmt.Errorf("field nameContains of message cardchain.cardchain.QueryCardsRequest is not mutable")) - case "cardchain.cardchain.QueryCardsRequest.keywordsContains": - panic(fmt.Errorf("field keywordsContains of message cardchain.cardchain.QueryCardsRequest is not mutable")) - case "cardchain.cardchain.QueryCardsRequest.notesContains": - panic(fmt.Errorf("field notesContains of message cardchain.cardchain.QueryCardsRequest is not mutable")) - case "cardchain.cardchain.QueryCardsRequest.onlyStarterCard": - panic(fmt.Errorf("field onlyStarterCard of message cardchain.cardchain.QueryCardsRequest is not mutable")) - case "cardchain.cardchain.QueryCardsRequest.onlyBalanceAnchors": - panic(fmt.Errorf("field onlyBalanceAnchors of message cardchain.cardchain.QueryCardsRequest is not mutable")) - case "cardchain.cardchain.QueryCardsRequest.multiClassOnly": - panic(fmt.Errorf("field multiClassOnly of message cardchain.cardchain.QueryCardsRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsRequest 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_QueryCardsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsRequest.owner": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QueryCardsRequest.status": - list := []CardStatus{} - return protoreflect.ValueOfList(&_QueryCardsRequest_2_list{list: &list}) - case "cardchain.cardchain.QueryCardsRequest.cardType": - list := []CardType{} - return protoreflect.ValueOfList(&_QueryCardsRequest_3_list{list: &list}) - case "cardchain.cardchain.QueryCardsRequest.class": - list := []CardClass{} - return protoreflect.ValueOfList(&_QueryCardsRequest_4_list{list: &list}) - case "cardchain.cardchain.QueryCardsRequest.sortBy": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QueryCardsRequest.nameContains": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QueryCardsRequest.keywordsContains": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QueryCardsRequest.notesContains": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QueryCardsRequest.onlyStarterCard": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.QueryCardsRequest.onlyBalanceAnchors": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.QueryCardsRequest.rarities": - list := []CardRarity{} - return protoreflect.ValueOfList(&_QueryCardsRequest_11_list{list: &list}) - case "cardchain.cardchain.QueryCardsRequest.multiClassOnly": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsRequest 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_QueryCardsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardsRequest", 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_QueryCardsRequest) 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_QueryCardsRequest) 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_QueryCardsRequest) 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_QueryCardsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardsRequest) - 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.Owner) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Status) > 0 { - l = 0 - for _, e := range x.Status { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.CardType) > 0 { - l = 0 - for _, e := range x.CardType { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.Class) > 0 { - l = 0 - for _, e := range x.Class { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - l = len(x.SortBy) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NameContains) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.KeywordsContains) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NotesContains) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.OnlyStarterCard { - n += 2 - } - if x.OnlyBalanceAnchors { - n += 2 - } - if len(x.Rarities) > 0 { - l = 0 - for _, e := range x.Rarities { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if x.MultiClassOnly { - n += 2 - } - 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().(*QueryCardsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.MultiClassOnly { - i-- - if x.MultiClassOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 - } - if len(x.Rarities) > 0 { - var pksize2 int - for _, num := range x.Rarities { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range x.Rarities { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x5a - } - if x.OnlyBalanceAnchors { - i-- - if x.OnlyBalanceAnchors { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if x.OnlyStarterCard { - i-- - if x.OnlyStarterCard { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if len(x.NotesContains) > 0 { - i -= len(x.NotesContains) - copy(dAtA[i:], x.NotesContains) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NotesContains))) - i-- - dAtA[i] = 0x42 - } - if len(x.KeywordsContains) > 0 { - i -= len(x.KeywordsContains) - copy(dAtA[i:], x.KeywordsContains) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeywordsContains))) - i-- - dAtA[i] = 0x3a - } - if len(x.NameContains) > 0 { - i -= len(x.NameContains) - copy(dAtA[i:], x.NameContains) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NameContains))) - i-- - dAtA[i] = 0x32 - } - if len(x.SortBy) > 0 { - i -= len(x.SortBy) - copy(dAtA[i:], x.SortBy) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SortBy))) - i-- - dAtA[i] = 0x2a - } - if len(x.Class) > 0 { - var pksize4 int - for _, num := range x.Class { - pksize4 += runtime.Sov(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num1 := range x.Class { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) - i-- - dAtA[i] = 0x22 - } - if len(x.CardType) > 0 { - var pksize6 int - for _, num := range x.CardType { - pksize6 += runtime.Sov(uint64(num)) - } - i -= pksize6 - j5 := i - for _, num1 := range x.CardType { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j5] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j5++ - } - dAtA[j5] = uint8(num) - j5++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize6)) - i-- - dAtA[i] = 0x1a - } - if len(x.Status) > 0 { - var pksize8 int - for _, num := range x.Status { - pksize8 += runtime.Sov(uint64(num)) - } - i -= pksize8 - j7 := i - for _, num1 := range x.Status { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j7] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j7++ - } - dAtA[j7] = uint8(num) - j7++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize8)) - i-- - dAtA[i] = 0x12 - } - 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] = 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().(*QueryCardsRequest) - 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: QueryCardsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardsRequest: 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 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 2: - if wireType == 0 { - var v CardStatus - 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++ - v |= CardStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Status = append(x.Status, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - if elementCount != 0 && len(x.Status) == 0 { - x.Status = make([]CardStatus, 0, elementCount) - } - for iNdEx < postIndex { - var v CardStatus - 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++ - v |= CardStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Status = append(x.Status, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - case 3: - if wireType == 0 { - var v CardType - 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++ - v |= CardType(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardType = append(x.CardType, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - if elementCount != 0 && len(x.CardType) == 0 { - x.CardType = make([]CardType, 0, elementCount) - } - for iNdEx < postIndex { - var v CardType - 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++ - v |= CardType(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardType = append(x.CardType, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardType", wireType) - } - case 4: - if wireType == 0 { - var v CardClass - 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++ - v |= CardClass(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Class = append(x.Class, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - if elementCount != 0 && len(x.Class) == 0 { - x.Class = make([]CardClass, 0, elementCount) - } - for iNdEx < postIndex { - var v CardClass - 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++ - v |= CardClass(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Class = append(x.Class, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) - } - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SortBy", 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.SortBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NameContains", 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.NameContains = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeywordsContains", 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.KeywordsContains = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotesContains", 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.NotesContains = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OnlyStarterCard", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OnlyStarterCard = bool(v != 0) - case 10: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OnlyBalanceAnchors", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OnlyBalanceAnchors = bool(v != 0) - case 11: - if wireType == 0 { - var v CardRarity - 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++ - v |= CardRarity(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Rarities = append(x.Rarities, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - if elementCount != 0 && len(x.Rarities) == 0 { - x.Rarities = make([]CardRarity, 0, elementCount) - } - for iNdEx < postIndex { - var v CardRarity - 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++ - v |= CardRarity(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Rarities = append(x.Rarities, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rarities", wireType) - } - case 12: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MultiClassOnly", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.MultiClassOnly = bool(v != 0) - 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 = (*_QueryCardsResponse_1_list)(nil) - -type _QueryCardsResponse_1_list struct { - list *[]uint64 -} - -func (x *_QueryCardsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QueryCardsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardsResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryCardsResponse at list field CardIds as it is not of Message kind")) -} - -func (x *_QueryCardsResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardsResponse_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QueryCardsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryCardsResponse protoreflect.MessageDescriptor - fd_QueryCardsResponse_cardIds protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardsResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardsResponse") - fd_QueryCardsResponse_cardIds = md_QueryCardsResponse.Fields().ByName("cardIds") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardsResponse)(nil) - -type fastReflection_QueryCardsResponse QueryCardsResponse - -func (x *QueryCardsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardsResponse)(x) -} - -func (x *QueryCardsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryCardsResponse_messageType fastReflection_QueryCardsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardsResponse_messageType{} - -type fastReflection_QueryCardsResponse_messageType struct{} - -func (x fastReflection_QueryCardsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardsResponse)(nil) -} -func (x fastReflection_QueryCardsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardsResponse) -} -func (x fastReflection_QueryCardsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardsResponse -} - -// 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_QueryCardsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryCardsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardsResponse) New() protoreflect.Message { - return new(fastReflection_QueryCardsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryCardsResponse)(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_QueryCardsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.CardIds) != 0 { - value := protoreflect.ValueOfList(&_QueryCardsResponse_1_list{list: &x.CardIds}) - if !f(fd_QueryCardsResponse_cardIds, 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_QueryCardsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsResponse.cardIds": - return len(x.CardIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsResponse 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_QueryCardsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsResponse.cardIds": - x.CardIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsResponse 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_QueryCardsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardsResponse.cardIds": - if len(x.CardIds) == 0 { - return protoreflect.ValueOfList(&_QueryCardsResponse_1_list{}) - } - listValue := &_QueryCardsResponse_1_list{list: &x.CardIds} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsResponse 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_QueryCardsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsResponse.cardIds": - lv := value.List() - clv := lv.(*_QueryCardsResponse_1_list) - x.CardIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsResponse 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_QueryCardsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsResponse.cardIds": - if x.CardIds == nil { - x.CardIds = []uint64{} - } - value := &_QueryCardsResponse_1_list{list: &x.CardIds} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsResponse 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_QueryCardsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardsResponse.cardIds": - list := []uint64{} - return protoreflect.ValueOfList(&_QueryCardsResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardsResponse 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_QueryCardsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardsResponse", 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_QueryCardsResponse) 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_QueryCardsResponse) 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_QueryCardsResponse) 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_QueryCardsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.CardIds) > 0 { - l = 0 - for _, e := range x.CardIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*QueryCardsResponse) - 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.CardIds) > 0 { - var pksize2 int - for _, num := range x.CardIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.CardIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - 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().(*QueryCardsResponse) - 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: QueryCardsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardIds = append(x.CardIds, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.CardIds) == 0 { - x.CardIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardIds = append(x.CardIds, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryMatchRequest protoreflect.MessageDescriptor - fd_QueryMatchRequest_matchId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryMatchRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryMatchRequest") - fd_QueryMatchRequest_matchId = md_QueryMatchRequest.Fields().ByName("matchId") -} - -var _ protoreflect.Message = (*fastReflection_QueryMatchRequest)(nil) - -type fastReflection_QueryMatchRequest QueryMatchRequest - -func (x *QueryMatchRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMatchRequest)(x) -} - -func (x *QueryMatchRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryMatchRequest_messageType fastReflection_QueryMatchRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryMatchRequest_messageType{} - -type fastReflection_QueryMatchRequest_messageType struct{} - -func (x fastReflection_QueryMatchRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMatchRequest)(nil) -} -func (x fastReflection_QueryMatchRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMatchRequest) -} -func (x fastReflection_QueryMatchRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryMatchRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchRequest -} - -// 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_QueryMatchRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryMatchRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMatchRequest) New() protoreflect.Message { - return new(fastReflection_QueryMatchRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMatchRequest) Interface() protoreflect.ProtoMessage { - return (*QueryMatchRequest)(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_QueryMatchRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MatchId != uint64(0) { - value := protoreflect.ValueOfUint64(x.MatchId) - if !f(fd_QueryMatchRequest_matchId, 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_QueryMatchRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchRequest.matchId": - return x.MatchId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchRequest 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_QueryMatchRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchRequest.matchId": - x.MatchId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchRequest 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_QueryMatchRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryMatchRequest.matchId": - value := x.MatchId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchRequest 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_QueryMatchRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchRequest.matchId": - x.MatchId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchRequest 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_QueryMatchRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchRequest.matchId": - panic(fmt.Errorf("field matchId of message cardchain.cardchain.QueryMatchRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchRequest 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_QueryMatchRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchRequest.matchId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchRequest 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_QueryMatchRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryMatchRequest", 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_QueryMatchRequest) 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_QueryMatchRequest) 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_QueryMatchRequest) 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_QueryMatchRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMatchRequest) - 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.MatchId != 0 { - n += 1 + runtime.Sov(uint64(x.MatchId)) - } - 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().(*QueryMatchRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.MatchId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MatchId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryMatchRequest) - 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: QueryMatchRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType) - } - x.MatchId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.MatchId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryMatchResponse protoreflect.MessageDescriptor - fd_QueryMatchResponse_match protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryMatchResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryMatchResponse") - fd_QueryMatchResponse_match = md_QueryMatchResponse.Fields().ByName("match") -} - -var _ protoreflect.Message = (*fastReflection_QueryMatchResponse)(nil) - -type fastReflection_QueryMatchResponse QueryMatchResponse - -func (x *QueryMatchResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMatchResponse)(x) -} - -func (x *QueryMatchResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryMatchResponse_messageType fastReflection_QueryMatchResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryMatchResponse_messageType{} - -type fastReflection_QueryMatchResponse_messageType struct{} - -func (x fastReflection_QueryMatchResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMatchResponse)(nil) -} -func (x fastReflection_QueryMatchResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMatchResponse) -} -func (x fastReflection_QueryMatchResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryMatchResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchResponse -} - -// 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_QueryMatchResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryMatchResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMatchResponse) New() protoreflect.Message { - return new(fastReflection_QueryMatchResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMatchResponse) Interface() protoreflect.ProtoMessage { - return (*QueryMatchResponse)(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_QueryMatchResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Match != nil { - value := protoreflect.ValueOfMessage(x.Match.ProtoReflect()) - if !f(fd_QueryMatchResponse_match, 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_QueryMatchResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchResponse.match": - return x.Match != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchResponse 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_QueryMatchResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchResponse.match": - x.Match = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchResponse 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_QueryMatchResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryMatchResponse.match": - value := x.Match - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchResponse 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_QueryMatchResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchResponse.match": - x.Match = value.Message().Interface().(*Match) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchResponse 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_QueryMatchResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchResponse.match": - if x.Match == nil { - x.Match = new(Match) - } - return protoreflect.ValueOfMessage(x.Match.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchResponse 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_QueryMatchResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchResponse.match": - m := new(Match) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchResponse 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_QueryMatchResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryMatchResponse", 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_QueryMatchResponse) 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_QueryMatchResponse) 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_QueryMatchResponse) 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_QueryMatchResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMatchResponse) - 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.Match != nil { - l = options.Size(x.Match) - 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().(*QueryMatchResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Match != nil { - encoded, err := options.Marshal(x.Match) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryMatchResponse) - 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: QueryMatchResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMatchResponse: 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 Match", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Match == nil { - x.Match = &Match{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Match); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySetRequest protoreflect.MessageDescriptor - fd_QuerySetRequest_setId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySetRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySetRequest") - fd_QuerySetRequest_setId = md_QuerySetRequest.Fields().ByName("setId") -} - -var _ protoreflect.Message = (*fastReflection_QuerySetRequest)(nil) - -type fastReflection_QuerySetRequest QuerySetRequest - -func (x *QuerySetRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySetRequest)(x) -} - -func (x *QuerySetRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QuerySetRequest_messageType fastReflection_QuerySetRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySetRequest_messageType{} - -type fastReflection_QuerySetRequest_messageType struct{} - -func (x fastReflection_QuerySetRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySetRequest)(nil) -} -func (x fastReflection_QuerySetRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySetRequest) -} -func (x fastReflection_QuerySetRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySetRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetRequest -} - -// 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_QuerySetRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySetRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySetRequest) New() protoreflect.Message { - return new(fastReflection_QuerySetRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySetRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySetRequest)(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_QuerySetRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_QuerySetRequest_setId, 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_QuerySetRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRequest.setId": - return x.SetId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRequest 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_QuerySetRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRequest.setId": - x.SetId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRequest 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_QuerySetRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySetRequest.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRequest 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_QuerySetRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRequest.setId": - x.SetId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRequest 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_QuerySetRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRequest.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.QuerySetRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRequest 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_QuerySetRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRequest.setId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRequest 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_QuerySetRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySetRequest", 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_QuerySetRequest) 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_QuerySetRequest) 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_QuerySetRequest) 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_QuerySetRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySetRequest) - 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.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - 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().(*QuerySetRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QuerySetRequest) - 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: QuerySetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySetResponse protoreflect.MessageDescriptor - fd_QuerySetResponse_set protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySetResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySetResponse") - fd_QuerySetResponse_set = md_QuerySetResponse.Fields().ByName("set") -} - -var _ protoreflect.Message = (*fastReflection_QuerySetResponse)(nil) - -type fastReflection_QuerySetResponse QuerySetResponse - -func (x *QuerySetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySetResponse)(x) -} - -func (x *QuerySetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QuerySetResponse_messageType fastReflection_QuerySetResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySetResponse_messageType{} - -type fastReflection_QuerySetResponse_messageType struct{} - -func (x fastReflection_QuerySetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySetResponse)(nil) -} -func (x fastReflection_QuerySetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySetResponse) -} -func (x fastReflection_QuerySetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetResponse -} - -// 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_QuerySetResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySetResponse) New() protoreflect.Message { - return new(fastReflection_QuerySetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySetResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySetResponse)(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_QuerySetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Set_ != nil { - value := protoreflect.ValueOfMessage(x.Set_.ProtoReflect()) - if !f(fd_QuerySetResponse_set, 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_QuerySetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetResponse.set": - return x.Set_ != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetResponse 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_QuerySetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetResponse.set": - x.Set_ = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetResponse 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_QuerySetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySetResponse.set": - value := x.Set_ - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetResponse 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_QuerySetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetResponse.set": - x.Set_ = value.Message().Interface().(*SetWithArtwork) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetResponse 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_QuerySetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetResponse.set": - if x.Set_ == nil { - x.Set_ = new(SetWithArtwork) - } - return protoreflect.ValueOfMessage(x.Set_.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetResponse 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_QuerySetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetResponse.set": - m := new(SetWithArtwork) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetResponse 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_QuerySetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySetResponse", 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_QuerySetResponse) 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_QuerySetResponse) 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_QuerySetResponse) 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_QuerySetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySetResponse) - 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.Set_ != nil { - l = options.Size(x.Set_) - 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().(*QuerySetResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Set_ != nil { - encoded, err := options.Marshal(x.Set_) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySetResponse) - 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: QuerySetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySetResponse: 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 Set_", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Set_ == nil { - x.Set_ = &SetWithArtwork{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Set_); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySellOfferRequest protoreflect.MessageDescriptor - fd_QuerySellOfferRequest_sellOfferId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySellOfferRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySellOfferRequest") - fd_QuerySellOfferRequest_sellOfferId = md_QuerySellOfferRequest.Fields().ByName("sellOfferId") -} - -var _ protoreflect.Message = (*fastReflection_QuerySellOfferRequest)(nil) - -type fastReflection_QuerySellOfferRequest QuerySellOfferRequest - -func (x *QuerySellOfferRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySellOfferRequest)(x) -} - -func (x *QuerySellOfferRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QuerySellOfferRequest_messageType fastReflection_QuerySellOfferRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySellOfferRequest_messageType{} - -type fastReflection_QuerySellOfferRequest_messageType struct{} - -func (x fastReflection_QuerySellOfferRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySellOfferRequest)(nil) -} -func (x fastReflection_QuerySellOfferRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySellOfferRequest) -} -func (x fastReflection_QuerySellOfferRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOfferRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySellOfferRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOfferRequest -} - -// 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_QuerySellOfferRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySellOfferRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySellOfferRequest) New() protoreflect.Message { - return new(fastReflection_QuerySellOfferRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySellOfferRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySellOfferRequest)(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_QuerySellOfferRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SellOfferId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SellOfferId) - if !f(fd_QuerySellOfferRequest_sellOfferId, 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_QuerySellOfferRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferRequest.sellOfferId": - return x.SellOfferId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferRequest 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_QuerySellOfferRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferRequest.sellOfferId": - x.SellOfferId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferRequest 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_QuerySellOfferRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySellOfferRequest.sellOfferId": - value := x.SellOfferId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferRequest 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_QuerySellOfferRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferRequest.sellOfferId": - x.SellOfferId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferRequest 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_QuerySellOfferRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferRequest.sellOfferId": - panic(fmt.Errorf("field sellOfferId of message cardchain.cardchain.QuerySellOfferRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferRequest 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_QuerySellOfferRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferRequest.sellOfferId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferRequest 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_QuerySellOfferRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySellOfferRequest", 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_QuerySellOfferRequest) 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_QuerySellOfferRequest) 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_QuerySellOfferRequest) 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_QuerySellOfferRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySellOfferRequest) - 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.SellOfferId != 0 { - n += 1 + runtime.Sov(uint64(x.SellOfferId)) - } - 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().(*QuerySellOfferRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SellOfferId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SellOfferId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QuerySellOfferRequest) - 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: QuerySellOfferRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySellOfferRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOfferId", wireType) - } - x.SellOfferId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SellOfferId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySellOfferResponse protoreflect.MessageDescriptor - fd_QuerySellOfferResponse_sellOffer protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySellOfferResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySellOfferResponse") - fd_QuerySellOfferResponse_sellOffer = md_QuerySellOfferResponse.Fields().ByName("sellOffer") -} - -var _ protoreflect.Message = (*fastReflection_QuerySellOfferResponse)(nil) - -type fastReflection_QuerySellOfferResponse QuerySellOfferResponse - -func (x *QuerySellOfferResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySellOfferResponse)(x) -} - -func (x *QuerySellOfferResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QuerySellOfferResponse_messageType fastReflection_QuerySellOfferResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySellOfferResponse_messageType{} - -type fastReflection_QuerySellOfferResponse_messageType struct{} - -func (x fastReflection_QuerySellOfferResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySellOfferResponse)(nil) -} -func (x fastReflection_QuerySellOfferResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySellOfferResponse) -} -func (x fastReflection_QuerySellOfferResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOfferResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySellOfferResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOfferResponse -} - -// 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_QuerySellOfferResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySellOfferResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySellOfferResponse) New() protoreflect.Message { - return new(fastReflection_QuerySellOfferResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySellOfferResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySellOfferResponse)(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_QuerySellOfferResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SellOffer != nil { - value := protoreflect.ValueOfMessage(x.SellOffer.ProtoReflect()) - if !f(fd_QuerySellOfferResponse_sellOffer, 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_QuerySellOfferResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferResponse.sellOffer": - return x.SellOffer != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferResponse 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_QuerySellOfferResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferResponse.sellOffer": - x.SellOffer = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferResponse 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_QuerySellOfferResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySellOfferResponse.sellOffer": - value := x.SellOffer - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferResponse 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_QuerySellOfferResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferResponse.sellOffer": - x.SellOffer = value.Message().Interface().(*SellOffer) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferResponse 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_QuerySellOfferResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferResponse.sellOffer": - if x.SellOffer == nil { - x.SellOffer = new(SellOffer) - } - return protoreflect.ValueOfMessage(x.SellOffer.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferResponse 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_QuerySellOfferResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOfferResponse.sellOffer": - m := new(SellOffer) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOfferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOfferResponse 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_QuerySellOfferResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySellOfferResponse", 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_QuerySellOfferResponse) 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_QuerySellOfferResponse) 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_QuerySellOfferResponse) 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_QuerySellOfferResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySellOfferResponse) - 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.SellOffer != nil { - l = options.Size(x.SellOffer) - 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().(*QuerySellOfferResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SellOffer != nil { - encoded, err := options.Marshal(x.SellOffer) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySellOfferResponse) - 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: QuerySellOfferResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySellOfferResponse: 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 SellOffer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.SellOffer == nil { - x.SellOffer = &SellOffer{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SellOffer); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryCouncilRequest protoreflect.MessageDescriptor - fd_QueryCouncilRequest_councilId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCouncilRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCouncilRequest") - fd_QueryCouncilRequest_councilId = md_QueryCouncilRequest.Fields().ByName("councilId") -} - -var _ protoreflect.Message = (*fastReflection_QueryCouncilRequest)(nil) - -type fastReflection_QueryCouncilRequest QueryCouncilRequest - -func (x *QueryCouncilRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCouncilRequest)(x) -} - -func (x *QueryCouncilRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryCouncilRequest_messageType fastReflection_QueryCouncilRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryCouncilRequest_messageType{} - -type fastReflection_QueryCouncilRequest_messageType struct{} - -func (x fastReflection_QueryCouncilRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCouncilRequest)(nil) -} -func (x fastReflection_QueryCouncilRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCouncilRequest) -} -func (x fastReflection_QueryCouncilRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCouncilRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCouncilRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCouncilRequest -} - -// 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_QueryCouncilRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryCouncilRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCouncilRequest) New() protoreflect.Message { - return new(fastReflection_QueryCouncilRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCouncilRequest) Interface() protoreflect.ProtoMessage { - return (*QueryCouncilRequest)(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_QueryCouncilRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CouncilId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CouncilId) - if !f(fd_QueryCouncilRequest_councilId, 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_QueryCouncilRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilRequest.councilId": - return x.CouncilId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilRequest 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_QueryCouncilRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilRequest.councilId": - x.CouncilId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilRequest 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_QueryCouncilRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCouncilRequest.councilId": - value := x.CouncilId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilRequest 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_QueryCouncilRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilRequest.councilId": - x.CouncilId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilRequest 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_QueryCouncilRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilRequest.councilId": - panic(fmt.Errorf("field councilId of message cardchain.cardchain.QueryCouncilRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilRequest 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_QueryCouncilRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilRequest.councilId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilRequest 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_QueryCouncilRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCouncilRequest", 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_QueryCouncilRequest) 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_QueryCouncilRequest) 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_QueryCouncilRequest) 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_QueryCouncilRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCouncilRequest) - 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.CouncilId != 0 { - n += 1 + runtime.Sov(uint64(x.CouncilId)) - } - 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().(*QueryCouncilRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CouncilId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CouncilId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryCouncilRequest) - 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: QueryCouncilRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCouncilRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CouncilId", wireType) - } - x.CouncilId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CouncilId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryCouncilResponse protoreflect.MessageDescriptor - fd_QueryCouncilResponse_council protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCouncilResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCouncilResponse") - fd_QueryCouncilResponse_council = md_QueryCouncilResponse.Fields().ByName("council") -} - -var _ protoreflect.Message = (*fastReflection_QueryCouncilResponse)(nil) - -type fastReflection_QueryCouncilResponse QueryCouncilResponse - -func (x *QueryCouncilResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCouncilResponse)(x) -} - -func (x *QueryCouncilResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryCouncilResponse_messageType fastReflection_QueryCouncilResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryCouncilResponse_messageType{} - -type fastReflection_QueryCouncilResponse_messageType struct{} - -func (x fastReflection_QueryCouncilResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCouncilResponse)(nil) -} -func (x fastReflection_QueryCouncilResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCouncilResponse) -} -func (x fastReflection_QueryCouncilResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCouncilResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCouncilResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCouncilResponse -} - -// 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_QueryCouncilResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryCouncilResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCouncilResponse) New() protoreflect.Message { - return new(fastReflection_QueryCouncilResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCouncilResponse) Interface() protoreflect.ProtoMessage { - return (*QueryCouncilResponse)(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_QueryCouncilResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Council != nil { - value := protoreflect.ValueOfMessage(x.Council.ProtoReflect()) - if !f(fd_QueryCouncilResponse_council, 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_QueryCouncilResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilResponse.council": - return x.Council != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilResponse 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_QueryCouncilResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilResponse.council": - x.Council = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilResponse 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_QueryCouncilResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCouncilResponse.council": - value := x.Council - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilResponse 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_QueryCouncilResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilResponse.council": - x.Council = value.Message().Interface().(*Council) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilResponse 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_QueryCouncilResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilResponse.council": - if x.Council == nil { - x.Council = new(Council) - } - return protoreflect.ValueOfMessage(x.Council.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilResponse 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_QueryCouncilResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCouncilResponse.council": - m := new(Council) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCouncilResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCouncilResponse 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_QueryCouncilResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCouncilResponse", 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_QueryCouncilResponse) 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_QueryCouncilResponse) 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_QueryCouncilResponse) 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_QueryCouncilResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCouncilResponse) - 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.Council != nil { - l = options.Size(x.Council) - 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().(*QueryCouncilResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Council != nil { - encoded, err := options.Marshal(x.Council) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryCouncilResponse) - 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: QueryCouncilResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCouncilResponse: 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 Council", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Council == nil { - x.Council = &Council{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Council); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryServerRequest protoreflect.MessageDescriptor - fd_QueryServerRequest_serverId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryServerRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryServerRequest") - fd_QueryServerRequest_serverId = md_QueryServerRequest.Fields().ByName("serverId") -} - -var _ protoreflect.Message = (*fastReflection_QueryServerRequest)(nil) - -type fastReflection_QueryServerRequest QueryServerRequest - -func (x *QueryServerRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryServerRequest)(x) -} - -func (x *QueryServerRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[16] - 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_QueryServerRequest_messageType fastReflection_QueryServerRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryServerRequest_messageType{} - -type fastReflection_QueryServerRequest_messageType struct{} - -func (x fastReflection_QueryServerRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryServerRequest)(nil) -} -func (x fastReflection_QueryServerRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryServerRequest) -} -func (x fastReflection_QueryServerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryServerRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryServerRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryServerRequest -} - -// 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_QueryServerRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryServerRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryServerRequest) New() protoreflect.Message { - return new(fastReflection_QueryServerRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryServerRequest) Interface() protoreflect.ProtoMessage { - return (*QueryServerRequest)(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_QueryServerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ServerId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ServerId) - if !f(fd_QueryServerRequest_serverId, 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_QueryServerRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerRequest.serverId": - return x.ServerId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerRequest 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_QueryServerRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerRequest.serverId": - x.ServerId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerRequest 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_QueryServerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryServerRequest.serverId": - value := x.ServerId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerRequest 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_QueryServerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerRequest.serverId": - x.ServerId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerRequest 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_QueryServerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerRequest.serverId": - panic(fmt.Errorf("field serverId of message cardchain.cardchain.QueryServerRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerRequest 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_QueryServerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerRequest.serverId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerRequest 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_QueryServerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryServerRequest", 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_QueryServerRequest) 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_QueryServerRequest) 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_QueryServerRequest) 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_QueryServerRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryServerRequest) - 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.ServerId != 0 { - n += 1 + runtime.Sov(uint64(x.ServerId)) - } - 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().(*QueryServerRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ServerId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ServerId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryServerRequest) - 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: QueryServerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryServerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType) - } - x.ServerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ServerId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryServerResponse protoreflect.MessageDescriptor - fd_QueryServerResponse_server protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryServerResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryServerResponse") - fd_QueryServerResponse_server = md_QueryServerResponse.Fields().ByName("server") -} - -var _ protoreflect.Message = (*fastReflection_QueryServerResponse)(nil) - -type fastReflection_QueryServerResponse QueryServerResponse - -func (x *QueryServerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryServerResponse)(x) -} - -func (x *QueryServerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[17] - 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_QueryServerResponse_messageType fastReflection_QueryServerResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryServerResponse_messageType{} - -type fastReflection_QueryServerResponse_messageType struct{} - -func (x fastReflection_QueryServerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryServerResponse)(nil) -} -func (x fastReflection_QueryServerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryServerResponse) -} -func (x fastReflection_QueryServerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryServerResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryServerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryServerResponse -} - -// 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_QueryServerResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryServerResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryServerResponse) New() protoreflect.Message { - return new(fastReflection_QueryServerResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryServerResponse) Interface() protoreflect.ProtoMessage { - return (*QueryServerResponse)(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_QueryServerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Server != nil { - value := protoreflect.ValueOfMessage(x.Server.ProtoReflect()) - if !f(fd_QueryServerResponse_server, 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_QueryServerResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerResponse.server": - return x.Server != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerResponse 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_QueryServerResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerResponse.server": - x.Server = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerResponse 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_QueryServerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryServerResponse.server": - value := x.Server - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerResponse 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_QueryServerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerResponse.server": - x.Server = value.Message().Interface().(*Server) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerResponse 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_QueryServerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerResponse.server": - if x.Server == nil { - x.Server = new(Server) - } - return protoreflect.ValueOfMessage(x.Server.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerResponse 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_QueryServerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryServerResponse.server": - m := new(Server) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryServerResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryServerResponse 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_QueryServerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryServerResponse", 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_QueryServerResponse) 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_QueryServerResponse) 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_QueryServerResponse) 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_QueryServerResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryServerResponse) - 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.Server != nil { - l = options.Size(x.Server) - 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().(*QueryServerResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Server != nil { - encoded, err := options.Marshal(x.Server) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryServerResponse) - 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: QueryServerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryServerResponse: 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 Server", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Server == nil { - x.Server = &Server{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Server); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryEncounterRequest protoreflect.MessageDescriptor - fd_QueryEncounterRequest_encounterId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncounterRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncounterRequest") - fd_QueryEncounterRequest_encounterId = md_QueryEncounterRequest.Fields().ByName("encounterId") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncounterRequest)(nil) - -type fastReflection_QueryEncounterRequest QueryEncounterRequest - -func (x *QueryEncounterRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncounterRequest)(x) -} - -func (x *QueryEncounterRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[18] - 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_QueryEncounterRequest_messageType fastReflection_QueryEncounterRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncounterRequest_messageType{} - -type fastReflection_QueryEncounterRequest_messageType struct{} - -func (x fastReflection_QueryEncounterRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncounterRequest)(nil) -} -func (x fastReflection_QueryEncounterRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncounterRequest) -} -func (x fastReflection_QueryEncounterRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncounterRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterRequest -} - -// 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_QueryEncounterRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryEncounterRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncounterRequest) New() protoreflect.Message { - return new(fastReflection_QueryEncounterRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncounterRequest) Interface() protoreflect.ProtoMessage { - return (*QueryEncounterRequest)(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_QueryEncounterRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.EncounterId != uint64(0) { - value := protoreflect.ValueOfUint64(x.EncounterId) - if !f(fd_QueryEncounterRequest_encounterId, 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_QueryEncounterRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterRequest.encounterId": - return x.EncounterId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterRequest 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_QueryEncounterRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterRequest.encounterId": - x.EncounterId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterRequest 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_QueryEncounterRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryEncounterRequest.encounterId": - value := x.EncounterId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterRequest 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_QueryEncounterRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterRequest.encounterId": - x.EncounterId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterRequest 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_QueryEncounterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterRequest.encounterId": - panic(fmt.Errorf("field encounterId of message cardchain.cardchain.QueryEncounterRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterRequest 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_QueryEncounterRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterRequest.encounterId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterRequest 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_QueryEncounterRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncounterRequest", 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_QueryEncounterRequest) 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_QueryEncounterRequest) 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_QueryEncounterRequest) 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_QueryEncounterRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncounterRequest) - 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.EncounterId != 0 { - n += 1 + runtime.Sov(uint64(x.EncounterId)) - } - 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().(*QueryEncounterRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.EncounterId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EncounterId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryEncounterRequest) - 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: QueryEncounterRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncounterRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncounterId", wireType) - } - x.EncounterId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EncounterId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryEncounterResponse protoreflect.MessageDescriptor - fd_QueryEncounterResponse_encounter protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncounterResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncounterResponse") - fd_QueryEncounterResponse_encounter = md_QueryEncounterResponse.Fields().ByName("encounter") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncounterResponse)(nil) - -type fastReflection_QueryEncounterResponse QueryEncounterResponse - -func (x *QueryEncounterResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncounterResponse)(x) -} - -func (x *QueryEncounterResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_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_QueryEncounterResponse_messageType fastReflection_QueryEncounterResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncounterResponse_messageType{} - -type fastReflection_QueryEncounterResponse_messageType struct{} - -func (x fastReflection_QueryEncounterResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncounterResponse)(nil) -} -func (x fastReflection_QueryEncounterResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncounterResponse) -} -func (x fastReflection_QueryEncounterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncounterResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterResponse -} - -// 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_QueryEncounterResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryEncounterResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncounterResponse) New() protoreflect.Message { - return new(fastReflection_QueryEncounterResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncounterResponse) Interface() protoreflect.ProtoMessage { - return (*QueryEncounterResponse)(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_QueryEncounterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Encounter != nil { - value := protoreflect.ValueOfMessage(x.Encounter.ProtoReflect()) - if !f(fd_QueryEncounterResponse_encounter, 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_QueryEncounterResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterResponse.encounter": - return x.Encounter != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterResponse 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_QueryEncounterResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterResponse.encounter": - x.Encounter = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterResponse 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_QueryEncounterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryEncounterResponse.encounter": - value := x.Encounter - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterResponse 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_QueryEncounterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterResponse.encounter": - x.Encounter = value.Message().Interface().(*Encounter) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterResponse 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_QueryEncounterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterResponse.encounter": - if x.Encounter == nil { - x.Encounter = new(Encounter) - } - return protoreflect.ValueOfMessage(x.Encounter.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterResponse 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_QueryEncounterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterResponse.encounter": - m := new(Encounter) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterResponse 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_QueryEncounterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncounterResponse", 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_QueryEncounterResponse) 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_QueryEncounterResponse) 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_QueryEncounterResponse) 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_QueryEncounterResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncounterResponse) - 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.Encounter != nil { - l = options.Size(x.Encounter) - 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().(*QueryEncounterResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Encounter != nil { - encoded, err := options.Marshal(x.Encounter) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryEncounterResponse) - 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: QueryEncounterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncounterResponse: 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 Encounter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Encounter == nil { - x.Encounter = &Encounter{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Encounter); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryEncountersRequest protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncountersRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncountersRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncountersRequest)(nil) - -type fastReflection_QueryEncountersRequest QueryEncountersRequest - -func (x *QueryEncountersRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncountersRequest)(x) -} - -func (x *QueryEncountersRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[20] - 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_QueryEncountersRequest_messageType fastReflection_QueryEncountersRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncountersRequest_messageType{} - -type fastReflection_QueryEncountersRequest_messageType struct{} - -func (x fastReflection_QueryEncountersRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncountersRequest)(nil) -} -func (x fastReflection_QueryEncountersRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncountersRequest) -} -func (x fastReflection_QueryEncountersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncountersRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersRequest -} - -// 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_QueryEncountersRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryEncountersRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncountersRequest) New() protoreflect.Message { - return new(fastReflection_QueryEncountersRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncountersRequest) Interface() protoreflect.ProtoMessage { - return (*QueryEncountersRequest)(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_QueryEncountersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryEncountersRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersRequest 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_QueryEncountersRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersRequest 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_QueryEncountersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersRequest 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_QueryEncountersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersRequest 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_QueryEncountersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersRequest 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_QueryEncountersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersRequest 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_QueryEncountersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncountersRequest", 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_QueryEncountersRequest) 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_QueryEncountersRequest) 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_QueryEncountersRequest) 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_QueryEncountersRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncountersRequest) - 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().(*QueryEncountersRequest) - 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().(*QueryEncountersRequest) - 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: QueryEncountersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncountersRequest: 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 = (*_QueryEncountersResponse_1_list)(nil) - -type _QueryEncountersResponse_1_list struct { - list *[]*Encounter -} - -func (x *_QueryEncountersResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryEncountersResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryEncountersResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Encounter) - (*x.list)[i] = concreteValue -} - -func (x *_QueryEncountersResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Encounter) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryEncountersResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Encounter) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryEncountersResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryEncountersResponse_1_list) NewElement() protoreflect.Value { - v := new(Encounter) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryEncountersResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryEncountersResponse protoreflect.MessageDescriptor - fd_QueryEncountersResponse_encounters protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncountersResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncountersResponse") - fd_QueryEncountersResponse_encounters = md_QueryEncountersResponse.Fields().ByName("encounters") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncountersResponse)(nil) - -type fastReflection_QueryEncountersResponse QueryEncountersResponse - -func (x *QueryEncountersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncountersResponse)(x) -} - -func (x *QueryEncountersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[21] - 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_QueryEncountersResponse_messageType fastReflection_QueryEncountersResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncountersResponse_messageType{} - -type fastReflection_QueryEncountersResponse_messageType struct{} - -func (x fastReflection_QueryEncountersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncountersResponse)(nil) -} -func (x fastReflection_QueryEncountersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncountersResponse) -} -func (x fastReflection_QueryEncountersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncountersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersResponse -} - -// 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_QueryEncountersResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryEncountersResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncountersResponse) New() protoreflect.Message { - return new(fastReflection_QueryEncountersResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncountersResponse) Interface() protoreflect.ProtoMessage { - return (*QueryEncountersResponse)(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_QueryEncountersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Encounters) != 0 { - value := protoreflect.ValueOfList(&_QueryEncountersResponse_1_list{list: &x.Encounters}) - if !f(fd_QueryEncountersResponse_encounters, 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_QueryEncountersResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersResponse.encounters": - return len(x.Encounters) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersResponse 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_QueryEncountersResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersResponse.encounters": - x.Encounters = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersResponse 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_QueryEncountersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryEncountersResponse.encounters": - if len(x.Encounters) == 0 { - return protoreflect.ValueOfList(&_QueryEncountersResponse_1_list{}) - } - listValue := &_QueryEncountersResponse_1_list{list: &x.Encounters} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersResponse 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_QueryEncountersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersResponse.encounters": - lv := value.List() - clv := lv.(*_QueryEncountersResponse_1_list) - x.Encounters = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersResponse 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_QueryEncountersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersResponse.encounters": - if x.Encounters == nil { - x.Encounters = []*Encounter{} - } - value := &_QueryEncountersResponse_1_list{list: &x.Encounters} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersResponse 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_QueryEncountersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersResponse.encounters": - list := []*Encounter{} - return protoreflect.ValueOfList(&_QueryEncountersResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersResponse 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_QueryEncountersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncountersResponse", 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_QueryEncountersResponse) 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_QueryEncountersResponse) 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_QueryEncountersResponse) 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_QueryEncountersResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncountersResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Encounters) > 0 { - for _, e := range x.Encounters { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryEncountersResponse) - 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.Encounters) > 0 { - for iNdEx := len(x.Encounters) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Encounters[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryEncountersResponse) - 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: QueryEncountersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncountersResponse: 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 Encounters", 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.Encounters = append(x.Encounters, &Encounter{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Encounters[len(x.Encounters)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryEncounterWithImageRequest protoreflect.MessageDescriptor - fd_QueryEncounterWithImageRequest_encounterId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncounterWithImageRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncounterWithImageRequest") - fd_QueryEncounterWithImageRequest_encounterId = md_QueryEncounterWithImageRequest.Fields().ByName("encounterId") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncounterWithImageRequest)(nil) - -type fastReflection_QueryEncounterWithImageRequest QueryEncounterWithImageRequest - -func (x *QueryEncounterWithImageRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncounterWithImageRequest)(x) -} - -func (x *QueryEncounterWithImageRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[22] - 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_QueryEncounterWithImageRequest_messageType fastReflection_QueryEncounterWithImageRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncounterWithImageRequest_messageType{} - -type fastReflection_QueryEncounterWithImageRequest_messageType struct{} - -func (x fastReflection_QueryEncounterWithImageRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncounterWithImageRequest)(nil) -} -func (x fastReflection_QueryEncounterWithImageRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncounterWithImageRequest) -} -func (x fastReflection_QueryEncounterWithImageRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterWithImageRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncounterWithImageRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterWithImageRequest -} - -// 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_QueryEncounterWithImageRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryEncounterWithImageRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncounterWithImageRequest) New() protoreflect.Message { - return new(fastReflection_QueryEncounterWithImageRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncounterWithImageRequest) Interface() protoreflect.ProtoMessage { - return (*QueryEncounterWithImageRequest)(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_QueryEncounterWithImageRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.EncounterId != uint64(0) { - value := protoreflect.ValueOfUint64(x.EncounterId) - if !f(fd_QueryEncounterWithImageRequest_encounterId, 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_QueryEncounterWithImageRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageRequest.encounterId": - return x.EncounterId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageRequest 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_QueryEncounterWithImageRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageRequest.encounterId": - x.EncounterId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageRequest 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_QueryEncounterWithImageRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageRequest.encounterId": - value := x.EncounterId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageRequest 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_QueryEncounterWithImageRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageRequest.encounterId": - x.EncounterId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageRequest 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_QueryEncounterWithImageRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageRequest.encounterId": - panic(fmt.Errorf("field encounterId of message cardchain.cardchain.QueryEncounterWithImageRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageRequest 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_QueryEncounterWithImageRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageRequest.encounterId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageRequest 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_QueryEncounterWithImageRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncounterWithImageRequest", 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_QueryEncounterWithImageRequest) 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_QueryEncounterWithImageRequest) 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_QueryEncounterWithImageRequest) 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_QueryEncounterWithImageRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncounterWithImageRequest) - 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.EncounterId != 0 { - n += 1 + runtime.Sov(uint64(x.EncounterId)) - } - 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().(*QueryEncounterWithImageRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.EncounterId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EncounterId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryEncounterWithImageRequest) - 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: QueryEncounterWithImageRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncounterWithImageRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncounterId", wireType) - } - x.EncounterId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EncounterId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryEncounterWithImageResponse protoreflect.MessageDescriptor - fd_QueryEncounterWithImageResponse_encounter protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncounterWithImageResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncounterWithImageResponse") - fd_QueryEncounterWithImageResponse_encounter = md_QueryEncounterWithImageResponse.Fields().ByName("encounter") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncounterWithImageResponse)(nil) - -type fastReflection_QueryEncounterWithImageResponse QueryEncounterWithImageResponse - -func (x *QueryEncounterWithImageResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncounterWithImageResponse)(x) -} - -func (x *QueryEncounterWithImageResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[23] - 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_QueryEncounterWithImageResponse_messageType fastReflection_QueryEncounterWithImageResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncounterWithImageResponse_messageType{} - -type fastReflection_QueryEncounterWithImageResponse_messageType struct{} - -func (x fastReflection_QueryEncounterWithImageResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncounterWithImageResponse)(nil) -} -func (x fastReflection_QueryEncounterWithImageResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncounterWithImageResponse) -} -func (x fastReflection_QueryEncounterWithImageResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterWithImageResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncounterWithImageResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncounterWithImageResponse -} - -// 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_QueryEncounterWithImageResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryEncounterWithImageResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncounterWithImageResponse) New() protoreflect.Message { - return new(fastReflection_QueryEncounterWithImageResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncounterWithImageResponse) Interface() protoreflect.ProtoMessage { - return (*QueryEncounterWithImageResponse)(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_QueryEncounterWithImageResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Encounter != nil { - value := protoreflect.ValueOfMessage(x.Encounter.ProtoReflect()) - if !f(fd_QueryEncounterWithImageResponse_encounter, 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_QueryEncounterWithImageResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageResponse.encounter": - return x.Encounter != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageResponse 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_QueryEncounterWithImageResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageResponse.encounter": - x.Encounter = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageResponse 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_QueryEncounterWithImageResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageResponse.encounter": - value := x.Encounter - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageResponse 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_QueryEncounterWithImageResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageResponse.encounter": - x.Encounter = value.Message().Interface().(*EncounterWithImage) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageResponse 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_QueryEncounterWithImageResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageResponse.encounter": - if x.Encounter == nil { - x.Encounter = new(EncounterWithImage) - } - return protoreflect.ValueOfMessage(x.Encounter.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageResponse 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_QueryEncounterWithImageResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncounterWithImageResponse.encounter": - m := new(EncounterWithImage) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncounterWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncounterWithImageResponse 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_QueryEncounterWithImageResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncounterWithImageResponse", 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_QueryEncounterWithImageResponse) 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_QueryEncounterWithImageResponse) 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_QueryEncounterWithImageResponse) 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_QueryEncounterWithImageResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncounterWithImageResponse) - 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.Encounter != nil { - l = options.Size(x.Encounter) - 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().(*QueryEncounterWithImageResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Encounter != nil { - encoded, err := options.Marshal(x.Encounter) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryEncounterWithImageResponse) - 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: QueryEncounterWithImageResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncounterWithImageResponse: 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 Encounter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Encounter == nil { - x.Encounter = &EncounterWithImage{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Encounter); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryEncountersWithImageRequest protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncountersWithImageRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncountersWithImageRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncountersWithImageRequest)(nil) - -type fastReflection_QueryEncountersWithImageRequest QueryEncountersWithImageRequest - -func (x *QueryEncountersWithImageRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncountersWithImageRequest)(x) -} - -func (x *QueryEncountersWithImageRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[24] - 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_QueryEncountersWithImageRequest_messageType fastReflection_QueryEncountersWithImageRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncountersWithImageRequest_messageType{} - -type fastReflection_QueryEncountersWithImageRequest_messageType struct{} - -func (x fastReflection_QueryEncountersWithImageRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncountersWithImageRequest)(nil) -} -func (x fastReflection_QueryEncountersWithImageRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncountersWithImageRequest) -} -func (x fastReflection_QueryEncountersWithImageRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersWithImageRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncountersWithImageRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersWithImageRequest -} - -// 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_QueryEncountersWithImageRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryEncountersWithImageRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncountersWithImageRequest) New() protoreflect.Message { - return new(fastReflection_QueryEncountersWithImageRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncountersWithImageRequest) Interface() protoreflect.ProtoMessage { - return (*QueryEncountersWithImageRequest)(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_QueryEncountersWithImageRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryEncountersWithImageRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageRequest 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_QueryEncountersWithImageRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageRequest 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_QueryEncountersWithImageRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageRequest 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_QueryEncountersWithImageRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageRequest 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_QueryEncountersWithImageRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageRequest 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_QueryEncountersWithImageRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageRequest 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_QueryEncountersWithImageRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncountersWithImageRequest", 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_QueryEncountersWithImageRequest) 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_QueryEncountersWithImageRequest) 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_QueryEncountersWithImageRequest) 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_QueryEncountersWithImageRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncountersWithImageRequest) - 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().(*QueryEncountersWithImageRequest) - 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().(*QueryEncountersWithImageRequest) - 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: QueryEncountersWithImageRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncountersWithImageRequest: 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 = (*_QueryEncountersWithImageResponse_1_list)(nil) - -type _QueryEncountersWithImageResponse_1_list struct { - list *[]*EncounterWithImage -} - -func (x *_QueryEncountersWithImageResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryEncountersWithImageResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryEncountersWithImageResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncounterWithImage) - (*x.list)[i] = concreteValue -} - -func (x *_QueryEncountersWithImageResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncounterWithImage) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryEncountersWithImageResponse_1_list) AppendMutable() protoreflect.Value { - v := new(EncounterWithImage) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryEncountersWithImageResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryEncountersWithImageResponse_1_list) NewElement() protoreflect.Value { - v := new(EncounterWithImage) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryEncountersWithImageResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryEncountersWithImageResponse protoreflect.MessageDescriptor - fd_QueryEncountersWithImageResponse_encounters protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryEncountersWithImageResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryEncountersWithImageResponse") - fd_QueryEncountersWithImageResponse_encounters = md_QueryEncountersWithImageResponse.Fields().ByName("encounters") -} - -var _ protoreflect.Message = (*fastReflection_QueryEncountersWithImageResponse)(nil) - -type fastReflection_QueryEncountersWithImageResponse QueryEncountersWithImageResponse - -func (x *QueryEncountersWithImageResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEncountersWithImageResponse)(x) -} - -func (x *QueryEncountersWithImageResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[25] - 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_QueryEncountersWithImageResponse_messageType fastReflection_QueryEncountersWithImageResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryEncountersWithImageResponse_messageType{} - -type fastReflection_QueryEncountersWithImageResponse_messageType struct{} - -func (x fastReflection_QueryEncountersWithImageResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEncountersWithImageResponse)(nil) -} -func (x fastReflection_QueryEncountersWithImageResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEncountersWithImageResponse) -} -func (x fastReflection_QueryEncountersWithImageResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersWithImageResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEncountersWithImageResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEncountersWithImageResponse -} - -// 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_QueryEncountersWithImageResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryEncountersWithImageResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEncountersWithImageResponse) New() protoreflect.Message { - return new(fastReflection_QueryEncountersWithImageResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEncountersWithImageResponse) Interface() protoreflect.ProtoMessage { - return (*QueryEncountersWithImageResponse)(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_QueryEncountersWithImageResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Encounters) != 0 { - value := protoreflect.ValueOfList(&_QueryEncountersWithImageResponse_1_list{list: &x.Encounters}) - if !f(fd_QueryEncountersWithImageResponse_encounters, 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_QueryEncountersWithImageResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersWithImageResponse.encounters": - return len(x.Encounters) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageResponse 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_QueryEncountersWithImageResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersWithImageResponse.encounters": - x.Encounters = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageResponse 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_QueryEncountersWithImageResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryEncountersWithImageResponse.encounters": - if len(x.Encounters) == 0 { - return protoreflect.ValueOfList(&_QueryEncountersWithImageResponse_1_list{}) - } - listValue := &_QueryEncountersWithImageResponse_1_list{list: &x.Encounters} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageResponse 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_QueryEncountersWithImageResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersWithImageResponse.encounters": - lv := value.List() - clv := lv.(*_QueryEncountersWithImageResponse_1_list) - x.Encounters = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageResponse 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_QueryEncountersWithImageResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersWithImageResponse.encounters": - if x.Encounters == nil { - x.Encounters = []*EncounterWithImage{} - } - value := &_QueryEncountersWithImageResponse_1_list{list: &x.Encounters} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageResponse 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_QueryEncountersWithImageResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryEncountersWithImageResponse.encounters": - list := []*EncounterWithImage{} - return protoreflect.ValueOfList(&_QueryEncountersWithImageResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryEncountersWithImageResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryEncountersWithImageResponse 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_QueryEncountersWithImageResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryEncountersWithImageResponse", 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_QueryEncountersWithImageResponse) 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_QueryEncountersWithImageResponse) 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_QueryEncountersWithImageResponse) 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_QueryEncountersWithImageResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEncountersWithImageResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Encounters) > 0 { - for _, e := range x.Encounters { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryEncountersWithImageResponse) - 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.Encounters) > 0 { - for iNdEx := len(x.Encounters) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Encounters[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryEncountersWithImageResponse) - 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: QueryEncountersWithImageResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncountersWithImageResponse: 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 Encounters", 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.Encounters = append(x.Encounters, &EncounterWithImage{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Encounters[len(x.Encounters)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryCardchainInfoRequest protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardchainInfoRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardchainInfoRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardchainInfoRequest)(nil) - -type fastReflection_QueryCardchainInfoRequest QueryCardchainInfoRequest - -func (x *QueryCardchainInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardchainInfoRequest)(x) -} - -func (x *QueryCardchainInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[26] - 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_QueryCardchainInfoRequest_messageType fastReflection_QueryCardchainInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardchainInfoRequest_messageType{} - -type fastReflection_QueryCardchainInfoRequest_messageType struct{} - -func (x fastReflection_QueryCardchainInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardchainInfoRequest)(nil) -} -func (x fastReflection_QueryCardchainInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardchainInfoRequest) -} -func (x fastReflection_QueryCardchainInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardchainInfoRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardchainInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardchainInfoRequest -} - -// 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_QueryCardchainInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryCardchainInfoRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardchainInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryCardchainInfoRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardchainInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryCardchainInfoRequest)(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_QueryCardchainInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryCardchainInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoRequest 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_QueryCardchainInfoRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoRequest 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_QueryCardchainInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoRequest 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_QueryCardchainInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoRequest 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_QueryCardchainInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoRequest 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_QueryCardchainInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoRequest 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_QueryCardchainInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardchainInfoRequest", 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_QueryCardchainInfoRequest) 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_QueryCardchainInfoRequest) 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_QueryCardchainInfoRequest) 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_QueryCardchainInfoRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardchainInfoRequest) - 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().(*QueryCardchainInfoRequest) - 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().(*QueryCardchainInfoRequest) - 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: QueryCardchainInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardchainInfoRequest: 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 = (*_QueryCardchainInfoResponse_2_list)(nil) - -type _QueryCardchainInfoResponse_2_list struct { - list *[]uint64 -} - -func (x *_QueryCardchainInfoResponse_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardchainInfoResponse_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QueryCardchainInfoResponse_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardchainInfoResponse_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardchainInfoResponse_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryCardchainInfoResponse at list field ActiveSets as it is not of Message kind")) -} - -func (x *_QueryCardchainInfoResponse_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardchainInfoResponse_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QueryCardchainInfoResponse_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryCardchainInfoResponse protoreflect.MessageDescriptor - fd_QueryCardchainInfoResponse_cardAuctionPrice protoreflect.FieldDescriptor - fd_QueryCardchainInfoResponse_activeSets protoreflect.FieldDescriptor - fd_QueryCardchainInfoResponse_cardsNumber protoreflect.FieldDescriptor - fd_QueryCardchainInfoResponse_matchesNumber protoreflect.FieldDescriptor - fd_QueryCardchainInfoResponse_sellOffersNumber protoreflect.FieldDescriptor - fd_QueryCardchainInfoResponse_councilsNumber protoreflect.FieldDescriptor - fd_QueryCardchainInfoResponse_lastCardModified protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardchainInfoResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardchainInfoResponse") - fd_QueryCardchainInfoResponse_cardAuctionPrice = md_QueryCardchainInfoResponse.Fields().ByName("cardAuctionPrice") - fd_QueryCardchainInfoResponse_activeSets = md_QueryCardchainInfoResponse.Fields().ByName("activeSets") - fd_QueryCardchainInfoResponse_cardsNumber = md_QueryCardchainInfoResponse.Fields().ByName("cardsNumber") - fd_QueryCardchainInfoResponse_matchesNumber = md_QueryCardchainInfoResponse.Fields().ByName("matchesNumber") - fd_QueryCardchainInfoResponse_sellOffersNumber = md_QueryCardchainInfoResponse.Fields().ByName("sellOffersNumber") - fd_QueryCardchainInfoResponse_councilsNumber = md_QueryCardchainInfoResponse.Fields().ByName("councilsNumber") - fd_QueryCardchainInfoResponse_lastCardModified = md_QueryCardchainInfoResponse.Fields().ByName("lastCardModified") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardchainInfoResponse)(nil) - -type fastReflection_QueryCardchainInfoResponse QueryCardchainInfoResponse - -func (x *QueryCardchainInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardchainInfoResponse)(x) -} - -func (x *QueryCardchainInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[27] - 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_QueryCardchainInfoResponse_messageType fastReflection_QueryCardchainInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardchainInfoResponse_messageType{} - -type fastReflection_QueryCardchainInfoResponse_messageType struct{} - -func (x fastReflection_QueryCardchainInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardchainInfoResponse)(nil) -} -func (x fastReflection_QueryCardchainInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardchainInfoResponse) -} -func (x fastReflection_QueryCardchainInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardchainInfoResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardchainInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardchainInfoResponse -} - -// 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_QueryCardchainInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryCardchainInfoResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardchainInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryCardchainInfoResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardchainInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryCardchainInfoResponse)(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_QueryCardchainInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardAuctionPrice != nil { - value := protoreflect.ValueOfMessage(x.CardAuctionPrice.ProtoReflect()) - if !f(fd_QueryCardchainInfoResponse_cardAuctionPrice, value) { - return - } - } - if len(x.ActiveSets) != 0 { - value := protoreflect.ValueOfList(&_QueryCardchainInfoResponse_2_list{list: &x.ActiveSets}) - if !f(fd_QueryCardchainInfoResponse_activeSets, value) { - return - } - } - if x.CardsNumber != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardsNumber) - if !f(fd_QueryCardchainInfoResponse_cardsNumber, value) { - return - } - } - if x.MatchesNumber != uint64(0) { - value := protoreflect.ValueOfUint64(x.MatchesNumber) - if !f(fd_QueryCardchainInfoResponse_matchesNumber, value) { - return - } - } - if x.SellOffersNumber != uint64(0) { - value := protoreflect.ValueOfUint64(x.SellOffersNumber) - if !f(fd_QueryCardchainInfoResponse_sellOffersNumber, value) { - return - } - } - if x.CouncilsNumber != uint64(0) { - value := protoreflect.ValueOfUint64(x.CouncilsNumber) - if !f(fd_QueryCardchainInfoResponse_councilsNumber, value) { - return - } - } - if x.LastCardModified != uint64(0) { - value := protoreflect.ValueOfUint64(x.LastCardModified) - if !f(fd_QueryCardchainInfoResponse_lastCardModified, 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_QueryCardchainInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardchainInfoResponse.cardAuctionPrice": - return x.CardAuctionPrice != nil - case "cardchain.cardchain.QueryCardchainInfoResponse.activeSets": - return len(x.ActiveSets) != 0 - case "cardchain.cardchain.QueryCardchainInfoResponse.cardsNumber": - return x.CardsNumber != uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.matchesNumber": - return x.MatchesNumber != uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.sellOffersNumber": - return x.SellOffersNumber != uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.councilsNumber": - return x.CouncilsNumber != uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.lastCardModified": - return x.LastCardModified != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoResponse 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_QueryCardchainInfoResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardchainInfoResponse.cardAuctionPrice": - x.CardAuctionPrice = nil - case "cardchain.cardchain.QueryCardchainInfoResponse.activeSets": - x.ActiveSets = nil - case "cardchain.cardchain.QueryCardchainInfoResponse.cardsNumber": - x.CardsNumber = uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.matchesNumber": - x.MatchesNumber = uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.sellOffersNumber": - x.SellOffersNumber = uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.councilsNumber": - x.CouncilsNumber = uint64(0) - case "cardchain.cardchain.QueryCardchainInfoResponse.lastCardModified": - x.LastCardModified = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoResponse 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_QueryCardchainInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardchainInfoResponse.cardAuctionPrice": - value := x.CardAuctionPrice - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.QueryCardchainInfoResponse.activeSets": - if len(x.ActiveSets) == 0 { - return protoreflect.ValueOfList(&_QueryCardchainInfoResponse_2_list{}) - } - listValue := &_QueryCardchainInfoResponse_2_list{list: &x.ActiveSets} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QueryCardchainInfoResponse.cardsNumber": - value := x.CardsNumber - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.QueryCardchainInfoResponse.matchesNumber": - value := x.MatchesNumber - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.QueryCardchainInfoResponse.sellOffersNumber": - value := x.SellOffersNumber - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.QueryCardchainInfoResponse.councilsNumber": - value := x.CouncilsNumber - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.QueryCardchainInfoResponse.lastCardModified": - value := x.LastCardModified - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoResponse 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_QueryCardchainInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardchainInfoResponse.cardAuctionPrice": - x.CardAuctionPrice = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.QueryCardchainInfoResponse.activeSets": - lv := value.List() - clv := lv.(*_QueryCardchainInfoResponse_2_list) - x.ActiveSets = *clv.list - case "cardchain.cardchain.QueryCardchainInfoResponse.cardsNumber": - x.CardsNumber = value.Uint() - case "cardchain.cardchain.QueryCardchainInfoResponse.matchesNumber": - x.MatchesNumber = value.Uint() - case "cardchain.cardchain.QueryCardchainInfoResponse.sellOffersNumber": - x.SellOffersNumber = value.Uint() - case "cardchain.cardchain.QueryCardchainInfoResponse.councilsNumber": - x.CouncilsNumber = value.Uint() - case "cardchain.cardchain.QueryCardchainInfoResponse.lastCardModified": - x.LastCardModified = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoResponse 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_QueryCardchainInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardchainInfoResponse.cardAuctionPrice": - if x.CardAuctionPrice == nil { - x.CardAuctionPrice = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.CardAuctionPrice.ProtoReflect()) - case "cardchain.cardchain.QueryCardchainInfoResponse.activeSets": - if x.ActiveSets == nil { - x.ActiveSets = []uint64{} - } - value := &_QueryCardchainInfoResponse_2_list{list: &x.ActiveSets} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryCardchainInfoResponse.cardsNumber": - panic(fmt.Errorf("field cardsNumber of message cardchain.cardchain.QueryCardchainInfoResponse is not mutable")) - case "cardchain.cardchain.QueryCardchainInfoResponse.matchesNumber": - panic(fmt.Errorf("field matchesNumber of message cardchain.cardchain.QueryCardchainInfoResponse is not mutable")) - case "cardchain.cardchain.QueryCardchainInfoResponse.sellOffersNumber": - panic(fmt.Errorf("field sellOffersNumber of message cardchain.cardchain.QueryCardchainInfoResponse is not mutable")) - case "cardchain.cardchain.QueryCardchainInfoResponse.councilsNumber": - panic(fmt.Errorf("field councilsNumber of message cardchain.cardchain.QueryCardchainInfoResponse is not mutable")) - case "cardchain.cardchain.QueryCardchainInfoResponse.lastCardModified": - panic(fmt.Errorf("field lastCardModified of message cardchain.cardchain.QueryCardchainInfoResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoResponse 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_QueryCardchainInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardchainInfoResponse.cardAuctionPrice": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.QueryCardchainInfoResponse.activeSets": - list := []uint64{} - return protoreflect.ValueOfList(&_QueryCardchainInfoResponse_2_list{list: &list}) - case "cardchain.cardchain.QueryCardchainInfoResponse.cardsNumber": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.QueryCardchainInfoResponse.matchesNumber": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.QueryCardchainInfoResponse.sellOffersNumber": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.QueryCardchainInfoResponse.councilsNumber": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.QueryCardchainInfoResponse.lastCardModified": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardchainInfoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardchainInfoResponse 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_QueryCardchainInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardchainInfoResponse", 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_QueryCardchainInfoResponse) 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_QueryCardchainInfoResponse) 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_QueryCardchainInfoResponse) 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_QueryCardchainInfoResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardchainInfoResponse) - 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.CardAuctionPrice != nil { - l = options.Size(x.CardAuctionPrice) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.ActiveSets) > 0 { - l = 0 - for _, e := range x.ActiveSets { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if x.CardsNumber != 0 { - n += 1 + runtime.Sov(uint64(x.CardsNumber)) - } - if x.MatchesNumber != 0 { - n += 1 + runtime.Sov(uint64(x.MatchesNumber)) - } - if x.SellOffersNumber != 0 { - n += 1 + runtime.Sov(uint64(x.SellOffersNumber)) - } - if x.CouncilsNumber != 0 { - n += 1 + runtime.Sov(uint64(x.CouncilsNumber)) - } - if x.LastCardModified != 0 { - n += 1 + runtime.Sov(uint64(x.LastCardModified)) - } - 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().(*QueryCardchainInfoResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.LastCardModified != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.LastCardModified)) - i-- - dAtA[i] = 0x38 - } - if x.CouncilsNumber != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CouncilsNumber)) - i-- - dAtA[i] = 0x30 - } - if x.SellOffersNumber != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SellOffersNumber)) - i-- - dAtA[i] = 0x28 - } - if x.MatchesNumber != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MatchesNumber)) - i-- - dAtA[i] = 0x20 - } - if x.CardsNumber != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardsNumber)) - i-- - dAtA[i] = 0x18 - } - if len(x.ActiveSets) > 0 { - var pksize2 int - for _, num := range x.ActiveSets { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.ActiveSets { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if x.CardAuctionPrice != nil { - encoded, err := options.Marshal(x.CardAuctionPrice) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryCardchainInfoResponse) - 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: QueryCardchainInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardchainInfoResponse: 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 CardAuctionPrice", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.CardAuctionPrice == nil { - x.CardAuctionPrice = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CardAuctionPrice); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ActiveSets = append(x.ActiveSets, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.ActiveSets) == 0 { - x.ActiveSets = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ActiveSets = append(x.ActiveSets, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveSets", wireType) - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardsNumber", wireType) - } - x.CardsNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardsNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MatchesNumber", wireType) - } - x.MatchesNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.MatchesNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOffersNumber", wireType) - } - x.SellOffersNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SellOffersNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CouncilsNumber", wireType) - } - x.CouncilsNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CouncilsNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCardModified", wireType) - } - x.LastCardModified = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.LastCardModified |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySetRarityDistributionRequest protoreflect.MessageDescriptor - fd_QuerySetRarityDistributionRequest_setId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySetRarityDistributionRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySetRarityDistributionRequest") - fd_QuerySetRarityDistributionRequest_setId = md_QuerySetRarityDistributionRequest.Fields().ByName("setId") -} - -var _ protoreflect.Message = (*fastReflection_QuerySetRarityDistributionRequest)(nil) - -type fastReflection_QuerySetRarityDistributionRequest QuerySetRarityDistributionRequest - -func (x *QuerySetRarityDistributionRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySetRarityDistributionRequest)(x) -} - -func (x *QuerySetRarityDistributionRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[28] - 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_QuerySetRarityDistributionRequest_messageType fastReflection_QuerySetRarityDistributionRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySetRarityDistributionRequest_messageType{} - -type fastReflection_QuerySetRarityDistributionRequest_messageType struct{} - -func (x fastReflection_QuerySetRarityDistributionRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySetRarityDistributionRequest)(nil) -} -func (x fastReflection_QuerySetRarityDistributionRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySetRarityDistributionRequest) -} -func (x fastReflection_QuerySetRarityDistributionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetRarityDistributionRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySetRarityDistributionRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetRarityDistributionRequest -} - -// 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_QuerySetRarityDistributionRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySetRarityDistributionRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySetRarityDistributionRequest) New() protoreflect.Message { - return new(fastReflection_QuerySetRarityDistributionRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySetRarityDistributionRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySetRarityDistributionRequest)(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_QuerySetRarityDistributionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_QuerySetRarityDistributionRequest_setId, 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_QuerySetRarityDistributionRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionRequest.setId": - return x.SetId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionRequest 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_QuerySetRarityDistributionRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionRequest.setId": - x.SetId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionRequest 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_QuerySetRarityDistributionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionRequest.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionRequest 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_QuerySetRarityDistributionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionRequest.setId": - x.SetId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionRequest 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_QuerySetRarityDistributionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionRequest.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.QuerySetRarityDistributionRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionRequest 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_QuerySetRarityDistributionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionRequest.setId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionRequest 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_QuerySetRarityDistributionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySetRarityDistributionRequest", 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_QuerySetRarityDistributionRequest) 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_QuerySetRarityDistributionRequest) 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_QuerySetRarityDistributionRequest) 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_QuerySetRarityDistributionRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySetRarityDistributionRequest) - 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.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - 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().(*QuerySetRarityDistributionRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QuerySetRarityDistributionRequest) - 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: QuerySetRarityDistributionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySetRarityDistributionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 = (*_QuerySetRarityDistributionResponse_1_list)(nil) - -type _QuerySetRarityDistributionResponse_1_list struct { - list *[]uint64 -} - -func (x *_QuerySetRarityDistributionResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySetRarityDistributionResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QuerySetRarityDistributionResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QuerySetRarityDistributionResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySetRarityDistributionResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QuerySetRarityDistributionResponse at list field Current as it is not of Message kind")) -} - -func (x *_QuerySetRarityDistributionResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QuerySetRarityDistributionResponse_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QuerySetRarityDistributionResponse_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QuerySetRarityDistributionResponse_2_list)(nil) - -type _QuerySetRarityDistributionResponse_2_list struct { - list *[]uint64 -} - -func (x *_QuerySetRarityDistributionResponse_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySetRarityDistributionResponse_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QuerySetRarityDistributionResponse_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QuerySetRarityDistributionResponse_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySetRarityDistributionResponse_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QuerySetRarityDistributionResponse at list field Wanted as it is not of Message kind")) -} - -func (x *_QuerySetRarityDistributionResponse_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QuerySetRarityDistributionResponse_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QuerySetRarityDistributionResponse_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QuerySetRarityDistributionResponse protoreflect.MessageDescriptor - fd_QuerySetRarityDistributionResponse_current protoreflect.FieldDescriptor - fd_QuerySetRarityDistributionResponse_wanted protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySetRarityDistributionResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySetRarityDistributionResponse") - fd_QuerySetRarityDistributionResponse_current = md_QuerySetRarityDistributionResponse.Fields().ByName("current") - fd_QuerySetRarityDistributionResponse_wanted = md_QuerySetRarityDistributionResponse.Fields().ByName("wanted") -} - -var _ protoreflect.Message = (*fastReflection_QuerySetRarityDistributionResponse)(nil) - -type fastReflection_QuerySetRarityDistributionResponse QuerySetRarityDistributionResponse - -func (x *QuerySetRarityDistributionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySetRarityDistributionResponse)(x) -} - -func (x *QuerySetRarityDistributionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[29] - 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_QuerySetRarityDistributionResponse_messageType fastReflection_QuerySetRarityDistributionResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySetRarityDistributionResponse_messageType{} - -type fastReflection_QuerySetRarityDistributionResponse_messageType struct{} - -func (x fastReflection_QuerySetRarityDistributionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySetRarityDistributionResponse)(nil) -} -func (x fastReflection_QuerySetRarityDistributionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySetRarityDistributionResponse) -} -func (x fastReflection_QuerySetRarityDistributionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetRarityDistributionResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySetRarityDistributionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetRarityDistributionResponse -} - -// 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_QuerySetRarityDistributionResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySetRarityDistributionResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySetRarityDistributionResponse) New() protoreflect.Message { - return new(fastReflection_QuerySetRarityDistributionResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySetRarityDistributionResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySetRarityDistributionResponse)(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_QuerySetRarityDistributionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Current) != 0 { - value := protoreflect.ValueOfList(&_QuerySetRarityDistributionResponse_1_list{list: &x.Current}) - if !f(fd_QuerySetRarityDistributionResponse_current, value) { - return - } - } - if len(x.Wanted) != 0 { - value := protoreflect.ValueOfList(&_QuerySetRarityDistributionResponse_2_list{list: &x.Wanted}) - if !f(fd_QuerySetRarityDistributionResponse_wanted, 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_QuerySetRarityDistributionResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionResponse.current": - return len(x.Current) != 0 - case "cardchain.cardchain.QuerySetRarityDistributionResponse.wanted": - return len(x.Wanted) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionResponse 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_QuerySetRarityDistributionResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionResponse.current": - x.Current = nil - case "cardchain.cardchain.QuerySetRarityDistributionResponse.wanted": - x.Wanted = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionResponse 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_QuerySetRarityDistributionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionResponse.current": - if len(x.Current) == 0 { - return protoreflect.ValueOfList(&_QuerySetRarityDistributionResponse_1_list{}) - } - listValue := &_QuerySetRarityDistributionResponse_1_list{list: &x.Current} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QuerySetRarityDistributionResponse.wanted": - if len(x.Wanted) == 0 { - return protoreflect.ValueOfList(&_QuerySetRarityDistributionResponse_2_list{}) - } - listValue := &_QuerySetRarityDistributionResponse_2_list{list: &x.Wanted} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionResponse 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_QuerySetRarityDistributionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionResponse.current": - lv := value.List() - clv := lv.(*_QuerySetRarityDistributionResponse_1_list) - x.Current = *clv.list - case "cardchain.cardchain.QuerySetRarityDistributionResponse.wanted": - lv := value.List() - clv := lv.(*_QuerySetRarityDistributionResponse_2_list) - x.Wanted = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionResponse 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_QuerySetRarityDistributionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionResponse.current": - if x.Current == nil { - x.Current = []uint64{} - } - value := &_QuerySetRarityDistributionResponse_1_list{list: &x.Current} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QuerySetRarityDistributionResponse.wanted": - if x.Wanted == nil { - x.Wanted = []uint64{} - } - value := &_QuerySetRarityDistributionResponse_2_list{list: &x.Wanted} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionResponse 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_QuerySetRarityDistributionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetRarityDistributionResponse.current": - list := []uint64{} - return protoreflect.ValueOfList(&_QuerySetRarityDistributionResponse_1_list{list: &list}) - case "cardchain.cardchain.QuerySetRarityDistributionResponse.wanted": - list := []uint64{} - return protoreflect.ValueOfList(&_QuerySetRarityDistributionResponse_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetRarityDistributionResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetRarityDistributionResponse 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_QuerySetRarityDistributionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySetRarityDistributionResponse", 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_QuerySetRarityDistributionResponse) 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_QuerySetRarityDistributionResponse) 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_QuerySetRarityDistributionResponse) 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_QuerySetRarityDistributionResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySetRarityDistributionResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Current) > 0 { - l = 0 - for _, e := range x.Current { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.Wanted) > 0 { - l = 0 - for _, e := range x.Wanted { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*QuerySetRarityDistributionResponse) - 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.Wanted) > 0 { - var pksize2 int - for _, num := range x.Wanted { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.Wanted { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(x.Current) > 0 { - var pksize4 int - for _, num := range x.Current { - pksize4 += runtime.Sov(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num := range x.Current { - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) - 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().(*QuerySetRarityDistributionResponse) - 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: QuerySetRarityDistributionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySetRarityDistributionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Current = append(x.Current, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Current) == 0 { - x.Current = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Current = append(x.Current, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) - } - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Wanted = append(x.Wanted, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Wanted) == 0 { - x.Wanted = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Wanted = append(x.Wanted, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Wanted", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryAccountFromZealyRequest protoreflect.MessageDescriptor - fd_QueryAccountFromZealyRequest_zealyId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryAccountFromZealyRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryAccountFromZealyRequest") - fd_QueryAccountFromZealyRequest_zealyId = md_QueryAccountFromZealyRequest.Fields().ByName("zealyId") -} - -var _ protoreflect.Message = (*fastReflection_QueryAccountFromZealyRequest)(nil) - -type fastReflection_QueryAccountFromZealyRequest QueryAccountFromZealyRequest - -func (x *QueryAccountFromZealyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAccountFromZealyRequest)(x) -} - -func (x *QueryAccountFromZealyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[30] - 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_QueryAccountFromZealyRequest_messageType fastReflection_QueryAccountFromZealyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAccountFromZealyRequest_messageType{} - -type fastReflection_QueryAccountFromZealyRequest_messageType struct{} - -func (x fastReflection_QueryAccountFromZealyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAccountFromZealyRequest)(nil) -} -func (x fastReflection_QueryAccountFromZealyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAccountFromZealyRequest) -} -func (x fastReflection_QueryAccountFromZealyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountFromZealyRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAccountFromZealyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountFromZealyRequest -} - -// 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_QueryAccountFromZealyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAccountFromZealyRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAccountFromZealyRequest) New() protoreflect.Message { - return new(fastReflection_QueryAccountFromZealyRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAccountFromZealyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAccountFromZealyRequest)(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_QueryAccountFromZealyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ZealyId != "" { - value := protoreflect.ValueOfString(x.ZealyId) - if !f(fd_QueryAccountFromZealyRequest_zealyId, 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_QueryAccountFromZealyRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyRequest.zealyId": - return x.ZealyId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyRequest 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_QueryAccountFromZealyRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyRequest.zealyId": - x.ZealyId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyRequest 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_QueryAccountFromZealyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyRequest.zealyId": - value := x.ZealyId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyRequest 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_QueryAccountFromZealyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyRequest.zealyId": - x.ZealyId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyRequest 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_QueryAccountFromZealyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyRequest.zealyId": - panic(fmt.Errorf("field zealyId of message cardchain.cardchain.QueryAccountFromZealyRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyRequest 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_QueryAccountFromZealyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyRequest.zealyId": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyRequest 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_QueryAccountFromZealyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryAccountFromZealyRequest", 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_QueryAccountFromZealyRequest) 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_QueryAccountFromZealyRequest) 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_QueryAccountFromZealyRequest) 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_QueryAccountFromZealyRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAccountFromZealyRequest) - 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.ZealyId) - 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().(*QueryAccountFromZealyRequest) - 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.ZealyId) > 0 { - i -= len(x.ZealyId) - copy(dAtA[i:], x.ZealyId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ZealyId))) - 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().(*QueryAccountFromZealyRequest) - 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: QueryAccountFromZealyRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAccountFromZealyRequest: 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 ZealyId", 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.ZealyId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryAccountFromZealyResponse protoreflect.MessageDescriptor - fd_QueryAccountFromZealyResponse_address protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryAccountFromZealyResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryAccountFromZealyResponse") - fd_QueryAccountFromZealyResponse_address = md_QueryAccountFromZealyResponse.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_QueryAccountFromZealyResponse)(nil) - -type fastReflection_QueryAccountFromZealyResponse QueryAccountFromZealyResponse - -func (x *QueryAccountFromZealyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAccountFromZealyResponse)(x) -} - -func (x *QueryAccountFromZealyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[31] - 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_QueryAccountFromZealyResponse_messageType fastReflection_QueryAccountFromZealyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAccountFromZealyResponse_messageType{} - -type fastReflection_QueryAccountFromZealyResponse_messageType struct{} - -func (x fastReflection_QueryAccountFromZealyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAccountFromZealyResponse)(nil) -} -func (x fastReflection_QueryAccountFromZealyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAccountFromZealyResponse) -} -func (x fastReflection_QueryAccountFromZealyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountFromZealyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAccountFromZealyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAccountFromZealyResponse -} - -// 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_QueryAccountFromZealyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAccountFromZealyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAccountFromZealyResponse) New() protoreflect.Message { - return new(fastReflection_QueryAccountFromZealyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAccountFromZealyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAccountFromZealyResponse)(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_QueryAccountFromZealyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryAccountFromZealyResponse_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAccountFromZealyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyResponse.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyResponse 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_QueryAccountFromZealyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyResponse.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyResponse 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_QueryAccountFromZealyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyResponse.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyResponse 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_QueryAccountFromZealyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyResponse.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyResponse 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_QueryAccountFromZealyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyResponse.address": - panic(fmt.Errorf("field address of message cardchain.cardchain.QueryAccountFromZealyResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyResponse 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_QueryAccountFromZealyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryAccountFromZealyResponse.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryAccountFromZealyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryAccountFromZealyResponse 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_QueryAccountFromZealyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryAccountFromZealyResponse", 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_QueryAccountFromZealyResponse) 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_QueryAccountFromZealyResponse) 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_QueryAccountFromZealyResponse) 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_QueryAccountFromZealyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAccountFromZealyResponse) - 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.Address) - 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().(*QueryAccountFromZealyResponse) - 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.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - 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().(*QueryAccountFromZealyResponse) - 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: QueryAccountFromZealyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAccountFromZealyResponse: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryVotingResultsRequest protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryVotingResultsRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryVotingResultsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryVotingResultsRequest)(nil) - -type fastReflection_QueryVotingResultsRequest QueryVotingResultsRequest - -func (x *QueryVotingResultsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVotingResultsRequest)(x) -} - -func (x *QueryVotingResultsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[32] - 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_QueryVotingResultsRequest_messageType fastReflection_QueryVotingResultsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryVotingResultsRequest_messageType{} - -type fastReflection_QueryVotingResultsRequest_messageType struct{} - -func (x fastReflection_QueryVotingResultsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVotingResultsRequest)(nil) -} -func (x fastReflection_QueryVotingResultsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVotingResultsRequest) -} -func (x fastReflection_QueryVotingResultsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotingResultsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVotingResultsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotingResultsRequest -} - -// 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_QueryVotingResultsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryVotingResultsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVotingResultsRequest) New() protoreflect.Message { - return new(fastReflection_QueryVotingResultsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVotingResultsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryVotingResultsRequest)(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_QueryVotingResultsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVotingResultsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsRequest 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_QueryVotingResultsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsRequest 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_QueryVotingResultsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsRequest 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_QueryVotingResultsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsRequest 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_QueryVotingResultsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsRequest 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_QueryVotingResultsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsRequest 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_QueryVotingResultsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryVotingResultsRequest", 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_QueryVotingResultsRequest) 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_QueryVotingResultsRequest) 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_QueryVotingResultsRequest) 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_QueryVotingResultsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVotingResultsRequest) - 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().(*QueryVotingResultsRequest) - 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().(*QueryVotingResultsRequest) - 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: QueryVotingResultsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotingResultsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryVotingResultsResponse protoreflect.MessageDescriptor - fd_QueryVotingResultsResponse_lastVotingResults protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryVotingResultsResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryVotingResultsResponse") - fd_QueryVotingResultsResponse_lastVotingResults = md_QueryVotingResultsResponse.Fields().ByName("lastVotingResults") -} - -var _ protoreflect.Message = (*fastReflection_QueryVotingResultsResponse)(nil) - -type fastReflection_QueryVotingResultsResponse QueryVotingResultsResponse - -func (x *QueryVotingResultsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVotingResultsResponse)(x) -} - -func (x *QueryVotingResultsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[33] - 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_QueryVotingResultsResponse_messageType fastReflection_QueryVotingResultsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryVotingResultsResponse_messageType{} - -type fastReflection_QueryVotingResultsResponse_messageType struct{} - -func (x fastReflection_QueryVotingResultsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVotingResultsResponse)(nil) -} -func (x fastReflection_QueryVotingResultsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVotingResultsResponse) -} -func (x fastReflection_QueryVotingResultsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotingResultsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryVotingResultsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVotingResultsResponse -} - -// 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_QueryVotingResultsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryVotingResultsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVotingResultsResponse) New() protoreflect.Message { - return new(fastReflection_QueryVotingResultsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVotingResultsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryVotingResultsResponse)(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_QueryVotingResultsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.LastVotingResults != nil { - value := protoreflect.ValueOfMessage(x.LastVotingResults.ProtoReflect()) - if !f(fd_QueryVotingResultsResponse_lastVotingResults, 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_QueryVotingResultsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryVotingResultsResponse.lastVotingResults": - return x.LastVotingResults != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsResponse 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_QueryVotingResultsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryVotingResultsResponse.lastVotingResults": - x.LastVotingResults = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsResponse 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_QueryVotingResultsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryVotingResultsResponse.lastVotingResults": - value := x.LastVotingResults - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsResponse 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_QueryVotingResultsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryVotingResultsResponse.lastVotingResults": - x.LastVotingResults = value.Message().Interface().(*VotingResults) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsResponse 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_QueryVotingResultsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryVotingResultsResponse.lastVotingResults": - if x.LastVotingResults == nil { - x.LastVotingResults = new(VotingResults) - } - return protoreflect.ValueOfMessage(x.LastVotingResults.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsResponse 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_QueryVotingResultsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryVotingResultsResponse.lastVotingResults": - m := new(VotingResults) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryVotingResultsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryVotingResultsResponse 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_QueryVotingResultsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryVotingResultsResponse", 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_QueryVotingResultsResponse) 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_QueryVotingResultsResponse) 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_QueryVotingResultsResponse) 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_QueryVotingResultsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVotingResultsResponse) - 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.LastVotingResults != nil { - l = options.Size(x.LastVotingResults) - 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().(*QueryVotingResultsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.LastVotingResults != nil { - encoded, err := options.Marshal(x.LastVotingResults) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVotingResultsResponse) - 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: QueryVotingResultsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotingResultsResponse: 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 LastVotingResults", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.LastVotingResults == nil { - x.LastVotingResults = &VotingResults{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastVotingResults); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryMatchesRequest_3_list)(nil) - -type _QueryMatchesRequest_3_list struct { - list *[]string -} - -func (x *_QueryMatchesRequest_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryMatchesRequest_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryMatchesRequest_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryMatchesRequest_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryMatchesRequest_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryMatchesRequest at list field ContainsUsers as it is not of Message kind")) -} - -func (x *_QueryMatchesRequest_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryMatchesRequest_3_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryMatchesRequest_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QueryMatchesRequest_6_list)(nil) - -type _QueryMatchesRequest_6_list struct { - list *[]uint64 -} - -func (x *_QueryMatchesRequest_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryMatchesRequest_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QueryMatchesRequest_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryMatchesRequest_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryMatchesRequest_6_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryMatchesRequest at list field CardsPlayed as it is not of Message kind")) -} - -func (x *_QueryMatchesRequest_6_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryMatchesRequest_6_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QueryMatchesRequest_6_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryMatchesRequest protoreflect.MessageDescriptor - fd_QueryMatchesRequest_timestampDown protoreflect.FieldDescriptor - fd_QueryMatchesRequest_timestampUp protoreflect.FieldDescriptor - fd_QueryMatchesRequest_containsUsers protoreflect.FieldDescriptor - fd_QueryMatchesRequest_reporter protoreflect.FieldDescriptor - fd_QueryMatchesRequest_outcome protoreflect.FieldDescriptor - fd_QueryMatchesRequest_cardsPlayed protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryMatchesRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryMatchesRequest") - fd_QueryMatchesRequest_timestampDown = md_QueryMatchesRequest.Fields().ByName("timestampDown") - fd_QueryMatchesRequest_timestampUp = md_QueryMatchesRequest.Fields().ByName("timestampUp") - fd_QueryMatchesRequest_containsUsers = md_QueryMatchesRequest.Fields().ByName("containsUsers") - fd_QueryMatchesRequest_reporter = md_QueryMatchesRequest.Fields().ByName("reporter") - fd_QueryMatchesRequest_outcome = md_QueryMatchesRequest.Fields().ByName("outcome") - fd_QueryMatchesRequest_cardsPlayed = md_QueryMatchesRequest.Fields().ByName("cardsPlayed") -} - -var _ protoreflect.Message = (*fastReflection_QueryMatchesRequest)(nil) - -type fastReflection_QueryMatchesRequest QueryMatchesRequest - -func (x *QueryMatchesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMatchesRequest)(x) -} - -func (x *QueryMatchesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[34] - 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_QueryMatchesRequest_messageType fastReflection_QueryMatchesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryMatchesRequest_messageType{} - -type fastReflection_QueryMatchesRequest_messageType struct{} - -func (x fastReflection_QueryMatchesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMatchesRequest)(nil) -} -func (x fastReflection_QueryMatchesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMatchesRequest) -} -func (x fastReflection_QueryMatchesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchesRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryMatchesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchesRequest -} - -// 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_QueryMatchesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryMatchesRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMatchesRequest) New() protoreflect.Message { - return new(fastReflection_QueryMatchesRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMatchesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryMatchesRequest)(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_QueryMatchesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TimestampDown != uint64(0) { - value := protoreflect.ValueOfUint64(x.TimestampDown) - if !f(fd_QueryMatchesRequest_timestampDown, value) { - return - } - } - if x.TimestampUp != uint64(0) { - value := protoreflect.ValueOfUint64(x.TimestampUp) - if !f(fd_QueryMatchesRequest_timestampUp, value) { - return - } - } - if len(x.ContainsUsers) != 0 { - value := protoreflect.ValueOfList(&_QueryMatchesRequest_3_list{list: &x.ContainsUsers}) - if !f(fd_QueryMatchesRequest_containsUsers, value) { - return - } - } - if x.Reporter != "" { - value := protoreflect.ValueOfString(x.Reporter) - if !f(fd_QueryMatchesRequest_reporter, value) { - return - } - } - if x.Outcome != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Outcome)) - if !f(fd_QueryMatchesRequest_outcome, value) { - return - } - } - if len(x.CardsPlayed) != 0 { - value := protoreflect.ValueOfList(&_QueryMatchesRequest_6_list{list: &x.CardsPlayed}) - if !f(fd_QueryMatchesRequest_cardsPlayed, 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_QueryMatchesRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesRequest.timestampDown": - return x.TimestampDown != uint64(0) - case "cardchain.cardchain.QueryMatchesRequest.timestampUp": - return x.TimestampUp != uint64(0) - case "cardchain.cardchain.QueryMatchesRequest.containsUsers": - return len(x.ContainsUsers) != 0 - case "cardchain.cardchain.QueryMatchesRequest.reporter": - return x.Reporter != "" - case "cardchain.cardchain.QueryMatchesRequest.outcome": - return x.Outcome != 0 - case "cardchain.cardchain.QueryMatchesRequest.cardsPlayed": - return len(x.CardsPlayed) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesRequest 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_QueryMatchesRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesRequest.timestampDown": - x.TimestampDown = uint64(0) - case "cardchain.cardchain.QueryMatchesRequest.timestampUp": - x.TimestampUp = uint64(0) - case "cardchain.cardchain.QueryMatchesRequest.containsUsers": - x.ContainsUsers = nil - case "cardchain.cardchain.QueryMatchesRequest.reporter": - x.Reporter = "" - case "cardchain.cardchain.QueryMatchesRequest.outcome": - x.Outcome = 0 - case "cardchain.cardchain.QueryMatchesRequest.cardsPlayed": - x.CardsPlayed = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesRequest 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_QueryMatchesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryMatchesRequest.timestampDown": - value := x.TimestampDown - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.QueryMatchesRequest.timestampUp": - value := x.TimestampUp - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.QueryMatchesRequest.containsUsers": - if len(x.ContainsUsers) == 0 { - return protoreflect.ValueOfList(&_QueryMatchesRequest_3_list{}) - } - listValue := &_QueryMatchesRequest_3_list{list: &x.ContainsUsers} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QueryMatchesRequest.reporter": - value := x.Reporter - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QueryMatchesRequest.outcome": - value := x.Outcome - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.QueryMatchesRequest.cardsPlayed": - if len(x.CardsPlayed) == 0 { - return protoreflect.ValueOfList(&_QueryMatchesRequest_6_list{}) - } - listValue := &_QueryMatchesRequest_6_list{list: &x.CardsPlayed} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesRequest 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_QueryMatchesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesRequest.timestampDown": - x.TimestampDown = value.Uint() - case "cardchain.cardchain.QueryMatchesRequest.timestampUp": - x.TimestampUp = value.Uint() - case "cardchain.cardchain.QueryMatchesRequest.containsUsers": - lv := value.List() - clv := lv.(*_QueryMatchesRequest_3_list) - x.ContainsUsers = *clv.list - case "cardchain.cardchain.QueryMatchesRequest.reporter": - x.Reporter = value.Interface().(string) - case "cardchain.cardchain.QueryMatchesRequest.outcome": - x.Outcome = (Outcome)(value.Enum()) - case "cardchain.cardchain.QueryMatchesRequest.cardsPlayed": - lv := value.List() - clv := lv.(*_QueryMatchesRequest_6_list) - x.CardsPlayed = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesRequest 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_QueryMatchesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesRequest.containsUsers": - if x.ContainsUsers == nil { - x.ContainsUsers = []string{} - } - value := &_QueryMatchesRequest_3_list{list: &x.ContainsUsers} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryMatchesRequest.cardsPlayed": - if x.CardsPlayed == nil { - x.CardsPlayed = []uint64{} - } - value := &_QueryMatchesRequest_6_list{list: &x.CardsPlayed} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryMatchesRequest.timestampDown": - panic(fmt.Errorf("field timestampDown of message cardchain.cardchain.QueryMatchesRequest is not mutable")) - case "cardchain.cardchain.QueryMatchesRequest.timestampUp": - panic(fmt.Errorf("field timestampUp of message cardchain.cardchain.QueryMatchesRequest is not mutable")) - case "cardchain.cardchain.QueryMatchesRequest.reporter": - panic(fmt.Errorf("field reporter of message cardchain.cardchain.QueryMatchesRequest is not mutable")) - case "cardchain.cardchain.QueryMatchesRequest.outcome": - panic(fmt.Errorf("field outcome of message cardchain.cardchain.QueryMatchesRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesRequest 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_QueryMatchesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesRequest.timestampDown": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.QueryMatchesRequest.timestampUp": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.QueryMatchesRequest.containsUsers": - list := []string{} - return protoreflect.ValueOfList(&_QueryMatchesRequest_3_list{list: &list}) - case "cardchain.cardchain.QueryMatchesRequest.reporter": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QueryMatchesRequest.outcome": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.QueryMatchesRequest.cardsPlayed": - list := []uint64{} - return protoreflect.ValueOfList(&_QueryMatchesRequest_6_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesRequest 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_QueryMatchesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryMatchesRequest", 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_QueryMatchesRequest) 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_QueryMatchesRequest) 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_QueryMatchesRequest) 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_QueryMatchesRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMatchesRequest) - 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.TimestampDown != 0 { - n += 1 + runtime.Sov(uint64(x.TimestampDown)) - } - if x.TimestampUp != 0 { - n += 1 + runtime.Sov(uint64(x.TimestampUp)) - } - if len(x.ContainsUsers) > 0 { - for _, s := range x.ContainsUsers { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Reporter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Outcome != 0 { - n += 1 + runtime.Sov(uint64(x.Outcome)) - } - if len(x.CardsPlayed) > 0 { - l = 0 - for _, e := range x.CardsPlayed { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*QueryMatchesRequest) - 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.CardsPlayed) > 0 { - var pksize2 int - for _, num := range x.CardsPlayed { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.CardsPlayed { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x32 - } - if x.Outcome != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) - i-- - dAtA[i] = 0x28 - } - if len(x.Reporter) > 0 { - i -= len(x.Reporter) - copy(dAtA[i:], x.Reporter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reporter))) - i-- - dAtA[i] = 0x22 - } - if len(x.ContainsUsers) > 0 { - for iNdEx := len(x.ContainsUsers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.ContainsUsers[iNdEx]) - copy(dAtA[i:], x.ContainsUsers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContainsUsers[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if x.TimestampUp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TimestampUp)) - i-- - dAtA[i] = 0x10 - } - if x.TimestampDown != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TimestampDown)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryMatchesRequest) - 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: QueryMatchesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMatchesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimestampDown", wireType) - } - x.TimestampDown = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TimestampDown |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimestampUp", wireType) - } - x.TimestampUp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TimestampUp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContainsUsers", 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.ContainsUsers = append(x.ContainsUsers, 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 Reporter", 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.Reporter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) - } - x.Outcome = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Outcome |= Outcome(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardsPlayed = append(x.CardsPlayed, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.CardsPlayed) == 0 { - x.CardsPlayed = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardsPlayed = append(x.CardsPlayed, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardsPlayed", wireType) - } - 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 = (*_QueryMatchesResponse_1_list)(nil) - -type _QueryMatchesResponse_1_list struct { - list *[]*Match -} - -func (x *_QueryMatchesResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryMatchesResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryMatchesResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Match) - (*x.list)[i] = concreteValue -} - -func (x *_QueryMatchesResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Match) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryMatchesResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Match) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryMatchesResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryMatchesResponse_1_list) NewElement() protoreflect.Value { - v := new(Match) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryMatchesResponse_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QueryMatchesResponse_2_list)(nil) - -type _QueryMatchesResponse_2_list struct { - list *[]uint64 -} - -func (x *_QueryMatchesResponse_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryMatchesResponse_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QueryMatchesResponse_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryMatchesResponse_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryMatchesResponse_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryMatchesResponse at list field MatchIds as it is not of Message kind")) -} - -func (x *_QueryMatchesResponse_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryMatchesResponse_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QueryMatchesResponse_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryMatchesResponse protoreflect.MessageDescriptor - fd_QueryMatchesResponse_matches protoreflect.FieldDescriptor - fd_QueryMatchesResponse_matchIds protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryMatchesResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryMatchesResponse") - fd_QueryMatchesResponse_matches = md_QueryMatchesResponse.Fields().ByName("matches") - fd_QueryMatchesResponse_matchIds = md_QueryMatchesResponse.Fields().ByName("matchIds") -} - -var _ protoreflect.Message = (*fastReflection_QueryMatchesResponse)(nil) - -type fastReflection_QueryMatchesResponse QueryMatchesResponse - -func (x *QueryMatchesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMatchesResponse)(x) -} - -func (x *QueryMatchesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[35] - 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_QueryMatchesResponse_messageType fastReflection_QueryMatchesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryMatchesResponse_messageType{} - -type fastReflection_QueryMatchesResponse_messageType struct{} - -func (x fastReflection_QueryMatchesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMatchesResponse)(nil) -} -func (x fastReflection_QueryMatchesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMatchesResponse) -} -func (x fastReflection_QueryMatchesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchesResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryMatchesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMatchesResponse -} - -// 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_QueryMatchesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryMatchesResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMatchesResponse) New() protoreflect.Message { - return new(fastReflection_QueryMatchesResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMatchesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryMatchesResponse)(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_QueryMatchesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Matches) != 0 { - value := protoreflect.ValueOfList(&_QueryMatchesResponse_1_list{list: &x.Matches}) - if !f(fd_QueryMatchesResponse_matches, value) { - return - } - } - if len(x.MatchIds) != 0 { - value := protoreflect.ValueOfList(&_QueryMatchesResponse_2_list{list: &x.MatchIds}) - if !f(fd_QueryMatchesResponse_matchIds, 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_QueryMatchesResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesResponse.matches": - return len(x.Matches) != 0 - case "cardchain.cardchain.QueryMatchesResponse.matchIds": - return len(x.MatchIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesResponse 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_QueryMatchesResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesResponse.matches": - x.Matches = nil - case "cardchain.cardchain.QueryMatchesResponse.matchIds": - x.MatchIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesResponse 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_QueryMatchesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryMatchesResponse.matches": - if len(x.Matches) == 0 { - return protoreflect.ValueOfList(&_QueryMatchesResponse_1_list{}) - } - listValue := &_QueryMatchesResponse_1_list{list: &x.Matches} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QueryMatchesResponse.matchIds": - if len(x.MatchIds) == 0 { - return protoreflect.ValueOfList(&_QueryMatchesResponse_2_list{}) - } - listValue := &_QueryMatchesResponse_2_list{list: &x.MatchIds} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesResponse 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_QueryMatchesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesResponse.matches": - lv := value.List() - clv := lv.(*_QueryMatchesResponse_1_list) - x.Matches = *clv.list - case "cardchain.cardchain.QueryMatchesResponse.matchIds": - lv := value.List() - clv := lv.(*_QueryMatchesResponse_2_list) - x.MatchIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesResponse 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_QueryMatchesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesResponse.matches": - if x.Matches == nil { - x.Matches = []*Match{} - } - value := &_QueryMatchesResponse_1_list{list: &x.Matches} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QueryMatchesResponse.matchIds": - if x.MatchIds == nil { - x.MatchIds = []uint64{} - } - value := &_QueryMatchesResponse_2_list{list: &x.MatchIds} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesResponse 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_QueryMatchesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryMatchesResponse.matches": - list := []*Match{} - return protoreflect.ValueOfList(&_QueryMatchesResponse_1_list{list: &list}) - case "cardchain.cardchain.QueryMatchesResponse.matchIds": - list := []uint64{} - return protoreflect.ValueOfList(&_QueryMatchesResponse_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryMatchesResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryMatchesResponse 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_QueryMatchesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryMatchesResponse", 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_QueryMatchesResponse) 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_QueryMatchesResponse) 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_QueryMatchesResponse) 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_QueryMatchesResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMatchesResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Matches) > 0 { - for _, e := range x.Matches { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.MatchIds) > 0 { - l = 0 - for _, e := range x.MatchIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*QueryMatchesResponse) - 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.MatchIds) > 0 { - var pksize2 int - for _, num := range x.MatchIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.MatchIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(x.Matches) > 0 { - for iNdEx := len(x.Matches) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Matches[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryMatchesResponse) - 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: QueryMatchesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMatchesResponse: 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 Matches", 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.Matches = append(x.Matches, &Match{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Matches[len(x.Matches)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.MatchIds = append(x.MatchIds, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.MatchIds) == 0 { - x.MatchIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.MatchIds = append(x.MatchIds, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MatchIds", wireType) - } - 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 = (*_QuerySetsRequest_2_list)(nil) - -type _QuerySetsRequest_2_list struct { - list *[]string -} - -func (x *_QuerySetsRequest_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySetsRequest_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QuerySetsRequest_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QuerySetsRequest_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySetsRequest_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QuerySetsRequest at list field Contributors as it is not of Message kind")) -} - -func (x *_QuerySetsRequest_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QuerySetsRequest_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QuerySetsRequest_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QuerySetsRequest_3_list)(nil) - -type _QuerySetsRequest_3_list struct { - list *[]uint64 -} - -func (x *_QuerySetsRequest_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySetsRequest_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QuerySetsRequest_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QuerySetsRequest_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySetsRequest_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QuerySetsRequest at list field ContainsCards as it is not of Message kind")) -} - -func (x *_QuerySetsRequest_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QuerySetsRequest_3_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QuerySetsRequest_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QuerySetsRequest protoreflect.MessageDescriptor - fd_QuerySetsRequest_status protoreflect.FieldDescriptor - fd_QuerySetsRequest_contributors protoreflect.FieldDescriptor - fd_QuerySetsRequest_containsCards protoreflect.FieldDescriptor - fd_QuerySetsRequest_owner protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySetsRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySetsRequest") - fd_QuerySetsRequest_status = md_QuerySetsRequest.Fields().ByName("status") - fd_QuerySetsRequest_contributors = md_QuerySetsRequest.Fields().ByName("contributors") - fd_QuerySetsRequest_containsCards = md_QuerySetsRequest.Fields().ByName("containsCards") - fd_QuerySetsRequest_owner = md_QuerySetsRequest.Fields().ByName("owner") -} - -var _ protoreflect.Message = (*fastReflection_QuerySetsRequest)(nil) - -type fastReflection_QuerySetsRequest QuerySetsRequest - -func (x *QuerySetsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySetsRequest)(x) -} - -func (x *QuerySetsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[36] - 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_QuerySetsRequest_messageType fastReflection_QuerySetsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySetsRequest_messageType{} - -type fastReflection_QuerySetsRequest_messageType struct{} - -func (x fastReflection_QuerySetsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySetsRequest)(nil) -} -func (x fastReflection_QuerySetsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySetsRequest) -} -func (x fastReflection_QuerySetsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySetsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetsRequest -} - -// 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_QuerySetsRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySetsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySetsRequest) New() protoreflect.Message { - return new(fastReflection_QuerySetsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySetsRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySetsRequest)(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_QuerySetsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_QuerySetsRequest_status, value) { - return - } - } - if len(x.Contributors) != 0 { - value := protoreflect.ValueOfList(&_QuerySetsRequest_2_list{list: &x.Contributors}) - if !f(fd_QuerySetsRequest_contributors, value) { - return - } - } - if len(x.ContainsCards) != 0 { - value := protoreflect.ValueOfList(&_QuerySetsRequest_3_list{list: &x.ContainsCards}) - if !f(fd_QuerySetsRequest_containsCards, value) { - return - } - } - if x.Owner != "" { - value := protoreflect.ValueOfString(x.Owner) - if !f(fd_QuerySetsRequest_owner, 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_QuerySetsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsRequest.status": - return x.Status != 0 - case "cardchain.cardchain.QuerySetsRequest.contributors": - return len(x.Contributors) != 0 - case "cardchain.cardchain.QuerySetsRequest.containsCards": - return len(x.ContainsCards) != 0 - case "cardchain.cardchain.QuerySetsRequest.owner": - return x.Owner != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsRequest 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_QuerySetsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsRequest.status": - x.Status = 0 - case "cardchain.cardchain.QuerySetsRequest.contributors": - x.Contributors = nil - case "cardchain.cardchain.QuerySetsRequest.containsCards": - x.ContainsCards = nil - case "cardchain.cardchain.QuerySetsRequest.owner": - x.Owner = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsRequest 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_QuerySetsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySetsRequest.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.QuerySetsRequest.contributors": - if len(x.Contributors) == 0 { - return protoreflect.ValueOfList(&_QuerySetsRequest_2_list{}) - } - listValue := &_QuerySetsRequest_2_list{list: &x.Contributors} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QuerySetsRequest.containsCards": - if len(x.ContainsCards) == 0 { - return protoreflect.ValueOfList(&_QuerySetsRequest_3_list{}) - } - listValue := &_QuerySetsRequest_3_list{list: &x.ContainsCards} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QuerySetsRequest.owner": - value := x.Owner - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsRequest 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_QuerySetsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsRequest.status": - x.Status = (SetStatus)(value.Enum()) - case "cardchain.cardchain.QuerySetsRequest.contributors": - lv := value.List() - clv := lv.(*_QuerySetsRequest_2_list) - x.Contributors = *clv.list - case "cardchain.cardchain.QuerySetsRequest.containsCards": - lv := value.List() - clv := lv.(*_QuerySetsRequest_3_list) - x.ContainsCards = *clv.list - case "cardchain.cardchain.QuerySetsRequest.owner": - x.Owner = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsRequest 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_QuerySetsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsRequest.contributors": - if x.Contributors == nil { - x.Contributors = []string{} - } - value := &_QuerySetsRequest_2_list{list: &x.Contributors} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QuerySetsRequest.containsCards": - if x.ContainsCards == nil { - x.ContainsCards = []uint64{} - } - value := &_QuerySetsRequest_3_list{list: &x.ContainsCards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QuerySetsRequest.status": - panic(fmt.Errorf("field status of message cardchain.cardchain.QuerySetsRequest is not mutable")) - case "cardchain.cardchain.QuerySetsRequest.owner": - panic(fmt.Errorf("field owner of message cardchain.cardchain.QuerySetsRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsRequest 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_QuerySetsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsRequest.status": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.QuerySetsRequest.contributors": - list := []string{} - return protoreflect.ValueOfList(&_QuerySetsRequest_2_list{list: &list}) - case "cardchain.cardchain.QuerySetsRequest.containsCards": - list := []uint64{} - return protoreflect.ValueOfList(&_QuerySetsRequest_3_list{list: &list}) - case "cardchain.cardchain.QuerySetsRequest.owner": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsRequest 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_QuerySetsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySetsRequest", 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_QuerySetsRequest) 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_QuerySetsRequest) 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_QuerySetsRequest) 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_QuerySetsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySetsRequest) - 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.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - if len(x.Contributors) > 0 { - for _, s := range x.Contributors { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.ContainsCards) > 0 { - l = 0 - for _, e := range x.ContainsCards { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - l = len(x.Owner) - 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().(*QuerySetsRequest) - 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.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.ContainsCards) > 0 { - var pksize2 int - for _, num := range x.ContainsCards { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.ContainsCards { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x1a - } - if len(x.Contributors) > 0 { - for iNdEx := len(x.Contributors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Contributors[iNdEx]) - copy(dAtA[i:], x.Contributors[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contributors[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x8 - } - 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().(*QuerySetsRequest) - 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: QuerySetsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySetsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= SetStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Contributors", 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.Contributors = append(x.Contributors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ContainsCards = append(x.ContainsCards, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.ContainsCards) == 0 { - x.ContainsCards = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ContainsCards = append(x.ContainsCards, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContainsCards", wireType) - } - 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 - 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 = (*_QuerySetsResponse_1_list)(nil) - -type _QuerySetsResponse_1_list struct { - list *[]uint64 -} - -func (x *_QuerySetsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySetsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QuerySetsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QuerySetsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySetsResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QuerySetsResponse at list field SetIds as it is not of Message kind")) -} - -func (x *_QuerySetsResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QuerySetsResponse_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QuerySetsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QuerySetsResponse protoreflect.MessageDescriptor - fd_QuerySetsResponse_setIds protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySetsResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySetsResponse") - fd_QuerySetsResponse_setIds = md_QuerySetsResponse.Fields().ByName("setIds") -} - -var _ protoreflect.Message = (*fastReflection_QuerySetsResponse)(nil) - -type fastReflection_QuerySetsResponse QuerySetsResponse - -func (x *QuerySetsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySetsResponse)(x) -} - -func (x *QuerySetsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[37] - 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_QuerySetsResponse_messageType fastReflection_QuerySetsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySetsResponse_messageType{} - -type fastReflection_QuerySetsResponse_messageType struct{} - -func (x fastReflection_QuerySetsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySetsResponse)(nil) -} -func (x fastReflection_QuerySetsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySetsResponse) -} -func (x fastReflection_QuerySetsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySetsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySetsResponse -} - -// 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_QuerySetsResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySetsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySetsResponse) New() protoreflect.Message { - return new(fastReflection_QuerySetsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySetsResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySetsResponse)(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_QuerySetsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.SetIds) != 0 { - value := protoreflect.ValueOfList(&_QuerySetsResponse_1_list{list: &x.SetIds}) - if !f(fd_QuerySetsResponse_setIds, 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_QuerySetsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsResponse.setIds": - return len(x.SetIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsResponse 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_QuerySetsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsResponse.setIds": - x.SetIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsResponse 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_QuerySetsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySetsResponse.setIds": - if len(x.SetIds) == 0 { - return protoreflect.ValueOfList(&_QuerySetsResponse_1_list{}) - } - listValue := &_QuerySetsResponse_1_list{list: &x.SetIds} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsResponse 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_QuerySetsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsResponse.setIds": - lv := value.List() - clv := lv.(*_QuerySetsResponse_1_list) - x.SetIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsResponse 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_QuerySetsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsResponse.setIds": - if x.SetIds == nil { - x.SetIds = []uint64{} - } - value := &_QuerySetsResponse_1_list{list: &x.SetIds} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsResponse 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_QuerySetsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySetsResponse.setIds": - list := []uint64{} - return protoreflect.ValueOfList(&_QuerySetsResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySetsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySetsResponse 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_QuerySetsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySetsResponse", 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_QuerySetsResponse) 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_QuerySetsResponse) 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_QuerySetsResponse) 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_QuerySetsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySetsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.SetIds) > 0 { - l = 0 - for _, e := range x.SetIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*QuerySetsResponse) - 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.SetIds) > 0 { - var pksize2 int - for _, num := range x.SetIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.SetIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - 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().(*QuerySetsResponse) - 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: QuerySetsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySetsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.SetIds = append(x.SetIds, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.SetIds) == 0 { - x.SetIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.SetIds = append(x.SetIds, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryCardContentRequest protoreflect.MessageDescriptor - fd_QueryCardContentRequest_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardContentRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardContentRequest") - fd_QueryCardContentRequest_cardId = md_QueryCardContentRequest.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardContentRequest)(nil) - -type fastReflection_QueryCardContentRequest QueryCardContentRequest - -func (x *QueryCardContentRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardContentRequest)(x) -} - -func (x *QueryCardContentRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[38] - 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_QueryCardContentRequest_messageType fastReflection_QueryCardContentRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardContentRequest_messageType{} - -type fastReflection_QueryCardContentRequest_messageType struct{} - -func (x fastReflection_QueryCardContentRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardContentRequest)(nil) -} -func (x fastReflection_QueryCardContentRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardContentRequest) -} -func (x fastReflection_QueryCardContentRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardContentRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentRequest -} - -// 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_QueryCardContentRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryCardContentRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardContentRequest) New() protoreflect.Message { - return new(fastReflection_QueryCardContentRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardContentRequest) Interface() protoreflect.ProtoMessage { - return (*QueryCardContentRequest)(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_QueryCardContentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_QueryCardContentRequest_cardId, 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_QueryCardContentRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentRequest.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentRequest 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_QueryCardContentRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentRequest.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentRequest 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_QueryCardContentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardContentRequest.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentRequest 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_QueryCardContentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentRequest.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentRequest 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_QueryCardContentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentRequest.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.QueryCardContentRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentRequest 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_QueryCardContentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentRequest.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentRequest 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_QueryCardContentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardContentRequest", 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_QueryCardContentRequest) 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_QueryCardContentRequest) 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_QueryCardContentRequest) 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_QueryCardContentRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardContentRequest) - 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.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*QueryCardContentRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x8 - } - 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().(*QueryCardContentRequest) - 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: QueryCardContentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardContentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryCardContentResponse protoreflect.MessageDescriptor - fd_QueryCardContentResponse_cardContent protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardContentResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardContentResponse") - fd_QueryCardContentResponse_cardContent = md_QueryCardContentResponse.Fields().ByName("cardContent") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardContentResponse)(nil) - -type fastReflection_QueryCardContentResponse QueryCardContentResponse - -func (x *QueryCardContentResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardContentResponse)(x) -} - -func (x *QueryCardContentResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[39] - 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_QueryCardContentResponse_messageType fastReflection_QueryCardContentResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardContentResponse_messageType{} - -type fastReflection_QueryCardContentResponse_messageType struct{} - -func (x fastReflection_QueryCardContentResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardContentResponse)(nil) -} -func (x fastReflection_QueryCardContentResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardContentResponse) -} -func (x fastReflection_QueryCardContentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardContentResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentResponse -} - -// 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_QueryCardContentResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryCardContentResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardContentResponse) New() protoreflect.Message { - return new(fastReflection_QueryCardContentResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardContentResponse) Interface() protoreflect.ProtoMessage { - return (*QueryCardContentResponse)(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_QueryCardContentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardContent != nil { - value := protoreflect.ValueOfMessage(x.CardContent.ProtoReflect()) - if !f(fd_QueryCardContentResponse_cardContent, 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_QueryCardContentResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentResponse.cardContent": - return x.CardContent != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentResponse 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_QueryCardContentResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentResponse.cardContent": - x.CardContent = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentResponse 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_QueryCardContentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardContentResponse.cardContent": - value := x.CardContent - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentResponse 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_QueryCardContentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentResponse.cardContent": - x.CardContent = value.Message().Interface().(*CardContent) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentResponse 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_QueryCardContentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentResponse.cardContent": - if x.CardContent == nil { - x.CardContent = new(CardContent) - } - return protoreflect.ValueOfMessage(x.CardContent.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentResponse 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_QueryCardContentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentResponse.cardContent": - m := new(CardContent) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentResponse 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_QueryCardContentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardContentResponse", 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_QueryCardContentResponse) 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_QueryCardContentResponse) 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_QueryCardContentResponse) 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_QueryCardContentResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardContentResponse) - 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.CardContent != nil { - l = options.Size(x.CardContent) - 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().(*QueryCardContentResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardContent != nil { - encoded, err := options.Marshal(x.CardContent) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryCardContentResponse) - 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: QueryCardContentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardContentResponse: 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 CardContent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.CardContent == nil { - x.CardContent = &CardContent{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CardContent); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryCardContentsRequest_1_list)(nil) - -type _QueryCardContentsRequest_1_list struct { - list *[]uint64 -} - -func (x *_QueryCardContentsRequest_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardContentsRequest_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QueryCardContentsRequest_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardContentsRequest_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardContentsRequest_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryCardContentsRequest at list field CardIds as it is not of Message kind")) -} - -func (x *_QueryCardContentsRequest_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardContentsRequest_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QueryCardContentsRequest_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryCardContentsRequest protoreflect.MessageDescriptor - fd_QueryCardContentsRequest_cardIds protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardContentsRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardContentsRequest") - fd_QueryCardContentsRequest_cardIds = md_QueryCardContentsRequest.Fields().ByName("cardIds") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardContentsRequest)(nil) - -type fastReflection_QueryCardContentsRequest QueryCardContentsRequest - -func (x *QueryCardContentsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardContentsRequest)(x) -} - -func (x *QueryCardContentsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[40] - 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_QueryCardContentsRequest_messageType fastReflection_QueryCardContentsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardContentsRequest_messageType{} - -type fastReflection_QueryCardContentsRequest_messageType struct{} - -func (x fastReflection_QueryCardContentsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardContentsRequest)(nil) -} -func (x fastReflection_QueryCardContentsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardContentsRequest) -} -func (x fastReflection_QueryCardContentsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardContentsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentsRequest -} - -// 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_QueryCardContentsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryCardContentsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardContentsRequest) New() protoreflect.Message { - return new(fastReflection_QueryCardContentsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardContentsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryCardContentsRequest)(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_QueryCardContentsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.CardIds) != 0 { - value := protoreflect.ValueOfList(&_QueryCardContentsRequest_1_list{list: &x.CardIds}) - if !f(fd_QueryCardContentsRequest_cardIds, 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_QueryCardContentsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsRequest.cardIds": - return len(x.CardIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsRequest 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_QueryCardContentsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsRequest.cardIds": - x.CardIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsRequest 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_QueryCardContentsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardContentsRequest.cardIds": - if len(x.CardIds) == 0 { - return protoreflect.ValueOfList(&_QueryCardContentsRequest_1_list{}) - } - listValue := &_QueryCardContentsRequest_1_list{list: &x.CardIds} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsRequest 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_QueryCardContentsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsRequest.cardIds": - lv := value.List() - clv := lv.(*_QueryCardContentsRequest_1_list) - x.CardIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsRequest 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_QueryCardContentsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsRequest.cardIds": - if x.CardIds == nil { - x.CardIds = []uint64{} - } - value := &_QueryCardContentsRequest_1_list{list: &x.CardIds} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsRequest 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_QueryCardContentsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsRequest.cardIds": - list := []uint64{} - return protoreflect.ValueOfList(&_QueryCardContentsRequest_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsRequest 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_QueryCardContentsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardContentsRequest", 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_QueryCardContentsRequest) 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_QueryCardContentsRequest) 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_QueryCardContentsRequest) 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_QueryCardContentsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardContentsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.CardIds) > 0 { - l = 0 - for _, e := range x.CardIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*QueryCardContentsRequest) - 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.CardIds) > 0 { - var pksize2 int - for _, num := range x.CardIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.CardIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - 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().(*QueryCardContentsRequest) - 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: QueryCardContentsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardContentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardIds = append(x.CardIds, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.CardIds) == 0 { - x.CardIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardIds = append(x.CardIds, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardIds", wireType) - } - 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 = (*_QueryCardContentsResponse_1_list)(nil) - -type _QueryCardContentsResponse_1_list struct { - list *[]*CardContent -} - -func (x *_QueryCardContentsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryCardContentsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryCardContentsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*CardContent) - (*x.list)[i] = concreteValue -} - -func (x *_QueryCardContentsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*CardContent) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryCardContentsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(CardContent) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryCardContentsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryCardContentsResponse_1_list) NewElement() protoreflect.Value { - v := new(CardContent) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryCardContentsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryCardContentsResponse protoreflect.MessageDescriptor - fd_QueryCardContentsResponse_cardContents protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QueryCardContentsResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QueryCardContentsResponse") - fd_QueryCardContentsResponse_cardContents = md_QueryCardContentsResponse.Fields().ByName("cardContents") -} - -var _ protoreflect.Message = (*fastReflection_QueryCardContentsResponse)(nil) - -type fastReflection_QueryCardContentsResponse QueryCardContentsResponse - -func (x *QueryCardContentsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryCardContentsResponse)(x) -} - -func (x *QueryCardContentsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[41] - 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_QueryCardContentsResponse_messageType fastReflection_QueryCardContentsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryCardContentsResponse_messageType{} - -type fastReflection_QueryCardContentsResponse_messageType struct{} - -func (x fastReflection_QueryCardContentsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryCardContentsResponse)(nil) -} -func (x fastReflection_QueryCardContentsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryCardContentsResponse) -} -func (x fastReflection_QueryCardContentsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryCardContentsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryCardContentsResponse -} - -// 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_QueryCardContentsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryCardContentsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryCardContentsResponse) New() protoreflect.Message { - return new(fastReflection_QueryCardContentsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryCardContentsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryCardContentsResponse)(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_QueryCardContentsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.CardContents) != 0 { - value := protoreflect.ValueOfList(&_QueryCardContentsResponse_1_list{list: &x.CardContents}) - if !f(fd_QueryCardContentsResponse_cardContents, 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_QueryCardContentsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsResponse.cardContents": - return len(x.CardContents) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsResponse 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_QueryCardContentsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsResponse.cardContents": - x.CardContents = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsResponse 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_QueryCardContentsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QueryCardContentsResponse.cardContents": - if len(x.CardContents) == 0 { - return protoreflect.ValueOfList(&_QueryCardContentsResponse_1_list{}) - } - listValue := &_QueryCardContentsResponse_1_list{list: &x.CardContents} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsResponse 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_QueryCardContentsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsResponse.cardContents": - lv := value.List() - clv := lv.(*_QueryCardContentsResponse_1_list) - x.CardContents = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsResponse 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_QueryCardContentsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsResponse.cardContents": - if x.CardContents == nil { - x.CardContents = []*CardContent{} - } - value := &_QueryCardContentsResponse_1_list{list: &x.CardContents} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsResponse 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_QueryCardContentsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QueryCardContentsResponse.cardContents": - list := []*CardContent{} - return protoreflect.ValueOfList(&_QueryCardContentsResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QueryCardContentsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QueryCardContentsResponse 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_QueryCardContentsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QueryCardContentsResponse", 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_QueryCardContentsResponse) 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_QueryCardContentsResponse) 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_QueryCardContentsResponse) 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_QueryCardContentsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryCardContentsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.CardContents) > 0 { - for _, e := range x.CardContents { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryCardContentsResponse) - 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.CardContents) > 0 { - for iNdEx := len(x.CardContents) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.CardContents[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryCardContentsResponse) - 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: QueryCardContentsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCardContentsResponse: 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 CardContents", 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.CardContents = append(x.CardContents, &CardContent{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CardContents[len(x.CardContents)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QuerySellOffersRequest protoreflect.MessageDescriptor - fd_QuerySellOffersRequest_priceDown protoreflect.FieldDescriptor - fd_QuerySellOffersRequest_priceUp protoreflect.FieldDescriptor - fd_QuerySellOffersRequest_seller protoreflect.FieldDescriptor - fd_QuerySellOffersRequest_buyer protoreflect.FieldDescriptor - fd_QuerySellOffersRequest_card protoreflect.FieldDescriptor - fd_QuerySellOffersRequest_status protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySellOffersRequest = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySellOffersRequest") - fd_QuerySellOffersRequest_priceDown = md_QuerySellOffersRequest.Fields().ByName("priceDown") - fd_QuerySellOffersRequest_priceUp = md_QuerySellOffersRequest.Fields().ByName("priceUp") - fd_QuerySellOffersRequest_seller = md_QuerySellOffersRequest.Fields().ByName("seller") - fd_QuerySellOffersRequest_buyer = md_QuerySellOffersRequest.Fields().ByName("buyer") - fd_QuerySellOffersRequest_card = md_QuerySellOffersRequest.Fields().ByName("card") - fd_QuerySellOffersRequest_status = md_QuerySellOffersRequest.Fields().ByName("status") -} - -var _ protoreflect.Message = (*fastReflection_QuerySellOffersRequest)(nil) - -type fastReflection_QuerySellOffersRequest QuerySellOffersRequest - -func (x *QuerySellOffersRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySellOffersRequest)(x) -} - -func (x *QuerySellOffersRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[42] - 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_QuerySellOffersRequest_messageType fastReflection_QuerySellOffersRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySellOffersRequest_messageType{} - -type fastReflection_QuerySellOffersRequest_messageType struct{} - -func (x fastReflection_QuerySellOffersRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySellOffersRequest)(nil) -} -func (x fastReflection_QuerySellOffersRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySellOffersRequest) -} -func (x fastReflection_QuerySellOffersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOffersRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySellOffersRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOffersRequest -} - -// 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_QuerySellOffersRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySellOffersRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySellOffersRequest) New() protoreflect.Message { - return new(fastReflection_QuerySellOffersRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySellOffersRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySellOffersRequest)(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_QuerySellOffersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.PriceDown != nil { - value := protoreflect.ValueOfMessage(x.PriceDown.ProtoReflect()) - if !f(fd_QuerySellOffersRequest_priceDown, value) { - return - } - } - if x.PriceUp != nil { - value := protoreflect.ValueOfMessage(x.PriceUp.ProtoReflect()) - if !f(fd_QuerySellOffersRequest_priceUp, value) { - return - } - } - if x.Seller != "" { - value := protoreflect.ValueOfString(x.Seller) - if !f(fd_QuerySellOffersRequest_seller, value) { - return - } - } - if x.Buyer != "" { - value := protoreflect.ValueOfString(x.Buyer) - if !f(fd_QuerySellOffersRequest_buyer, value) { - return - } - } - if x.Card != uint64(0) { - value := protoreflect.ValueOfUint64(x.Card) - if !f(fd_QuerySellOffersRequest_card, value) { - return - } - } - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_QuerySellOffersRequest_status, 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_QuerySellOffersRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersRequest.priceDown": - return x.PriceDown != nil - case "cardchain.cardchain.QuerySellOffersRequest.priceUp": - return x.PriceUp != nil - case "cardchain.cardchain.QuerySellOffersRequest.seller": - return x.Seller != "" - case "cardchain.cardchain.QuerySellOffersRequest.buyer": - return x.Buyer != "" - case "cardchain.cardchain.QuerySellOffersRequest.card": - return x.Card != uint64(0) - case "cardchain.cardchain.QuerySellOffersRequest.status": - return x.Status != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersRequest 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_QuerySellOffersRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersRequest.priceDown": - x.PriceDown = nil - case "cardchain.cardchain.QuerySellOffersRequest.priceUp": - x.PriceUp = nil - case "cardchain.cardchain.QuerySellOffersRequest.seller": - x.Seller = "" - case "cardchain.cardchain.QuerySellOffersRequest.buyer": - x.Buyer = "" - case "cardchain.cardchain.QuerySellOffersRequest.card": - x.Card = uint64(0) - case "cardchain.cardchain.QuerySellOffersRequest.status": - x.Status = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersRequest 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_QuerySellOffersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySellOffersRequest.priceDown": - value := x.PriceDown - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.QuerySellOffersRequest.priceUp": - value := x.PriceUp - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.QuerySellOffersRequest.seller": - value := x.Seller - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QuerySellOffersRequest.buyer": - value := x.Buyer - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.QuerySellOffersRequest.card": - value := x.Card - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.QuerySellOffersRequest.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersRequest 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_QuerySellOffersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersRequest.priceDown": - x.PriceDown = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.QuerySellOffersRequest.priceUp": - x.PriceUp = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.QuerySellOffersRequest.seller": - x.Seller = value.Interface().(string) - case "cardchain.cardchain.QuerySellOffersRequest.buyer": - x.Buyer = value.Interface().(string) - case "cardchain.cardchain.QuerySellOffersRequest.card": - x.Card = value.Uint() - case "cardchain.cardchain.QuerySellOffersRequest.status": - x.Status = (SellOfferStatus)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersRequest 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_QuerySellOffersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersRequest.priceDown": - if x.PriceDown == nil { - x.PriceDown = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.PriceDown.ProtoReflect()) - case "cardchain.cardchain.QuerySellOffersRequest.priceUp": - if x.PriceUp == nil { - x.PriceUp = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.PriceUp.ProtoReflect()) - case "cardchain.cardchain.QuerySellOffersRequest.seller": - panic(fmt.Errorf("field seller of message cardchain.cardchain.QuerySellOffersRequest is not mutable")) - case "cardchain.cardchain.QuerySellOffersRequest.buyer": - panic(fmt.Errorf("field buyer of message cardchain.cardchain.QuerySellOffersRequest is not mutable")) - case "cardchain.cardchain.QuerySellOffersRequest.card": - panic(fmt.Errorf("field card of message cardchain.cardchain.QuerySellOffersRequest is not mutable")) - case "cardchain.cardchain.QuerySellOffersRequest.status": - panic(fmt.Errorf("field status of message cardchain.cardchain.QuerySellOffersRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersRequest 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_QuerySellOffersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersRequest.priceDown": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.QuerySellOffersRequest.priceUp": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.QuerySellOffersRequest.seller": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QuerySellOffersRequest.buyer": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.QuerySellOffersRequest.card": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.QuerySellOffersRequest.status": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersRequest")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersRequest 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_QuerySellOffersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySellOffersRequest", 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_QuerySellOffersRequest) 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_QuerySellOffersRequest) 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_QuerySellOffersRequest) 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_QuerySellOffersRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySellOffersRequest) - 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.PriceDown != nil { - l = options.Size(x.PriceDown) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.PriceUp != nil { - l = options.Size(x.PriceUp) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Seller) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Buyer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Card != 0 { - n += 1 + runtime.Sov(uint64(x.Card)) - } - if x.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - 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().(*QuerySellOffersRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x30 - } - if x.Card != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Card)) - i-- - dAtA[i] = 0x28 - } - if len(x.Buyer) > 0 { - i -= len(x.Buyer) - copy(dAtA[i:], x.Buyer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Buyer))) - i-- - dAtA[i] = 0x22 - } - if len(x.Seller) > 0 { - i -= len(x.Seller) - copy(dAtA[i:], x.Seller) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Seller))) - i-- - dAtA[i] = 0x1a - } - if x.PriceUp != nil { - encoded, err := options.Marshal(x.PriceUp) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.PriceDown != nil { - encoded, err := options.Marshal(x.PriceDown) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySellOffersRequest) - 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: QuerySellOffersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySellOffersRequest: 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 PriceDown", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.PriceDown == nil { - x.PriceDown = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PriceDown); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PriceUp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.PriceUp == nil { - x.PriceUp = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PriceUp); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Seller", 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.Seller = 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 Buyer", 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.Buyer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Card", wireType) - } - x.Card = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Card |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= SellOfferStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 = (*_QuerySellOffersResponse_1_list)(nil) - -type _QuerySellOffersResponse_1_list struct { - list *[]*SellOffer -} - -func (x *_QuerySellOffersResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySellOffersResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QuerySellOffersResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SellOffer) - (*x.list)[i] = concreteValue -} - -func (x *_QuerySellOffersResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SellOffer) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySellOffersResponse_1_list) AppendMutable() protoreflect.Value { - v := new(SellOffer) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QuerySellOffersResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QuerySellOffersResponse_1_list) NewElement() protoreflect.Value { - v := new(SellOffer) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QuerySellOffersResponse_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QuerySellOffersResponse_2_list)(nil) - -type _QuerySellOffersResponse_2_list struct { - list *[]uint64 -} - -func (x *_QuerySellOffersResponse_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySellOffersResponse_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QuerySellOffersResponse_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QuerySellOffersResponse_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySellOffersResponse_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QuerySellOffersResponse at list field SellOfferIds as it is not of Message kind")) -} - -func (x *_QuerySellOffersResponse_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QuerySellOffersResponse_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QuerySellOffersResponse_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QuerySellOffersResponse protoreflect.MessageDescriptor - fd_QuerySellOffersResponse_sellOffers protoreflect.FieldDescriptor - fd_QuerySellOffersResponse_sellOfferIds protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_query_proto_init() - md_QuerySellOffersResponse = File_cardchain_cardchain_query_proto.Messages().ByName("QuerySellOffersResponse") - fd_QuerySellOffersResponse_sellOffers = md_QuerySellOffersResponse.Fields().ByName("sellOffers") - fd_QuerySellOffersResponse_sellOfferIds = md_QuerySellOffersResponse.Fields().ByName("sellOfferIds") -} - -var _ protoreflect.Message = (*fastReflection_QuerySellOffersResponse)(nil) - -type fastReflection_QuerySellOffersResponse QuerySellOffersResponse - -func (x *QuerySellOffersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySellOffersResponse)(x) -} - -func (x *QuerySellOffersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_query_proto_msgTypes[43] - 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_QuerySellOffersResponse_messageType fastReflection_QuerySellOffersResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySellOffersResponse_messageType{} - -type fastReflection_QuerySellOffersResponse_messageType struct{} - -func (x fastReflection_QuerySellOffersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySellOffersResponse)(nil) -} -func (x fastReflection_QuerySellOffersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySellOffersResponse) -} -func (x fastReflection_QuerySellOffersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOffersResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySellOffersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySellOffersResponse -} - -// 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_QuerySellOffersResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySellOffersResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySellOffersResponse) New() protoreflect.Message { - return new(fastReflection_QuerySellOffersResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySellOffersResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySellOffersResponse)(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_QuerySellOffersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.SellOffers) != 0 { - value := protoreflect.ValueOfList(&_QuerySellOffersResponse_1_list{list: &x.SellOffers}) - if !f(fd_QuerySellOffersResponse_sellOffers, value) { - return - } - } - if len(x.SellOfferIds) != 0 { - value := protoreflect.ValueOfList(&_QuerySellOffersResponse_2_list{list: &x.SellOfferIds}) - if !f(fd_QuerySellOffersResponse_sellOfferIds, 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_QuerySellOffersResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersResponse.sellOffers": - return len(x.SellOffers) != 0 - case "cardchain.cardchain.QuerySellOffersResponse.sellOfferIds": - return len(x.SellOfferIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersResponse 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_QuerySellOffersResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersResponse.sellOffers": - x.SellOffers = nil - case "cardchain.cardchain.QuerySellOffersResponse.sellOfferIds": - x.SellOfferIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersResponse 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_QuerySellOffersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.QuerySellOffersResponse.sellOffers": - if len(x.SellOffers) == 0 { - return protoreflect.ValueOfList(&_QuerySellOffersResponse_1_list{}) - } - listValue := &_QuerySellOffersResponse_1_list{list: &x.SellOffers} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.QuerySellOffersResponse.sellOfferIds": - if len(x.SellOfferIds) == 0 { - return protoreflect.ValueOfList(&_QuerySellOffersResponse_2_list{}) - } - listValue := &_QuerySellOffersResponse_2_list{list: &x.SellOfferIds} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersResponse 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_QuerySellOffersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersResponse.sellOffers": - lv := value.List() - clv := lv.(*_QuerySellOffersResponse_1_list) - x.SellOffers = *clv.list - case "cardchain.cardchain.QuerySellOffersResponse.sellOfferIds": - lv := value.List() - clv := lv.(*_QuerySellOffersResponse_2_list) - x.SellOfferIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersResponse 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_QuerySellOffersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersResponse.sellOffers": - if x.SellOffers == nil { - x.SellOffers = []*SellOffer{} - } - value := &_QuerySellOffersResponse_1_list{list: &x.SellOffers} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.QuerySellOffersResponse.sellOfferIds": - if x.SellOfferIds == nil { - x.SellOfferIds = []uint64{} - } - value := &_QuerySellOffersResponse_2_list{list: &x.SellOfferIds} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersResponse 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_QuerySellOffersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.QuerySellOffersResponse.sellOffers": - list := []*SellOffer{} - return protoreflect.ValueOfList(&_QuerySellOffersResponse_1_list{list: &list}) - case "cardchain.cardchain.QuerySellOffersResponse.sellOfferIds": - list := []uint64{} - return protoreflect.ValueOfList(&_QuerySellOffersResponse_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.QuerySellOffersResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.QuerySellOffersResponse 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_QuerySellOffersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.QuerySellOffersResponse", 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_QuerySellOffersResponse) 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_QuerySellOffersResponse) 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_QuerySellOffersResponse) 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_QuerySellOffersResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySellOffersResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.SellOffers) > 0 { - for _, e := range x.SellOffers { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.SellOfferIds) > 0 { - l = 0 - for _, e := range x.SellOfferIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*QuerySellOffersResponse) - 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.SellOfferIds) > 0 { - var pksize2 int - for _, num := range x.SellOfferIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.SellOfferIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(x.SellOffers) > 0 { - for iNdEx := len(x.SellOffers) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.SellOffers[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QuerySellOffersResponse) - 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: QuerySellOffersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySellOffersResponse: 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 SellOffers", 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.SellOffers = append(x.SellOffers, &SellOffer{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SellOffers[len(x.SellOffers)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.SellOfferIds = append(x.SellOfferIds, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.SellOfferIds) == 0 { - x.SellOfferIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.SellOfferIds = append(x.SellOfferIds, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOfferIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryParamsRequest) Reset() { - *x = QueryParamsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsRequest) ProtoMessage() {} - -// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{0} -} - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params holds all the parameters of this module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *QueryParamsResponse) Reset() { - *x = QueryParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsResponse) ProtoMessage() {} - -// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryParamsResponse) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -type QueryCardRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *QueryCardRequest) Reset() { - *x = QueryCardRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardRequest) ProtoMessage() {} - -// Deprecated: Use QueryCardRequest.ProtoReflect.Descriptor instead. -func (*QueryCardRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryCardRequest) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type QueryCardResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Card *CardWithImage `protobuf:"bytes,1,opt,name=card,proto3" json:"card,omitempty"` -} - -func (x *QueryCardResponse) Reset() { - *x = QueryCardResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardResponse) ProtoMessage() {} - -// Deprecated: Use QueryCardResponse.ProtoReflect.Descriptor instead. -func (*QueryCardResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryCardResponse) GetCard() *CardWithImage { - if x != nil { - return x.Card - } - return nil -} - -type QueryUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *QueryUserRequest) Reset() { - *x = QueryUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryUserRequest) ProtoMessage() {} - -// Deprecated: Use QueryUserRequest.ProtoReflect.Descriptor instead. -func (*QueryUserRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QueryUserRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type QueryUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *QueryUserResponse) Reset() { - *x = QueryUserResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryUserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryUserResponse) ProtoMessage() {} - -// Deprecated: Use QueryUserResponse.ProtoReflect.Descriptor instead. -func (*QueryUserResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryUserResponse) GetUser() *User { - if x != nil { - return x.User - } - return nil -} - -type QueryCardsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - Status []CardStatus `protobuf:"varint,2,rep,packed,name=status,proto3,enum=cardchain.cardchain.CardStatus" json:"status,omitempty"` - CardType []CardType `protobuf:"varint,3,rep,packed,name=cardType,proto3,enum=cardchain.cardchain.CardType" json:"cardType,omitempty"` - Class []CardClass `protobuf:"varint,4,rep,packed,name=class,proto3,enum=cardchain.cardchain.CardClass" json:"class,omitempty"` - SortBy string `protobuf:"bytes,5,opt,name=sortBy,proto3" json:"sortBy,omitempty"` - NameContains string `protobuf:"bytes,6,opt,name=nameContains,proto3" json:"nameContains,omitempty"` - KeywordsContains string `protobuf:"bytes,7,opt,name=keywordsContains,proto3" json:"keywordsContains,omitempty"` - NotesContains string `protobuf:"bytes,8,opt,name=notesContains,proto3" json:"notesContains,omitempty"` - OnlyStarterCard bool `protobuf:"varint,9,opt,name=onlyStarterCard,proto3" json:"onlyStarterCard,omitempty"` - OnlyBalanceAnchors bool `protobuf:"varint,10,opt,name=onlyBalanceAnchors,proto3" json:"onlyBalanceAnchors,omitempty"` - Rarities []CardRarity `protobuf:"varint,11,rep,packed,name=rarities,proto3,enum=cardchain.cardchain.CardRarity" json:"rarities,omitempty"` - MultiClassOnly bool `protobuf:"varint,12,opt,name=multiClassOnly,proto3" json:"multiClassOnly,omitempty"` -} - -func (x *QueryCardsRequest) Reset() { - *x = QueryCardsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardsRequest) ProtoMessage() {} - -// Deprecated: Use QueryCardsRequest.ProtoReflect.Descriptor instead. -func (*QueryCardsRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{6} -} - -func (x *QueryCardsRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *QueryCardsRequest) GetStatus() []CardStatus { - if x != nil { - return x.Status - } - return nil -} - -func (x *QueryCardsRequest) GetCardType() []CardType { - if x != nil { - return x.CardType - } - return nil -} - -func (x *QueryCardsRequest) GetClass() []CardClass { - if x != nil { - return x.Class - } - return nil -} - -func (x *QueryCardsRequest) GetSortBy() string { - if x != nil { - return x.SortBy - } - return "" -} - -func (x *QueryCardsRequest) GetNameContains() string { - if x != nil { - return x.NameContains - } - return "" -} - -func (x *QueryCardsRequest) GetKeywordsContains() string { - if x != nil { - return x.KeywordsContains - } - return "" -} - -func (x *QueryCardsRequest) GetNotesContains() string { - if x != nil { - return x.NotesContains - } - return "" -} - -func (x *QueryCardsRequest) GetOnlyStarterCard() bool { - if x != nil { - return x.OnlyStarterCard - } - return false -} - -func (x *QueryCardsRequest) GetOnlyBalanceAnchors() bool { - if x != nil { - return x.OnlyBalanceAnchors - } - return false -} - -func (x *QueryCardsRequest) GetRarities() []CardRarity { - if x != nil { - return x.Rarities - } - return nil -} - -func (x *QueryCardsRequest) GetMultiClassOnly() bool { - if x != nil { - return x.MultiClassOnly - } - return false -} - -type QueryCardsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardIds []uint64 `protobuf:"varint,1,rep,packed,name=cardIds,proto3" json:"cardIds,omitempty"` -} - -func (x *QueryCardsResponse) Reset() { - *x = QueryCardsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardsResponse) ProtoMessage() {} - -// Deprecated: Use QueryCardsResponse.ProtoReflect.Descriptor instead. -func (*QueryCardsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryCardsResponse) GetCardIds() []uint64 { - if x != nil { - return x.CardIds - } - return nil -} - -type QueryMatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MatchId uint64 `protobuf:"varint,1,opt,name=matchId,proto3" json:"matchId,omitempty"` -} - -func (x *QueryMatchRequest) Reset() { - *x = QueryMatchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryMatchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryMatchRequest) ProtoMessage() {} - -// Deprecated: Use QueryMatchRequest.ProtoReflect.Descriptor instead. -func (*QueryMatchRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryMatchRequest) GetMatchId() uint64 { - if x != nil { - return x.MatchId - } - return 0 -} - -type QueryMatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Match *Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` -} - -func (x *QueryMatchResponse) Reset() { - *x = QueryMatchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryMatchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryMatchResponse) ProtoMessage() {} - -// Deprecated: Use QueryMatchResponse.ProtoReflect.Descriptor instead. -func (*QueryMatchResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{9} -} - -func (x *QueryMatchResponse) GetMatch() *Match { - if x != nil { - return x.Match - } - return nil -} - -type QuerySetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SetId uint64 `protobuf:"varint,1,opt,name=setId,proto3" json:"setId,omitempty"` -} - -func (x *QuerySetRequest) Reset() { - *x = QuerySetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySetRequest) ProtoMessage() {} - -// Deprecated: Use QuerySetRequest.ProtoReflect.Descriptor instead. -func (*QuerySetRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{10} -} - -func (x *QuerySetRequest) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -type QuerySetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Set_ *SetWithArtwork `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` -} - -func (x *QuerySetResponse) Reset() { - *x = QuerySetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySetResponse) ProtoMessage() {} - -// Deprecated: Use QuerySetResponse.ProtoReflect.Descriptor instead. -func (*QuerySetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{11} -} - -func (x *QuerySetResponse) GetSet_() *SetWithArtwork { - if x != nil { - return x.Set_ - } - return nil -} - -type QuerySellOfferRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SellOfferId uint64 `protobuf:"varint,1,opt,name=sellOfferId,proto3" json:"sellOfferId,omitempty"` -} - -func (x *QuerySellOfferRequest) Reset() { - *x = QuerySellOfferRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySellOfferRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySellOfferRequest) ProtoMessage() {} - -// Deprecated: Use QuerySellOfferRequest.ProtoReflect.Descriptor instead. -func (*QuerySellOfferRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{12} -} - -func (x *QuerySellOfferRequest) GetSellOfferId() uint64 { - if x != nil { - return x.SellOfferId - } - return 0 -} - -type QuerySellOfferResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SellOffer *SellOffer `protobuf:"bytes,1,opt,name=sellOffer,proto3" json:"sellOffer,omitempty"` -} - -func (x *QuerySellOfferResponse) Reset() { - *x = QuerySellOfferResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySellOfferResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySellOfferResponse) ProtoMessage() {} - -// Deprecated: Use QuerySellOfferResponse.ProtoReflect.Descriptor instead. -func (*QuerySellOfferResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{13} -} - -func (x *QuerySellOfferResponse) GetSellOffer() *SellOffer { - if x != nil { - return x.SellOffer - } - return nil -} - -type QueryCouncilRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CouncilId uint64 `protobuf:"varint,1,opt,name=councilId,proto3" json:"councilId,omitempty"` -} - -func (x *QueryCouncilRequest) Reset() { - *x = QueryCouncilRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCouncilRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCouncilRequest) ProtoMessage() {} - -// Deprecated: Use QueryCouncilRequest.ProtoReflect.Descriptor instead. -func (*QueryCouncilRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{14} -} - -func (x *QueryCouncilRequest) GetCouncilId() uint64 { - if x != nil { - return x.CouncilId - } - return 0 -} - -type QueryCouncilResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Council *Council `protobuf:"bytes,1,opt,name=council,proto3" json:"council,omitempty"` -} - -func (x *QueryCouncilResponse) Reset() { - *x = QueryCouncilResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCouncilResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCouncilResponse) ProtoMessage() {} - -// Deprecated: Use QueryCouncilResponse.ProtoReflect.Descriptor instead. -func (*QueryCouncilResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{15} -} - -func (x *QueryCouncilResponse) GetCouncil() *Council { - if x != nil { - return x.Council - } - return nil -} - -type QueryServerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServerId uint64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` -} - -func (x *QueryServerRequest) Reset() { - *x = QueryServerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryServerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryServerRequest) ProtoMessage() {} - -// Deprecated: Use QueryServerRequest.ProtoReflect.Descriptor instead. -func (*QueryServerRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{16} -} - -func (x *QueryServerRequest) GetServerId() uint64 { - if x != nil { - return x.ServerId - } - return 0 -} - -type QueryServerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` -} - -func (x *QueryServerResponse) Reset() { - *x = QueryServerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryServerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryServerResponse) ProtoMessage() {} - -// Deprecated: Use QueryServerResponse.ProtoReflect.Descriptor instead. -func (*QueryServerResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{17} -} - -func (x *QueryServerResponse) GetServer() *Server { - if x != nil { - return x.Server - } - return nil -} - -type QueryEncounterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EncounterId uint64 `protobuf:"varint,1,opt,name=encounterId,proto3" json:"encounterId,omitempty"` -} - -func (x *QueryEncounterRequest) Reset() { - *x = QueryEncounterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncounterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncounterRequest) ProtoMessage() {} - -// Deprecated: Use QueryEncounterRequest.ProtoReflect.Descriptor instead. -func (*QueryEncounterRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{18} -} - -func (x *QueryEncounterRequest) GetEncounterId() uint64 { - if x != nil { - return x.EncounterId - } - return 0 -} - -type QueryEncounterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Encounter *Encounter `protobuf:"bytes,1,opt,name=encounter,proto3" json:"encounter,omitempty"` -} - -func (x *QueryEncounterResponse) Reset() { - *x = QueryEncounterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncounterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncounterResponse) ProtoMessage() {} - -// Deprecated: Use QueryEncounterResponse.ProtoReflect.Descriptor instead. -func (*QueryEncounterResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{19} -} - -func (x *QueryEncounterResponse) GetEncounter() *Encounter { - if x != nil { - return x.Encounter - } - return nil -} - -type QueryEncountersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryEncountersRequest) Reset() { - *x = QueryEncountersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncountersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncountersRequest) ProtoMessage() {} - -// Deprecated: Use QueryEncountersRequest.ProtoReflect.Descriptor instead. -func (*QueryEncountersRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{20} -} - -type QueryEncountersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Encounters []*Encounter `protobuf:"bytes,1,rep,name=encounters,proto3" json:"encounters,omitempty"` -} - -func (x *QueryEncountersResponse) Reset() { - *x = QueryEncountersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncountersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncountersResponse) ProtoMessage() {} - -// Deprecated: Use QueryEncountersResponse.ProtoReflect.Descriptor instead. -func (*QueryEncountersResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{21} -} - -func (x *QueryEncountersResponse) GetEncounters() []*Encounter { - if x != nil { - return x.Encounters - } - return nil -} - -type QueryEncounterWithImageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EncounterId uint64 `protobuf:"varint,1,opt,name=encounterId,proto3" json:"encounterId,omitempty"` -} - -func (x *QueryEncounterWithImageRequest) Reset() { - *x = QueryEncounterWithImageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncounterWithImageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncounterWithImageRequest) ProtoMessage() {} - -// Deprecated: Use QueryEncounterWithImageRequest.ProtoReflect.Descriptor instead. -func (*QueryEncounterWithImageRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{22} -} - -func (x *QueryEncounterWithImageRequest) GetEncounterId() uint64 { - if x != nil { - return x.EncounterId - } - return 0 -} - -type QueryEncounterWithImageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Encounter *EncounterWithImage `protobuf:"bytes,1,opt,name=encounter,proto3" json:"encounter,omitempty"` -} - -func (x *QueryEncounterWithImageResponse) Reset() { - *x = QueryEncounterWithImageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncounterWithImageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncounterWithImageResponse) ProtoMessage() {} - -// Deprecated: Use QueryEncounterWithImageResponse.ProtoReflect.Descriptor instead. -func (*QueryEncounterWithImageResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{23} -} - -func (x *QueryEncounterWithImageResponse) GetEncounter() *EncounterWithImage { - if x != nil { - return x.Encounter - } - return nil -} - -type QueryEncountersWithImageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryEncountersWithImageRequest) Reset() { - *x = QueryEncountersWithImageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncountersWithImageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncountersWithImageRequest) ProtoMessage() {} - -// Deprecated: Use QueryEncountersWithImageRequest.ProtoReflect.Descriptor instead. -func (*QueryEncountersWithImageRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{24} -} - -type QueryEncountersWithImageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Encounters []*EncounterWithImage `protobuf:"bytes,1,rep,name=encounters,proto3" json:"encounters,omitempty"` -} - -func (x *QueryEncountersWithImageResponse) Reset() { - *x = QueryEncountersWithImageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEncountersWithImageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEncountersWithImageResponse) ProtoMessage() {} - -// Deprecated: Use QueryEncountersWithImageResponse.ProtoReflect.Descriptor instead. -func (*QueryEncountersWithImageResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{25} -} - -func (x *QueryEncountersWithImageResponse) GetEncounters() []*EncounterWithImage { - if x != nil { - return x.Encounters - } - return nil -} - -type QueryCardchainInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryCardchainInfoRequest) Reset() { - *x = QueryCardchainInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardchainInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardchainInfoRequest) ProtoMessage() {} - -// Deprecated: Use QueryCardchainInfoRequest.ProtoReflect.Descriptor instead. -func (*QueryCardchainInfoRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{26} -} - -type QueryCardchainInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardAuctionPrice *v1beta1.Coin `protobuf:"bytes,1,opt,name=cardAuctionPrice,proto3" json:"cardAuctionPrice,omitempty"` - ActiveSets []uint64 `protobuf:"varint,2,rep,packed,name=activeSets,proto3" json:"activeSets,omitempty"` - CardsNumber uint64 `protobuf:"varint,3,opt,name=cardsNumber,proto3" json:"cardsNumber,omitempty"` - MatchesNumber uint64 `protobuf:"varint,4,opt,name=matchesNumber,proto3" json:"matchesNumber,omitempty"` - SellOffersNumber uint64 `protobuf:"varint,5,opt,name=sellOffersNumber,proto3" json:"sellOffersNumber,omitempty"` - CouncilsNumber uint64 `protobuf:"varint,6,opt,name=councilsNumber,proto3" json:"councilsNumber,omitempty"` - LastCardModified uint64 `protobuf:"varint,7,opt,name=lastCardModified,proto3" json:"lastCardModified,omitempty"` -} - -func (x *QueryCardchainInfoResponse) Reset() { - *x = QueryCardchainInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardchainInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardchainInfoResponse) ProtoMessage() {} - -// Deprecated: Use QueryCardchainInfoResponse.ProtoReflect.Descriptor instead. -func (*QueryCardchainInfoResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{27} -} - -func (x *QueryCardchainInfoResponse) GetCardAuctionPrice() *v1beta1.Coin { - if x != nil { - return x.CardAuctionPrice - } - return nil -} - -func (x *QueryCardchainInfoResponse) GetActiveSets() []uint64 { - if x != nil { - return x.ActiveSets - } - return nil -} - -func (x *QueryCardchainInfoResponse) GetCardsNumber() uint64 { - if x != nil { - return x.CardsNumber - } - return 0 -} - -func (x *QueryCardchainInfoResponse) GetMatchesNumber() uint64 { - if x != nil { - return x.MatchesNumber - } - return 0 -} - -func (x *QueryCardchainInfoResponse) GetSellOffersNumber() uint64 { - if x != nil { - return x.SellOffersNumber - } - return 0 -} - -func (x *QueryCardchainInfoResponse) GetCouncilsNumber() uint64 { - if x != nil { - return x.CouncilsNumber - } - return 0 -} - -func (x *QueryCardchainInfoResponse) GetLastCardModified() uint64 { - if x != nil { - return x.LastCardModified - } - return 0 -} - -type QuerySetRarityDistributionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SetId uint64 `protobuf:"varint,1,opt,name=setId,proto3" json:"setId,omitempty"` -} - -func (x *QuerySetRarityDistributionRequest) Reset() { - *x = QuerySetRarityDistributionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySetRarityDistributionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySetRarityDistributionRequest) ProtoMessage() {} - -// Deprecated: Use QuerySetRarityDistributionRequest.ProtoReflect.Descriptor instead. -func (*QuerySetRarityDistributionRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{28} -} - -func (x *QuerySetRarityDistributionRequest) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -type QuerySetRarityDistributionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Current []uint64 `protobuf:"varint,1,rep,packed,name=current,proto3" json:"current,omitempty"` - Wanted []uint64 `protobuf:"varint,2,rep,packed,name=wanted,proto3" json:"wanted,omitempty"` -} - -func (x *QuerySetRarityDistributionResponse) Reset() { - *x = QuerySetRarityDistributionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySetRarityDistributionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySetRarityDistributionResponse) ProtoMessage() {} - -// Deprecated: Use QuerySetRarityDistributionResponse.ProtoReflect.Descriptor instead. -func (*QuerySetRarityDistributionResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{29} -} - -func (x *QuerySetRarityDistributionResponse) GetCurrent() []uint64 { - if x != nil { - return x.Current - } - return nil -} - -func (x *QuerySetRarityDistributionResponse) GetWanted() []uint64 { - if x != nil { - return x.Wanted - } - return nil -} - -type QueryAccountFromZealyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ZealyId string `protobuf:"bytes,1,opt,name=zealyId,proto3" json:"zealyId,omitempty"` -} - -func (x *QueryAccountFromZealyRequest) Reset() { - *x = QueryAccountFromZealyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAccountFromZealyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAccountFromZealyRequest) ProtoMessage() {} - -// Deprecated: Use QueryAccountFromZealyRequest.ProtoReflect.Descriptor instead. -func (*QueryAccountFromZealyRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{30} -} - -func (x *QueryAccountFromZealyRequest) GetZealyId() string { - if x != nil { - return x.ZealyId - } - return "" -} - -type QueryAccountFromZealyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *QueryAccountFromZealyResponse) Reset() { - *x = QueryAccountFromZealyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAccountFromZealyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAccountFromZealyResponse) ProtoMessage() {} - -// Deprecated: Use QueryAccountFromZealyResponse.ProtoReflect.Descriptor instead. -func (*QueryAccountFromZealyResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{31} -} - -func (x *QueryAccountFromZealyResponse) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type QueryVotingResultsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryVotingResultsRequest) Reset() { - *x = QueryVotingResultsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVotingResultsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVotingResultsRequest) ProtoMessage() {} - -// Deprecated: Use QueryVotingResultsRequest.ProtoReflect.Descriptor instead. -func (*QueryVotingResultsRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{32} -} - -type QueryVotingResultsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LastVotingResults *VotingResults `protobuf:"bytes,1,opt,name=lastVotingResults,proto3" json:"lastVotingResults,omitempty"` -} - -func (x *QueryVotingResultsResponse) Reset() { - *x = QueryVotingResultsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryVotingResultsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryVotingResultsResponse) ProtoMessage() {} - -// Deprecated: Use QueryVotingResultsResponse.ProtoReflect.Descriptor instead. -func (*QueryVotingResultsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{33} -} - -func (x *QueryVotingResultsResponse) GetLastVotingResults() *VotingResults { - if x != nil { - return x.LastVotingResults - } - return nil -} - -type QueryMatchesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TimestampDown uint64 `protobuf:"varint,1,opt,name=timestampDown,proto3" json:"timestampDown,omitempty"` - TimestampUp uint64 `protobuf:"varint,2,opt,name=timestampUp,proto3" json:"timestampUp,omitempty"` - ContainsUsers []string `protobuf:"bytes,3,rep,name=containsUsers,proto3" json:"containsUsers,omitempty"` - Reporter string `protobuf:"bytes,4,opt,name=reporter,proto3" json:"reporter,omitempty"` - Outcome Outcome `protobuf:"varint,5,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` - CardsPlayed []uint64 `protobuf:"varint,6,rep,packed,name=cardsPlayed,proto3" json:"cardsPlayed,omitempty"` -} - -func (x *QueryMatchesRequest) Reset() { - *x = QueryMatchesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryMatchesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryMatchesRequest) ProtoMessage() {} - -// Deprecated: Use QueryMatchesRequest.ProtoReflect.Descriptor instead. -func (*QueryMatchesRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{34} -} - -func (x *QueryMatchesRequest) GetTimestampDown() uint64 { - if x != nil { - return x.TimestampDown - } - return 0 -} - -func (x *QueryMatchesRequest) GetTimestampUp() uint64 { - if x != nil { - return x.TimestampUp - } - return 0 -} - -func (x *QueryMatchesRequest) GetContainsUsers() []string { - if x != nil { - return x.ContainsUsers - } - return nil -} - -func (x *QueryMatchesRequest) GetReporter() string { - if x != nil { - return x.Reporter - } - return "" -} - -func (x *QueryMatchesRequest) GetOutcome() Outcome { - if x != nil { - return x.Outcome - } - return Outcome_Undefined -} - -func (x *QueryMatchesRequest) GetCardsPlayed() []uint64 { - if x != nil { - return x.CardsPlayed - } - return nil -} - -type QueryMatchesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Matches []*Match `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` - MatchIds []uint64 `protobuf:"varint,2,rep,packed,name=matchIds,proto3" json:"matchIds,omitempty"` -} - -func (x *QueryMatchesResponse) Reset() { - *x = QueryMatchesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryMatchesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryMatchesResponse) ProtoMessage() {} - -// Deprecated: Use QueryMatchesResponse.ProtoReflect.Descriptor instead. -func (*QueryMatchesResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{35} -} - -func (x *QueryMatchesResponse) GetMatches() []*Match { - if x != nil { - return x.Matches - } - return nil -} - -func (x *QueryMatchesResponse) GetMatchIds() []uint64 { - if x != nil { - return x.MatchIds - } - return nil -} - -type QuerySetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status SetStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cardchain.cardchain.SetStatus" json:"status,omitempty"` - Contributors []string `protobuf:"bytes,2,rep,name=contributors,proto3" json:"contributors,omitempty"` - ContainsCards []uint64 `protobuf:"varint,3,rep,packed,name=containsCards,proto3" json:"containsCards,omitempty"` - Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *QuerySetsRequest) Reset() { - *x = QuerySetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySetsRequest) ProtoMessage() {} - -// Deprecated: Use QuerySetsRequest.ProtoReflect.Descriptor instead. -func (*QuerySetsRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{36} -} - -func (x *QuerySetsRequest) GetStatus() SetStatus { - if x != nil { - return x.Status - } - return SetStatus_undefined -} - -func (x *QuerySetsRequest) GetContributors() []string { - if x != nil { - return x.Contributors - } - return nil -} - -func (x *QuerySetsRequest) GetContainsCards() []uint64 { - if x != nil { - return x.ContainsCards - } - return nil -} - -func (x *QuerySetsRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -type QuerySetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SetIds []uint64 `protobuf:"varint,1,rep,packed,name=setIds,proto3" json:"setIds,omitempty"` -} - -func (x *QuerySetsResponse) Reset() { - *x = QuerySetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySetsResponse) ProtoMessage() {} - -// Deprecated: Use QuerySetsResponse.ProtoReflect.Descriptor instead. -func (*QuerySetsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{37} -} - -func (x *QuerySetsResponse) GetSetIds() []uint64 { - if x != nil { - return x.SetIds - } - return nil -} - -type QueryCardContentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *QueryCardContentRequest) Reset() { - *x = QueryCardContentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardContentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardContentRequest) ProtoMessage() {} - -// Deprecated: Use QueryCardContentRequest.ProtoReflect.Descriptor instead. -func (*QueryCardContentRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{38} -} - -func (x *QueryCardContentRequest) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type QueryCardContentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardContent *CardContent `protobuf:"bytes,1,opt,name=cardContent,proto3" json:"cardContent,omitempty"` -} - -func (x *QueryCardContentResponse) Reset() { - *x = QueryCardContentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardContentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardContentResponse) ProtoMessage() {} - -// Deprecated: Use QueryCardContentResponse.ProtoReflect.Descriptor instead. -func (*QueryCardContentResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{39} -} - -func (x *QueryCardContentResponse) GetCardContent() *CardContent { - if x != nil { - return x.CardContent - } - return nil -} - -type QueryCardContentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardIds []uint64 `protobuf:"varint,1,rep,packed,name=cardIds,proto3" json:"cardIds,omitempty"` -} - -func (x *QueryCardContentsRequest) Reset() { - *x = QueryCardContentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardContentsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardContentsRequest) ProtoMessage() {} - -// Deprecated: Use QueryCardContentsRequest.ProtoReflect.Descriptor instead. -func (*QueryCardContentsRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{40} -} - -func (x *QueryCardContentsRequest) GetCardIds() []uint64 { - if x != nil { - return x.CardIds - } - return nil -} - -type QueryCardContentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardContents []*CardContent `protobuf:"bytes,1,rep,name=cardContents,proto3" json:"cardContents,omitempty"` -} - -func (x *QueryCardContentsResponse) Reset() { - *x = QueryCardContentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryCardContentsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryCardContentsResponse) ProtoMessage() {} - -// Deprecated: Use QueryCardContentsResponse.ProtoReflect.Descriptor instead. -func (*QueryCardContentsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{41} -} - -func (x *QueryCardContentsResponse) GetCardContents() []*CardContent { - if x != nil { - return x.CardContents - } - return nil -} - -type QuerySellOffersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PriceDown *v1beta1.Coin `protobuf:"bytes,1,opt,name=priceDown,proto3" json:"priceDown,omitempty"` - PriceUp *v1beta1.Coin `protobuf:"bytes,2,opt,name=priceUp,proto3" json:"priceUp,omitempty"` - Seller string `protobuf:"bytes,3,opt,name=seller,proto3" json:"seller,omitempty"` - Buyer string `protobuf:"bytes,4,opt,name=buyer,proto3" json:"buyer,omitempty"` - Card uint64 `protobuf:"varint,5,opt,name=card,proto3" json:"card,omitempty"` - Status SellOfferStatus `protobuf:"varint,6,opt,name=status,proto3,enum=cardchain.cardchain.SellOfferStatus" json:"status,omitempty"` -} - -func (x *QuerySellOffersRequest) Reset() { - *x = QuerySellOffersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySellOffersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySellOffersRequest) ProtoMessage() {} - -// Deprecated: Use QuerySellOffersRequest.ProtoReflect.Descriptor instead. -func (*QuerySellOffersRequest) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{42} -} - -func (x *QuerySellOffersRequest) GetPriceDown() *v1beta1.Coin { - if x != nil { - return x.PriceDown - } - return nil -} - -func (x *QuerySellOffersRequest) GetPriceUp() *v1beta1.Coin { - if x != nil { - return x.PriceUp - } - return nil -} - -func (x *QuerySellOffersRequest) GetSeller() string { - if x != nil { - return x.Seller - } - return "" -} - -func (x *QuerySellOffersRequest) GetBuyer() string { - if x != nil { - return x.Buyer - } - return "" -} - -func (x *QuerySellOffersRequest) GetCard() uint64 { - if x != nil { - return x.Card - } - return 0 -} - -func (x *QuerySellOffersRequest) GetStatus() SellOfferStatus { - if x != nil { - return x.Status - } - return SellOfferStatus_empty -} - -type QuerySellOffersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SellOffers []*SellOffer `protobuf:"bytes,1,rep,name=sellOffers,proto3" json:"sellOffers,omitempty"` - SellOfferIds []uint64 `protobuf:"varint,2,rep,packed,name=sellOfferIds,proto3" json:"sellOfferIds,omitempty"` -} - -func (x *QuerySellOffersResponse) Reset() { - *x = QuerySellOffersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_query_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySellOffersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySellOffersResponse) ProtoMessage() {} - -// Deprecated: Use QuerySellOffersResponse.ProtoReflect.Descriptor instead. -func (*QuerySellOffersResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_query_proto_rawDescGZIP(), []int{43} -} - -func (x *QuerySellOffersResponse) GetSellOffers() []*SellOffer { - if x != nil { - return x.SellOffers - } - return nil -} - -func (x *QuerySellOffersResponse) GetSellOfferIds() []uint64 { - if x != nil { - return x.SellOfferIds - } - return nil -} - -var File_cardchain_cardchain_query_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_query_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, - 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, 0x5f, - 0x77, 0x69, 0x74, 0x68, 0x5f, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x66, 0x66, - 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x6f, - 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, - 0x72, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x55, 0x0a, 0x13, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, - 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x22, 0x2a, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0x4b, 0x0a, - 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x63, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x52, 0x04, 0x63, 0x61, 0x72, 0x64, 0x22, 0x2c, 0x0a, 0x10, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x42, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, - 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0xa0, 0x04, 0x0a, - 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, - 0x61, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x08, 0x63, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x05, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x05, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x61, - 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x2a, - 0x0a, 0x10, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, - 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, - 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, - 0x12, 0x28, 0x0a, 0x0f, 0x6f, 0x6e, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x43, - 0x61, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x6f, 0x6e, 0x6c, 0x79, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x43, 0x61, 0x72, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x6f, 0x6e, - 0x6c, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x6f, 0x6e, 0x6c, 0x79, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x72, 0x61, - 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x72, - 0x61, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x6d, 0x75, 0x6c, 0x74, 0x69, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, - 0x2e, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x07, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x73, 0x22, - 0x2d, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x22, 0x46, - 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, - 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x22, 0x27, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, - 0x49, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x69, 0x74, 0x68, 0x41, 0x72, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x03, 0x73, 0x65, 0x74, 0x22, 0x39, 0x0a, 0x15, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, - 0x66, 0x65, 0x72, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, - 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3c, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, - 0x65, 0x72, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x22, 0x33, 0x0a, - 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x63, - 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, - 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x63, - 0x69, 0x6c, 0x22, 0x30, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x22, 0x39, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, - 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x16, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x45, - 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x59, 0x0a, - 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x65, 0x6e, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x22, 0x42, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x68, 0x0a, 0x1f, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x57, 0x69, - 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x45, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, - 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x6b, 0x0a, 0x20, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, - 0x0a, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, - 0x72, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x22, 0x1b, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0xd1, 0x02, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x61, 0x72, 0x64, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x63, - 0x61, 0x72, 0x64, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, - 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x04, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x73, 0x12, - 0x20, 0x0a, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x12, 0x24, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x4e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x73, 0x65, 0x6c, 0x6c, 0x4f, - 0x66, 0x66, 0x65, 0x72, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x10, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x73, 0x4e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x63, 0x6f, 0x75, - 0x6e, 0x63, 0x69, 0x6c, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x6c, - 0x61, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4d, - 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x39, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x65, 0x74, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, - 0x49, 0x64, 0x22, 0x56, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x52, 0x61, - 0x72, 0x69, 0x74, 0x79, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x04, 0x52, 0x06, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x22, 0x38, 0x0a, 0x1c, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x5a, 0x65, - 0x61, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x7a, 0x65, - 0x61, 0x6c, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x7a, 0x65, 0x61, - 0x6c, 0x79, 0x49, 0x64, 0x22, 0x39, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, - 0x1b, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x6e, 0x0a, 0x1a, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x6c, 0x61, - 0x73, 0x74, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x6f, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x56, - 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xf9, 0x01, 0x0a, - 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x44, 0x6f, 0x77, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x44, 0x6f, 0x77, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x55, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x55, 0x70, 0x12, 0x24, 0x0a, 0x0d, - 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x55, 0x73, 0x65, - 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x36, - 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, - 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x73, 0x50, - 0x6c, 0x61, 0x79, 0x65, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0b, 0x63, 0x61, 0x72, - 0x64, 0x73, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x22, 0x68, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x34, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x07, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, - 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, - 0x64, 0x73, 0x22, 0xaa, 0x01, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x6f, 0x72, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x43, - 0x61, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x73, 0x43, 0x61, 0x72, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, - 0x2b, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x04, 0x52, 0x06, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x22, 0x31, 0x0a, 0x17, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, - 0x5e, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x63, - 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x52, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, - 0x34, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x61, 0x72, 0x64, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x07, 0x63, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x73, 0x22, 0x61, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, - 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, - 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x63, 0x61, 0x72, 0x64, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x92, 0x02, 0x0a, 0x16, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x44, 0x6f, 0x77, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x44, 0x6f, - 0x77, 0x6e, 0x12, 0x39, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x63, 0x65, 0x55, 0x70, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, - 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x70, 0x72, 0x69, 0x63, 0x65, 0x55, 0x70, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, - 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x63, 0x61, 0x72, 0x64, 0x12, - 0x3c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x7d, 0x0a, - 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, - 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0a, 0x73, 0x65, - 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x65, 0x6c, 0x6c, - 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0c, - 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x73, 0x32, 0x99, 0x1e, 0x0a, - 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x44, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x93, 0x01, 0x0a, 0x04, - 0x43, 0x61, 0x72, 0x64, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x44, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, - 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x37, 0x12, 0x35, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, - 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x7b, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x05, 0x43, 0x61, 0x72, - 0x64, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, - 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x44, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x73, 0x12, 0x98, 0x01, 0x0a, 0x05, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, - 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x44, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x49, 0x64, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x24, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x34, 0x12, 0x32, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, - 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, 0x2f, 0x7b, 0x73, - 0x65, 0x74, 0x49, 0x64, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x09, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, - 0x66, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, - 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, - 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, - 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x6c, - 0x6c, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, - 0x65, 0x72, 0x49, 0x64, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x75, - 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, - 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, - 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x2f, 0x7b, - 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x49, 0x64, 0x7d, 0x12, 0x9d, 0x01, 0x0a, 0x06, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, - 0x12, 0x38, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, - 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, - 0x7b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x09, 0x45, - 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x12, 0x3e, 0x2f, 0x44, 0x65, 0x63, 0x65, - 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x65, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x0a, 0x45, 0x6e, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x44, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0xc4, - 0x01, 0x0a, 0x12, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x33, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x57, - 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, - 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0xc8, 0x01, 0x0a, 0x13, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x34, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, - 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, - 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x12, 0xaf, 0x01, 0x0a, 0x0d, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x44, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x6e, - 0x66, 0x6f, 0x12, 0xd8, 0x01, 0x0a, 0x15, 0x53, 0x65, 0x74, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, - 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x52, 0x61, 0x72, 0x69, 0x74, - 0x79, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x65, 0x74, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, - 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, - 0x74, 0x5f, 0x72, 0x61, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x49, 0x64, 0x7d, 0x12, 0xc6, 0x01, - 0x0a, 0x10, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x5a, 0x65, 0x61, - 0x6c, 0x79, 0x12, 0x31, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x5a, 0x65, 0x61, 0x6c, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x45, 0x12, 0x43, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, - 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x7a, 0x65, 0x61, 0x6c, 0x79, 0x2f, 0x7b, 0x7a, 0x65, - 0x61, 0x6c, 0x79, 0x49, 0x64, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0d, 0x56, 0x6f, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x37, 0x12, 0x35, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, - 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0xe9, 0x01, 0x0a, 0x07, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x81, 0x01, 0x12, 0x7f, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, - 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x44, 0x6f, - 0x77, 0x6e, 0x7d, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x55, 0x70, - 0x7d, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, 0x73, - 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x7d, 0x2f, 0x7b, 0x6f, 0x75, - 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x63, 0x61, 0x72, 0x64, 0x73, 0x50, 0x6c, 0x61, - 0x79, 0x65, 0x64, 0x7d, 0x12, 0xba, 0x01, 0x0a, 0x04, 0x53, 0x65, 0x74, 0x73, 0x12, 0x25, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x5d, 0x12, 0x5b, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, - 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, - 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x7d, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x7d, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x73, 0x43, 0x61, 0x72, 0x64, 0x73, 0x7d, 0x2f, 0x7b, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x7d, 0x12, 0xb0, 0x01, 0x0a, 0x0b, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x12, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, - 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x61, 0x72, 0x64, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, - 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x63, 0x61, 0x72, - 0x64, 0x49, 0x64, 0x7d, 0x12, 0xab, 0x01, 0x0a, 0x0c, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x44, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x73, 0x12, 0xa3, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, - 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, - 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, - 0x66, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, - 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x6c, - 0x6c, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x42, 0xd2, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, - 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_query_proto_rawDescOnce sync.Once - file_cardchain_cardchain_query_proto_rawDescData = file_cardchain_cardchain_query_proto_rawDesc -) - -func file_cardchain_cardchain_query_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_query_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_query_proto_rawDescData) - }) - return file_cardchain_cardchain_query_proto_rawDescData -} - -var file_cardchain_cardchain_query_proto_msgTypes = make([]protoimpl.MessageInfo, 44) -var file_cardchain_cardchain_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: cardchain.cardchain.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: cardchain.cardchain.QueryParamsResponse - (*QueryCardRequest)(nil), // 2: cardchain.cardchain.QueryCardRequest - (*QueryCardResponse)(nil), // 3: cardchain.cardchain.QueryCardResponse - (*QueryUserRequest)(nil), // 4: cardchain.cardchain.QueryUserRequest - (*QueryUserResponse)(nil), // 5: cardchain.cardchain.QueryUserResponse - (*QueryCardsRequest)(nil), // 6: cardchain.cardchain.QueryCardsRequest - (*QueryCardsResponse)(nil), // 7: cardchain.cardchain.QueryCardsResponse - (*QueryMatchRequest)(nil), // 8: cardchain.cardchain.QueryMatchRequest - (*QueryMatchResponse)(nil), // 9: cardchain.cardchain.QueryMatchResponse - (*QuerySetRequest)(nil), // 10: cardchain.cardchain.QuerySetRequest - (*QuerySetResponse)(nil), // 11: cardchain.cardchain.QuerySetResponse - (*QuerySellOfferRequest)(nil), // 12: cardchain.cardchain.QuerySellOfferRequest - (*QuerySellOfferResponse)(nil), // 13: cardchain.cardchain.QuerySellOfferResponse - (*QueryCouncilRequest)(nil), // 14: cardchain.cardchain.QueryCouncilRequest - (*QueryCouncilResponse)(nil), // 15: cardchain.cardchain.QueryCouncilResponse - (*QueryServerRequest)(nil), // 16: cardchain.cardchain.QueryServerRequest - (*QueryServerResponse)(nil), // 17: cardchain.cardchain.QueryServerResponse - (*QueryEncounterRequest)(nil), // 18: cardchain.cardchain.QueryEncounterRequest - (*QueryEncounterResponse)(nil), // 19: cardchain.cardchain.QueryEncounterResponse - (*QueryEncountersRequest)(nil), // 20: cardchain.cardchain.QueryEncountersRequest - (*QueryEncountersResponse)(nil), // 21: cardchain.cardchain.QueryEncountersResponse - (*QueryEncounterWithImageRequest)(nil), // 22: cardchain.cardchain.QueryEncounterWithImageRequest - (*QueryEncounterWithImageResponse)(nil), // 23: cardchain.cardchain.QueryEncounterWithImageResponse - (*QueryEncountersWithImageRequest)(nil), // 24: cardchain.cardchain.QueryEncountersWithImageRequest - (*QueryEncountersWithImageResponse)(nil), // 25: cardchain.cardchain.QueryEncountersWithImageResponse - (*QueryCardchainInfoRequest)(nil), // 26: cardchain.cardchain.QueryCardchainInfoRequest - (*QueryCardchainInfoResponse)(nil), // 27: cardchain.cardchain.QueryCardchainInfoResponse - (*QuerySetRarityDistributionRequest)(nil), // 28: cardchain.cardchain.QuerySetRarityDistributionRequest - (*QuerySetRarityDistributionResponse)(nil), // 29: cardchain.cardchain.QuerySetRarityDistributionResponse - (*QueryAccountFromZealyRequest)(nil), // 30: cardchain.cardchain.QueryAccountFromZealyRequest - (*QueryAccountFromZealyResponse)(nil), // 31: cardchain.cardchain.QueryAccountFromZealyResponse - (*QueryVotingResultsRequest)(nil), // 32: cardchain.cardchain.QueryVotingResultsRequest - (*QueryVotingResultsResponse)(nil), // 33: cardchain.cardchain.QueryVotingResultsResponse - (*QueryMatchesRequest)(nil), // 34: cardchain.cardchain.QueryMatchesRequest - (*QueryMatchesResponse)(nil), // 35: cardchain.cardchain.QueryMatchesResponse - (*QuerySetsRequest)(nil), // 36: cardchain.cardchain.QuerySetsRequest - (*QuerySetsResponse)(nil), // 37: cardchain.cardchain.QuerySetsResponse - (*QueryCardContentRequest)(nil), // 38: cardchain.cardchain.QueryCardContentRequest - (*QueryCardContentResponse)(nil), // 39: cardchain.cardchain.QueryCardContentResponse - (*QueryCardContentsRequest)(nil), // 40: cardchain.cardchain.QueryCardContentsRequest - (*QueryCardContentsResponse)(nil), // 41: cardchain.cardchain.QueryCardContentsResponse - (*QuerySellOffersRequest)(nil), // 42: cardchain.cardchain.QuerySellOffersRequest - (*QuerySellOffersResponse)(nil), // 43: cardchain.cardchain.QuerySellOffersResponse - (*Params)(nil), // 44: cardchain.cardchain.Params - (*CardWithImage)(nil), // 45: cardchain.cardchain.CardWithImage - (*User)(nil), // 46: cardchain.cardchain.User - (CardStatus)(0), // 47: cardchain.cardchain.CardStatus - (CardType)(0), // 48: cardchain.cardchain.CardType - (CardClass)(0), // 49: cardchain.cardchain.CardClass - (CardRarity)(0), // 50: cardchain.cardchain.CardRarity - (*Match)(nil), // 51: cardchain.cardchain.Match - (*SetWithArtwork)(nil), // 52: cardchain.cardchain.SetWithArtwork - (*SellOffer)(nil), // 53: cardchain.cardchain.SellOffer - (*Council)(nil), // 54: cardchain.cardchain.Council - (*Server)(nil), // 55: cardchain.cardchain.Server - (*Encounter)(nil), // 56: cardchain.cardchain.Encounter - (*EncounterWithImage)(nil), // 57: cardchain.cardchain.EncounterWithImage - (*v1beta1.Coin)(nil), // 58: cosmos.base.v1beta1.Coin - (*VotingResults)(nil), // 59: cardchain.cardchain.VotingResults - (Outcome)(0), // 60: cardchain.cardchain.Outcome - (SetStatus)(0), // 61: cardchain.cardchain.SetStatus - (*CardContent)(nil), // 62: cardchain.cardchain.CardContent - (SellOfferStatus)(0), // 63: cardchain.cardchain.SellOfferStatus -} -var file_cardchain_cardchain_query_proto_depIdxs = []int32{ - 44, // 0: cardchain.cardchain.QueryParamsResponse.params:type_name -> cardchain.cardchain.Params - 45, // 1: cardchain.cardchain.QueryCardResponse.card:type_name -> cardchain.cardchain.CardWithImage - 46, // 2: cardchain.cardchain.QueryUserResponse.user:type_name -> cardchain.cardchain.User - 47, // 3: cardchain.cardchain.QueryCardsRequest.status:type_name -> cardchain.cardchain.CardStatus - 48, // 4: cardchain.cardchain.QueryCardsRequest.cardType:type_name -> cardchain.cardchain.CardType - 49, // 5: cardchain.cardchain.QueryCardsRequest.class:type_name -> cardchain.cardchain.CardClass - 50, // 6: cardchain.cardchain.QueryCardsRequest.rarities:type_name -> cardchain.cardchain.CardRarity - 51, // 7: cardchain.cardchain.QueryMatchResponse.match:type_name -> cardchain.cardchain.Match - 52, // 8: cardchain.cardchain.QuerySetResponse.set:type_name -> cardchain.cardchain.SetWithArtwork - 53, // 9: cardchain.cardchain.QuerySellOfferResponse.sellOffer:type_name -> cardchain.cardchain.SellOffer - 54, // 10: cardchain.cardchain.QueryCouncilResponse.council:type_name -> cardchain.cardchain.Council - 55, // 11: cardchain.cardchain.QueryServerResponse.server:type_name -> cardchain.cardchain.Server - 56, // 12: cardchain.cardchain.QueryEncounterResponse.encounter:type_name -> cardchain.cardchain.Encounter - 56, // 13: cardchain.cardchain.QueryEncountersResponse.encounters:type_name -> cardchain.cardchain.Encounter - 57, // 14: cardchain.cardchain.QueryEncounterWithImageResponse.encounter:type_name -> cardchain.cardchain.EncounterWithImage - 57, // 15: cardchain.cardchain.QueryEncountersWithImageResponse.encounters:type_name -> cardchain.cardchain.EncounterWithImage - 58, // 16: cardchain.cardchain.QueryCardchainInfoResponse.cardAuctionPrice:type_name -> cosmos.base.v1beta1.Coin - 59, // 17: cardchain.cardchain.QueryVotingResultsResponse.lastVotingResults:type_name -> cardchain.cardchain.VotingResults - 60, // 18: cardchain.cardchain.QueryMatchesRequest.outcome:type_name -> cardchain.cardchain.Outcome - 51, // 19: cardchain.cardchain.QueryMatchesResponse.matches:type_name -> cardchain.cardchain.Match - 61, // 20: cardchain.cardchain.QuerySetsRequest.status:type_name -> cardchain.cardchain.SetStatus - 62, // 21: cardchain.cardchain.QueryCardContentResponse.cardContent:type_name -> cardchain.cardchain.CardContent - 62, // 22: cardchain.cardchain.QueryCardContentsResponse.cardContents:type_name -> cardchain.cardchain.CardContent - 58, // 23: cardchain.cardchain.QuerySellOffersRequest.priceDown:type_name -> cosmos.base.v1beta1.Coin - 58, // 24: cardchain.cardchain.QuerySellOffersRequest.priceUp:type_name -> cosmos.base.v1beta1.Coin - 63, // 25: cardchain.cardchain.QuerySellOffersRequest.status:type_name -> cardchain.cardchain.SellOfferStatus - 53, // 26: cardchain.cardchain.QuerySellOffersResponse.sellOffers:type_name -> cardchain.cardchain.SellOffer - 0, // 27: cardchain.cardchain.Query.Params:input_type -> cardchain.cardchain.QueryParamsRequest - 2, // 28: cardchain.cardchain.Query.Card:input_type -> cardchain.cardchain.QueryCardRequest - 4, // 29: cardchain.cardchain.Query.User:input_type -> cardchain.cardchain.QueryUserRequest - 6, // 30: cardchain.cardchain.Query.Cards:input_type -> cardchain.cardchain.QueryCardsRequest - 8, // 31: cardchain.cardchain.Query.Match:input_type -> cardchain.cardchain.QueryMatchRequest - 10, // 32: cardchain.cardchain.Query.Set:input_type -> cardchain.cardchain.QuerySetRequest - 12, // 33: cardchain.cardchain.Query.SellOffer:input_type -> cardchain.cardchain.QuerySellOfferRequest - 14, // 34: cardchain.cardchain.Query.Council:input_type -> cardchain.cardchain.QueryCouncilRequest - 16, // 35: cardchain.cardchain.Query.Server:input_type -> cardchain.cardchain.QueryServerRequest - 18, // 36: cardchain.cardchain.Query.Encounter:input_type -> cardchain.cardchain.QueryEncounterRequest - 20, // 37: cardchain.cardchain.Query.Encounters:input_type -> cardchain.cardchain.QueryEncountersRequest - 22, // 38: cardchain.cardchain.Query.EncounterWithImage:input_type -> cardchain.cardchain.QueryEncounterWithImageRequest - 24, // 39: cardchain.cardchain.Query.EncountersWithImage:input_type -> cardchain.cardchain.QueryEncountersWithImageRequest - 26, // 40: cardchain.cardchain.Query.CardchainInfo:input_type -> cardchain.cardchain.QueryCardchainInfoRequest - 28, // 41: cardchain.cardchain.Query.SetRarityDistribution:input_type -> cardchain.cardchain.QuerySetRarityDistributionRequest - 30, // 42: cardchain.cardchain.Query.AccountFromZealy:input_type -> cardchain.cardchain.QueryAccountFromZealyRequest - 32, // 43: cardchain.cardchain.Query.VotingResults:input_type -> cardchain.cardchain.QueryVotingResultsRequest - 34, // 44: cardchain.cardchain.Query.Matches:input_type -> cardchain.cardchain.QueryMatchesRequest - 36, // 45: cardchain.cardchain.Query.Sets:input_type -> cardchain.cardchain.QuerySetsRequest - 38, // 46: cardchain.cardchain.Query.CardContent:input_type -> cardchain.cardchain.QueryCardContentRequest - 40, // 47: cardchain.cardchain.Query.CardContents:input_type -> cardchain.cardchain.QueryCardContentsRequest - 42, // 48: cardchain.cardchain.Query.SellOffers:input_type -> cardchain.cardchain.QuerySellOffersRequest - 1, // 49: cardchain.cardchain.Query.Params:output_type -> cardchain.cardchain.QueryParamsResponse - 3, // 50: cardchain.cardchain.Query.Card:output_type -> cardchain.cardchain.QueryCardResponse - 5, // 51: cardchain.cardchain.Query.User:output_type -> cardchain.cardchain.QueryUserResponse - 7, // 52: cardchain.cardchain.Query.Cards:output_type -> cardchain.cardchain.QueryCardsResponse - 9, // 53: cardchain.cardchain.Query.Match:output_type -> cardchain.cardchain.QueryMatchResponse - 11, // 54: cardchain.cardchain.Query.Set:output_type -> cardchain.cardchain.QuerySetResponse - 13, // 55: cardchain.cardchain.Query.SellOffer:output_type -> cardchain.cardchain.QuerySellOfferResponse - 15, // 56: cardchain.cardchain.Query.Council:output_type -> cardchain.cardchain.QueryCouncilResponse - 17, // 57: cardchain.cardchain.Query.Server:output_type -> cardchain.cardchain.QueryServerResponse - 19, // 58: cardchain.cardchain.Query.Encounter:output_type -> cardchain.cardchain.QueryEncounterResponse - 21, // 59: cardchain.cardchain.Query.Encounters:output_type -> cardchain.cardchain.QueryEncountersResponse - 23, // 60: cardchain.cardchain.Query.EncounterWithImage:output_type -> cardchain.cardchain.QueryEncounterWithImageResponse - 25, // 61: cardchain.cardchain.Query.EncountersWithImage:output_type -> cardchain.cardchain.QueryEncountersWithImageResponse - 27, // 62: cardchain.cardchain.Query.CardchainInfo:output_type -> cardchain.cardchain.QueryCardchainInfoResponse - 29, // 63: cardchain.cardchain.Query.SetRarityDistribution:output_type -> cardchain.cardchain.QuerySetRarityDistributionResponse - 31, // 64: cardchain.cardchain.Query.AccountFromZealy:output_type -> cardchain.cardchain.QueryAccountFromZealyResponse - 33, // 65: cardchain.cardchain.Query.VotingResults:output_type -> cardchain.cardchain.QueryVotingResultsResponse - 35, // 66: cardchain.cardchain.Query.Matches:output_type -> cardchain.cardchain.QueryMatchesResponse - 37, // 67: cardchain.cardchain.Query.Sets:output_type -> cardchain.cardchain.QuerySetsResponse - 39, // 68: cardchain.cardchain.Query.CardContent:output_type -> cardchain.cardchain.QueryCardContentResponse - 41, // 69: cardchain.cardchain.Query.CardContents:output_type -> cardchain.cardchain.QueryCardContentsResponse - 43, // 70: cardchain.cardchain.Query.SellOffers:output_type -> cardchain.cardchain.QuerySellOffersResponse - 49, // [49:71] is the sub-list for method output_type - 27, // [27:49] is the sub-list for method input_type - 27, // [27:27] is the sub-list for extension type_name - 27, // [27:27] is the sub-list for extension extendee - 0, // [0:27] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_query_proto_init() } -func file_cardchain_cardchain_query_proto_init() { - if File_cardchain_cardchain_query_proto != nil { - return - } - file_cardchain_cardchain_params_proto_init() - file_cardchain_cardchain_card_with_image_proto_init() - file_cardchain_cardchain_user_proto_init() - file_cardchain_cardchain_card_proto_init() - file_cardchain_cardchain_match_proto_init() - file_cardchain_cardchain_set_proto_init() - file_cardchain_cardchain_set_with_artwork_proto_init() - file_cardchain_cardchain_sell_offer_proto_init() - file_cardchain_cardchain_council_proto_init() - file_cardchain_cardchain_server_proto_init() - file_cardchain_cardchain_encounter_proto_init() - file_cardchain_cardchain_encounter_with_image_proto_init() - file_cardchain_cardchain_voting_results_proto_init() - file_cardchain_cardchain_card_content_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUserResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMatchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMatchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySellOfferRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySellOfferResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCouncilRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCouncilResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryServerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryServerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncounterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncounterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncountersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncountersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncounterWithImageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncounterWithImageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncountersWithImageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEncountersWithImageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardchainInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardchainInfoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySetRarityDistributionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySetRarityDistributionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAccountFromZealyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAccountFromZealyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVotingResultsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVotingResultsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMatchesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMatchesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardContentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardContentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardContentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryCardContentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySellOffersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_query_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySellOffersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 44, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cardchain_cardchain_query_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_query_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_query_proto_msgTypes, - }.Build() - File_cardchain_cardchain_query_proto = out.File - file_cardchain_cardchain_query_proto_rawDesc = nil - file_cardchain_cardchain_query_proto_goTypes = nil - file_cardchain_cardchain_query_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/query_grpc.pb.go b/api/cardchain/cardchain/query_grpc.pb.go deleted file mode 100644 index 3a682e4b..00000000 --- a/api/cardchain/cardchain/query_grpc.pb.go +++ /dev/null @@ -1,930 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: cardchain/cardchain/query.proto - -package cardchain - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - Query_Params_FullMethodName = "/cardchain.cardchain.Query/Params" - Query_Card_FullMethodName = "/cardchain.cardchain.Query/Card" - Query_User_FullMethodName = "/cardchain.cardchain.Query/User" - Query_Cards_FullMethodName = "/cardchain.cardchain.Query/Cards" - Query_Match_FullMethodName = "/cardchain.cardchain.Query/Match" - Query_Set_FullMethodName = "/cardchain.cardchain.Query/Set" - Query_SellOffer_FullMethodName = "/cardchain.cardchain.Query/SellOffer" - Query_Council_FullMethodName = "/cardchain.cardchain.Query/Council" - Query_Server_FullMethodName = "/cardchain.cardchain.Query/Server" - Query_Encounter_FullMethodName = "/cardchain.cardchain.Query/Encounter" - Query_Encounters_FullMethodName = "/cardchain.cardchain.Query/Encounters" - Query_EncounterWithImage_FullMethodName = "/cardchain.cardchain.Query/EncounterWithImage" - Query_EncountersWithImage_FullMethodName = "/cardchain.cardchain.Query/EncountersWithImage" - Query_CardchainInfo_FullMethodName = "/cardchain.cardchain.Query/CardchainInfo" - Query_SetRarityDistribution_FullMethodName = "/cardchain.cardchain.Query/SetRarityDistribution" - Query_AccountFromZealy_FullMethodName = "/cardchain.cardchain.Query/AccountFromZealy" - Query_VotingResults_FullMethodName = "/cardchain.cardchain.Query/VotingResults" - Query_Matches_FullMethodName = "/cardchain.cardchain.Query/Matches" - Query_Sets_FullMethodName = "/cardchain.cardchain.Query/Sets" - Query_CardContent_FullMethodName = "/cardchain.cardchain.Query/CardContent" - Query_CardContents_FullMethodName = "/cardchain.cardchain.Query/CardContents" - Query_SellOffers_FullMethodName = "/cardchain.cardchain.Query/SellOffers" -) - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of Card items. - Card(ctx context.Context, in *QueryCardRequest, opts ...grpc.CallOption) (*QueryCardResponse, error) - // Queries a list of User items. - User(ctx context.Context, in *QueryUserRequest, opts ...grpc.CallOption) (*QueryUserResponse, error) - // Queries a list of Cards items. - Cards(ctx context.Context, in *QueryCardsRequest, opts ...grpc.CallOption) (*QueryCardsResponse, error) - // Queries a list of Match items. - Match(ctx context.Context, in *QueryMatchRequest, opts ...grpc.CallOption) (*QueryMatchResponse, error) - // Queries a list of Set items. - Set(ctx context.Context, in *QuerySetRequest, opts ...grpc.CallOption) (*QuerySetResponse, error) - // Queries a list of SellOffer items. - SellOffer(ctx context.Context, in *QuerySellOfferRequest, opts ...grpc.CallOption) (*QuerySellOfferResponse, error) - // Queries a list of Council items. - Council(ctx context.Context, in *QueryCouncilRequest, opts ...grpc.CallOption) (*QueryCouncilResponse, error) - // Queries a list of Server items. - Server(ctx context.Context, in *QueryServerRequest, opts ...grpc.CallOption) (*QueryServerResponse, error) - // Queries a list of Encounter items. - Encounter(ctx context.Context, in *QueryEncounterRequest, opts ...grpc.CallOption) (*QueryEncounterResponse, error) - // Queries a list of Encounters items. - Encounters(ctx context.Context, in *QueryEncountersRequest, opts ...grpc.CallOption) (*QueryEncountersResponse, error) - // Queries a list of EncounterWithImage items. - EncounterWithImage(ctx context.Context, in *QueryEncounterWithImageRequest, opts ...grpc.CallOption) (*QueryEncounterWithImageResponse, error) - // Queries a list of EncountersWithImage items. - EncountersWithImage(ctx context.Context, in *QueryEncountersWithImageRequest, opts ...grpc.CallOption) (*QueryEncountersWithImageResponse, error) - // Queries a list of CardchainInfo items. - CardchainInfo(ctx context.Context, in *QueryCardchainInfoRequest, opts ...grpc.CallOption) (*QueryCardchainInfoResponse, error) - // Queries a list of SetRarityDistribution items. - SetRarityDistribution(ctx context.Context, in *QuerySetRarityDistributionRequest, opts ...grpc.CallOption) (*QuerySetRarityDistributionResponse, error) - // Queries a list of AccountFromZealy items. - AccountFromZealy(ctx context.Context, in *QueryAccountFromZealyRequest, opts ...grpc.CallOption) (*QueryAccountFromZealyResponse, error) - // Queries a list of VotingResults items. - VotingResults(ctx context.Context, in *QueryVotingResultsRequest, opts ...grpc.CallOption) (*QueryVotingResultsResponse, error) - // Queries a list of Matches items. - Matches(ctx context.Context, in *QueryMatchesRequest, opts ...grpc.CallOption) (*QueryMatchesResponse, error) - // Queries a list of Sets items. - Sets(ctx context.Context, in *QuerySetsRequest, opts ...grpc.CallOption) (*QuerySetsResponse, error) - // Queries a list of CardContent items. - CardContent(ctx context.Context, in *QueryCardContentRequest, opts ...grpc.CallOption) (*QueryCardContentResponse, error) - // Queries a list of CardContents items. - CardContents(ctx context.Context, in *QueryCardContentsRequest, opts ...grpc.CallOption) (*QueryCardContentsResponse, error) - // Queries a list of SellOffers items. - SellOffers(ctx context.Context, in *QuerySellOffersRequest, opts ...grpc.CallOption) (*QuerySellOffersResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Card(ctx context.Context, in *QueryCardRequest, opts ...grpc.CallOption) (*QueryCardResponse, error) { - out := new(QueryCardResponse) - err := c.cc.Invoke(ctx, Query_Card_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) User(ctx context.Context, in *QueryUserRequest, opts ...grpc.CallOption) (*QueryUserResponse, error) { - out := new(QueryUserResponse) - err := c.cc.Invoke(ctx, Query_User_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Cards(ctx context.Context, in *QueryCardsRequest, opts ...grpc.CallOption) (*QueryCardsResponse, error) { - out := new(QueryCardsResponse) - err := c.cc.Invoke(ctx, Query_Cards_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Match(ctx context.Context, in *QueryMatchRequest, opts ...grpc.CallOption) (*QueryMatchResponse, error) { - out := new(QueryMatchResponse) - err := c.cc.Invoke(ctx, Query_Match_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Set(ctx context.Context, in *QuerySetRequest, opts ...grpc.CallOption) (*QuerySetResponse, error) { - out := new(QuerySetResponse) - err := c.cc.Invoke(ctx, Query_Set_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) SellOffer(ctx context.Context, in *QuerySellOfferRequest, opts ...grpc.CallOption) (*QuerySellOfferResponse, error) { - out := new(QuerySellOfferResponse) - err := c.cc.Invoke(ctx, Query_SellOffer_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Council(ctx context.Context, in *QueryCouncilRequest, opts ...grpc.CallOption) (*QueryCouncilResponse, error) { - out := new(QueryCouncilResponse) - err := c.cc.Invoke(ctx, Query_Council_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Server(ctx context.Context, in *QueryServerRequest, opts ...grpc.CallOption) (*QueryServerResponse, error) { - out := new(QueryServerResponse) - err := c.cc.Invoke(ctx, Query_Server_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Encounter(ctx context.Context, in *QueryEncounterRequest, opts ...grpc.CallOption) (*QueryEncounterResponse, error) { - out := new(QueryEncounterResponse) - err := c.cc.Invoke(ctx, Query_Encounter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Encounters(ctx context.Context, in *QueryEncountersRequest, opts ...grpc.CallOption) (*QueryEncountersResponse, error) { - out := new(QueryEncountersResponse) - err := c.cc.Invoke(ctx, Query_Encounters_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EncounterWithImage(ctx context.Context, in *QueryEncounterWithImageRequest, opts ...grpc.CallOption) (*QueryEncounterWithImageResponse, error) { - out := new(QueryEncounterWithImageResponse) - err := c.cc.Invoke(ctx, Query_EncounterWithImage_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EncountersWithImage(ctx context.Context, in *QueryEncountersWithImageRequest, opts ...grpc.CallOption) (*QueryEncountersWithImageResponse, error) { - out := new(QueryEncountersWithImageResponse) - err := c.cc.Invoke(ctx, Query_EncountersWithImage_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CardchainInfo(ctx context.Context, in *QueryCardchainInfoRequest, opts ...grpc.CallOption) (*QueryCardchainInfoResponse, error) { - out := new(QueryCardchainInfoResponse) - err := c.cc.Invoke(ctx, Query_CardchainInfo_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) SetRarityDistribution(ctx context.Context, in *QuerySetRarityDistributionRequest, opts ...grpc.CallOption) (*QuerySetRarityDistributionResponse, error) { - out := new(QuerySetRarityDistributionResponse) - err := c.cc.Invoke(ctx, Query_SetRarityDistribution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) AccountFromZealy(ctx context.Context, in *QueryAccountFromZealyRequest, opts ...grpc.CallOption) (*QueryAccountFromZealyResponse, error) { - out := new(QueryAccountFromZealyResponse) - err := c.cc.Invoke(ctx, Query_AccountFromZealy_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) VotingResults(ctx context.Context, in *QueryVotingResultsRequest, opts ...grpc.CallOption) (*QueryVotingResultsResponse, error) { - out := new(QueryVotingResultsResponse) - err := c.cc.Invoke(ctx, Query_VotingResults_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Matches(ctx context.Context, in *QueryMatchesRequest, opts ...grpc.CallOption) (*QueryMatchesResponse, error) { - out := new(QueryMatchesResponse) - err := c.cc.Invoke(ctx, Query_Matches_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Sets(ctx context.Context, in *QuerySetsRequest, opts ...grpc.CallOption) (*QuerySetsResponse, error) { - out := new(QuerySetsResponse) - err := c.cc.Invoke(ctx, Query_Sets_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CardContent(ctx context.Context, in *QueryCardContentRequest, opts ...grpc.CallOption) (*QueryCardContentResponse, error) { - out := new(QueryCardContentResponse) - err := c.cc.Invoke(ctx, Query_CardContent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CardContents(ctx context.Context, in *QueryCardContentsRequest, opts ...grpc.CallOption) (*QueryCardContentsResponse, error) { - out := new(QueryCardContentsResponse) - err := c.cc.Invoke(ctx, Query_CardContents_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) SellOffers(ctx context.Context, in *QuerySellOffersRequest, opts ...grpc.CallOption) (*QuerySellOffersResponse, error) { - out := new(QuerySellOffersResponse) - err := c.cc.Invoke(ctx, Query_SellOffers_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of Card items. - Card(context.Context, *QueryCardRequest) (*QueryCardResponse, error) - // Queries a list of User items. - User(context.Context, *QueryUserRequest) (*QueryUserResponse, error) - // Queries a list of Cards items. - Cards(context.Context, *QueryCardsRequest) (*QueryCardsResponse, error) - // Queries a list of Match items. - Match(context.Context, *QueryMatchRequest) (*QueryMatchResponse, error) - // Queries a list of Set items. - Set(context.Context, *QuerySetRequest) (*QuerySetResponse, error) - // Queries a list of SellOffer items. - SellOffer(context.Context, *QuerySellOfferRequest) (*QuerySellOfferResponse, error) - // Queries a list of Council items. - Council(context.Context, *QueryCouncilRequest) (*QueryCouncilResponse, error) - // Queries a list of Server items. - Server(context.Context, *QueryServerRequest) (*QueryServerResponse, error) - // Queries a list of Encounter items. - Encounter(context.Context, *QueryEncounterRequest) (*QueryEncounterResponse, error) - // Queries a list of Encounters items. - Encounters(context.Context, *QueryEncountersRequest) (*QueryEncountersResponse, error) - // Queries a list of EncounterWithImage items. - EncounterWithImage(context.Context, *QueryEncounterWithImageRequest) (*QueryEncounterWithImageResponse, error) - // Queries a list of EncountersWithImage items. - EncountersWithImage(context.Context, *QueryEncountersWithImageRequest) (*QueryEncountersWithImageResponse, error) - // Queries a list of CardchainInfo items. - CardchainInfo(context.Context, *QueryCardchainInfoRequest) (*QueryCardchainInfoResponse, error) - // Queries a list of SetRarityDistribution items. - SetRarityDistribution(context.Context, *QuerySetRarityDistributionRequest) (*QuerySetRarityDistributionResponse, error) - // Queries a list of AccountFromZealy items. - AccountFromZealy(context.Context, *QueryAccountFromZealyRequest) (*QueryAccountFromZealyResponse, error) - // Queries a list of VotingResults items. - VotingResults(context.Context, *QueryVotingResultsRequest) (*QueryVotingResultsResponse, error) - // Queries a list of Matches items. - Matches(context.Context, *QueryMatchesRequest) (*QueryMatchesResponse, error) - // Queries a list of Sets items. - Sets(context.Context, *QuerySetsRequest) (*QuerySetsResponse, error) - // Queries a list of CardContent items. - CardContent(context.Context, *QueryCardContentRequest) (*QueryCardContentResponse, error) - // Queries a list of CardContents items. - CardContents(context.Context, *QueryCardContentsRequest) (*QueryCardContentsResponse, error) - // Queries a list of SellOffers items. - SellOffers(context.Context, *QuerySellOffersRequest) (*QuerySellOffersResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (UnimplementedQueryServer) Card(context.Context, *QueryCardRequest) (*QueryCardResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Card not implemented") -} -func (UnimplementedQueryServer) User(context.Context, *QueryUserRequest) (*QueryUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method User not implemented") -} -func (UnimplementedQueryServer) Cards(context.Context, *QueryCardsRequest) (*QueryCardsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Cards not implemented") -} -func (UnimplementedQueryServer) Match(context.Context, *QueryMatchRequest) (*QueryMatchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Match not implemented") -} -func (UnimplementedQueryServer) Set(context.Context, *QuerySetRequest) (*QuerySetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Set not implemented") -} -func (UnimplementedQueryServer) SellOffer(context.Context, *QuerySellOfferRequest) (*QuerySellOfferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SellOffer not implemented") -} -func (UnimplementedQueryServer) Council(context.Context, *QueryCouncilRequest) (*QueryCouncilResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Council not implemented") -} -func (UnimplementedQueryServer) Server(context.Context, *QueryServerRequest) (*QueryServerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Server not implemented") -} -func (UnimplementedQueryServer) Encounter(context.Context, *QueryEncounterRequest) (*QueryEncounterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Encounter not implemented") -} -func (UnimplementedQueryServer) Encounters(context.Context, *QueryEncountersRequest) (*QueryEncountersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Encounters not implemented") -} -func (UnimplementedQueryServer) EncounterWithImage(context.Context, *QueryEncounterWithImageRequest) (*QueryEncounterWithImageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EncounterWithImage not implemented") -} -func (UnimplementedQueryServer) EncountersWithImage(context.Context, *QueryEncountersWithImageRequest) (*QueryEncountersWithImageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EncountersWithImage not implemented") -} -func (UnimplementedQueryServer) CardchainInfo(context.Context, *QueryCardchainInfoRequest) (*QueryCardchainInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardchainInfo not implemented") -} -func (UnimplementedQueryServer) SetRarityDistribution(context.Context, *QuerySetRarityDistributionRequest) (*QuerySetRarityDistributionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetRarityDistribution not implemented") -} -func (UnimplementedQueryServer) AccountFromZealy(context.Context, *QueryAccountFromZealyRequest) (*QueryAccountFromZealyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AccountFromZealy not implemented") -} -func (UnimplementedQueryServer) VotingResults(context.Context, *QueryVotingResultsRequest) (*QueryVotingResultsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VotingResults not implemented") -} -func (UnimplementedQueryServer) Matches(context.Context, *QueryMatchesRequest) (*QueryMatchesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Matches not implemented") -} -func (UnimplementedQueryServer) Sets(context.Context, *QuerySetsRequest) (*QuerySetsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Sets not implemented") -} -func (UnimplementedQueryServer) CardContent(context.Context, *QueryCardContentRequest) (*QueryCardContentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardContent not implemented") -} -func (UnimplementedQueryServer) CardContents(context.Context, *QueryCardContentsRequest) (*QueryCardContentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardContents not implemented") -} -func (UnimplementedQueryServer) SellOffers(context.Context, *QuerySellOffersRequest) (*QuerySellOffersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SellOffers not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { - s.RegisterService(&Query_ServiceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Params_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Card_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCardRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Card(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Card_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Card(ctx, req.(*QueryCardRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_User_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).User(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_User_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).User(ctx, req.(*QueryUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Cards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCardsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Cards(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Cards_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Cards(ctx, req.(*QueryCardsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Match_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryMatchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Match(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Match_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Match(ctx, req.(*QueryMatchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Set(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Set_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Set(ctx, req.(*QuerySetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_SellOffer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySellOfferRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).SellOffer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_SellOffer_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).SellOffer(ctx, req.(*QuerySellOfferRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Council_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCouncilRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Council(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Council_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Council(ctx, req.(*QueryCouncilRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Server_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryServerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Server(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Server_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Server(ctx, req.(*QueryServerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Encounter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEncounterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Encounter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Encounter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Encounter(ctx, req.(*QueryEncounterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Encounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEncountersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Encounters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Encounters_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Encounters(ctx, req.(*QueryEncountersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EncounterWithImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEncounterWithImageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EncounterWithImage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_EncounterWithImage_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncounterWithImage(ctx, req.(*QueryEncounterWithImageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EncountersWithImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEncountersWithImageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EncountersWithImage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_EncountersWithImage_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncountersWithImage(ctx, req.(*QueryEncountersWithImageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CardchainInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCardchainInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CardchainInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_CardchainInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CardchainInfo(ctx, req.(*QueryCardchainInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_SetRarityDistribution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySetRarityDistributionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).SetRarityDistribution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_SetRarityDistribution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).SetRarityDistribution(ctx, req.(*QuerySetRarityDistributionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_AccountFromZealy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAccountFromZealyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).AccountFromZealy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_AccountFromZealy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AccountFromZealy(ctx, req.(*QueryAccountFromZealyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_VotingResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVotingResultsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).VotingResults(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_VotingResults_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).VotingResults(ctx, req.(*QueryVotingResultsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Matches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryMatchesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Matches(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Matches_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Matches(ctx, req.(*QueryMatchesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Sets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySetsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Sets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Sets_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Sets(ctx, req.(*QuerySetsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CardContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCardContentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CardContent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_CardContent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CardContent(ctx, req.(*QueryCardContentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CardContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCardContentsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CardContents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_CardContents_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CardContents(ctx, req.(*QueryCardContentsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_SellOffers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySellOffersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).SellOffers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_SellOffers_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).SellOffers(ctx, req.(*QuerySellOffersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cardchain.cardchain.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "Card", - Handler: _Query_Card_Handler, - }, - { - MethodName: "User", - Handler: _Query_User_Handler, - }, - { - MethodName: "Cards", - Handler: _Query_Cards_Handler, - }, - { - MethodName: "Match", - Handler: _Query_Match_Handler, - }, - { - MethodName: "Set", - Handler: _Query_Set_Handler, - }, - { - MethodName: "SellOffer", - Handler: _Query_SellOffer_Handler, - }, - { - MethodName: "Council", - Handler: _Query_Council_Handler, - }, - { - MethodName: "Server", - Handler: _Query_Server_Handler, - }, - { - MethodName: "Encounter", - Handler: _Query_Encounter_Handler, - }, - { - MethodName: "Encounters", - Handler: _Query_Encounters_Handler, - }, - { - MethodName: "EncounterWithImage", - Handler: _Query_EncounterWithImage_Handler, - }, - { - MethodName: "EncountersWithImage", - Handler: _Query_EncountersWithImage_Handler, - }, - { - MethodName: "CardchainInfo", - Handler: _Query_CardchainInfo_Handler, - }, - { - MethodName: "SetRarityDistribution", - Handler: _Query_SetRarityDistribution_Handler, - }, - { - MethodName: "AccountFromZealy", - Handler: _Query_AccountFromZealy_Handler, - }, - { - MethodName: "VotingResults", - Handler: _Query_VotingResults_Handler, - }, - { - MethodName: "Matches", - Handler: _Query_Matches_Handler, - }, - { - MethodName: "Sets", - Handler: _Query_Sets_Handler, - }, - { - MethodName: "CardContent", - Handler: _Query_CardContent_Handler, - }, - { - MethodName: "CardContents", - Handler: _Query_CardContents_Handler, - }, - { - MethodName: "SellOffers", - Handler: _Query_SellOffers_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cardchain/cardchain/query.proto", -} diff --git a/api/cardchain/cardchain/running_average.pulsar.go b/api/cardchain/cardchain/running_average.pulsar.go deleted file mode 100644 index 9cff2c1b..00000000 --- a/api/cardchain/cardchain/running_average.pulsar.go +++ /dev/null @@ -1,687 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_RunningAverage_1_list)(nil) - -type _RunningAverage_1_list struct { - list *[]int64 -} - -func (x *_RunningAverage_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_RunningAverage_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfInt64((*x.list)[i]) -} - -func (x *_RunningAverage_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Int() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_RunningAverage_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Int() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_RunningAverage_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message RunningAverage at list field Arr as it is not of Message kind")) -} - -func (x *_RunningAverage_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_RunningAverage_1_list) NewElement() protoreflect.Value { - v := int64(0) - return protoreflect.ValueOfInt64(v) -} - -func (x *_RunningAverage_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_RunningAverage protoreflect.MessageDescriptor - fd_RunningAverage_arr protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_running_average_proto_init() - md_RunningAverage = File_cardchain_cardchain_running_average_proto.Messages().ByName("RunningAverage") - fd_RunningAverage_arr = md_RunningAverage.Fields().ByName("arr") -} - -var _ protoreflect.Message = (*fastReflection_RunningAverage)(nil) - -type fastReflection_RunningAverage RunningAverage - -func (x *RunningAverage) ProtoReflect() protoreflect.Message { - return (*fastReflection_RunningAverage)(x) -} - -func (x *RunningAverage) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_running_average_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_RunningAverage_messageType fastReflection_RunningAverage_messageType -var _ protoreflect.MessageType = fastReflection_RunningAverage_messageType{} - -type fastReflection_RunningAverage_messageType struct{} - -func (x fastReflection_RunningAverage_messageType) Zero() protoreflect.Message { - return (*fastReflection_RunningAverage)(nil) -} -func (x fastReflection_RunningAverage_messageType) New() protoreflect.Message { - return new(fastReflection_RunningAverage) -} -func (x fastReflection_RunningAverage_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RunningAverage -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_RunningAverage) Descriptor() protoreflect.MessageDescriptor { - return md_RunningAverage -} - -// 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_RunningAverage) Type() protoreflect.MessageType { - return _fastReflection_RunningAverage_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_RunningAverage) New() protoreflect.Message { - return new(fastReflection_RunningAverage) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_RunningAverage) Interface() protoreflect.ProtoMessage { - return (*RunningAverage)(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_RunningAverage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Arr) != 0 { - value := protoreflect.ValueOfList(&_RunningAverage_1_list{list: &x.Arr}) - if !f(fd_RunningAverage_arr, 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_RunningAverage) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.RunningAverage.arr": - return len(x.Arr) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.RunningAverage")) - } - panic(fmt.Errorf("message cardchain.cardchain.RunningAverage 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_RunningAverage) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.RunningAverage.arr": - x.Arr = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.RunningAverage")) - } - panic(fmt.Errorf("message cardchain.cardchain.RunningAverage 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_RunningAverage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.RunningAverage.arr": - if len(x.Arr) == 0 { - return protoreflect.ValueOfList(&_RunningAverage_1_list{}) - } - listValue := &_RunningAverage_1_list{list: &x.Arr} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.RunningAverage")) - } - panic(fmt.Errorf("message cardchain.cardchain.RunningAverage 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_RunningAverage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.RunningAverage.arr": - lv := value.List() - clv := lv.(*_RunningAverage_1_list) - x.Arr = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.RunningAverage")) - } - panic(fmt.Errorf("message cardchain.cardchain.RunningAverage 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_RunningAverage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.RunningAverage.arr": - if x.Arr == nil { - x.Arr = []int64{} - } - value := &_RunningAverage_1_list{list: &x.Arr} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.RunningAverage")) - } - panic(fmt.Errorf("message cardchain.cardchain.RunningAverage 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_RunningAverage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.RunningAverage.arr": - list := []int64{} - return protoreflect.ValueOfList(&_RunningAverage_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.RunningAverage")) - } - panic(fmt.Errorf("message cardchain.cardchain.RunningAverage 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_RunningAverage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.RunningAverage", 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_RunningAverage) 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_RunningAverage) 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_RunningAverage) 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_RunningAverage) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RunningAverage) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Arr) > 0 { - l = 0 - for _, e := range x.Arr { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*RunningAverage) - 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.Arr) > 0 { - var pksize2 int - for _, num := range x.Arr { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range x.Arr { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - 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().(*RunningAverage) - 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: RunningAverage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RunningAverage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v int64 - 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++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Arr = append(x.Arr, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Arr) == 0 { - x.Arr = make([]int64, 0, elementCount) - } - for iNdEx < postIndex { - var v int64 - 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++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Arr = append(x.Arr, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Arr", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/running_average.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type RunningAverage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Arr []int64 `protobuf:"varint,1,rep,packed,name=arr,proto3" json:"arr,omitempty"` -} - -func (x *RunningAverage) Reset() { - *x = RunningAverage{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_running_average_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RunningAverage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RunningAverage) ProtoMessage() {} - -// Deprecated: Use RunningAverage.ProtoReflect.Descriptor instead. -func (*RunningAverage) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_running_average_proto_rawDescGZIP(), []int{0} -} - -func (x *RunningAverage) GetArr() []int64 { - if x != nil { - return x.Arr - } - return nil -} - -var File_cardchain_cardchain_running_average_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_running_average_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x76, - 0x65, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x22, 0x22, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x76, 0x65, 0x72, 0x61, - 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x72, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, - 0x03, 0x61, 0x72, 0x72, 0x42, 0xdb, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x42, 0x13, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, - 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_running_average_proto_rawDescOnce sync.Once - file_cardchain_cardchain_running_average_proto_rawDescData = file_cardchain_cardchain_running_average_proto_rawDesc -) - -func file_cardchain_cardchain_running_average_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_running_average_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_running_average_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_running_average_proto_rawDescData) - }) - return file_cardchain_cardchain_running_average_proto_rawDescData -} - -var file_cardchain_cardchain_running_average_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_running_average_proto_goTypes = []interface{}{ - (*RunningAverage)(nil), // 0: cardchain.cardchain.RunningAverage -} -var file_cardchain_cardchain_running_average_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_running_average_proto_init() } -func file_cardchain_cardchain_running_average_proto_init() { - if File_cardchain_cardchain_running_average_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_running_average_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunningAverage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_running_average_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_running_average_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_running_average_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_running_average_proto_msgTypes, - }.Build() - File_cardchain_cardchain_running_average_proto = out.File - file_cardchain_cardchain_running_average_proto_rawDesc = nil - file_cardchain_cardchain_running_average_proto_goTypes = nil - file_cardchain_cardchain_running_average_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/sell_offer.pulsar.go b/api/cardchain/cardchain/sell_offer.pulsar.go deleted file mode 100644 index c3b03c7c..00000000 --- a/api/cardchain/cardchain/sell_offer.pulsar.go +++ /dev/null @@ -1,918 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_SellOffer protoreflect.MessageDescriptor - fd_SellOffer_seller protoreflect.FieldDescriptor - fd_SellOffer_buyer protoreflect.FieldDescriptor - fd_SellOffer_card protoreflect.FieldDescriptor - fd_SellOffer_price protoreflect.FieldDescriptor - fd_SellOffer_status protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_sell_offer_proto_init() - md_SellOffer = File_cardchain_cardchain_sell_offer_proto.Messages().ByName("SellOffer") - fd_SellOffer_seller = md_SellOffer.Fields().ByName("seller") - fd_SellOffer_buyer = md_SellOffer.Fields().ByName("buyer") - fd_SellOffer_card = md_SellOffer.Fields().ByName("card") - fd_SellOffer_price = md_SellOffer.Fields().ByName("price") - fd_SellOffer_status = md_SellOffer.Fields().ByName("status") -} - -var _ protoreflect.Message = (*fastReflection_SellOffer)(nil) - -type fastReflection_SellOffer SellOffer - -func (x *SellOffer) ProtoReflect() protoreflect.Message { - return (*fastReflection_SellOffer)(x) -} - -func (x *SellOffer) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_sell_offer_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_SellOffer_messageType fastReflection_SellOffer_messageType -var _ protoreflect.MessageType = fastReflection_SellOffer_messageType{} - -type fastReflection_SellOffer_messageType struct{} - -func (x fastReflection_SellOffer_messageType) Zero() protoreflect.Message { - return (*fastReflection_SellOffer)(nil) -} -func (x fastReflection_SellOffer_messageType) New() protoreflect.Message { - return new(fastReflection_SellOffer) -} -func (x fastReflection_SellOffer_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SellOffer -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_SellOffer) Descriptor() protoreflect.MessageDescriptor { - return md_SellOffer -} - -// 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_SellOffer) Type() protoreflect.MessageType { - return _fastReflection_SellOffer_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_SellOffer) New() protoreflect.Message { - return new(fastReflection_SellOffer) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_SellOffer) Interface() protoreflect.ProtoMessage { - return (*SellOffer)(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_SellOffer) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Seller != "" { - value := protoreflect.ValueOfString(x.Seller) - if !f(fd_SellOffer_seller, value) { - return - } - } - if x.Buyer != "" { - value := protoreflect.ValueOfString(x.Buyer) - if !f(fd_SellOffer_buyer, value) { - return - } - } - if x.Card != uint64(0) { - value := protoreflect.ValueOfUint64(x.Card) - if !f(fd_SellOffer_card, value) { - return - } - } - if x.Price != nil { - value := protoreflect.ValueOfMessage(x.Price.ProtoReflect()) - if !f(fd_SellOffer_price, value) { - return - } - } - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_SellOffer_status, 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_SellOffer) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.SellOffer.seller": - return x.Seller != "" - case "cardchain.cardchain.SellOffer.buyer": - return x.Buyer != "" - case "cardchain.cardchain.SellOffer.card": - return x.Card != uint64(0) - case "cardchain.cardchain.SellOffer.price": - return x.Price != nil - case "cardchain.cardchain.SellOffer.status": - return x.Status != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SellOffer")) - } - panic(fmt.Errorf("message cardchain.cardchain.SellOffer 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_SellOffer) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.SellOffer.seller": - x.Seller = "" - case "cardchain.cardchain.SellOffer.buyer": - x.Buyer = "" - case "cardchain.cardchain.SellOffer.card": - x.Card = uint64(0) - case "cardchain.cardchain.SellOffer.price": - x.Price = nil - case "cardchain.cardchain.SellOffer.status": - x.Status = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SellOffer")) - } - panic(fmt.Errorf("message cardchain.cardchain.SellOffer 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_SellOffer) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.SellOffer.seller": - value := x.Seller - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.SellOffer.buyer": - value := x.Buyer - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.SellOffer.card": - value := x.Card - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.SellOffer.price": - value := x.Price - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.SellOffer.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SellOffer")) - } - panic(fmt.Errorf("message cardchain.cardchain.SellOffer 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_SellOffer) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.SellOffer.seller": - x.Seller = value.Interface().(string) - case "cardchain.cardchain.SellOffer.buyer": - x.Buyer = value.Interface().(string) - case "cardchain.cardchain.SellOffer.card": - x.Card = value.Uint() - case "cardchain.cardchain.SellOffer.price": - x.Price = value.Message().Interface().(*v1beta1.Coin) - case "cardchain.cardchain.SellOffer.status": - x.Status = (SellOfferStatus)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SellOffer")) - } - panic(fmt.Errorf("message cardchain.cardchain.SellOffer 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_SellOffer) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.SellOffer.price": - if x.Price == nil { - x.Price = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.Price.ProtoReflect()) - case "cardchain.cardchain.SellOffer.seller": - panic(fmt.Errorf("field seller of message cardchain.cardchain.SellOffer is not mutable")) - case "cardchain.cardchain.SellOffer.buyer": - panic(fmt.Errorf("field buyer of message cardchain.cardchain.SellOffer is not mutable")) - case "cardchain.cardchain.SellOffer.card": - panic(fmt.Errorf("field card of message cardchain.cardchain.SellOffer is not mutable")) - case "cardchain.cardchain.SellOffer.status": - panic(fmt.Errorf("field status of message cardchain.cardchain.SellOffer is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SellOffer")) - } - panic(fmt.Errorf("message cardchain.cardchain.SellOffer 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_SellOffer) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.SellOffer.seller": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.SellOffer.buyer": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.SellOffer.card": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.SellOffer.price": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.SellOffer.status": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SellOffer")) - } - panic(fmt.Errorf("message cardchain.cardchain.SellOffer 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_SellOffer) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.SellOffer", 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_SellOffer) 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_SellOffer) 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_SellOffer) 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_SellOffer) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SellOffer) - 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.Seller) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Buyer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Card != 0 { - n += 1 + runtime.Sov(uint64(x.Card)) - } - if x.Price != nil { - l = options.Size(x.Price) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - 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().(*SellOffer) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x28 - } - if x.Price != nil { - encoded, err := options.Marshal(x.Price) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - if x.Card != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Card)) - i-- - dAtA[i] = 0x18 - } - if len(x.Buyer) > 0 { - i -= len(x.Buyer) - copy(dAtA[i:], x.Buyer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Buyer))) - i-- - dAtA[i] = 0x12 - } - if len(x.Seller) > 0 { - i -= len(x.Seller) - copy(dAtA[i:], x.Seller) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Seller))) - 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().(*SellOffer) - 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: SellOffer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SellOffer: 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 Seller", 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.Seller = 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 Buyer", 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.Buyer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Card", wireType) - } - x.Card = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Card |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Price == nil { - x.Price = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Price); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= SellOfferStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/sell_offer.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SellOfferStatus int32 - -const ( - SellOfferStatus_empty SellOfferStatus = 0 - SellOfferStatus_open SellOfferStatus = 1 - SellOfferStatus_sold SellOfferStatus = 2 - SellOfferStatus_removed SellOfferStatus = 3 -) - -// Enum value maps for SellOfferStatus. -var ( - SellOfferStatus_name = map[int32]string{ - 0: "empty", - 1: "open", - 2: "sold", - 3: "removed", - } - SellOfferStatus_value = map[string]int32{ - "empty": 0, - "open": 1, - "sold": 2, - "removed": 3, - } -) - -func (x SellOfferStatus) Enum() *SellOfferStatus { - p := new(SellOfferStatus) - *p = x - return p -} - -func (x SellOfferStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SellOfferStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_sell_offer_proto_enumTypes[0].Descriptor() -} - -func (SellOfferStatus) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_sell_offer_proto_enumTypes[0] -} - -func (x SellOfferStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SellOfferStatus.Descriptor instead. -func (SellOfferStatus) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_sell_offer_proto_rawDescGZIP(), []int{0} -} - -type SellOffer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"` - Buyer string `protobuf:"bytes,2,opt,name=buyer,proto3" json:"buyer,omitempty"` - Card uint64 `protobuf:"varint,3,opt,name=card,proto3" json:"card,omitempty"` - Price *v1beta1.Coin `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` - Status SellOfferStatus `protobuf:"varint,5,opt,name=status,proto3,enum=cardchain.cardchain.SellOfferStatus" json:"status,omitempty"` -} - -func (x *SellOffer) Reset() { - *x = SellOffer{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_sell_offer_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SellOffer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SellOffer) ProtoMessage() {} - -// Deprecated: Use SellOffer.ProtoReflect.Descriptor instead. -func (*SellOffer) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_sell_offer_proto_rawDescGZIP(), []int{0} -} - -func (x *SellOffer) GetSeller() string { - if x != nil { - return x.Seller - } - return "" -} - -func (x *SellOffer) GetBuyer() string { - if x != nil { - return x.Buyer - } - return "" -} - -func (x *SellOffer) GetCard() uint64 { - if x != nil { - return x.Card - } - return 0 -} - -func (x *SellOffer) GetPrice() *v1beta1.Coin { - if x != nil { - return x.Price - } - return nil -} - -func (x *SellOffer) GetStatus() SellOfferStatus { - if x != nil { - return x.Status - } - return SellOfferStatus_empty -} - -var File_cardchain_cardchain_sell_offer_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_sell_offer_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x66, 0x66, 0x65, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, - 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x09, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x63, 0x61, 0x72, - 0x64, 0x12, 0x35, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, - 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x3d, 0x0a, 0x0f, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, - 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x09, 0x0a, 0x05, 0x65, 0x6d, 0x70, - 0x74, 0x79, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x10, 0x01, 0x12, 0x08, - 0x0a, 0x04, 0x73, 0x6f, 0x6c, 0x64, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x64, 0x10, 0x03, 0x42, 0xd6, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x42, 0x0e, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, - 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, - 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_sell_offer_proto_rawDescOnce sync.Once - file_cardchain_cardchain_sell_offer_proto_rawDescData = file_cardchain_cardchain_sell_offer_proto_rawDesc -) - -func file_cardchain_cardchain_sell_offer_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_sell_offer_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_sell_offer_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_sell_offer_proto_rawDescData) - }) - return file_cardchain_cardchain_sell_offer_proto_rawDescData -} - -var file_cardchain_cardchain_sell_offer_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cardchain_cardchain_sell_offer_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_sell_offer_proto_goTypes = []interface{}{ - (SellOfferStatus)(0), // 0: cardchain.cardchain.SellOfferStatus - (*SellOffer)(nil), // 1: cardchain.cardchain.SellOffer - (*v1beta1.Coin)(nil), // 2: cosmos.base.v1beta1.Coin -} -var file_cardchain_cardchain_sell_offer_proto_depIdxs = []int32{ - 2, // 0: cardchain.cardchain.SellOffer.price:type_name -> cosmos.base.v1beta1.Coin - 0, // 1: cardchain.cardchain.SellOffer.status:type_name -> cardchain.cardchain.SellOfferStatus - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_sell_offer_proto_init() } -func file_cardchain_cardchain_sell_offer_proto_init() { - if File_cardchain_cardchain_sell_offer_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_sell_offer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SellOffer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_sell_offer_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_sell_offer_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_sell_offer_proto_depIdxs, - EnumInfos: file_cardchain_cardchain_sell_offer_proto_enumTypes, - MessageInfos: file_cardchain_cardchain_sell_offer_proto_msgTypes, - }.Build() - File_cardchain_cardchain_sell_offer_proto = out.File - file_cardchain_cardchain_sell_offer_proto_rawDesc = nil - file_cardchain_cardchain_sell_offer_proto_goTypes = nil - file_cardchain_cardchain_sell_offer_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/server.pulsar.go b/api/cardchain/cardchain/server.pulsar.go deleted file mode 100644 index e8d66d38..00000000 --- a/api/cardchain/cardchain/server.pulsar.go +++ /dev/null @@ -1,686 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Server protoreflect.MessageDescriptor - fd_Server_reporter protoreflect.FieldDescriptor - fd_Server_invalidReports protoreflect.FieldDescriptor - fd_Server_validReports protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_server_proto_init() - md_Server = File_cardchain_cardchain_server_proto.Messages().ByName("Server") - fd_Server_reporter = md_Server.Fields().ByName("reporter") - fd_Server_invalidReports = md_Server.Fields().ByName("invalidReports") - fd_Server_validReports = md_Server.Fields().ByName("validReports") -} - -var _ protoreflect.Message = (*fastReflection_Server)(nil) - -type fastReflection_Server Server - -func (x *Server) ProtoReflect() protoreflect.Message { - return (*fastReflection_Server)(x) -} - -func (x *Server) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_server_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Server_messageType fastReflection_Server_messageType -var _ protoreflect.MessageType = fastReflection_Server_messageType{} - -type fastReflection_Server_messageType struct{} - -func (x fastReflection_Server_messageType) Zero() protoreflect.Message { - return (*fastReflection_Server)(nil) -} -func (x fastReflection_Server_messageType) New() protoreflect.Message { - return new(fastReflection_Server) -} -func (x fastReflection_Server_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Server -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Server) Descriptor() protoreflect.MessageDescriptor { - return md_Server -} - -// 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_Server) Type() protoreflect.MessageType { - return _fastReflection_Server_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Server) New() protoreflect.Message { - return new(fastReflection_Server) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Server) Interface() protoreflect.ProtoMessage { - return (*Server)(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_Server) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Reporter != "" { - value := protoreflect.ValueOfString(x.Reporter) - if !f(fd_Server_reporter, value) { - return - } - } - if x.InvalidReports != uint64(0) { - value := protoreflect.ValueOfUint64(x.InvalidReports) - if !f(fd_Server_invalidReports, value) { - return - } - } - if x.ValidReports != uint64(0) { - value := protoreflect.ValueOfUint64(x.ValidReports) - if !f(fd_Server_validReports, 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_Server) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Server.reporter": - return x.Reporter != "" - case "cardchain.cardchain.Server.invalidReports": - return x.InvalidReports != uint64(0) - case "cardchain.cardchain.Server.validReports": - return x.ValidReports != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Server")) - } - panic(fmt.Errorf("message cardchain.cardchain.Server 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_Server) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Server.reporter": - x.Reporter = "" - case "cardchain.cardchain.Server.invalidReports": - x.InvalidReports = uint64(0) - case "cardchain.cardchain.Server.validReports": - x.ValidReports = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Server")) - } - panic(fmt.Errorf("message cardchain.cardchain.Server 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_Server) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Server.reporter": - value := x.Reporter - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Server.invalidReports": - value := x.InvalidReports - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Server.validReports": - value := x.ValidReports - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Server")) - } - panic(fmt.Errorf("message cardchain.cardchain.Server 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_Server) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Server.reporter": - x.Reporter = value.Interface().(string) - case "cardchain.cardchain.Server.invalidReports": - x.InvalidReports = value.Uint() - case "cardchain.cardchain.Server.validReports": - x.ValidReports = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Server")) - } - panic(fmt.Errorf("message cardchain.cardchain.Server 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_Server) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Server.reporter": - panic(fmt.Errorf("field reporter of message cardchain.cardchain.Server is not mutable")) - case "cardchain.cardchain.Server.invalidReports": - panic(fmt.Errorf("field invalidReports of message cardchain.cardchain.Server is not mutable")) - case "cardchain.cardchain.Server.validReports": - panic(fmt.Errorf("field validReports of message cardchain.cardchain.Server is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Server")) - } - panic(fmt.Errorf("message cardchain.cardchain.Server 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_Server) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Server.reporter": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Server.invalidReports": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Server.validReports": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Server")) - } - panic(fmt.Errorf("message cardchain.cardchain.Server 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_Server) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Server", 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_Server) 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_Server) 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_Server) 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_Server) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Server) - 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.Reporter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.InvalidReports != 0 { - n += 1 + runtime.Sov(uint64(x.InvalidReports)) - } - if x.ValidReports != 0 { - n += 1 + runtime.Sov(uint64(x.ValidReports)) - } - 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().(*Server) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ValidReports != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidReports)) - i-- - dAtA[i] = 0x18 - } - if x.InvalidReports != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.InvalidReports)) - i-- - dAtA[i] = 0x10 - } - if len(x.Reporter) > 0 { - i -= len(x.Reporter) - copy(dAtA[i:], x.Reporter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reporter))) - 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().(*Server) - 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: Server: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Server: 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 Reporter", 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.Reporter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InvalidReports", wireType) - } - x.InvalidReports = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.InvalidReports |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidReports", wireType) - } - x.ValidReports = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ValidReports |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/server.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Server struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"` - InvalidReports uint64 `protobuf:"varint,2,opt,name=invalidReports,proto3" json:"invalidReports,omitempty"` - ValidReports uint64 `protobuf:"varint,3,opt,name=validReports,proto3" json:"validReports,omitempty"` -} - -func (x *Server) Reset() { - *x = Server{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_server_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Server) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Server) ProtoMessage() {} - -// Deprecated: Use Server.ProtoReflect.Descriptor instead. -func (*Server) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_server_proto_rawDescGZIP(), []int{0} -} - -func (x *Server) GetReporter() string { - if x != nil { - return x.Reporter - } - return "" -} - -func (x *Server) GetInvalidReports() uint64 { - if x != nil { - return x.InvalidReports - } - return 0 -} - -func (x *Server) GetValidReports() uint64 { - if x != nil { - return x.ValidReports - } - return 0 -} - -var File_cardchain_cardchain_server_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_server_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x22, 0x70, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x26, 0x0a, - 0x0e, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x42, 0xd3, 0x01, 0x0a, 0x17, 0x63, 0x6f, - 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, - 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_server_proto_rawDescOnce sync.Once - file_cardchain_cardchain_server_proto_rawDescData = file_cardchain_cardchain_server_proto_rawDesc -) - -func file_cardchain_cardchain_server_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_server_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_server_proto_rawDescData) - }) - return file_cardchain_cardchain_server_proto_rawDescData -} - -var file_cardchain_cardchain_server_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_server_proto_goTypes = []interface{}{ - (*Server)(nil), // 0: cardchain.cardchain.Server -} -var file_cardchain_cardchain_server_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_server_proto_init() } -func file_cardchain_cardchain_server_proto_init() { - if File_cardchain_cardchain_server_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_server_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_server_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_server_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_server_proto_msgTypes, - }.Build() - File_cardchain_cardchain_server_proto = out.File - file_cardchain_cardchain_server_proto_rawDesc = nil - file_cardchain_cardchain_server_proto_goTypes = nil - file_cardchain_cardchain_server_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/set.pulsar.go b/api/cardchain/cardchain/set.pulsar.go deleted file mode 100644 index 19ac947b..00000000 --- a/api/cardchain/cardchain/set.pulsar.go +++ /dev/null @@ -1,2865 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_Set_2_list)(nil) - -type _Set_2_list struct { - list *[]uint64 -} - -func (x *_Set_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Set_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_Set_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_Set_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_Set_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message Set at list field Cards as it is not of Message kind")) -} - -func (x *_Set_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_Set_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_Set_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Set_5_list)(nil) - -type _Set_5_list struct { - list *[]string -} - -func (x *_Set_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Set_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_Set_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_Set_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_Set_5_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message Set at list field Contributors as it is not of Message kind")) -} - -func (x *_Set_5_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_Set_5_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_Set_5_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Set_10_list)(nil) - -type _Set_10_list struct { - list *[]*AddrWithQuantity -} - -func (x *_Set_10_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Set_10_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Set_10_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AddrWithQuantity) - (*x.list)[i] = concreteValue -} - -func (x *_Set_10_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AddrWithQuantity) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Set_10_list) AppendMutable() protoreflect.Value { - v := new(AddrWithQuantity) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Set_10_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Set_10_list) NewElement() protoreflect.Value { - v := new(AddrWithQuantity) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Set_10_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Set_11_list)(nil) - -type _Set_11_list struct { - list *[]*InnerRarities -} - -func (x *_Set_11_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Set_11_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Set_11_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*InnerRarities) - (*x.list)[i] = concreteValue -} - -func (x *_Set_11_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*InnerRarities) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Set_11_list) AppendMutable() protoreflect.Value { - v := new(InnerRarities) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Set_11_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Set_11_list) NewElement() protoreflect.Value { - v := new(InnerRarities) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Set_11_list) IsValid() bool { - return x.list != nil -} - -var ( - md_Set protoreflect.MessageDescriptor - fd_Set_name protoreflect.FieldDescriptor - fd_Set_cards protoreflect.FieldDescriptor - fd_Set_artist protoreflect.FieldDescriptor - fd_Set_storyWriter protoreflect.FieldDescriptor - fd_Set_contributors protoreflect.FieldDescriptor - fd_Set_story protoreflect.FieldDescriptor - fd_Set_artworkId protoreflect.FieldDescriptor - fd_Set_status protoreflect.FieldDescriptor - fd_Set_timeStamp protoreflect.FieldDescriptor - fd_Set_contributorsDistribution protoreflect.FieldDescriptor - fd_Set_Rarities protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_set_proto_init() - md_Set = File_cardchain_cardchain_set_proto.Messages().ByName("Set") - fd_Set_name = md_Set.Fields().ByName("name") - fd_Set_cards = md_Set.Fields().ByName("cards") - fd_Set_artist = md_Set.Fields().ByName("artist") - fd_Set_storyWriter = md_Set.Fields().ByName("storyWriter") - fd_Set_contributors = md_Set.Fields().ByName("contributors") - fd_Set_story = md_Set.Fields().ByName("story") - fd_Set_artworkId = md_Set.Fields().ByName("artworkId") - fd_Set_status = md_Set.Fields().ByName("status") - fd_Set_timeStamp = md_Set.Fields().ByName("timeStamp") - fd_Set_contributorsDistribution = md_Set.Fields().ByName("contributorsDistribution") - fd_Set_Rarities = md_Set.Fields().ByName("Rarities") -} - -var _ protoreflect.Message = (*fastReflection_Set)(nil) - -type fastReflection_Set Set - -func (x *Set) ProtoReflect() protoreflect.Message { - return (*fastReflection_Set)(x) -} - -func (x *Set) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_set_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Set_messageType fastReflection_Set_messageType -var _ protoreflect.MessageType = fastReflection_Set_messageType{} - -type fastReflection_Set_messageType struct{} - -func (x fastReflection_Set_messageType) Zero() protoreflect.Message { - return (*fastReflection_Set)(nil) -} -func (x fastReflection_Set_messageType) New() protoreflect.Message { - return new(fastReflection_Set) -} -func (x fastReflection_Set_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Set -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Set) Descriptor() protoreflect.MessageDescriptor { - return md_Set -} - -// 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_Set) Type() protoreflect.MessageType { - return _fastReflection_Set_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Set) New() protoreflect.Message { - return new(fastReflection_Set) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Set) Interface() protoreflect.ProtoMessage { - return (*Set)(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_Set) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_Set_name, value) { - return - } - } - if len(x.Cards) != 0 { - value := protoreflect.ValueOfList(&_Set_2_list{list: &x.Cards}) - if !f(fd_Set_cards, value) { - return - } - } - if x.Artist != "" { - value := protoreflect.ValueOfString(x.Artist) - if !f(fd_Set_artist, value) { - return - } - } - if x.StoryWriter != "" { - value := protoreflect.ValueOfString(x.StoryWriter) - if !f(fd_Set_storyWriter, value) { - return - } - } - if len(x.Contributors) != 0 { - value := protoreflect.ValueOfList(&_Set_5_list{list: &x.Contributors}) - if !f(fd_Set_contributors, value) { - return - } - } - if x.Story != "" { - value := protoreflect.ValueOfString(x.Story) - if !f(fd_Set_story, value) { - return - } - } - if x.ArtworkId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ArtworkId) - if !f(fd_Set_artworkId, value) { - return - } - } - if x.Status != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) - if !f(fd_Set_status, value) { - return - } - } - if x.TimeStamp != int64(0) { - value := protoreflect.ValueOfInt64(x.TimeStamp) - if !f(fd_Set_timeStamp, value) { - return - } - } - if len(x.ContributorsDistribution) != 0 { - value := protoreflect.ValueOfList(&_Set_10_list{list: &x.ContributorsDistribution}) - if !f(fd_Set_contributorsDistribution, value) { - return - } - } - if len(x.Rarities) != 0 { - value := protoreflect.ValueOfList(&_Set_11_list{list: &x.Rarities}) - if !f(fd_Set_Rarities, 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_Set) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Set.name": - return x.Name != "" - case "cardchain.cardchain.Set.cards": - return len(x.Cards) != 0 - case "cardchain.cardchain.Set.artist": - return x.Artist != "" - case "cardchain.cardchain.Set.storyWriter": - return x.StoryWriter != "" - case "cardchain.cardchain.Set.contributors": - return len(x.Contributors) != 0 - case "cardchain.cardchain.Set.story": - return x.Story != "" - case "cardchain.cardchain.Set.artworkId": - return x.ArtworkId != uint64(0) - case "cardchain.cardchain.Set.status": - return x.Status != 0 - case "cardchain.cardchain.Set.timeStamp": - return x.TimeStamp != int64(0) - case "cardchain.cardchain.Set.contributorsDistribution": - return len(x.ContributorsDistribution) != 0 - case "cardchain.cardchain.Set.Rarities": - return len(x.Rarities) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Set")) - } - panic(fmt.Errorf("message cardchain.cardchain.Set 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_Set) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Set.name": - x.Name = "" - case "cardchain.cardchain.Set.cards": - x.Cards = nil - case "cardchain.cardchain.Set.artist": - x.Artist = "" - case "cardchain.cardchain.Set.storyWriter": - x.StoryWriter = "" - case "cardchain.cardchain.Set.contributors": - x.Contributors = nil - case "cardchain.cardchain.Set.story": - x.Story = "" - case "cardchain.cardchain.Set.artworkId": - x.ArtworkId = uint64(0) - case "cardchain.cardchain.Set.status": - x.Status = 0 - case "cardchain.cardchain.Set.timeStamp": - x.TimeStamp = int64(0) - case "cardchain.cardchain.Set.contributorsDistribution": - x.ContributorsDistribution = nil - case "cardchain.cardchain.Set.Rarities": - x.Rarities = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Set")) - } - panic(fmt.Errorf("message cardchain.cardchain.Set 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_Set) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Set.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Set.cards": - if len(x.Cards) == 0 { - return protoreflect.ValueOfList(&_Set_2_list{}) - } - listValue := &_Set_2_list{list: &x.Cards} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Set.artist": - value := x.Artist - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Set.storyWriter": - value := x.StoryWriter - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Set.contributors": - if len(x.Contributors) == 0 { - return protoreflect.ValueOfList(&_Set_5_list{}) - } - listValue := &_Set_5_list{list: &x.Contributors} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Set.story": - value := x.Story - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Set.artworkId": - value := x.ArtworkId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.Set.status": - value := x.Status - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.Set.timeStamp": - value := x.TimeStamp - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.Set.contributorsDistribution": - if len(x.ContributorsDistribution) == 0 { - return protoreflect.ValueOfList(&_Set_10_list{}) - } - listValue := &_Set_10_list{list: &x.ContributorsDistribution} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.Set.Rarities": - if len(x.Rarities) == 0 { - return protoreflect.ValueOfList(&_Set_11_list{}) - } - listValue := &_Set_11_list{list: &x.Rarities} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Set")) - } - panic(fmt.Errorf("message cardchain.cardchain.Set 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_Set) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Set.name": - x.Name = value.Interface().(string) - case "cardchain.cardchain.Set.cards": - lv := value.List() - clv := lv.(*_Set_2_list) - x.Cards = *clv.list - case "cardchain.cardchain.Set.artist": - x.Artist = value.Interface().(string) - case "cardchain.cardchain.Set.storyWriter": - x.StoryWriter = value.Interface().(string) - case "cardchain.cardchain.Set.contributors": - lv := value.List() - clv := lv.(*_Set_5_list) - x.Contributors = *clv.list - case "cardchain.cardchain.Set.story": - x.Story = value.Interface().(string) - case "cardchain.cardchain.Set.artworkId": - x.ArtworkId = value.Uint() - case "cardchain.cardchain.Set.status": - x.Status = (SetStatus)(value.Enum()) - case "cardchain.cardchain.Set.timeStamp": - x.TimeStamp = value.Int() - case "cardchain.cardchain.Set.contributorsDistribution": - lv := value.List() - clv := lv.(*_Set_10_list) - x.ContributorsDistribution = *clv.list - case "cardchain.cardchain.Set.Rarities": - lv := value.List() - clv := lv.(*_Set_11_list) - x.Rarities = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Set")) - } - panic(fmt.Errorf("message cardchain.cardchain.Set 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_Set) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Set.cards": - if x.Cards == nil { - x.Cards = []uint64{} - } - value := &_Set_2_list{list: &x.Cards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Set.contributors": - if x.Contributors == nil { - x.Contributors = []string{} - } - value := &_Set_5_list{list: &x.Contributors} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Set.contributorsDistribution": - if x.ContributorsDistribution == nil { - x.ContributorsDistribution = []*AddrWithQuantity{} - } - value := &_Set_10_list{list: &x.ContributorsDistribution} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Set.Rarities": - if x.Rarities == nil { - x.Rarities = []*InnerRarities{} - } - value := &_Set_11_list{list: &x.Rarities} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.Set.name": - panic(fmt.Errorf("field name of message cardchain.cardchain.Set is not mutable")) - case "cardchain.cardchain.Set.artist": - panic(fmt.Errorf("field artist of message cardchain.cardchain.Set is not mutable")) - case "cardchain.cardchain.Set.storyWriter": - panic(fmt.Errorf("field storyWriter of message cardchain.cardchain.Set is not mutable")) - case "cardchain.cardchain.Set.story": - panic(fmt.Errorf("field story of message cardchain.cardchain.Set is not mutable")) - case "cardchain.cardchain.Set.artworkId": - panic(fmt.Errorf("field artworkId of message cardchain.cardchain.Set is not mutable")) - case "cardchain.cardchain.Set.status": - panic(fmt.Errorf("field status of message cardchain.cardchain.Set is not mutable")) - case "cardchain.cardchain.Set.timeStamp": - panic(fmt.Errorf("field timeStamp of message cardchain.cardchain.Set is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Set")) - } - panic(fmt.Errorf("message cardchain.cardchain.Set 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_Set) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Set.name": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Set.cards": - list := []uint64{} - return protoreflect.ValueOfList(&_Set_2_list{list: &list}) - case "cardchain.cardchain.Set.artist": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Set.storyWriter": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Set.contributors": - list := []string{} - return protoreflect.ValueOfList(&_Set_5_list{list: &list}) - case "cardchain.cardchain.Set.story": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Set.artworkId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.Set.status": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.Set.timeStamp": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.Set.contributorsDistribution": - list := []*AddrWithQuantity{} - return protoreflect.ValueOfList(&_Set_10_list{list: &list}) - case "cardchain.cardchain.Set.Rarities": - list := []*InnerRarities{} - return protoreflect.ValueOfList(&_Set_11_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Set")) - } - panic(fmt.Errorf("message cardchain.cardchain.Set 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_Set) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Set", 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_Set) 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_Set) 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_Set) 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_Set) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Set) - 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.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Cards) > 0 { - l = 0 - for _, e := range x.Cards { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - l = len(x.Artist) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.StoryWriter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Contributors) > 0 { - for _, s := range x.Contributors { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Story) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ArtworkId != 0 { - n += 1 + runtime.Sov(uint64(x.ArtworkId)) - } - if x.Status != 0 { - n += 1 + runtime.Sov(uint64(x.Status)) - } - if x.TimeStamp != 0 { - n += 1 + runtime.Sov(uint64(x.TimeStamp)) - } - if len(x.ContributorsDistribution) > 0 { - for _, e := range x.ContributorsDistribution { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Rarities) > 0 { - for _, e := range x.Rarities { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Set) - 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.Rarities) > 0 { - for iNdEx := len(x.Rarities) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Rarities[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] = 0x5a - } - } - if len(x.ContributorsDistribution) > 0 { - for iNdEx := len(x.ContributorsDistribution) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ContributorsDistribution[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] = 0x52 - } - } - if x.TimeStamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TimeStamp)) - i-- - dAtA[i] = 0x48 - } - if x.Status != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) - i-- - dAtA[i] = 0x40 - } - if x.ArtworkId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ArtworkId)) - i-- - dAtA[i] = 0x38 - } - if len(x.Story) > 0 { - i -= len(x.Story) - copy(dAtA[i:], x.Story) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Story))) - i-- - dAtA[i] = 0x32 - } - if len(x.Contributors) > 0 { - for iNdEx := len(x.Contributors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Contributors[iNdEx]) - copy(dAtA[i:], x.Contributors[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contributors[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(x.StoryWriter) > 0 { - i -= len(x.StoryWriter) - copy(dAtA[i:], x.StoryWriter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.StoryWriter))) - i-- - dAtA[i] = 0x22 - } - if len(x.Artist) > 0 { - i -= len(x.Artist) - copy(dAtA[i:], x.Artist) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artist))) - i-- - dAtA[i] = 0x1a - } - if len(x.Cards) > 0 { - var pksize2 int - for _, num := range x.Cards { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.Cards { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - 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().(*Set) - 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: Set: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Set: 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 Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Cards = append(x.Cards, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Cards) == 0 { - x.Cards = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Cards = append(x.Cards, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Cards", wireType) - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Artist", 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.Artist = 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 StoryWriter", 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.StoryWriter = 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 Contributors", 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.Contributors = append(x.Contributors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Story", 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.Story = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ArtworkId", wireType) - } - x.ArtworkId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ArtworkId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - x.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Status |= SetStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimeStamp", wireType) - } - x.TimeStamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TimeStamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContributorsDistribution", 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.ContributorsDistribution = append(x.ContributorsDistribution, &AddrWithQuantity{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ContributorsDistribution[len(x.ContributorsDistribution)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rarities", 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.Rarities = append(x.Rarities, &InnerRarities{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Rarities[len(x.Rarities)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_InnerRarities_1_list)(nil) - -type _InnerRarities_1_list struct { - list *[]uint64 -} - -func (x *_InnerRarities_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_InnerRarities_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_InnerRarities_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_InnerRarities_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_InnerRarities_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message InnerRarities at list field R as it is not of Message kind")) -} - -func (x *_InnerRarities_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_InnerRarities_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_InnerRarities_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_InnerRarities protoreflect.MessageDescriptor - fd_InnerRarities_R protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_set_proto_init() - md_InnerRarities = File_cardchain_cardchain_set_proto.Messages().ByName("InnerRarities") - fd_InnerRarities_R = md_InnerRarities.Fields().ByName("R") -} - -var _ protoreflect.Message = (*fastReflection_InnerRarities)(nil) - -type fastReflection_InnerRarities InnerRarities - -func (x *InnerRarities) ProtoReflect() protoreflect.Message { - return (*fastReflection_InnerRarities)(x) -} - -func (x *InnerRarities) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_set_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_InnerRarities_messageType fastReflection_InnerRarities_messageType -var _ protoreflect.MessageType = fastReflection_InnerRarities_messageType{} - -type fastReflection_InnerRarities_messageType struct{} - -func (x fastReflection_InnerRarities_messageType) Zero() protoreflect.Message { - return (*fastReflection_InnerRarities)(nil) -} -func (x fastReflection_InnerRarities_messageType) New() protoreflect.Message { - return new(fastReflection_InnerRarities) -} -func (x fastReflection_InnerRarities_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_InnerRarities -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_InnerRarities) Descriptor() protoreflect.MessageDescriptor { - return md_InnerRarities -} - -// 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_InnerRarities) Type() protoreflect.MessageType { - return _fastReflection_InnerRarities_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_InnerRarities) New() protoreflect.Message { - return new(fastReflection_InnerRarities) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_InnerRarities) Interface() protoreflect.ProtoMessage { - return (*InnerRarities)(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_InnerRarities) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.R) != 0 { - value := protoreflect.ValueOfList(&_InnerRarities_1_list{list: &x.R}) - if !f(fd_InnerRarities_R, 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_InnerRarities) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.InnerRarities.R": - return len(x.R) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.InnerRarities")) - } - panic(fmt.Errorf("message cardchain.cardchain.InnerRarities 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_InnerRarities) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.InnerRarities.R": - x.R = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.InnerRarities")) - } - panic(fmt.Errorf("message cardchain.cardchain.InnerRarities 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_InnerRarities) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.InnerRarities.R": - if len(x.R) == 0 { - return protoreflect.ValueOfList(&_InnerRarities_1_list{}) - } - listValue := &_InnerRarities_1_list{list: &x.R} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.InnerRarities")) - } - panic(fmt.Errorf("message cardchain.cardchain.InnerRarities 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_InnerRarities) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.InnerRarities.R": - lv := value.List() - clv := lv.(*_InnerRarities_1_list) - x.R = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.InnerRarities")) - } - panic(fmt.Errorf("message cardchain.cardchain.InnerRarities 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_InnerRarities) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.InnerRarities.R": - if x.R == nil { - x.R = []uint64{} - } - value := &_InnerRarities_1_list{list: &x.R} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.InnerRarities")) - } - panic(fmt.Errorf("message cardchain.cardchain.InnerRarities 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_InnerRarities) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.InnerRarities.R": - list := []uint64{} - return protoreflect.ValueOfList(&_InnerRarities_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.InnerRarities")) - } - panic(fmt.Errorf("message cardchain.cardchain.InnerRarities 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_InnerRarities) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.InnerRarities", 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_InnerRarities) 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_InnerRarities) 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_InnerRarities) 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_InnerRarities) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*InnerRarities) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.R) > 0 { - l = 0 - for _, e := range x.R { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*InnerRarities) - 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.R) > 0 { - var pksize2 int - for _, num := range x.R { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.R { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - 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().(*InnerRarities) - 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: InnerRarities: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InnerRarities: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.R = append(x.R, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.R) == 0 { - x.R = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.R = append(x.R, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field R", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_AddrWithQuantity protoreflect.MessageDescriptor - fd_AddrWithQuantity_addr protoreflect.FieldDescriptor - fd_AddrWithQuantity_q protoreflect.FieldDescriptor - fd_AddrWithQuantity_payment protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_set_proto_init() - md_AddrWithQuantity = File_cardchain_cardchain_set_proto.Messages().ByName("AddrWithQuantity") - fd_AddrWithQuantity_addr = md_AddrWithQuantity.Fields().ByName("addr") - fd_AddrWithQuantity_q = md_AddrWithQuantity.Fields().ByName("q") - fd_AddrWithQuantity_payment = md_AddrWithQuantity.Fields().ByName("payment") -} - -var _ protoreflect.Message = (*fastReflection_AddrWithQuantity)(nil) - -type fastReflection_AddrWithQuantity AddrWithQuantity - -func (x *AddrWithQuantity) ProtoReflect() protoreflect.Message { - return (*fastReflection_AddrWithQuantity)(x) -} - -func (x *AddrWithQuantity) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_set_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AddrWithQuantity_messageType fastReflection_AddrWithQuantity_messageType -var _ protoreflect.MessageType = fastReflection_AddrWithQuantity_messageType{} - -type fastReflection_AddrWithQuantity_messageType struct{} - -func (x fastReflection_AddrWithQuantity_messageType) Zero() protoreflect.Message { - return (*fastReflection_AddrWithQuantity)(nil) -} -func (x fastReflection_AddrWithQuantity_messageType) New() protoreflect.Message { - return new(fastReflection_AddrWithQuantity) -} -func (x fastReflection_AddrWithQuantity_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AddrWithQuantity -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AddrWithQuantity) Descriptor() protoreflect.MessageDescriptor { - return md_AddrWithQuantity -} - -// 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_AddrWithQuantity) Type() protoreflect.MessageType { - return _fastReflection_AddrWithQuantity_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AddrWithQuantity) New() protoreflect.Message { - return new(fastReflection_AddrWithQuantity) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AddrWithQuantity) Interface() protoreflect.ProtoMessage { - return (*AddrWithQuantity)(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_AddrWithQuantity) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Addr != "" { - value := protoreflect.ValueOfString(x.Addr) - if !f(fd_AddrWithQuantity_addr, value) { - return - } - } - if x.Q != uint32(0) { - value := protoreflect.ValueOfUint32(x.Q) - if !f(fd_AddrWithQuantity_q, value) { - return - } - } - if x.Payment != nil { - value := protoreflect.ValueOfMessage(x.Payment.ProtoReflect()) - if !f(fd_AddrWithQuantity_payment, 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_AddrWithQuantity) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.AddrWithQuantity.addr": - return x.Addr != "" - case "cardchain.cardchain.AddrWithQuantity.q": - return x.Q != uint32(0) - case "cardchain.cardchain.AddrWithQuantity.payment": - return x.Payment != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AddrWithQuantity")) - } - panic(fmt.Errorf("message cardchain.cardchain.AddrWithQuantity 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_AddrWithQuantity) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.AddrWithQuantity.addr": - x.Addr = "" - case "cardchain.cardchain.AddrWithQuantity.q": - x.Q = uint32(0) - case "cardchain.cardchain.AddrWithQuantity.payment": - x.Payment = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AddrWithQuantity")) - } - panic(fmt.Errorf("message cardchain.cardchain.AddrWithQuantity 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_AddrWithQuantity) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.AddrWithQuantity.addr": - value := x.Addr - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.AddrWithQuantity.q": - value := x.Q - return protoreflect.ValueOfUint32(value) - case "cardchain.cardchain.AddrWithQuantity.payment": - value := x.Payment - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AddrWithQuantity")) - } - panic(fmt.Errorf("message cardchain.cardchain.AddrWithQuantity 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_AddrWithQuantity) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.AddrWithQuantity.addr": - x.Addr = value.Interface().(string) - case "cardchain.cardchain.AddrWithQuantity.q": - x.Q = uint32(value.Uint()) - case "cardchain.cardchain.AddrWithQuantity.payment": - x.Payment = value.Message().Interface().(*v1beta1.Coin) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AddrWithQuantity")) - } - panic(fmt.Errorf("message cardchain.cardchain.AddrWithQuantity 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_AddrWithQuantity) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.AddrWithQuantity.payment": - if x.Payment == nil { - x.Payment = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.Payment.ProtoReflect()) - case "cardchain.cardchain.AddrWithQuantity.addr": - panic(fmt.Errorf("field addr of message cardchain.cardchain.AddrWithQuantity is not mutable")) - case "cardchain.cardchain.AddrWithQuantity.q": - panic(fmt.Errorf("field q of message cardchain.cardchain.AddrWithQuantity is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AddrWithQuantity")) - } - panic(fmt.Errorf("message cardchain.cardchain.AddrWithQuantity 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_AddrWithQuantity) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.AddrWithQuantity.addr": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.AddrWithQuantity.q": - return protoreflect.ValueOfUint32(uint32(0)) - case "cardchain.cardchain.AddrWithQuantity.payment": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AddrWithQuantity")) - } - panic(fmt.Errorf("message cardchain.cardchain.AddrWithQuantity 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_AddrWithQuantity) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.AddrWithQuantity", 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_AddrWithQuantity) 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_AddrWithQuantity) 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_AddrWithQuantity) 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_AddrWithQuantity) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AddrWithQuantity) - 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.Addr) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Q != 0 { - n += 1 + runtime.Sov(uint64(x.Q)) - } - if x.Payment != nil { - l = options.Size(x.Payment) - 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().(*AddrWithQuantity) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Payment != nil { - encoded, err := options.Marshal(x.Payment) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.Q != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Q)) - i-- - dAtA[i] = 0x10 - } - if len(x.Addr) > 0 { - i -= len(x.Addr) - copy(dAtA[i:], x.Addr) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Addr))) - 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().(*AddrWithQuantity) - 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: AddrWithQuantity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AddrWithQuantity: 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 Addr", 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.Addr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Q", wireType) - } - x.Q = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Q |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Payment", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Payment == nil { - x.Payment = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Payment); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/set.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SetStatus int32 - -const ( - SetStatus_undefined SetStatus = 0 - SetStatus_design SetStatus = 1 - SetStatus_finalized SetStatus = 2 - SetStatus_active SetStatus = 3 - SetStatus_archived SetStatus = 4 -) - -// Enum value maps for SetStatus. -var ( - SetStatus_name = map[int32]string{ - 0: "undefined", - 1: "design", - 2: "finalized", - 3: "active", - 4: "archived", - } - SetStatus_value = map[string]int32{ - "undefined": 0, - "design": 1, - "finalized": 2, - "active": 3, - "archived": 4, - } -) - -func (x SetStatus) Enum() *SetStatus { - p := new(SetStatus) - *p = x - return p -} - -func (x SetStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SetStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_set_proto_enumTypes[0].Descriptor() -} - -func (SetStatus) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_set_proto_enumTypes[0] -} - -func (x SetStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SetStatus.Descriptor instead. -func (SetStatus) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_set_proto_rawDescGZIP(), []int{0} -} - -type Set struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Cards []uint64 `protobuf:"varint,2,rep,packed,name=cards,proto3" json:"cards,omitempty"` - Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` - StoryWriter string `protobuf:"bytes,4,opt,name=storyWriter,proto3" json:"storyWriter,omitempty"` - Contributors []string `protobuf:"bytes,5,rep,name=contributors,proto3" json:"contributors,omitempty"` - Story string `protobuf:"bytes,6,opt,name=story,proto3" json:"story,omitempty"` - ArtworkId uint64 `protobuf:"varint,7,opt,name=artworkId,proto3" json:"artworkId,omitempty"` - Status SetStatus `protobuf:"varint,8,opt,name=status,proto3,enum=cardchain.cardchain.SetStatus" json:"status,omitempty"` - TimeStamp int64 `protobuf:"varint,9,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"` - ContributorsDistribution []*AddrWithQuantity `protobuf:"bytes,10,rep,name=contributorsDistribution,proto3" json:"contributorsDistribution,omitempty"` - Rarities []*InnerRarities `protobuf:"bytes,11,rep,name=Rarities,proto3" json:"Rarities,omitempty"` -} - -func (x *Set) Reset() { - *x = Set{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_set_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Set) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Set) ProtoMessage() {} - -// Deprecated: Use Set.ProtoReflect.Descriptor instead. -func (*Set) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_set_proto_rawDescGZIP(), []int{0} -} - -func (x *Set) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Set) GetCards() []uint64 { - if x != nil { - return x.Cards - } - return nil -} - -func (x *Set) GetArtist() string { - if x != nil { - return x.Artist - } - return "" -} - -func (x *Set) GetStoryWriter() string { - if x != nil { - return x.StoryWriter - } - return "" -} - -func (x *Set) GetContributors() []string { - if x != nil { - return x.Contributors - } - return nil -} - -func (x *Set) GetStory() string { - if x != nil { - return x.Story - } - return "" -} - -func (x *Set) GetArtworkId() uint64 { - if x != nil { - return x.ArtworkId - } - return 0 -} - -func (x *Set) GetStatus() SetStatus { - if x != nil { - return x.Status - } - return SetStatus_undefined -} - -func (x *Set) GetTimeStamp() int64 { - if x != nil { - return x.TimeStamp - } - return 0 -} - -func (x *Set) GetContributorsDistribution() []*AddrWithQuantity { - if x != nil { - return x.ContributorsDistribution - } - return nil -} - -func (x *Set) GetRarities() []*InnerRarities { - if x != nil { - return x.Rarities - } - return nil -} - -type InnerRarities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - R []uint64 `protobuf:"varint,1,rep,packed,name=R,proto3" json:"R,omitempty"` -} - -func (x *InnerRarities) Reset() { - *x = InnerRarities{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_set_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InnerRarities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InnerRarities) ProtoMessage() {} - -// Deprecated: Use InnerRarities.ProtoReflect.Descriptor instead. -func (*InnerRarities) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_set_proto_rawDescGZIP(), []int{1} -} - -func (x *InnerRarities) GetR() []uint64 { - if x != nil { - return x.R - } - return nil -} - -type AddrWithQuantity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - Q uint32 `protobuf:"varint,2,opt,name=q,proto3" json:"q,omitempty"` - Payment *v1beta1.Coin `protobuf:"bytes,3,opt,name=payment,proto3" json:"payment,omitempty"` -} - -func (x *AddrWithQuantity) Reset() { - *x = AddrWithQuantity{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_set_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddrWithQuantity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddrWithQuantity) ProtoMessage() {} - -// Deprecated: Use AddrWithQuantity.ProtoReflect.Descriptor instead. -func (*AddrWithQuantity) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_set_proto_rawDescGZIP(), []int{2} -} - -func (x *AddrWithQuantity) GetAddr() string { - if x != nil { - return x.Addr - } - return "" -} - -func (x *AddrWithQuantity) GetQ() uint32 { - if x != nil { - return x.Q - } - return 0 -} - -func (x *AddrWithQuantity) GetPayment() *v1beta1.Coin { - if x != nil { - return x.Payment - } - return nil -} - -var File_cardchain_cardchain_set_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_set_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, - 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x03, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x61, 0x72, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x12, 0x20, - 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, - 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x6f, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x72, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x61, - 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x61, - 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x44, 0x69, - 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x57, 0x69, 0x74, 0x68, 0x51, - 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x18, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x6f, 0x72, 0x73, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x3e, 0x0a, 0x08, 0x52, 0x61, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x0b, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x52, - 0x61, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x08, 0x52, 0x61, 0x72, 0x69, 0x74, 0x69, 0x65, - 0x73, 0x22, 0x1d, 0x0a, 0x0d, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x52, 0x61, 0x72, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x12, 0x0c, 0x0a, 0x01, 0x52, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x01, 0x52, - 0x22, 0x69, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x72, 0x57, 0x69, 0x74, 0x68, 0x51, 0x75, 0x61, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x0c, 0x0a, 0x01, 0x71, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x01, 0x71, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2a, 0x4f, 0x0a, 0x09, 0x53, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x75, 0x6e, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x64, 0x65, 0x73, 0x69, 0x67, - 0x6e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, - 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x10, 0x03, 0x12, 0x0c, - 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x10, 0x04, 0x42, 0xd0, 0x01, 0x0a, - 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x08, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, - 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_set_proto_rawDescOnce sync.Once - file_cardchain_cardchain_set_proto_rawDescData = file_cardchain_cardchain_set_proto_rawDesc -) - -func file_cardchain_cardchain_set_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_set_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_set_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_set_proto_rawDescData) - }) - return file_cardchain_cardchain_set_proto_rawDescData -} - -var file_cardchain_cardchain_set_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cardchain_cardchain_set_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_cardchain_cardchain_set_proto_goTypes = []interface{}{ - (SetStatus)(0), // 0: cardchain.cardchain.SetStatus - (*Set)(nil), // 1: cardchain.cardchain.Set - (*InnerRarities)(nil), // 2: cardchain.cardchain.InnerRarities - (*AddrWithQuantity)(nil), // 3: cardchain.cardchain.AddrWithQuantity - (*v1beta1.Coin)(nil), // 4: cosmos.base.v1beta1.Coin -} -var file_cardchain_cardchain_set_proto_depIdxs = []int32{ - 0, // 0: cardchain.cardchain.Set.status:type_name -> cardchain.cardchain.SetStatus - 3, // 1: cardchain.cardchain.Set.contributorsDistribution:type_name -> cardchain.cardchain.AddrWithQuantity - 2, // 2: cardchain.cardchain.Set.Rarities:type_name -> cardchain.cardchain.InnerRarities - 4, // 3: cardchain.cardchain.AddrWithQuantity.payment:type_name -> cosmos.base.v1beta1.Coin - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_set_proto_init() } -func file_cardchain_cardchain_set_proto_init() { - if File_cardchain_cardchain_set_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_set_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Set); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_set_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InnerRarities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_set_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddrWithQuantity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_set_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_set_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_set_proto_depIdxs, - EnumInfos: file_cardchain_cardchain_set_proto_enumTypes, - MessageInfos: file_cardchain_cardchain_set_proto_msgTypes, - }.Build() - File_cardchain_cardchain_set_proto = out.File - file_cardchain_cardchain_set_proto_rawDesc = nil - file_cardchain_cardchain_set_proto_goTypes = nil - file_cardchain_cardchain_set_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/set_with_artwork.pulsar.go b/api/cardchain/cardchain/set_with_artwork.pulsar.go deleted file mode 100644 index 2de6c3ae..00000000 --- a/api/cardchain/cardchain/set_with_artwork.pulsar.go +++ /dev/null @@ -1,667 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_SetWithArtwork protoreflect.MessageDescriptor - fd_SetWithArtwork_set protoreflect.FieldDescriptor - fd_SetWithArtwork_artwork protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_set_with_artwork_proto_init() - md_SetWithArtwork = File_cardchain_cardchain_set_with_artwork_proto.Messages().ByName("SetWithArtwork") - fd_SetWithArtwork_set = md_SetWithArtwork.Fields().ByName("set") - fd_SetWithArtwork_artwork = md_SetWithArtwork.Fields().ByName("artwork") -} - -var _ protoreflect.Message = (*fastReflection_SetWithArtwork)(nil) - -type fastReflection_SetWithArtwork SetWithArtwork - -func (x *SetWithArtwork) ProtoReflect() protoreflect.Message { - return (*fastReflection_SetWithArtwork)(x) -} - -func (x *SetWithArtwork) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_set_with_artwork_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_SetWithArtwork_messageType fastReflection_SetWithArtwork_messageType -var _ protoreflect.MessageType = fastReflection_SetWithArtwork_messageType{} - -type fastReflection_SetWithArtwork_messageType struct{} - -func (x fastReflection_SetWithArtwork_messageType) Zero() protoreflect.Message { - return (*fastReflection_SetWithArtwork)(nil) -} -func (x fastReflection_SetWithArtwork_messageType) New() protoreflect.Message { - return new(fastReflection_SetWithArtwork) -} -func (x fastReflection_SetWithArtwork_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SetWithArtwork -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_SetWithArtwork) Descriptor() protoreflect.MessageDescriptor { - return md_SetWithArtwork -} - -// 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_SetWithArtwork) Type() protoreflect.MessageType { - return _fastReflection_SetWithArtwork_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_SetWithArtwork) New() protoreflect.Message { - return new(fastReflection_SetWithArtwork) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_SetWithArtwork) Interface() protoreflect.ProtoMessage { - return (*SetWithArtwork)(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_SetWithArtwork) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Set_ != nil { - value := protoreflect.ValueOfMessage(x.Set_.ProtoReflect()) - if !f(fd_SetWithArtwork_set, value) { - return - } - } - if len(x.Artwork) != 0 { - value := protoreflect.ValueOfBytes(x.Artwork) - if !f(fd_SetWithArtwork_artwork, 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_SetWithArtwork) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.SetWithArtwork.set": - return x.Set_ != nil - case "cardchain.cardchain.SetWithArtwork.artwork": - return len(x.Artwork) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SetWithArtwork")) - } - panic(fmt.Errorf("message cardchain.cardchain.SetWithArtwork 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_SetWithArtwork) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.SetWithArtwork.set": - x.Set_ = nil - case "cardchain.cardchain.SetWithArtwork.artwork": - x.Artwork = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SetWithArtwork")) - } - panic(fmt.Errorf("message cardchain.cardchain.SetWithArtwork 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_SetWithArtwork) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.SetWithArtwork.set": - value := x.Set_ - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.SetWithArtwork.artwork": - value := x.Artwork - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SetWithArtwork")) - } - panic(fmt.Errorf("message cardchain.cardchain.SetWithArtwork 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_SetWithArtwork) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.SetWithArtwork.set": - x.Set_ = value.Message().Interface().(*Set) - case "cardchain.cardchain.SetWithArtwork.artwork": - x.Artwork = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SetWithArtwork")) - } - panic(fmt.Errorf("message cardchain.cardchain.SetWithArtwork 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_SetWithArtwork) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.SetWithArtwork.set": - if x.Set_ == nil { - x.Set_ = new(Set) - } - return protoreflect.ValueOfMessage(x.Set_.ProtoReflect()) - case "cardchain.cardchain.SetWithArtwork.artwork": - panic(fmt.Errorf("field artwork of message cardchain.cardchain.SetWithArtwork is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SetWithArtwork")) - } - panic(fmt.Errorf("message cardchain.cardchain.SetWithArtwork 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_SetWithArtwork) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.SetWithArtwork.set": - m := new(Set) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.SetWithArtwork.artwork": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SetWithArtwork")) - } - panic(fmt.Errorf("message cardchain.cardchain.SetWithArtwork 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_SetWithArtwork) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.SetWithArtwork", 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_SetWithArtwork) 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_SetWithArtwork) 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_SetWithArtwork) 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_SetWithArtwork) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SetWithArtwork) - 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.Set_ != nil { - l = options.Size(x.Set_) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Artwork) - 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().(*SetWithArtwork) - 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.Artwork) > 0 { - i -= len(x.Artwork) - copy(dAtA[i:], x.Artwork) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artwork))) - i-- - dAtA[i] = 0x12 - } - if x.Set_ != nil { - encoded, err := options.Marshal(x.Set_) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*SetWithArtwork) - 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: SetWithArtwork: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SetWithArtwork: 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 Set_", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Set_ == nil { - x.Set_ = &Set{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Set_); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Artwork", wireType) - } - var byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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.Artwork = append(x.Artwork[:0], dAtA[iNdEx:postIndex]...) - if x.Artwork == nil { - x.Artwork = []byte{} - } - 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 -// protoc (unknown) -// source: cardchain/cardchain/set_with_artwork.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SetWithArtwork struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Set_ *Set `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` - Artwork []byte `protobuf:"bytes,2,opt,name=artwork,proto3" json:"artwork,omitempty"` -} - -func (x *SetWithArtwork) Reset() { - *x = SetWithArtwork{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_set_with_artwork_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetWithArtwork) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetWithArtwork) ProtoMessage() {} - -// Deprecated: Use SetWithArtwork.ProtoReflect.Descriptor instead. -func (*SetWithArtwork) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_set_with_artwork_proto_rawDescGZIP(), []int{0} -} - -func (x *SetWithArtwork) GetSet_() *Set { - if x != nil { - return x.Set_ - } - return nil -} - -func (x *SetWithArtwork) GetArtwork() []byte { - if x != nil { - return x.Artwork - } - return nil -} - -var File_cardchain_cardchain_set_with_artwork_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_set_with_artwork_proto_rawDesc = []byte{ - 0x0a, 0x2a, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x61, - 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x1a, 0x1d, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x56, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x57, 0x69, 0x74, 0x68, 0x41, 0x72, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x12, 0x2a, 0x0a, 0x03, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x03, 0x73, 0x65, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x42, 0xdb, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x42, 0x13, 0x53, 0x65, 0x74, 0x57, 0x69, 0x74, 0x68, 0x41, 0x72, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, - 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, - 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_set_with_artwork_proto_rawDescOnce sync.Once - file_cardchain_cardchain_set_with_artwork_proto_rawDescData = file_cardchain_cardchain_set_with_artwork_proto_rawDesc -) - -func file_cardchain_cardchain_set_with_artwork_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_set_with_artwork_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_set_with_artwork_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_set_with_artwork_proto_rawDescData) - }) - return file_cardchain_cardchain_set_with_artwork_proto_rawDescData -} - -var file_cardchain_cardchain_set_with_artwork_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_set_with_artwork_proto_goTypes = []interface{}{ - (*SetWithArtwork)(nil), // 0: cardchain.cardchain.SetWithArtwork - (*Set)(nil), // 1: cardchain.cardchain.Set -} -var file_cardchain_cardchain_set_with_artwork_proto_depIdxs = []int32{ - 1, // 0: cardchain.cardchain.SetWithArtwork.set:type_name -> cardchain.cardchain.Set - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_set_with_artwork_proto_init() } -func file_cardchain_cardchain_set_with_artwork_proto_init() { - if File_cardchain_cardchain_set_with_artwork_proto != nil { - return - } - file_cardchain_cardchain_set_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_set_with_artwork_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetWithArtwork); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_set_with_artwork_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_set_with_artwork_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_set_with_artwork_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_set_with_artwork_proto_msgTypes, - }.Build() - File_cardchain_cardchain_set_with_artwork_proto = out.File - file_cardchain_cardchain_set_with_artwork_proto_rawDesc = nil - file_cardchain_cardchain_set_with_artwork_proto_goTypes = nil - file_cardchain_cardchain_set_with_artwork_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/tx.pulsar.go b/api/cardchain/cardchain/tx.pulsar.go deleted file mode 100644 index 58df7ff6..00000000 --- a/api/cardchain/cardchain/tx.pulsar.go +++ /dev/null @@ -1,53787 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - _ "cosmossdk.io/api/amino" - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sort "sort" - sync "sync" -) - -var ( - md_MsgUpdateParams protoreflect.MessageDescriptor - fd_MsgUpdateParams_authority protoreflect.FieldDescriptor - fd_MsgUpdateParams_params protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgUpdateParams = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgUpdateParams") - fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") - fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) - -type fastReflection_MsgUpdateParams MsgUpdateParams - -func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(x) -} - -func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} - -type fastReflection_MsgUpdateParams_messageType struct{} - -func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(nil) -} -func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} -func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParams)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgUpdateParams_authority, value) { - return - } - } - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_MsgUpdateParams_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgUpdateParams.authority": - return x.Authority != "" - case "cardchain.cardchain.MsgUpdateParams.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgUpdateParams.authority": - x.Authority = "" - case "cardchain.cardchain.MsgUpdateParams.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgUpdateParams.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgUpdateParams.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParams does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgUpdateParams.authority": - x.Authority = value.Interface().(string) - case "cardchain.cardchain.MsgUpdateParams.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgUpdateParams.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "cardchain.cardchain.MsgUpdateParams.authority": - panic(fmt.Errorf("field authority of message cardchain.cardchain.MsgUpdateParams is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgUpdateParams.authority": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgUpdateParams.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgUpdateParams", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParams) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateParamsResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgUpdateParamsResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgUpdateParamsResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) - -type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse - -func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(x) -} - -func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} - -type fastReflection_MsgUpdateParamsResponse_messageType struct{} - -func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(nil) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParamsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgUpdateParamsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUserCreate protoreflect.MessageDescriptor - fd_MsgUserCreate_creator protoreflect.FieldDescriptor - fd_MsgUserCreate_newUser protoreflect.FieldDescriptor - fd_MsgUserCreate_alias protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgUserCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgUserCreate") - fd_MsgUserCreate_creator = md_MsgUserCreate.Fields().ByName("creator") - fd_MsgUserCreate_newUser = md_MsgUserCreate.Fields().ByName("newUser") - fd_MsgUserCreate_alias = md_MsgUserCreate.Fields().ByName("alias") -} - -var _ protoreflect.Message = (*fastReflection_MsgUserCreate)(nil) - -type fastReflection_MsgUserCreate MsgUserCreate - -func (x *MsgUserCreate) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUserCreate)(x) -} - -func (x *MsgUserCreate) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUserCreate_messageType fastReflection_MsgUserCreate_messageType -var _ protoreflect.MessageType = fastReflection_MsgUserCreate_messageType{} - -type fastReflection_MsgUserCreate_messageType struct{} - -func (x fastReflection_MsgUserCreate_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUserCreate)(nil) -} -func (x fastReflection_MsgUserCreate_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUserCreate) -} -func (x fastReflection_MsgUserCreate_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUserCreate -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUserCreate) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUserCreate -} - -// 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_MsgUserCreate) Type() protoreflect.MessageType { - return _fastReflection_MsgUserCreate_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUserCreate) New() protoreflect.Message { - return new(fastReflection_MsgUserCreate) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUserCreate) Interface() protoreflect.ProtoMessage { - return (*MsgUserCreate)(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_MsgUserCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgUserCreate_creator, value) { - return - } - } - if x.NewUser != "" { - value := protoreflect.ValueOfString(x.NewUser) - if !f(fd_MsgUserCreate_newUser, value) { - return - } - } - if x.Alias != "" { - value := protoreflect.ValueOfString(x.Alias) - if !f(fd_MsgUserCreate_alias, 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_MsgUserCreate) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgUserCreate.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgUserCreate.newUser": - return x.NewUser != "" - case "cardchain.cardchain.MsgUserCreate.alias": - return x.Alias != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreate 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_MsgUserCreate) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgUserCreate.creator": - x.Creator = "" - case "cardchain.cardchain.MsgUserCreate.newUser": - x.NewUser = "" - case "cardchain.cardchain.MsgUserCreate.alias": - x.Alias = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreate 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_MsgUserCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgUserCreate.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgUserCreate.newUser": - value := x.NewUser - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgUserCreate.alias": - value := x.Alias - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreate 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_MsgUserCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgUserCreate.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgUserCreate.newUser": - x.NewUser = value.Interface().(string) - case "cardchain.cardchain.MsgUserCreate.alias": - x.Alias = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreate 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_MsgUserCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgUserCreate.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgUserCreate is not mutable")) - case "cardchain.cardchain.MsgUserCreate.newUser": - panic(fmt.Errorf("field newUser of message cardchain.cardchain.MsgUserCreate is not mutable")) - case "cardchain.cardchain.MsgUserCreate.alias": - panic(fmt.Errorf("field alias of message cardchain.cardchain.MsgUserCreate is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreate 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_MsgUserCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgUserCreate.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgUserCreate.newUser": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgUserCreate.alias": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreate 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_MsgUserCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgUserCreate", 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_MsgUserCreate) 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_MsgUserCreate) 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_MsgUserCreate) 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_MsgUserCreate) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUserCreate) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NewUser) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Alias) - 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().(*MsgUserCreate) - 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.Alias) > 0 { - i -= len(x.Alias) - copy(dAtA[i:], x.Alias) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias))) - i-- - dAtA[i] = 0x1a - } - if len(x.NewUser) > 0 { - i -= len(x.NewUser) - copy(dAtA[i:], x.NewUser) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewUser))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgUserCreate) - 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: MsgUserCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUserCreate: 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 Creator", 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.Creator = 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 NewUser", 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.NewUser = 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 Alias", 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.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUserCreateResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgUserCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgUserCreateResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUserCreateResponse)(nil) - -type fastReflection_MsgUserCreateResponse MsgUserCreateResponse - -func (x *MsgUserCreateResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUserCreateResponse)(x) -} - -func (x *MsgUserCreateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUserCreateResponse_messageType fastReflection_MsgUserCreateResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUserCreateResponse_messageType{} - -type fastReflection_MsgUserCreateResponse_messageType struct{} - -func (x fastReflection_MsgUserCreateResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUserCreateResponse)(nil) -} -func (x fastReflection_MsgUserCreateResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUserCreateResponse) -} -func (x fastReflection_MsgUserCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUserCreateResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUserCreateResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUserCreateResponse -} - -// 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_MsgUserCreateResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUserCreateResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUserCreateResponse) New() protoreflect.Message { - return new(fastReflection_MsgUserCreateResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUserCreateResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUserCreateResponse)(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_MsgUserCreateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUserCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreateResponse 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_MsgUserCreateResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreateResponse 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_MsgUserCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreateResponse 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_MsgUserCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreateResponse 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_MsgUserCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreateResponse 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_MsgUserCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgUserCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgUserCreateResponse 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_MsgUserCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgUserCreateResponse", 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_MsgUserCreateResponse) 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_MsgUserCreateResponse) 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_MsgUserCreateResponse) 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_MsgUserCreateResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUserCreateResponse) - 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().(*MsgUserCreateResponse) - 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().(*MsgUserCreateResponse) - 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: MsgUserCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUserCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardSchemeBuy protoreflect.MessageDescriptor - fd_MsgCardSchemeBuy_creator protoreflect.FieldDescriptor - fd_MsgCardSchemeBuy_bid protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardSchemeBuy = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardSchemeBuy") - fd_MsgCardSchemeBuy_creator = md_MsgCardSchemeBuy.Fields().ByName("creator") - fd_MsgCardSchemeBuy_bid = md_MsgCardSchemeBuy.Fields().ByName("bid") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardSchemeBuy)(nil) - -type fastReflection_MsgCardSchemeBuy MsgCardSchemeBuy - -func (x *MsgCardSchemeBuy) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardSchemeBuy)(x) -} - -func (x *MsgCardSchemeBuy) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardSchemeBuy_messageType fastReflection_MsgCardSchemeBuy_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardSchemeBuy_messageType{} - -type fastReflection_MsgCardSchemeBuy_messageType struct{} - -func (x fastReflection_MsgCardSchemeBuy_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardSchemeBuy)(nil) -} -func (x fastReflection_MsgCardSchemeBuy_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardSchemeBuy) -} -func (x fastReflection_MsgCardSchemeBuy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSchemeBuy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardSchemeBuy) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSchemeBuy -} - -// 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_MsgCardSchemeBuy) Type() protoreflect.MessageType { - return _fastReflection_MsgCardSchemeBuy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardSchemeBuy) New() protoreflect.Message { - return new(fastReflection_MsgCardSchemeBuy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardSchemeBuy) Interface() protoreflect.ProtoMessage { - return (*MsgCardSchemeBuy)(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_MsgCardSchemeBuy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardSchemeBuy_creator, value) { - return - } - } - if x.Bid != nil { - value := protoreflect.ValueOfMessage(x.Bid.ProtoReflect()) - if !f(fd_MsgCardSchemeBuy_bid, 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_MsgCardSchemeBuy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuy.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardSchemeBuy.bid": - return x.Bid != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuy 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_MsgCardSchemeBuy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuy.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardSchemeBuy.bid": - x.Bid = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuy 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_MsgCardSchemeBuy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuy.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardSchemeBuy.bid": - value := x.Bid - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuy 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_MsgCardSchemeBuy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuy.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardSchemeBuy.bid": - x.Bid = value.Message().Interface().(*v1beta1.Coin) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuy 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_MsgCardSchemeBuy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuy.bid": - if x.Bid == nil { - x.Bid = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.Bid.ProtoReflect()) - case "cardchain.cardchain.MsgCardSchemeBuy.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardSchemeBuy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuy 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_MsgCardSchemeBuy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuy.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardSchemeBuy.bid": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuy 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_MsgCardSchemeBuy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardSchemeBuy", 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_MsgCardSchemeBuy) 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_MsgCardSchemeBuy) 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_MsgCardSchemeBuy) 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_MsgCardSchemeBuy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardSchemeBuy) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Bid != nil { - l = options.Size(x.Bid) - 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().(*MsgCardSchemeBuy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Bid != nil { - encoded, err := options.Marshal(x.Bid) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardSchemeBuy) - 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: MsgCardSchemeBuy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardSchemeBuy: 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 Creator", 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.Creator = 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 Bid", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Bid == nil { - x.Bid = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Bid); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardSchemeBuyResponse protoreflect.MessageDescriptor - fd_MsgCardSchemeBuyResponse_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardSchemeBuyResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardSchemeBuyResponse") - fd_MsgCardSchemeBuyResponse_cardId = md_MsgCardSchemeBuyResponse.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardSchemeBuyResponse)(nil) - -type fastReflection_MsgCardSchemeBuyResponse MsgCardSchemeBuyResponse - -func (x *MsgCardSchemeBuyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardSchemeBuyResponse)(x) -} - -func (x *MsgCardSchemeBuyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardSchemeBuyResponse_messageType fastReflection_MsgCardSchemeBuyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardSchemeBuyResponse_messageType{} - -type fastReflection_MsgCardSchemeBuyResponse_messageType struct{} - -func (x fastReflection_MsgCardSchemeBuyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardSchemeBuyResponse)(nil) -} -func (x fastReflection_MsgCardSchemeBuyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardSchemeBuyResponse) -} -func (x fastReflection_MsgCardSchemeBuyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSchemeBuyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardSchemeBuyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSchemeBuyResponse -} - -// 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_MsgCardSchemeBuyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardSchemeBuyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardSchemeBuyResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardSchemeBuyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardSchemeBuyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardSchemeBuyResponse)(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_MsgCardSchemeBuyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardSchemeBuyResponse_cardId, 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_MsgCardSchemeBuyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuyResponse.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuyResponse 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_MsgCardSchemeBuyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuyResponse.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuyResponse 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_MsgCardSchemeBuyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuyResponse.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuyResponse 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_MsgCardSchemeBuyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuyResponse.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuyResponse 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_MsgCardSchemeBuyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuyResponse.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardSchemeBuyResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuyResponse 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_MsgCardSchemeBuyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSchemeBuyResponse.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSchemeBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSchemeBuyResponse 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_MsgCardSchemeBuyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardSchemeBuyResponse", 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_MsgCardSchemeBuyResponse) 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_MsgCardSchemeBuyResponse) 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_MsgCardSchemeBuyResponse) 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_MsgCardSchemeBuyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardSchemeBuyResponse) - 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.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*MsgCardSchemeBuyResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x8 - } - 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().(*MsgCardSchemeBuyResponse) - 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: MsgCardSchemeBuyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardSchemeBuyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardSaveContent protoreflect.MessageDescriptor - fd_MsgCardSaveContent_creator protoreflect.FieldDescriptor - fd_MsgCardSaveContent_cardId protoreflect.FieldDescriptor - fd_MsgCardSaveContent_content protoreflect.FieldDescriptor - fd_MsgCardSaveContent_notes protoreflect.FieldDescriptor - fd_MsgCardSaveContent_artist protoreflect.FieldDescriptor - fd_MsgCardSaveContent_balanceAnchor protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardSaveContent = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardSaveContent") - fd_MsgCardSaveContent_creator = md_MsgCardSaveContent.Fields().ByName("creator") - fd_MsgCardSaveContent_cardId = md_MsgCardSaveContent.Fields().ByName("cardId") - fd_MsgCardSaveContent_content = md_MsgCardSaveContent.Fields().ByName("content") - fd_MsgCardSaveContent_notes = md_MsgCardSaveContent.Fields().ByName("notes") - fd_MsgCardSaveContent_artist = md_MsgCardSaveContent.Fields().ByName("artist") - fd_MsgCardSaveContent_balanceAnchor = md_MsgCardSaveContent.Fields().ByName("balanceAnchor") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardSaveContent)(nil) - -type fastReflection_MsgCardSaveContent MsgCardSaveContent - -func (x *MsgCardSaveContent) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardSaveContent)(x) -} - -func (x *MsgCardSaveContent) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardSaveContent_messageType fastReflection_MsgCardSaveContent_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardSaveContent_messageType{} - -type fastReflection_MsgCardSaveContent_messageType struct{} - -func (x fastReflection_MsgCardSaveContent_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardSaveContent)(nil) -} -func (x fastReflection_MsgCardSaveContent_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardSaveContent) -} -func (x fastReflection_MsgCardSaveContent_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSaveContent -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardSaveContent) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSaveContent -} - -// 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_MsgCardSaveContent) Type() protoreflect.MessageType { - return _fastReflection_MsgCardSaveContent_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardSaveContent) New() protoreflect.Message { - return new(fastReflection_MsgCardSaveContent) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardSaveContent) Interface() protoreflect.ProtoMessage { - return (*MsgCardSaveContent)(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_MsgCardSaveContent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardSaveContent_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardSaveContent_cardId, value) { - return - } - } - if len(x.Content) != 0 { - value := protoreflect.ValueOfBytes(x.Content) - if !f(fd_MsgCardSaveContent_content, value) { - return - } - } - if x.Notes != "" { - value := protoreflect.ValueOfString(x.Notes) - if !f(fd_MsgCardSaveContent_notes, value) { - return - } - } - if x.Artist != "" { - value := protoreflect.ValueOfString(x.Artist) - if !f(fd_MsgCardSaveContent_artist, value) { - return - } - } - if x.BalanceAnchor != false { - value := protoreflect.ValueOfBool(x.BalanceAnchor) - if !f(fd_MsgCardSaveContent_balanceAnchor, 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_MsgCardSaveContent) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContent.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardSaveContent.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.MsgCardSaveContent.content": - return len(x.Content) != 0 - case "cardchain.cardchain.MsgCardSaveContent.notes": - return x.Notes != "" - case "cardchain.cardchain.MsgCardSaveContent.artist": - return x.Artist != "" - case "cardchain.cardchain.MsgCardSaveContent.balanceAnchor": - return x.BalanceAnchor != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContent 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_MsgCardSaveContent) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContent.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardSaveContent.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.MsgCardSaveContent.content": - x.Content = nil - case "cardchain.cardchain.MsgCardSaveContent.notes": - x.Notes = "" - case "cardchain.cardchain.MsgCardSaveContent.artist": - x.Artist = "" - case "cardchain.cardchain.MsgCardSaveContent.balanceAnchor": - x.BalanceAnchor = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContent 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_MsgCardSaveContent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardSaveContent.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardSaveContent.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCardSaveContent.content": - value := x.Content - return protoreflect.ValueOfBytes(value) - case "cardchain.cardchain.MsgCardSaveContent.notes": - value := x.Notes - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardSaveContent.artist": - value := x.Artist - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardSaveContent.balanceAnchor": - value := x.BalanceAnchor - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContent 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_MsgCardSaveContent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContent.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardSaveContent.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.MsgCardSaveContent.content": - x.Content = value.Bytes() - case "cardchain.cardchain.MsgCardSaveContent.notes": - x.Notes = value.Interface().(string) - case "cardchain.cardchain.MsgCardSaveContent.artist": - x.Artist = value.Interface().(string) - case "cardchain.cardchain.MsgCardSaveContent.balanceAnchor": - x.BalanceAnchor = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContent 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_MsgCardSaveContent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContent.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardSaveContent is not mutable")) - case "cardchain.cardchain.MsgCardSaveContent.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardSaveContent is not mutable")) - case "cardchain.cardchain.MsgCardSaveContent.content": - panic(fmt.Errorf("field content of message cardchain.cardchain.MsgCardSaveContent is not mutable")) - case "cardchain.cardchain.MsgCardSaveContent.notes": - panic(fmt.Errorf("field notes of message cardchain.cardchain.MsgCardSaveContent is not mutable")) - case "cardchain.cardchain.MsgCardSaveContent.artist": - panic(fmt.Errorf("field artist of message cardchain.cardchain.MsgCardSaveContent is not mutable")) - case "cardchain.cardchain.MsgCardSaveContent.balanceAnchor": - panic(fmt.Errorf("field balanceAnchor of message cardchain.cardchain.MsgCardSaveContent is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContent 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_MsgCardSaveContent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContent.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardSaveContent.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCardSaveContent.content": - return protoreflect.ValueOfBytes(nil) - case "cardchain.cardchain.MsgCardSaveContent.notes": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardSaveContent.artist": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardSaveContent.balanceAnchor": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContent")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContent 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_MsgCardSaveContent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardSaveContent", 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_MsgCardSaveContent) 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_MsgCardSaveContent) 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_MsgCardSaveContent) 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_MsgCardSaveContent) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardSaveContent) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - l = len(x.Content) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Notes) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Artist) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.BalanceAnchor { - n += 2 - } - 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().(*MsgCardSaveContent) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.BalanceAnchor { - i-- - if x.BalanceAnchor { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if len(x.Artist) > 0 { - i -= len(x.Artist) - copy(dAtA[i:], x.Artist) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artist))) - i-- - dAtA[i] = 0x2a - } - if len(x.Notes) > 0 { - i -= len(x.Notes) - copy(dAtA[i:], x.Notes) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Notes))) - i-- - dAtA[i] = 0x22 - } - if len(x.Content) > 0 { - i -= len(x.Content) - copy(dAtA[i:], x.Content) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Content))) - i-- - dAtA[i] = 0x1a - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardSaveContent) - 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: MsgCardSaveContent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardSaveContent: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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.Content = append(x.Content[:0], dAtA[iNdEx:postIndex]...) - if x.Content == nil { - x.Content = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Notes", 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.Notes = 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 Artist", 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.Artist = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BalanceAnchor", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.BalanceAnchor = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardSaveContentResponse protoreflect.MessageDescriptor - fd_MsgCardSaveContentResponse_airdropClaimed protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardSaveContentResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardSaveContentResponse") - fd_MsgCardSaveContentResponse_airdropClaimed = md_MsgCardSaveContentResponse.Fields().ByName("airdropClaimed") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardSaveContentResponse)(nil) - -type fastReflection_MsgCardSaveContentResponse MsgCardSaveContentResponse - -func (x *MsgCardSaveContentResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardSaveContentResponse)(x) -} - -func (x *MsgCardSaveContentResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardSaveContentResponse_messageType fastReflection_MsgCardSaveContentResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardSaveContentResponse_messageType{} - -type fastReflection_MsgCardSaveContentResponse_messageType struct{} - -func (x fastReflection_MsgCardSaveContentResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardSaveContentResponse)(nil) -} -func (x fastReflection_MsgCardSaveContentResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardSaveContentResponse) -} -func (x fastReflection_MsgCardSaveContentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSaveContentResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardSaveContentResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardSaveContentResponse -} - -// 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_MsgCardSaveContentResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardSaveContentResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardSaveContentResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardSaveContentResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardSaveContentResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardSaveContentResponse)(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_MsgCardSaveContentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AirdropClaimed != false { - value := protoreflect.ValueOfBool(x.AirdropClaimed) - if !f(fd_MsgCardSaveContentResponse_airdropClaimed, 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_MsgCardSaveContentResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContentResponse.airdropClaimed": - return x.AirdropClaimed != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContentResponse 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_MsgCardSaveContentResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContentResponse.airdropClaimed": - x.AirdropClaimed = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContentResponse 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_MsgCardSaveContentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardSaveContentResponse.airdropClaimed": - value := x.AirdropClaimed - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContentResponse 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_MsgCardSaveContentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContentResponse.airdropClaimed": - x.AirdropClaimed = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContentResponse 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_MsgCardSaveContentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContentResponse.airdropClaimed": - panic(fmt.Errorf("field airdropClaimed of message cardchain.cardchain.MsgCardSaveContentResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContentResponse 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_MsgCardSaveContentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardSaveContentResponse.airdropClaimed": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardSaveContentResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardSaveContentResponse 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_MsgCardSaveContentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardSaveContentResponse", 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_MsgCardSaveContentResponse) 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_MsgCardSaveContentResponse) 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_MsgCardSaveContentResponse) 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_MsgCardSaveContentResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardSaveContentResponse) - 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.AirdropClaimed { - n += 2 - } - 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().(*MsgCardSaveContentResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.AirdropClaimed { - i-- - if x.AirdropClaimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - 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().(*MsgCardSaveContentResponse) - 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: MsgCardSaveContentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardSaveContentResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.AirdropClaimed = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardVote protoreflect.MessageDescriptor - fd_MsgCardVote_creator protoreflect.FieldDescriptor - fd_MsgCardVote_vote protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardVote = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardVote") - fd_MsgCardVote_creator = md_MsgCardVote.Fields().ByName("creator") - fd_MsgCardVote_vote = md_MsgCardVote.Fields().ByName("vote") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardVote)(nil) - -type fastReflection_MsgCardVote MsgCardVote - -func (x *MsgCardVote) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardVote)(x) -} - -func (x *MsgCardVote) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardVote_messageType fastReflection_MsgCardVote_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardVote_messageType{} - -type fastReflection_MsgCardVote_messageType struct{} - -func (x fastReflection_MsgCardVote_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardVote)(nil) -} -func (x fastReflection_MsgCardVote_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardVote) -} -func (x fastReflection_MsgCardVote_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVote -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardVote) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVote -} - -// 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_MsgCardVote) Type() protoreflect.MessageType { - return _fastReflection_MsgCardVote_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardVote) New() protoreflect.Message { - return new(fastReflection_MsgCardVote) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardVote) Interface() protoreflect.ProtoMessage { - return (*MsgCardVote)(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_MsgCardVote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardVote_creator, value) { - return - } - } - if x.Vote != nil { - value := protoreflect.ValueOfMessage(x.Vote.ProtoReflect()) - if !f(fd_MsgCardVote_vote, 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_MsgCardVote) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVote.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardVote.vote": - return x.Vote != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVote 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_MsgCardVote) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVote.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardVote.vote": - x.Vote = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVote 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_MsgCardVote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardVote.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardVote.vote": - value := x.Vote - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVote 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_MsgCardVote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVote.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardVote.vote": - x.Vote = value.Message().Interface().(*SingleVote) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVote 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_MsgCardVote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVote.vote": - if x.Vote == nil { - x.Vote = new(SingleVote) - } - return protoreflect.ValueOfMessage(x.Vote.ProtoReflect()) - case "cardchain.cardchain.MsgCardVote.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardVote is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVote 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_MsgCardVote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVote.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardVote.vote": - m := new(SingleVote) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVote 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_MsgCardVote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardVote", 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_MsgCardVote) 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_MsgCardVote) 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_MsgCardVote) 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_MsgCardVote) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardVote) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Vote != nil { - l = options.Size(x.Vote) - 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().(*MsgCardVote) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Vote != nil { - encoded, err := options.Marshal(x.Vote) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardVote) - 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: MsgCardVote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardVote: 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 Creator", 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.Creator = 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 Vote", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Vote == nil { - x.Vote = &SingleVote{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Vote); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardVoteResponse protoreflect.MessageDescriptor - fd_MsgCardVoteResponse_airdropClaimed protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardVoteResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardVoteResponse") - fd_MsgCardVoteResponse_airdropClaimed = md_MsgCardVoteResponse.Fields().ByName("airdropClaimed") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardVoteResponse)(nil) - -type fastReflection_MsgCardVoteResponse MsgCardVoteResponse - -func (x *MsgCardVoteResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardVoteResponse)(x) -} - -func (x *MsgCardVoteResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardVoteResponse_messageType fastReflection_MsgCardVoteResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardVoteResponse_messageType{} - -type fastReflection_MsgCardVoteResponse_messageType struct{} - -func (x fastReflection_MsgCardVoteResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardVoteResponse)(nil) -} -func (x fastReflection_MsgCardVoteResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardVoteResponse) -} -func (x fastReflection_MsgCardVoteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVoteResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardVoteResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVoteResponse -} - -// 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_MsgCardVoteResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardVoteResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardVoteResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardVoteResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardVoteResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardVoteResponse)(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_MsgCardVoteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AirdropClaimed != false { - value := protoreflect.ValueOfBool(x.AirdropClaimed) - if !f(fd_MsgCardVoteResponse_airdropClaimed, 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_MsgCardVoteResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteResponse.airdropClaimed": - return x.AirdropClaimed != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteResponse 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_MsgCardVoteResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteResponse.airdropClaimed": - x.AirdropClaimed = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteResponse 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_MsgCardVoteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardVoteResponse.airdropClaimed": - value := x.AirdropClaimed - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteResponse 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_MsgCardVoteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteResponse.airdropClaimed": - x.AirdropClaimed = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteResponse 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_MsgCardVoteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteResponse.airdropClaimed": - panic(fmt.Errorf("field airdropClaimed of message cardchain.cardchain.MsgCardVoteResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteResponse 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_MsgCardVoteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteResponse.airdropClaimed": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteResponse 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_MsgCardVoteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardVoteResponse", 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_MsgCardVoteResponse) 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_MsgCardVoteResponse) 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_MsgCardVoteResponse) 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_MsgCardVoteResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardVoteResponse) - 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.AirdropClaimed { - n += 2 - } - 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().(*MsgCardVoteResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.AirdropClaimed { - i-- - if x.AirdropClaimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - 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().(*MsgCardVoteResponse) - 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: MsgCardVoteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.AirdropClaimed = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardTransfer protoreflect.MessageDescriptor - fd_MsgCardTransfer_creator protoreflect.FieldDescriptor - fd_MsgCardTransfer_cardId protoreflect.FieldDescriptor - fd_MsgCardTransfer_receiver protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardTransfer = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardTransfer") - fd_MsgCardTransfer_creator = md_MsgCardTransfer.Fields().ByName("creator") - fd_MsgCardTransfer_cardId = md_MsgCardTransfer.Fields().ByName("cardId") - fd_MsgCardTransfer_receiver = md_MsgCardTransfer.Fields().ByName("receiver") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardTransfer)(nil) - -type fastReflection_MsgCardTransfer MsgCardTransfer - -func (x *MsgCardTransfer) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardTransfer)(x) -} - -func (x *MsgCardTransfer) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardTransfer_messageType fastReflection_MsgCardTransfer_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardTransfer_messageType{} - -type fastReflection_MsgCardTransfer_messageType struct{} - -func (x fastReflection_MsgCardTransfer_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardTransfer)(nil) -} -func (x fastReflection_MsgCardTransfer_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardTransfer) -} -func (x fastReflection_MsgCardTransfer_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardTransfer -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardTransfer) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardTransfer -} - -// 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_MsgCardTransfer) Type() protoreflect.MessageType { - return _fastReflection_MsgCardTransfer_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardTransfer) New() protoreflect.Message { - return new(fastReflection_MsgCardTransfer) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardTransfer) Interface() protoreflect.ProtoMessage { - return (*MsgCardTransfer)(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_MsgCardTransfer) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardTransfer_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardTransfer_cardId, value) { - return - } - } - if x.Receiver != "" { - value := protoreflect.ValueOfString(x.Receiver) - if !f(fd_MsgCardTransfer_receiver, 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_MsgCardTransfer) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardTransfer.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardTransfer.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.MsgCardTransfer.receiver": - return x.Receiver != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer 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_MsgCardTransfer) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardTransfer.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardTransfer.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.MsgCardTransfer.receiver": - x.Receiver = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer 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_MsgCardTransfer) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardTransfer.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardTransfer.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCardTransfer.receiver": - value := x.Receiver - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer 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_MsgCardTransfer) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardTransfer.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardTransfer.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.MsgCardTransfer.receiver": - x.Receiver = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer 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_MsgCardTransfer) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardTransfer.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardTransfer is not mutable")) - case "cardchain.cardchain.MsgCardTransfer.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardTransfer is not mutable")) - case "cardchain.cardchain.MsgCardTransfer.receiver": - panic(fmt.Errorf("field receiver of message cardchain.cardchain.MsgCardTransfer is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer 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_MsgCardTransfer) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardTransfer.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardTransfer.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCardTransfer.receiver": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransfer 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_MsgCardTransfer) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardTransfer", 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_MsgCardTransfer) 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_MsgCardTransfer) 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_MsgCardTransfer) 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_MsgCardTransfer) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardTransfer) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - l = len(x.Receiver) - 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().(*MsgCardTransfer) - 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.Receiver) > 0 { - i -= len(x.Receiver) - copy(dAtA[i:], x.Receiver) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Receiver))) - i-- - dAtA[i] = 0x1a - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardTransfer) - 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: MsgCardTransfer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardTransfer: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardTransferResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardTransferResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardTransferResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardTransferResponse)(nil) - -type fastReflection_MsgCardTransferResponse MsgCardTransferResponse - -func (x *MsgCardTransferResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardTransferResponse)(x) -} - -func (x *MsgCardTransferResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardTransferResponse_messageType fastReflection_MsgCardTransferResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardTransferResponse_messageType{} - -type fastReflection_MsgCardTransferResponse_messageType struct{} - -func (x fastReflection_MsgCardTransferResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardTransferResponse)(nil) -} -func (x fastReflection_MsgCardTransferResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardTransferResponse) -} -func (x fastReflection_MsgCardTransferResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardTransferResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardTransferResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardTransferResponse -} - -// 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_MsgCardTransferResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardTransferResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardTransferResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardTransferResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardTransferResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardTransferResponse)(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_MsgCardTransferResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCardTransferResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardTransferResponse 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_MsgCardTransferResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardTransferResponse", 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_MsgCardTransferResponse) 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_MsgCardTransferResponse) 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_MsgCardTransferResponse) 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_MsgCardTransferResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardTransferResponse) - 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().(*MsgCardTransferResponse) - 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().(*MsgCardTransferResponse) - 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: MsgCardTransferResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardTransferResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardDonate protoreflect.MessageDescriptor - fd_MsgCardDonate_creator protoreflect.FieldDescriptor - fd_MsgCardDonate_cardId protoreflect.FieldDescriptor - fd_MsgCardDonate_amount protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardDonate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardDonate") - fd_MsgCardDonate_creator = md_MsgCardDonate.Fields().ByName("creator") - fd_MsgCardDonate_cardId = md_MsgCardDonate.Fields().ByName("cardId") - fd_MsgCardDonate_amount = md_MsgCardDonate.Fields().ByName("amount") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardDonate)(nil) - -type fastReflection_MsgCardDonate MsgCardDonate - -func (x *MsgCardDonate) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardDonate)(x) -} - -func (x *MsgCardDonate) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardDonate_messageType fastReflection_MsgCardDonate_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardDonate_messageType{} - -type fastReflection_MsgCardDonate_messageType struct{} - -func (x fastReflection_MsgCardDonate_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardDonate)(nil) -} -func (x fastReflection_MsgCardDonate_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardDonate) -} -func (x fastReflection_MsgCardDonate_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardDonate -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardDonate) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardDonate -} - -// 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_MsgCardDonate) Type() protoreflect.MessageType { - return _fastReflection_MsgCardDonate_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardDonate) New() protoreflect.Message { - return new(fastReflection_MsgCardDonate) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardDonate) Interface() protoreflect.ProtoMessage { - return (*MsgCardDonate)(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_MsgCardDonate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardDonate_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardDonate_cardId, value) { - return - } - } - if x.Amount != nil { - value := protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) - if !f(fd_MsgCardDonate_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_MsgCardDonate) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardDonate.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardDonate.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.MsgCardDonate.amount": - return x.Amount != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardDonate.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardDonate.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.MsgCardDonate.amount": - x.Amount = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardDonate.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardDonate.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCardDonate.amount": - value := x.Amount - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardDonate.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardDonate.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.MsgCardDonate.amount": - x.Amount = value.Message().Interface().(*v1beta1.Coin) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardDonate.amount": - if x.Amount == nil { - x.Amount = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) - case "cardchain.cardchain.MsgCardDonate.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardDonate is not mutable")) - case "cardchain.cardchain.MsgCardDonate.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardDonate is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardDonate.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardDonate.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCardDonate.amount": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonate 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_MsgCardDonate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardDonate", 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_MsgCardDonate) 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_MsgCardDonate) 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_MsgCardDonate) 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_MsgCardDonate) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardDonate) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - if x.Amount != nil { - l = options.Size(x.Amount) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCardDonate) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Amount != nil { - encoded, err := options.Marshal(x.Amount) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardDonate) - 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: MsgCardDonate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardDonate: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Amount == nil { - x.Amount = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardDonateResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardDonateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardDonateResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardDonateResponse)(nil) - -type fastReflection_MsgCardDonateResponse MsgCardDonateResponse - -func (x *MsgCardDonateResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardDonateResponse)(x) -} - -func (x *MsgCardDonateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardDonateResponse_messageType fastReflection_MsgCardDonateResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardDonateResponse_messageType{} - -type fastReflection_MsgCardDonateResponse_messageType struct{} - -func (x fastReflection_MsgCardDonateResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardDonateResponse)(nil) -} -func (x fastReflection_MsgCardDonateResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardDonateResponse) -} -func (x fastReflection_MsgCardDonateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardDonateResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardDonateResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardDonateResponse -} - -// 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_MsgCardDonateResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardDonateResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardDonateResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardDonateResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardDonateResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardDonateResponse)(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_MsgCardDonateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCardDonateResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardDonateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardDonateResponse 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_MsgCardDonateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardDonateResponse", 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_MsgCardDonateResponse) 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_MsgCardDonateResponse) 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_MsgCardDonateResponse) 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_MsgCardDonateResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardDonateResponse) - 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().(*MsgCardDonateResponse) - 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().(*MsgCardDonateResponse) - 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: MsgCardDonateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardDonateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardArtworkAdd protoreflect.MessageDescriptor - fd_MsgCardArtworkAdd_creator protoreflect.FieldDescriptor - fd_MsgCardArtworkAdd_cardId protoreflect.FieldDescriptor - fd_MsgCardArtworkAdd_image protoreflect.FieldDescriptor - fd_MsgCardArtworkAdd_fullArt protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardArtworkAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtworkAdd") - fd_MsgCardArtworkAdd_creator = md_MsgCardArtworkAdd.Fields().ByName("creator") - fd_MsgCardArtworkAdd_cardId = md_MsgCardArtworkAdd.Fields().ByName("cardId") - fd_MsgCardArtworkAdd_image = md_MsgCardArtworkAdd.Fields().ByName("image") - fd_MsgCardArtworkAdd_fullArt = md_MsgCardArtworkAdd.Fields().ByName("fullArt") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardArtworkAdd)(nil) - -type fastReflection_MsgCardArtworkAdd MsgCardArtworkAdd - -func (x *MsgCardArtworkAdd) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardArtworkAdd)(x) -} - -func (x *MsgCardArtworkAdd) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardArtworkAdd_messageType fastReflection_MsgCardArtworkAdd_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardArtworkAdd_messageType{} - -type fastReflection_MsgCardArtworkAdd_messageType struct{} - -func (x fastReflection_MsgCardArtworkAdd_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardArtworkAdd)(nil) -} -func (x fastReflection_MsgCardArtworkAdd_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardArtworkAdd) -} -func (x fastReflection_MsgCardArtworkAdd_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtworkAdd -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardArtworkAdd) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtworkAdd -} - -// 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_MsgCardArtworkAdd) Type() protoreflect.MessageType { - return _fastReflection_MsgCardArtworkAdd_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardArtworkAdd) New() protoreflect.Message { - return new(fastReflection_MsgCardArtworkAdd) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardArtworkAdd) Interface() protoreflect.ProtoMessage { - return (*MsgCardArtworkAdd)(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_MsgCardArtworkAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardArtworkAdd_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardArtworkAdd_cardId, value) { - return - } - } - if len(x.Image) != 0 { - value := protoreflect.ValueOfBytes(x.Image) - if !f(fd_MsgCardArtworkAdd_image, value) { - return - } - } - if x.FullArt != false { - value := protoreflect.ValueOfBool(x.FullArt) - if !f(fd_MsgCardArtworkAdd_fullArt, 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_MsgCardArtworkAdd) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtworkAdd.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardArtworkAdd.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.MsgCardArtworkAdd.image": - return len(x.Image) != 0 - case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": - return x.FullArt != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtworkAdd.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardArtworkAdd.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.MsgCardArtworkAdd.image": - x.Image = nil - case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": - x.FullArt = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardArtworkAdd.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardArtworkAdd.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCardArtworkAdd.image": - value := x.Image - return protoreflect.ValueOfBytes(value) - case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": - value := x.FullArt - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtworkAdd.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardArtworkAdd.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.MsgCardArtworkAdd.image": - x.Image = value.Bytes() - case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": - x.FullArt = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtworkAdd.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) - case "cardchain.cardchain.MsgCardArtworkAdd.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) - case "cardchain.cardchain.MsgCardArtworkAdd.image": - panic(fmt.Errorf("field image of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) - case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": - panic(fmt.Errorf("field fullArt of message cardchain.cardchain.MsgCardArtworkAdd is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtworkAdd.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardArtworkAdd.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCardArtworkAdd.image": - return protoreflect.ValueOfBytes(nil) - case "cardchain.cardchain.MsgCardArtworkAdd.fullArt": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAdd 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_MsgCardArtworkAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtworkAdd", 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_MsgCardArtworkAdd) 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_MsgCardArtworkAdd) 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_MsgCardArtworkAdd) 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_MsgCardArtworkAdd) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardArtworkAdd) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - l = len(x.Image) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.FullArt { - n += 2 - } - 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().(*MsgCardArtworkAdd) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.FullArt { - i-- - if x.FullArt { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(x.Image) > 0 { - i -= len(x.Image) - copy(dAtA[i:], x.Image) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Image))) - i-- - dAtA[i] = 0x1a - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardArtworkAdd) - 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: MsgCardArtworkAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtworkAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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.Image = append(x.Image[:0], dAtA[iNdEx:postIndex]...) - if x.Image == nil { - x.Image = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FullArt", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.FullArt = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardArtworkAddResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardArtworkAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtworkAddResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardArtworkAddResponse)(nil) - -type fastReflection_MsgCardArtworkAddResponse MsgCardArtworkAddResponse - -func (x *MsgCardArtworkAddResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardArtworkAddResponse)(x) -} - -func (x *MsgCardArtworkAddResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCardArtworkAddResponse_messageType fastReflection_MsgCardArtworkAddResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardArtworkAddResponse_messageType{} - -type fastReflection_MsgCardArtworkAddResponse_messageType struct{} - -func (x fastReflection_MsgCardArtworkAddResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardArtworkAddResponse)(nil) -} -func (x fastReflection_MsgCardArtworkAddResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardArtworkAddResponse) -} -func (x fastReflection_MsgCardArtworkAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtworkAddResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardArtworkAddResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtworkAddResponse -} - -// 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_MsgCardArtworkAddResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardArtworkAddResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardArtworkAddResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardArtworkAddResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardArtworkAddResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardArtworkAddResponse)(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_MsgCardArtworkAddResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCardArtworkAddResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtworkAddResponse 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_MsgCardArtworkAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtworkAddResponse", 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_MsgCardArtworkAddResponse) 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_MsgCardArtworkAddResponse) 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_MsgCardArtworkAddResponse) 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_MsgCardArtworkAddResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardArtworkAddResponse) - 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().(*MsgCardArtworkAddResponse) - 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().(*MsgCardArtworkAddResponse) - 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: MsgCardArtworkAddResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtworkAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardArtistChange protoreflect.MessageDescriptor - fd_MsgCardArtistChange_creator protoreflect.FieldDescriptor - fd_MsgCardArtistChange_cardId protoreflect.FieldDescriptor - fd_MsgCardArtistChange_artist protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardArtistChange = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtistChange") - fd_MsgCardArtistChange_creator = md_MsgCardArtistChange.Fields().ByName("creator") - fd_MsgCardArtistChange_cardId = md_MsgCardArtistChange.Fields().ByName("cardId") - fd_MsgCardArtistChange_artist = md_MsgCardArtistChange.Fields().ByName("artist") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardArtistChange)(nil) - -type fastReflection_MsgCardArtistChange MsgCardArtistChange - -func (x *MsgCardArtistChange) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardArtistChange)(x) -} - -func (x *MsgCardArtistChange) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[16] - 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_MsgCardArtistChange_messageType fastReflection_MsgCardArtistChange_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardArtistChange_messageType{} - -type fastReflection_MsgCardArtistChange_messageType struct{} - -func (x fastReflection_MsgCardArtistChange_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardArtistChange)(nil) -} -func (x fastReflection_MsgCardArtistChange_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardArtistChange) -} -func (x fastReflection_MsgCardArtistChange_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtistChange -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardArtistChange) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtistChange -} - -// 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_MsgCardArtistChange) Type() protoreflect.MessageType { - return _fastReflection_MsgCardArtistChange_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardArtistChange) New() protoreflect.Message { - return new(fastReflection_MsgCardArtistChange) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardArtistChange) Interface() protoreflect.ProtoMessage { - return (*MsgCardArtistChange)(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_MsgCardArtistChange) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardArtistChange_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardArtistChange_cardId, value) { - return - } - } - if x.Artist != "" { - value := protoreflect.ValueOfString(x.Artist) - if !f(fd_MsgCardArtistChange_artist, 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_MsgCardArtistChange) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtistChange.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardArtistChange.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.MsgCardArtistChange.artist": - return x.Artist != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtistChange.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardArtistChange.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.MsgCardArtistChange.artist": - x.Artist = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardArtistChange.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardArtistChange.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCardArtistChange.artist": - value := x.Artist - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtistChange.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardArtistChange.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.MsgCardArtistChange.artist": - x.Artist = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtistChange.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardArtistChange is not mutable")) - case "cardchain.cardchain.MsgCardArtistChange.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardArtistChange is not mutable")) - case "cardchain.cardchain.MsgCardArtistChange.artist": - panic(fmt.Errorf("field artist of message cardchain.cardchain.MsgCardArtistChange is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardArtistChange.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardArtistChange.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCardArtistChange.artist": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChange")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChange 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_MsgCardArtistChange) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtistChange", 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_MsgCardArtistChange) 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_MsgCardArtistChange) 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_MsgCardArtistChange) 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_MsgCardArtistChange) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardArtistChange) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - l = len(x.Artist) - 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().(*MsgCardArtistChange) - 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.Artist) > 0 { - i -= len(x.Artist) - copy(dAtA[i:], x.Artist) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artist))) - i-- - dAtA[i] = 0x1a - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardArtistChange) - 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: MsgCardArtistChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtistChange: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Artist", 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.Artist = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardArtistChangeResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardArtistChangeResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardArtistChangeResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardArtistChangeResponse)(nil) - -type fastReflection_MsgCardArtistChangeResponse MsgCardArtistChangeResponse - -func (x *MsgCardArtistChangeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardArtistChangeResponse)(x) -} - -func (x *MsgCardArtistChangeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[17] - 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_MsgCardArtistChangeResponse_messageType fastReflection_MsgCardArtistChangeResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardArtistChangeResponse_messageType{} - -type fastReflection_MsgCardArtistChangeResponse_messageType struct{} - -func (x fastReflection_MsgCardArtistChangeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardArtistChangeResponse)(nil) -} -func (x fastReflection_MsgCardArtistChangeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardArtistChangeResponse) -} -func (x fastReflection_MsgCardArtistChangeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtistChangeResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardArtistChangeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardArtistChangeResponse -} - -// 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_MsgCardArtistChangeResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardArtistChangeResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardArtistChangeResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardArtistChangeResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardArtistChangeResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardArtistChangeResponse)(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_MsgCardArtistChangeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCardArtistChangeResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardArtistChangeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardArtistChangeResponse 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_MsgCardArtistChangeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardArtistChangeResponse", 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_MsgCardArtistChangeResponse) 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_MsgCardArtistChangeResponse) 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_MsgCardArtistChangeResponse) 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_MsgCardArtistChangeResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardArtistChangeResponse) - 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().(*MsgCardArtistChangeResponse) - 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().(*MsgCardArtistChangeResponse) - 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: MsgCardArtistChangeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardArtistChangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilRegister protoreflect.MessageDescriptor - fd_MsgCouncilRegister_creator protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilRegister = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilRegister") - fd_MsgCouncilRegister_creator = md_MsgCouncilRegister.Fields().ByName("creator") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilRegister)(nil) - -type fastReflection_MsgCouncilRegister MsgCouncilRegister - -func (x *MsgCouncilRegister) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilRegister)(x) -} - -func (x *MsgCouncilRegister) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_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 - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCouncilRegister_messageType fastReflection_MsgCouncilRegister_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilRegister_messageType{} - -type fastReflection_MsgCouncilRegister_messageType struct{} - -func (x fastReflection_MsgCouncilRegister_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilRegister)(nil) -} -func (x fastReflection_MsgCouncilRegister_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRegister) -} -func (x fastReflection_MsgCouncilRegister_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRegister -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilRegister) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRegister -} - -// 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_MsgCouncilRegister) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilRegister_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilRegister) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRegister) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilRegister) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilRegister)(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_MsgCouncilRegister) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCouncilRegister_creator, 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_MsgCouncilRegister) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRegister.creator": - return x.Creator != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRegister.creator": - x.Creator = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCouncilRegister.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRegister.creator": - x.Creator = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRegister.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilRegister is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRegister.creator": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegister 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_MsgCouncilRegister) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilRegister", 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_MsgCouncilRegister) 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_MsgCouncilRegister) 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_MsgCouncilRegister) 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_MsgCouncilRegister) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilRegister) - 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.Creator) - 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().(*MsgCouncilRegister) - 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.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCouncilRegister) - 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: MsgCouncilRegister: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilRegister: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilRegisterResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilRegisterResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilRegisterResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilRegisterResponse)(nil) - -type fastReflection_MsgCouncilRegisterResponse MsgCouncilRegisterResponse - -func (x *MsgCouncilRegisterResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilRegisterResponse)(x) -} - -func (x *MsgCouncilRegisterResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_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_MsgCouncilRegisterResponse_messageType fastReflection_MsgCouncilRegisterResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilRegisterResponse_messageType{} - -type fastReflection_MsgCouncilRegisterResponse_messageType struct{} - -func (x fastReflection_MsgCouncilRegisterResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilRegisterResponse)(nil) -} -func (x fastReflection_MsgCouncilRegisterResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRegisterResponse) -} -func (x fastReflection_MsgCouncilRegisterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRegisterResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilRegisterResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRegisterResponse -} - -// 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_MsgCouncilRegisterResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilRegisterResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilRegisterResponse) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRegisterResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilRegisterResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilRegisterResponse)(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_MsgCouncilRegisterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCouncilRegisterResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRegisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRegisterResponse 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_MsgCouncilRegisterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilRegisterResponse", 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_MsgCouncilRegisterResponse) 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_MsgCouncilRegisterResponse) 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_MsgCouncilRegisterResponse) 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_MsgCouncilRegisterResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilRegisterResponse) - 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().(*MsgCouncilRegisterResponse) - 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().(*MsgCouncilRegisterResponse) - 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: MsgCouncilRegisterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilRegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilDeregister protoreflect.MessageDescriptor - fd_MsgCouncilDeregister_creator protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilDeregister = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilDeregister") - fd_MsgCouncilDeregister_creator = md_MsgCouncilDeregister.Fields().ByName("creator") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilDeregister)(nil) - -type fastReflection_MsgCouncilDeregister MsgCouncilDeregister - -func (x *MsgCouncilDeregister) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilDeregister)(x) -} - -func (x *MsgCouncilDeregister) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[20] - 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_MsgCouncilDeregister_messageType fastReflection_MsgCouncilDeregister_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilDeregister_messageType{} - -type fastReflection_MsgCouncilDeregister_messageType struct{} - -func (x fastReflection_MsgCouncilDeregister_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilDeregister)(nil) -} -func (x fastReflection_MsgCouncilDeregister_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilDeregister) -} -func (x fastReflection_MsgCouncilDeregister_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilDeregister -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilDeregister) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilDeregister -} - -// 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_MsgCouncilDeregister) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilDeregister_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilDeregister) New() protoreflect.Message { - return new(fastReflection_MsgCouncilDeregister) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilDeregister) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilDeregister)(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_MsgCouncilDeregister) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCouncilDeregister_creator, 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_MsgCouncilDeregister) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilDeregister.creator": - return x.Creator != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilDeregister.creator": - x.Creator = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCouncilDeregister.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilDeregister.creator": - x.Creator = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilDeregister.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilDeregister is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilDeregister.creator": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregister")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregister 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_MsgCouncilDeregister) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilDeregister", 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_MsgCouncilDeregister) 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_MsgCouncilDeregister) 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_MsgCouncilDeregister) 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_MsgCouncilDeregister) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilDeregister) - 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.Creator) - 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().(*MsgCouncilDeregister) - 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.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCouncilDeregister) - 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: MsgCouncilDeregister: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilDeregister: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilDeregisterResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilDeregisterResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilDeregisterResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilDeregisterResponse)(nil) - -type fastReflection_MsgCouncilDeregisterResponse MsgCouncilDeregisterResponse - -func (x *MsgCouncilDeregisterResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilDeregisterResponse)(x) -} - -func (x *MsgCouncilDeregisterResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[21] - 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_MsgCouncilDeregisterResponse_messageType fastReflection_MsgCouncilDeregisterResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilDeregisterResponse_messageType{} - -type fastReflection_MsgCouncilDeregisterResponse_messageType struct{} - -func (x fastReflection_MsgCouncilDeregisterResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilDeregisterResponse)(nil) -} -func (x fastReflection_MsgCouncilDeregisterResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilDeregisterResponse) -} -func (x fastReflection_MsgCouncilDeregisterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilDeregisterResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilDeregisterResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilDeregisterResponse -} - -// 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_MsgCouncilDeregisterResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilDeregisterResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilDeregisterResponse) New() protoreflect.Message { - return new(fastReflection_MsgCouncilDeregisterResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilDeregisterResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilDeregisterResponse)(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_MsgCouncilDeregisterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCouncilDeregisterResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilDeregisterResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilDeregisterResponse 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_MsgCouncilDeregisterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilDeregisterResponse", 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_MsgCouncilDeregisterResponse) 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_MsgCouncilDeregisterResponse) 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_MsgCouncilDeregisterResponse) 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_MsgCouncilDeregisterResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilDeregisterResponse) - 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().(*MsgCouncilDeregisterResponse) - 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().(*MsgCouncilDeregisterResponse) - 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: MsgCouncilDeregisterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilDeregisterResponse: 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 = (*_MsgMatchReport_3_list)(nil) - -type _MsgMatchReport_3_list struct { - list *[]uint64 -} - -func (x *_MsgMatchReport_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMatchReport_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MsgMatchReport_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgMatchReport_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMatchReport_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgMatchReport at list field PlayedCardsA as it is not of Message kind")) -} - -func (x *_MsgMatchReport_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgMatchReport_3_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MsgMatchReport_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MsgMatchReport_4_list)(nil) - -type _MsgMatchReport_4_list struct { - list *[]uint64 -} - -func (x *_MsgMatchReport_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMatchReport_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MsgMatchReport_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgMatchReport_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMatchReport_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgMatchReport at list field PlayedCardsB as it is not of Message kind")) -} - -func (x *_MsgMatchReport_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgMatchReport_4_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MsgMatchReport_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgMatchReport protoreflect.MessageDescriptor - fd_MsgMatchReport_creator protoreflect.FieldDescriptor - fd_MsgMatchReport_matchId protoreflect.FieldDescriptor - fd_MsgMatchReport_playedCardsA protoreflect.FieldDescriptor - fd_MsgMatchReport_playedCardsB protoreflect.FieldDescriptor - fd_MsgMatchReport_outcome protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchReport = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReport") - fd_MsgMatchReport_creator = md_MsgMatchReport.Fields().ByName("creator") - fd_MsgMatchReport_matchId = md_MsgMatchReport.Fields().ByName("matchId") - fd_MsgMatchReport_playedCardsA = md_MsgMatchReport.Fields().ByName("playedCardsA") - fd_MsgMatchReport_playedCardsB = md_MsgMatchReport.Fields().ByName("playedCardsB") - fd_MsgMatchReport_outcome = md_MsgMatchReport.Fields().ByName("outcome") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchReport)(nil) - -type fastReflection_MsgMatchReport MsgMatchReport - -func (x *MsgMatchReport) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchReport)(x) -} - -func (x *MsgMatchReport) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[22] - 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_MsgMatchReport_messageType fastReflection_MsgMatchReport_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchReport_messageType{} - -type fastReflection_MsgMatchReport_messageType struct{} - -func (x fastReflection_MsgMatchReport_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchReport)(nil) -} -func (x fastReflection_MsgMatchReport_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchReport) -} -func (x fastReflection_MsgMatchReport_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReport -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchReport) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReport -} - -// 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_MsgMatchReport) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchReport_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchReport) New() protoreflect.Message { - return new(fastReflection_MsgMatchReport) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchReport) Interface() protoreflect.ProtoMessage { - return (*MsgMatchReport)(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_MsgMatchReport) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgMatchReport_creator, value) { - return - } - } - if x.MatchId != uint64(0) { - value := protoreflect.ValueOfUint64(x.MatchId) - if !f(fd_MsgMatchReport_matchId, value) { - return - } - } - if len(x.PlayedCardsA) != 0 { - value := protoreflect.ValueOfList(&_MsgMatchReport_3_list{list: &x.PlayedCardsA}) - if !f(fd_MsgMatchReport_playedCardsA, value) { - return - } - } - if len(x.PlayedCardsB) != 0 { - value := protoreflect.ValueOfList(&_MsgMatchReport_4_list{list: &x.PlayedCardsB}) - if !f(fd_MsgMatchReport_playedCardsB, value) { - return - } - } - if x.Outcome != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Outcome)) - if !f(fd_MsgMatchReport_outcome, 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_MsgMatchReport) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReport.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgMatchReport.matchId": - return x.MatchId != uint64(0) - case "cardchain.cardchain.MsgMatchReport.playedCardsA": - return len(x.PlayedCardsA) != 0 - case "cardchain.cardchain.MsgMatchReport.playedCardsB": - return len(x.PlayedCardsB) != 0 - case "cardchain.cardchain.MsgMatchReport.outcome": - return x.Outcome != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReport.creator": - x.Creator = "" - case "cardchain.cardchain.MsgMatchReport.matchId": - x.MatchId = uint64(0) - case "cardchain.cardchain.MsgMatchReport.playedCardsA": - x.PlayedCardsA = nil - case "cardchain.cardchain.MsgMatchReport.playedCardsB": - x.PlayedCardsB = nil - case "cardchain.cardchain.MsgMatchReport.outcome": - x.Outcome = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgMatchReport.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgMatchReport.matchId": - value := x.MatchId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgMatchReport.playedCardsA": - if len(x.PlayedCardsA) == 0 { - return protoreflect.ValueOfList(&_MsgMatchReport_3_list{}) - } - listValue := &_MsgMatchReport_3_list{list: &x.PlayedCardsA} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.MsgMatchReport.playedCardsB": - if len(x.PlayedCardsB) == 0 { - return protoreflect.ValueOfList(&_MsgMatchReport_4_list{}) - } - listValue := &_MsgMatchReport_4_list{list: &x.PlayedCardsB} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.MsgMatchReport.outcome": - value := x.Outcome - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReport.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgMatchReport.matchId": - x.MatchId = value.Uint() - case "cardchain.cardchain.MsgMatchReport.playedCardsA": - lv := value.List() - clv := lv.(*_MsgMatchReport_3_list) - x.PlayedCardsA = *clv.list - case "cardchain.cardchain.MsgMatchReport.playedCardsB": - lv := value.List() - clv := lv.(*_MsgMatchReport_4_list) - x.PlayedCardsB = *clv.list - case "cardchain.cardchain.MsgMatchReport.outcome": - x.Outcome = (Outcome)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReport.playedCardsA": - if x.PlayedCardsA == nil { - x.PlayedCardsA = []uint64{} - } - value := &_MsgMatchReport_3_list{list: &x.PlayedCardsA} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgMatchReport.playedCardsB": - if x.PlayedCardsB == nil { - x.PlayedCardsB = []uint64{} - } - value := &_MsgMatchReport_4_list{list: &x.PlayedCardsB} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgMatchReport.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgMatchReport is not mutable")) - case "cardchain.cardchain.MsgMatchReport.matchId": - panic(fmt.Errorf("field matchId of message cardchain.cardchain.MsgMatchReport is not mutable")) - case "cardchain.cardchain.MsgMatchReport.outcome": - panic(fmt.Errorf("field outcome of message cardchain.cardchain.MsgMatchReport is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReport.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgMatchReport.matchId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgMatchReport.playedCardsA": - list := []uint64{} - return protoreflect.ValueOfList(&_MsgMatchReport_3_list{list: &list}) - case "cardchain.cardchain.MsgMatchReport.playedCardsB": - list := []uint64{} - return protoreflect.ValueOfList(&_MsgMatchReport_4_list{list: &list}) - case "cardchain.cardchain.MsgMatchReport.outcome": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReport")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReport 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_MsgMatchReport) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReport", 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_MsgMatchReport) 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_MsgMatchReport) 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_MsgMatchReport) 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_MsgMatchReport) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchReport) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.MatchId != 0 { - n += 1 + runtime.Sov(uint64(x.MatchId)) - } - if len(x.PlayedCardsA) > 0 { - l = 0 - for _, e := range x.PlayedCardsA { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.PlayedCardsB) > 0 { - l = 0 - for _, e := range x.PlayedCardsB { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if x.Outcome != 0 { - n += 1 + runtime.Sov(uint64(x.Outcome)) - } - 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().(*MsgMatchReport) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Outcome != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) - i-- - dAtA[i] = 0x28 - } - if len(x.PlayedCardsB) > 0 { - var pksize2 int - for _, num := range x.PlayedCardsB { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.PlayedCardsB { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x22 - } - if len(x.PlayedCardsA) > 0 { - var pksize4 int - for _, num := range x.PlayedCardsA { - pksize4 += runtime.Sov(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num := range x.PlayedCardsA { - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) - i-- - dAtA[i] = 0x1a - } - if x.MatchId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MatchId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgMatchReport) - 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: MsgMatchReport: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReport: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType) - } - x.MatchId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.MatchId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayedCardsA = append(x.PlayedCardsA, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.PlayedCardsA) == 0 { - x.PlayedCardsA = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayedCardsA = append(x.PlayedCardsA, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayedCardsA", wireType) - } - case 4: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayedCardsB = append(x.PlayedCardsB, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.PlayedCardsB) == 0 { - x.PlayedCardsB = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayedCardsB = append(x.PlayedCardsB, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayedCardsB", wireType) - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) - } - x.Outcome = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Outcome |= Outcome(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgMatchReportResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchReportResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReportResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchReportResponse)(nil) - -type fastReflection_MsgMatchReportResponse MsgMatchReportResponse - -func (x *MsgMatchReportResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchReportResponse)(x) -} - -func (x *MsgMatchReportResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[23] - 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_MsgMatchReportResponse_messageType fastReflection_MsgMatchReportResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchReportResponse_messageType{} - -type fastReflection_MsgMatchReportResponse_messageType struct{} - -func (x fastReflection_MsgMatchReportResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchReportResponse)(nil) -} -func (x fastReflection_MsgMatchReportResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchReportResponse) -} -func (x fastReflection_MsgMatchReportResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReportResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchReportResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReportResponse -} - -// 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_MsgMatchReportResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchReportResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchReportResponse) New() protoreflect.Message { - return new(fastReflection_MsgMatchReportResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchReportResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMatchReportResponse)(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_MsgMatchReportResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgMatchReportResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReportResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReportResponse 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_MsgMatchReportResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReportResponse", 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_MsgMatchReportResponse) 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_MsgMatchReportResponse) 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_MsgMatchReportResponse) 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_MsgMatchReportResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchReportResponse) - 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().(*MsgMatchReportResponse) - 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().(*MsgMatchReportResponse) - 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: MsgMatchReportResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReportResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilCreate protoreflect.MessageDescriptor - fd_MsgCouncilCreate_creator protoreflect.FieldDescriptor - fd_MsgCouncilCreate_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilCreate") - fd_MsgCouncilCreate_creator = md_MsgCouncilCreate.Fields().ByName("creator") - fd_MsgCouncilCreate_cardId = md_MsgCouncilCreate.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilCreate)(nil) - -type fastReflection_MsgCouncilCreate MsgCouncilCreate - -func (x *MsgCouncilCreate) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilCreate)(x) -} - -func (x *MsgCouncilCreate) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[24] - 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_MsgCouncilCreate_messageType fastReflection_MsgCouncilCreate_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilCreate_messageType{} - -type fastReflection_MsgCouncilCreate_messageType struct{} - -func (x fastReflection_MsgCouncilCreate_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilCreate)(nil) -} -func (x fastReflection_MsgCouncilCreate_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilCreate) -} -func (x fastReflection_MsgCouncilCreate_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilCreate -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilCreate) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilCreate -} - -// 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_MsgCouncilCreate) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilCreate_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilCreate) New() protoreflect.Message { - return new(fastReflection_MsgCouncilCreate) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilCreate) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilCreate)(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_MsgCouncilCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCouncilCreate_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCouncilCreate_cardId, 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_MsgCouncilCreate) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilCreate.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCouncilCreate.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilCreate.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCouncilCreate.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCouncilCreate.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCouncilCreate.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilCreate.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCouncilCreate.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilCreate.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilCreate is not mutable")) - case "cardchain.cardchain.MsgCouncilCreate.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCouncilCreate is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilCreate.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCouncilCreate.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreate 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_MsgCouncilCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilCreate", 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_MsgCouncilCreate) 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_MsgCouncilCreate) 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_MsgCouncilCreate) 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_MsgCouncilCreate) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilCreate) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*MsgCouncilCreate) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCouncilCreate) - 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: MsgCouncilCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilCreate: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilCreateResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilCreateResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilCreateResponse)(nil) - -type fastReflection_MsgCouncilCreateResponse MsgCouncilCreateResponse - -func (x *MsgCouncilCreateResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilCreateResponse)(x) -} - -func (x *MsgCouncilCreateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[25] - 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_MsgCouncilCreateResponse_messageType fastReflection_MsgCouncilCreateResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilCreateResponse_messageType{} - -type fastReflection_MsgCouncilCreateResponse_messageType struct{} - -func (x fastReflection_MsgCouncilCreateResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilCreateResponse)(nil) -} -func (x fastReflection_MsgCouncilCreateResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilCreateResponse) -} -func (x fastReflection_MsgCouncilCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilCreateResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilCreateResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilCreateResponse -} - -// 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_MsgCouncilCreateResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilCreateResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilCreateResponse) New() protoreflect.Message { - return new(fastReflection_MsgCouncilCreateResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilCreateResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilCreateResponse)(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_MsgCouncilCreateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCouncilCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilCreateResponse 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_MsgCouncilCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilCreateResponse", 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_MsgCouncilCreateResponse) 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_MsgCouncilCreateResponse) 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_MsgCouncilCreateResponse) 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_MsgCouncilCreateResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilCreateResponse) - 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().(*MsgCouncilCreateResponse) - 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().(*MsgCouncilCreateResponse) - 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: MsgCouncilCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgMatchReporterAppoint protoreflect.MessageDescriptor - fd_MsgMatchReporterAppoint_authority protoreflect.FieldDescriptor - fd_MsgMatchReporterAppoint_reporter protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchReporterAppoint = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReporterAppoint") - fd_MsgMatchReporterAppoint_authority = md_MsgMatchReporterAppoint.Fields().ByName("authority") - fd_MsgMatchReporterAppoint_reporter = md_MsgMatchReporterAppoint.Fields().ByName("reporter") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchReporterAppoint)(nil) - -type fastReflection_MsgMatchReporterAppoint MsgMatchReporterAppoint - -func (x *MsgMatchReporterAppoint) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchReporterAppoint)(x) -} - -func (x *MsgMatchReporterAppoint) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[26] - 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_MsgMatchReporterAppoint_messageType fastReflection_MsgMatchReporterAppoint_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchReporterAppoint_messageType{} - -type fastReflection_MsgMatchReporterAppoint_messageType struct{} - -func (x fastReflection_MsgMatchReporterAppoint_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchReporterAppoint)(nil) -} -func (x fastReflection_MsgMatchReporterAppoint_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchReporterAppoint) -} -func (x fastReflection_MsgMatchReporterAppoint_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReporterAppoint -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchReporterAppoint) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReporterAppoint -} - -// 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_MsgMatchReporterAppoint) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchReporterAppoint_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchReporterAppoint) New() protoreflect.Message { - return new(fastReflection_MsgMatchReporterAppoint) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchReporterAppoint) Interface() protoreflect.ProtoMessage { - return (*MsgMatchReporterAppoint)(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_MsgMatchReporterAppoint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgMatchReporterAppoint_authority, value) { - return - } - } - if x.Reporter != "" { - value := protoreflect.ValueOfString(x.Reporter) - if !f(fd_MsgMatchReporterAppoint_reporter, 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_MsgMatchReporterAppoint) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReporterAppoint.authority": - return x.Authority != "" - case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": - return x.Reporter != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReporterAppoint.authority": - x.Authority = "" - case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": - x.Reporter = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgMatchReporterAppoint.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": - value := x.Reporter - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReporterAppoint.authority": - x.Authority = value.Interface().(string) - case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": - x.Reporter = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReporterAppoint.authority": - panic(fmt.Errorf("field authority of message cardchain.cardchain.MsgMatchReporterAppoint is not mutable")) - case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": - panic(fmt.Errorf("field reporter of message cardchain.cardchain.MsgMatchReporterAppoint is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchReporterAppoint.authority": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgMatchReporterAppoint.reporter": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppoint")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppoint 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_MsgMatchReporterAppoint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReporterAppoint", 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_MsgMatchReporterAppoint) 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_MsgMatchReporterAppoint) 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_MsgMatchReporterAppoint) 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_MsgMatchReporterAppoint) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchReporterAppoint) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Reporter) - 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().(*MsgMatchReporterAppoint) - 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.Reporter) > 0 { - i -= len(x.Reporter) - copy(dAtA[i:], x.Reporter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reporter))) - i-- - dAtA[i] = 0x12 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgMatchReporterAppoint) - 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: MsgMatchReporterAppoint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReporterAppoint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reporter", 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.Reporter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgMatchReporterAppointResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchReporterAppointResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchReporterAppointResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchReporterAppointResponse)(nil) - -type fastReflection_MsgMatchReporterAppointResponse MsgMatchReporterAppointResponse - -func (x *MsgMatchReporterAppointResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchReporterAppointResponse)(x) -} - -func (x *MsgMatchReporterAppointResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[27] - 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_MsgMatchReporterAppointResponse_messageType fastReflection_MsgMatchReporterAppointResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchReporterAppointResponse_messageType{} - -type fastReflection_MsgMatchReporterAppointResponse_messageType struct{} - -func (x fastReflection_MsgMatchReporterAppointResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchReporterAppointResponse)(nil) -} -func (x fastReflection_MsgMatchReporterAppointResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchReporterAppointResponse) -} -func (x fastReflection_MsgMatchReporterAppointResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReporterAppointResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchReporterAppointResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchReporterAppointResponse -} - -// 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_MsgMatchReporterAppointResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchReporterAppointResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchReporterAppointResponse) New() protoreflect.Message { - return new(fastReflection_MsgMatchReporterAppointResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchReporterAppointResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMatchReporterAppointResponse)(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_MsgMatchReporterAppointResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgMatchReporterAppointResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchReporterAppointResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchReporterAppointResponse 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_MsgMatchReporterAppointResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchReporterAppointResponse", 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_MsgMatchReporterAppointResponse) 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_MsgMatchReporterAppointResponse) 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_MsgMatchReporterAppointResponse) 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_MsgMatchReporterAppointResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchReporterAppointResponse) - 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().(*MsgMatchReporterAppointResponse) - 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().(*MsgMatchReporterAppointResponse) - 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: MsgMatchReporterAppointResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchReporterAppointResponse: 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 = (*_MsgSetCreate_5_list)(nil) - -type _MsgSetCreate_5_list struct { - list *[]string -} - -func (x *_MsgSetCreate_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgSetCreate_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgSetCreate_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgSetCreate_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgSetCreate_5_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgSetCreate at list field Contributors as it is not of Message kind")) -} - -func (x *_MsgSetCreate_5_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgSetCreate_5_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgSetCreate_5_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgSetCreate protoreflect.MessageDescriptor - fd_MsgSetCreate_creator protoreflect.FieldDescriptor - fd_MsgSetCreate_name protoreflect.FieldDescriptor - fd_MsgSetCreate_artist protoreflect.FieldDescriptor - fd_MsgSetCreate_storyWriter protoreflect.FieldDescriptor - fd_MsgSetCreate_contributors protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCreate") - fd_MsgSetCreate_creator = md_MsgSetCreate.Fields().ByName("creator") - fd_MsgSetCreate_name = md_MsgSetCreate.Fields().ByName("name") - fd_MsgSetCreate_artist = md_MsgSetCreate.Fields().ByName("artist") - fd_MsgSetCreate_storyWriter = md_MsgSetCreate.Fields().ByName("storyWriter") - fd_MsgSetCreate_contributors = md_MsgSetCreate.Fields().ByName("contributors") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetCreate)(nil) - -type fastReflection_MsgSetCreate MsgSetCreate - -func (x *MsgSetCreate) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetCreate)(x) -} - -func (x *MsgSetCreate) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[28] - 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_MsgSetCreate_messageType fastReflection_MsgSetCreate_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetCreate_messageType{} - -type fastReflection_MsgSetCreate_messageType struct{} - -func (x fastReflection_MsgSetCreate_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetCreate)(nil) -} -func (x fastReflection_MsgSetCreate_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetCreate) -} -func (x fastReflection_MsgSetCreate_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCreate -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetCreate) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCreate -} - -// 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_MsgSetCreate) Type() protoreflect.MessageType { - return _fastReflection_MsgSetCreate_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetCreate) New() protoreflect.Message { - return new(fastReflection_MsgSetCreate) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetCreate) Interface() protoreflect.ProtoMessage { - return (*MsgSetCreate)(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_MsgSetCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetCreate_creator, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgSetCreate_name, value) { - return - } - } - if x.Artist != "" { - value := protoreflect.ValueOfString(x.Artist) - if !f(fd_MsgSetCreate_artist, value) { - return - } - } - if x.StoryWriter != "" { - value := protoreflect.ValueOfString(x.StoryWriter) - if !f(fd_MsgSetCreate_storyWriter, value) { - return - } - } - if len(x.Contributors) != 0 { - value := protoreflect.ValueOfList(&_MsgSetCreate_5_list{list: &x.Contributors}) - if !f(fd_MsgSetCreate_contributors, 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_MsgSetCreate) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCreate.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetCreate.name": - return x.Name != "" - case "cardchain.cardchain.MsgSetCreate.artist": - return x.Artist != "" - case "cardchain.cardchain.MsgSetCreate.storyWriter": - return x.StoryWriter != "" - case "cardchain.cardchain.MsgSetCreate.contributors": - return len(x.Contributors) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCreate.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetCreate.name": - x.Name = "" - case "cardchain.cardchain.MsgSetCreate.artist": - x.Artist = "" - case "cardchain.cardchain.MsgSetCreate.storyWriter": - x.StoryWriter = "" - case "cardchain.cardchain.MsgSetCreate.contributors": - x.Contributors = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetCreate.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetCreate.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetCreate.artist": - value := x.Artist - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetCreate.storyWriter": - value := x.StoryWriter - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetCreate.contributors": - if len(x.Contributors) == 0 { - return protoreflect.ValueOfList(&_MsgSetCreate_5_list{}) - } - listValue := &_MsgSetCreate_5_list{list: &x.Contributors} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCreate.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetCreate.name": - x.Name = value.Interface().(string) - case "cardchain.cardchain.MsgSetCreate.artist": - x.Artist = value.Interface().(string) - case "cardchain.cardchain.MsgSetCreate.storyWriter": - x.StoryWriter = value.Interface().(string) - case "cardchain.cardchain.MsgSetCreate.contributors": - lv := value.List() - clv := lv.(*_MsgSetCreate_5_list) - x.Contributors = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCreate.contributors": - if x.Contributors == nil { - x.Contributors = []string{} - } - value := &_MsgSetCreate_5_list{list: &x.Contributors} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgSetCreate.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetCreate is not mutable")) - case "cardchain.cardchain.MsgSetCreate.name": - panic(fmt.Errorf("field name of message cardchain.cardchain.MsgSetCreate is not mutable")) - case "cardchain.cardchain.MsgSetCreate.artist": - panic(fmt.Errorf("field artist of message cardchain.cardchain.MsgSetCreate is not mutable")) - case "cardchain.cardchain.MsgSetCreate.storyWriter": - panic(fmt.Errorf("field storyWriter of message cardchain.cardchain.MsgSetCreate is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCreate.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetCreate.name": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetCreate.artist": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetCreate.storyWriter": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetCreate.contributors": - list := []string{} - return protoreflect.ValueOfList(&_MsgSetCreate_5_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreate 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_MsgSetCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCreate", 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_MsgSetCreate) 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_MsgSetCreate) 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_MsgSetCreate) 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_MsgSetCreate) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetCreate) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Artist) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.StoryWriter) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Contributors) > 0 { - for _, s := range x.Contributors { - 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().(*MsgSetCreate) - 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.Contributors) > 0 { - for iNdEx := len(x.Contributors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Contributors[iNdEx]) - copy(dAtA[i:], x.Contributors[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Contributors[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(x.StoryWriter) > 0 { - i -= len(x.StoryWriter) - copy(dAtA[i:], x.StoryWriter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.StoryWriter))) - i-- - dAtA[i] = 0x22 - } - if len(x.Artist) > 0 { - i -= len(x.Artist) - copy(dAtA[i:], x.Artist) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artist))) - i-- - dAtA[i] = 0x1a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetCreate) - 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: MsgSetCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCreate: 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 Creator", 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.Creator = 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 Name", 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.Name = 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 Artist", 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.Artist = 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 StoryWriter", 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.StoryWriter = 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 Contributors", 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.Contributors = append(x.Contributors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetCreateResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCreateResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetCreateResponse)(nil) - -type fastReflection_MsgSetCreateResponse MsgSetCreateResponse - -func (x *MsgSetCreateResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetCreateResponse)(x) -} - -func (x *MsgSetCreateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[29] - 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_MsgSetCreateResponse_messageType fastReflection_MsgSetCreateResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetCreateResponse_messageType{} - -type fastReflection_MsgSetCreateResponse_messageType struct{} - -func (x fastReflection_MsgSetCreateResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetCreateResponse)(nil) -} -func (x fastReflection_MsgSetCreateResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetCreateResponse) -} -func (x fastReflection_MsgSetCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCreateResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetCreateResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCreateResponse -} - -// 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_MsgSetCreateResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetCreateResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetCreateResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetCreateResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetCreateResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetCreateResponse)(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_MsgSetCreateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCreateResponse 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_MsgSetCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCreateResponse", 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_MsgSetCreateResponse) 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_MsgSetCreateResponse) 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_MsgSetCreateResponse) 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_MsgSetCreateResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetCreateResponse) - 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().(*MsgSetCreateResponse) - 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().(*MsgSetCreateResponse) - 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: MsgSetCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetCardAdd protoreflect.MessageDescriptor - fd_MsgSetCardAdd_creator protoreflect.FieldDescriptor - fd_MsgSetCardAdd_setId protoreflect.FieldDescriptor - fd_MsgSetCardAdd_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetCardAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardAdd") - fd_MsgSetCardAdd_creator = md_MsgSetCardAdd.Fields().ByName("creator") - fd_MsgSetCardAdd_setId = md_MsgSetCardAdd.Fields().ByName("setId") - fd_MsgSetCardAdd_cardId = md_MsgSetCardAdd.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetCardAdd)(nil) - -type fastReflection_MsgSetCardAdd MsgSetCardAdd - -func (x *MsgSetCardAdd) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetCardAdd)(x) -} - -func (x *MsgSetCardAdd) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[30] - 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_MsgSetCardAdd_messageType fastReflection_MsgSetCardAdd_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetCardAdd_messageType{} - -type fastReflection_MsgSetCardAdd_messageType struct{} - -func (x fastReflection_MsgSetCardAdd_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetCardAdd)(nil) -} -func (x fastReflection_MsgSetCardAdd_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetCardAdd) -} -func (x fastReflection_MsgSetCardAdd_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardAdd -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetCardAdd) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardAdd -} - -// 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_MsgSetCardAdd) Type() protoreflect.MessageType { - return _fastReflection_MsgSetCardAdd_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetCardAdd) New() protoreflect.Message { - return new(fastReflection_MsgSetCardAdd) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetCardAdd) Interface() protoreflect.ProtoMessage { - return (*MsgSetCardAdd)(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_MsgSetCardAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetCardAdd_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetCardAdd_setId, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgSetCardAdd_cardId, 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_MsgSetCardAdd) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardAdd.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetCardAdd.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetCardAdd.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardAdd.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetCardAdd.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetCardAdd.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetCardAdd.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetCardAdd.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetCardAdd.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardAdd.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetCardAdd.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetCardAdd.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardAdd.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetCardAdd is not mutable")) - case "cardchain.cardchain.MsgSetCardAdd.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetCardAdd is not mutable")) - case "cardchain.cardchain.MsgSetCardAdd.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgSetCardAdd is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardAdd.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetCardAdd.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetCardAdd.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAdd 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_MsgSetCardAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardAdd", 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_MsgSetCardAdd) 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_MsgSetCardAdd) 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_MsgSetCardAdd) 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_MsgSetCardAdd) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetCardAdd) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*MsgSetCardAdd) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x18 - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetCardAdd) - 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: MsgSetCardAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetCardAddResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetCardAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardAddResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetCardAddResponse)(nil) - -type fastReflection_MsgSetCardAddResponse MsgSetCardAddResponse - -func (x *MsgSetCardAddResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetCardAddResponse)(x) -} - -func (x *MsgSetCardAddResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[31] - 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_MsgSetCardAddResponse_messageType fastReflection_MsgSetCardAddResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetCardAddResponse_messageType{} - -type fastReflection_MsgSetCardAddResponse_messageType struct{} - -func (x fastReflection_MsgSetCardAddResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetCardAddResponse)(nil) -} -func (x fastReflection_MsgSetCardAddResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetCardAddResponse) -} -func (x fastReflection_MsgSetCardAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardAddResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetCardAddResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardAddResponse -} - -// 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_MsgSetCardAddResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetCardAddResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetCardAddResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetCardAddResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetCardAddResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetCardAddResponse)(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_MsgSetCardAddResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetCardAddResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardAddResponse 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_MsgSetCardAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardAddResponse", 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_MsgSetCardAddResponse) 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_MsgSetCardAddResponse) 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_MsgSetCardAddResponse) 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_MsgSetCardAddResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetCardAddResponse) - 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().(*MsgSetCardAddResponse) - 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().(*MsgSetCardAddResponse) - 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: MsgSetCardAddResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetCardRemove protoreflect.MessageDescriptor - fd_MsgSetCardRemove_creator protoreflect.FieldDescriptor - fd_MsgSetCardRemove_setId protoreflect.FieldDescriptor - fd_MsgSetCardRemove_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetCardRemove = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardRemove") - fd_MsgSetCardRemove_creator = md_MsgSetCardRemove.Fields().ByName("creator") - fd_MsgSetCardRemove_setId = md_MsgSetCardRemove.Fields().ByName("setId") - fd_MsgSetCardRemove_cardId = md_MsgSetCardRemove.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetCardRemove)(nil) - -type fastReflection_MsgSetCardRemove MsgSetCardRemove - -func (x *MsgSetCardRemove) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetCardRemove)(x) -} - -func (x *MsgSetCardRemove) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[32] - 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_MsgSetCardRemove_messageType fastReflection_MsgSetCardRemove_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetCardRemove_messageType{} - -type fastReflection_MsgSetCardRemove_messageType struct{} - -func (x fastReflection_MsgSetCardRemove_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetCardRemove)(nil) -} -func (x fastReflection_MsgSetCardRemove_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetCardRemove) -} -func (x fastReflection_MsgSetCardRemove_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardRemove -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetCardRemove) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardRemove -} - -// 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_MsgSetCardRemove) Type() protoreflect.MessageType { - return _fastReflection_MsgSetCardRemove_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetCardRemove) New() protoreflect.Message { - return new(fastReflection_MsgSetCardRemove) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetCardRemove) Interface() protoreflect.ProtoMessage { - return (*MsgSetCardRemove)(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_MsgSetCardRemove) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetCardRemove_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetCardRemove_setId, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgSetCardRemove_cardId, 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_MsgSetCardRemove) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardRemove.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetCardRemove.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetCardRemove.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardRemove.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetCardRemove.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetCardRemove.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetCardRemove.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetCardRemove.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetCardRemove.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardRemove.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetCardRemove.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetCardRemove.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardRemove.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetCardRemove is not mutable")) - case "cardchain.cardchain.MsgSetCardRemove.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetCardRemove is not mutable")) - case "cardchain.cardchain.MsgSetCardRemove.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgSetCardRemove is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetCardRemove.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetCardRemove.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetCardRemove.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemove 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_MsgSetCardRemove) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardRemove", 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_MsgSetCardRemove) 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_MsgSetCardRemove) 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_MsgSetCardRemove) 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_MsgSetCardRemove) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetCardRemove) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*MsgSetCardRemove) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x18 - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetCardRemove) - 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: MsgSetCardRemove: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardRemove: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetCardRemoveResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetCardRemoveResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetCardRemoveResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetCardRemoveResponse)(nil) - -type fastReflection_MsgSetCardRemoveResponse MsgSetCardRemoveResponse - -func (x *MsgSetCardRemoveResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetCardRemoveResponse)(x) -} - -func (x *MsgSetCardRemoveResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[33] - 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_MsgSetCardRemoveResponse_messageType fastReflection_MsgSetCardRemoveResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetCardRemoveResponse_messageType{} - -type fastReflection_MsgSetCardRemoveResponse_messageType struct{} - -func (x fastReflection_MsgSetCardRemoveResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetCardRemoveResponse)(nil) -} -func (x fastReflection_MsgSetCardRemoveResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetCardRemoveResponse) -} -func (x fastReflection_MsgSetCardRemoveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardRemoveResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetCardRemoveResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetCardRemoveResponse -} - -// 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_MsgSetCardRemoveResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetCardRemoveResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetCardRemoveResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetCardRemoveResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetCardRemoveResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetCardRemoveResponse)(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_MsgSetCardRemoveResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetCardRemoveResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetCardRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetCardRemoveResponse 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_MsgSetCardRemoveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetCardRemoveResponse", 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_MsgSetCardRemoveResponse) 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_MsgSetCardRemoveResponse) 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_MsgSetCardRemoveResponse) 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_MsgSetCardRemoveResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetCardRemoveResponse) - 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().(*MsgSetCardRemoveResponse) - 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().(*MsgSetCardRemoveResponse) - 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: MsgSetCardRemoveResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetCardRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetContributorAdd protoreflect.MessageDescriptor - fd_MsgSetContributorAdd_creator protoreflect.FieldDescriptor - fd_MsgSetContributorAdd_setId protoreflect.FieldDescriptor - fd_MsgSetContributorAdd_user protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetContributorAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorAdd") - fd_MsgSetContributorAdd_creator = md_MsgSetContributorAdd.Fields().ByName("creator") - fd_MsgSetContributorAdd_setId = md_MsgSetContributorAdd.Fields().ByName("setId") - fd_MsgSetContributorAdd_user = md_MsgSetContributorAdd.Fields().ByName("user") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetContributorAdd)(nil) - -type fastReflection_MsgSetContributorAdd MsgSetContributorAdd - -func (x *MsgSetContributorAdd) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetContributorAdd)(x) -} - -func (x *MsgSetContributorAdd) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[34] - 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_MsgSetContributorAdd_messageType fastReflection_MsgSetContributorAdd_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetContributorAdd_messageType{} - -type fastReflection_MsgSetContributorAdd_messageType struct{} - -func (x fastReflection_MsgSetContributorAdd_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetContributorAdd)(nil) -} -func (x fastReflection_MsgSetContributorAdd_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorAdd) -} -func (x fastReflection_MsgSetContributorAdd_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorAdd -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetContributorAdd) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorAdd -} - -// 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_MsgSetContributorAdd) Type() protoreflect.MessageType { - return _fastReflection_MsgSetContributorAdd_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetContributorAdd) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorAdd) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetContributorAdd) Interface() protoreflect.ProtoMessage { - return (*MsgSetContributorAdd)(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_MsgSetContributorAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetContributorAdd_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetContributorAdd_setId, value) { - return - } - } - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_MsgSetContributorAdd_user, 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_MsgSetContributorAdd) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorAdd.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetContributorAdd.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetContributorAdd.user": - return x.User != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorAdd.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetContributorAdd.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetContributorAdd.user": - x.User = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetContributorAdd.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetContributorAdd.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetContributorAdd.user": - value := x.User - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorAdd.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetContributorAdd.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetContributorAdd.user": - x.User = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorAdd.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetContributorAdd is not mutable")) - case "cardchain.cardchain.MsgSetContributorAdd.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetContributorAdd is not mutable")) - case "cardchain.cardchain.MsgSetContributorAdd.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.MsgSetContributorAdd is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorAdd.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetContributorAdd.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetContributorAdd.user": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAdd 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_MsgSetContributorAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorAdd", 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_MsgSetContributorAdd) 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_MsgSetContributorAdd) 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_MsgSetContributorAdd) 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_MsgSetContributorAdd) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetContributorAdd) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - l = len(x.User) - 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().(*MsgSetContributorAdd) - 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.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - i-- - dAtA[i] = 0x1a - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetContributorAdd) - 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: MsgSetContributorAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetContributorAddResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetContributorAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorAddResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetContributorAddResponse)(nil) - -type fastReflection_MsgSetContributorAddResponse MsgSetContributorAddResponse - -func (x *MsgSetContributorAddResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetContributorAddResponse)(x) -} - -func (x *MsgSetContributorAddResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[35] - 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_MsgSetContributorAddResponse_messageType fastReflection_MsgSetContributorAddResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetContributorAddResponse_messageType{} - -type fastReflection_MsgSetContributorAddResponse_messageType struct{} - -func (x fastReflection_MsgSetContributorAddResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetContributorAddResponse)(nil) -} -func (x fastReflection_MsgSetContributorAddResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorAddResponse) -} -func (x fastReflection_MsgSetContributorAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorAddResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetContributorAddResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorAddResponse -} - -// 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_MsgSetContributorAddResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetContributorAddResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetContributorAddResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorAddResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetContributorAddResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetContributorAddResponse)(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_MsgSetContributorAddResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetContributorAddResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorAddResponse 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_MsgSetContributorAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorAddResponse", 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_MsgSetContributorAddResponse) 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_MsgSetContributorAddResponse) 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_MsgSetContributorAddResponse) 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_MsgSetContributorAddResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetContributorAddResponse) - 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().(*MsgSetContributorAddResponse) - 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().(*MsgSetContributorAddResponse) - 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: MsgSetContributorAddResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetContributorRemove protoreflect.MessageDescriptor - fd_MsgSetContributorRemove_creator protoreflect.FieldDescriptor - fd_MsgSetContributorRemove_setId protoreflect.FieldDescriptor - fd_MsgSetContributorRemove_user protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetContributorRemove = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorRemove") - fd_MsgSetContributorRemove_creator = md_MsgSetContributorRemove.Fields().ByName("creator") - fd_MsgSetContributorRemove_setId = md_MsgSetContributorRemove.Fields().ByName("setId") - fd_MsgSetContributorRemove_user = md_MsgSetContributorRemove.Fields().ByName("user") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetContributorRemove)(nil) - -type fastReflection_MsgSetContributorRemove MsgSetContributorRemove - -func (x *MsgSetContributorRemove) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetContributorRemove)(x) -} - -func (x *MsgSetContributorRemove) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[36] - 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_MsgSetContributorRemove_messageType fastReflection_MsgSetContributorRemove_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetContributorRemove_messageType{} - -type fastReflection_MsgSetContributorRemove_messageType struct{} - -func (x fastReflection_MsgSetContributorRemove_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetContributorRemove)(nil) -} -func (x fastReflection_MsgSetContributorRemove_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorRemove) -} -func (x fastReflection_MsgSetContributorRemove_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorRemove -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetContributorRemove) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorRemove -} - -// 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_MsgSetContributorRemove) Type() protoreflect.MessageType { - return _fastReflection_MsgSetContributorRemove_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetContributorRemove) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorRemove) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetContributorRemove) Interface() protoreflect.ProtoMessage { - return (*MsgSetContributorRemove)(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_MsgSetContributorRemove) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetContributorRemove_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetContributorRemove_setId, value) { - return - } - } - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_MsgSetContributorRemove_user, 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_MsgSetContributorRemove) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorRemove.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetContributorRemove.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetContributorRemove.user": - return x.User != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorRemove.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetContributorRemove.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetContributorRemove.user": - x.User = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetContributorRemove.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetContributorRemove.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetContributorRemove.user": - value := x.User - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorRemove.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetContributorRemove.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetContributorRemove.user": - x.User = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorRemove.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetContributorRemove is not mutable")) - case "cardchain.cardchain.MsgSetContributorRemove.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetContributorRemove is not mutable")) - case "cardchain.cardchain.MsgSetContributorRemove.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.MsgSetContributorRemove is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetContributorRemove.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetContributorRemove.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetContributorRemove.user": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemove 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_MsgSetContributorRemove) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorRemove", 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_MsgSetContributorRemove) 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_MsgSetContributorRemove) 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_MsgSetContributorRemove) 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_MsgSetContributorRemove) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetContributorRemove) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - l = len(x.User) - 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().(*MsgSetContributorRemove) - 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.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - i-- - dAtA[i] = 0x1a - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetContributorRemove) - 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: MsgSetContributorRemove: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorRemove: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetContributorRemoveResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetContributorRemoveResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetContributorRemoveResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetContributorRemoveResponse)(nil) - -type fastReflection_MsgSetContributorRemoveResponse MsgSetContributorRemoveResponse - -func (x *MsgSetContributorRemoveResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetContributorRemoveResponse)(x) -} - -func (x *MsgSetContributorRemoveResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[37] - 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_MsgSetContributorRemoveResponse_messageType fastReflection_MsgSetContributorRemoveResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetContributorRemoveResponse_messageType{} - -type fastReflection_MsgSetContributorRemoveResponse_messageType struct{} - -func (x fastReflection_MsgSetContributorRemoveResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetContributorRemoveResponse)(nil) -} -func (x fastReflection_MsgSetContributorRemoveResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorRemoveResponse) -} -func (x fastReflection_MsgSetContributorRemoveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorRemoveResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetContributorRemoveResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetContributorRemoveResponse -} - -// 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_MsgSetContributorRemoveResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetContributorRemoveResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetContributorRemoveResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetContributorRemoveResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetContributorRemoveResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetContributorRemoveResponse)(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_MsgSetContributorRemoveResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetContributorRemoveResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetContributorRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetContributorRemoveResponse 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_MsgSetContributorRemoveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetContributorRemoveResponse", 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_MsgSetContributorRemoveResponse) 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_MsgSetContributorRemoveResponse) 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_MsgSetContributorRemoveResponse) 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_MsgSetContributorRemoveResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetContributorRemoveResponse) - 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().(*MsgSetContributorRemoveResponse) - 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().(*MsgSetContributorRemoveResponse) - 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: MsgSetContributorRemoveResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetContributorRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetFinalize protoreflect.MessageDescriptor - fd_MsgSetFinalize_creator protoreflect.FieldDescriptor - fd_MsgSetFinalize_setId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetFinalize = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetFinalize") - fd_MsgSetFinalize_creator = md_MsgSetFinalize.Fields().ByName("creator") - fd_MsgSetFinalize_setId = md_MsgSetFinalize.Fields().ByName("setId") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetFinalize)(nil) - -type fastReflection_MsgSetFinalize MsgSetFinalize - -func (x *MsgSetFinalize) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetFinalize)(x) -} - -func (x *MsgSetFinalize) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[38] - 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_MsgSetFinalize_messageType fastReflection_MsgSetFinalize_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetFinalize_messageType{} - -type fastReflection_MsgSetFinalize_messageType struct{} - -func (x fastReflection_MsgSetFinalize_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetFinalize)(nil) -} -func (x fastReflection_MsgSetFinalize_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetFinalize) -} -func (x fastReflection_MsgSetFinalize_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetFinalize -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetFinalize) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetFinalize -} - -// 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_MsgSetFinalize) Type() protoreflect.MessageType { - return _fastReflection_MsgSetFinalize_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetFinalize) New() protoreflect.Message { - return new(fastReflection_MsgSetFinalize) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetFinalize) Interface() protoreflect.ProtoMessage { - return (*MsgSetFinalize)(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_MsgSetFinalize) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetFinalize_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetFinalize_setId, 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_MsgSetFinalize) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetFinalize.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetFinalize.setId": - return x.SetId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetFinalize.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetFinalize.setId": - x.SetId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetFinalize.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetFinalize.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetFinalize.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetFinalize.setId": - x.SetId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetFinalize.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetFinalize is not mutable")) - case "cardchain.cardchain.MsgSetFinalize.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetFinalize is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetFinalize.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetFinalize.setId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalize")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalize 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_MsgSetFinalize) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetFinalize", 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_MsgSetFinalize) 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_MsgSetFinalize) 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_MsgSetFinalize) 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_MsgSetFinalize) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetFinalize) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - 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().(*MsgSetFinalize) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetFinalize) - 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: MsgSetFinalize: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetFinalize: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetFinalizeResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetFinalizeResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetFinalizeResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetFinalizeResponse)(nil) - -type fastReflection_MsgSetFinalizeResponse MsgSetFinalizeResponse - -func (x *MsgSetFinalizeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetFinalizeResponse)(x) -} - -func (x *MsgSetFinalizeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[39] - 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_MsgSetFinalizeResponse_messageType fastReflection_MsgSetFinalizeResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetFinalizeResponse_messageType{} - -type fastReflection_MsgSetFinalizeResponse_messageType struct{} - -func (x fastReflection_MsgSetFinalizeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetFinalizeResponse)(nil) -} -func (x fastReflection_MsgSetFinalizeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetFinalizeResponse) -} -func (x fastReflection_MsgSetFinalizeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetFinalizeResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetFinalizeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetFinalizeResponse -} - -// 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_MsgSetFinalizeResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetFinalizeResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetFinalizeResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetFinalizeResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetFinalizeResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetFinalizeResponse)(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_MsgSetFinalizeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetFinalizeResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetFinalizeResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetFinalizeResponse 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_MsgSetFinalizeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetFinalizeResponse", 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_MsgSetFinalizeResponse) 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_MsgSetFinalizeResponse) 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_MsgSetFinalizeResponse) 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_MsgSetFinalizeResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetFinalizeResponse) - 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().(*MsgSetFinalizeResponse) - 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().(*MsgSetFinalizeResponse) - 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: MsgSetFinalizeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetFinalizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetArtworkAdd protoreflect.MessageDescriptor - fd_MsgSetArtworkAdd_creator protoreflect.FieldDescriptor - fd_MsgSetArtworkAdd_setId protoreflect.FieldDescriptor - fd_MsgSetArtworkAdd_image protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetArtworkAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetArtworkAdd") - fd_MsgSetArtworkAdd_creator = md_MsgSetArtworkAdd.Fields().ByName("creator") - fd_MsgSetArtworkAdd_setId = md_MsgSetArtworkAdd.Fields().ByName("setId") - fd_MsgSetArtworkAdd_image = md_MsgSetArtworkAdd.Fields().ByName("image") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetArtworkAdd)(nil) - -type fastReflection_MsgSetArtworkAdd MsgSetArtworkAdd - -func (x *MsgSetArtworkAdd) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetArtworkAdd)(x) -} - -func (x *MsgSetArtworkAdd) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[40] - 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_MsgSetArtworkAdd_messageType fastReflection_MsgSetArtworkAdd_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetArtworkAdd_messageType{} - -type fastReflection_MsgSetArtworkAdd_messageType struct{} - -func (x fastReflection_MsgSetArtworkAdd_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetArtworkAdd)(nil) -} -func (x fastReflection_MsgSetArtworkAdd_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetArtworkAdd) -} -func (x fastReflection_MsgSetArtworkAdd_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtworkAdd -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetArtworkAdd) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtworkAdd -} - -// 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_MsgSetArtworkAdd) Type() protoreflect.MessageType { - return _fastReflection_MsgSetArtworkAdd_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetArtworkAdd) New() protoreflect.Message { - return new(fastReflection_MsgSetArtworkAdd) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetArtworkAdd) Interface() protoreflect.ProtoMessage { - return (*MsgSetArtworkAdd)(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_MsgSetArtworkAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetArtworkAdd_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetArtworkAdd_setId, value) { - return - } - } - if len(x.Image) != 0 { - value := protoreflect.ValueOfBytes(x.Image) - if !f(fd_MsgSetArtworkAdd_image, 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_MsgSetArtworkAdd) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtworkAdd.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetArtworkAdd.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetArtworkAdd.image": - return len(x.Image) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtworkAdd.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetArtworkAdd.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetArtworkAdd.image": - x.Image = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetArtworkAdd.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetArtworkAdd.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetArtworkAdd.image": - value := x.Image - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtworkAdd.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetArtworkAdd.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetArtworkAdd.image": - x.Image = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtworkAdd.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetArtworkAdd is not mutable")) - case "cardchain.cardchain.MsgSetArtworkAdd.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetArtworkAdd is not mutable")) - case "cardchain.cardchain.MsgSetArtworkAdd.image": - panic(fmt.Errorf("field image of message cardchain.cardchain.MsgSetArtworkAdd is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtworkAdd.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetArtworkAdd.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetArtworkAdd.image": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAdd 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_MsgSetArtworkAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetArtworkAdd", 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_MsgSetArtworkAdd) 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_MsgSetArtworkAdd) 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_MsgSetArtworkAdd) 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_MsgSetArtworkAdd) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetArtworkAdd) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - l = len(x.Image) - 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().(*MsgSetArtworkAdd) - 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.Image) > 0 { - i -= len(x.Image) - copy(dAtA[i:], x.Image) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Image))) - i-- - dAtA[i] = 0x1a - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetArtworkAdd) - 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: MsgSetArtworkAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetArtworkAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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.Image = append(x.Image[:0], dAtA[iNdEx:postIndex]...) - if x.Image == nil { - x.Image = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetArtworkAddResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetArtworkAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetArtworkAddResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetArtworkAddResponse)(nil) - -type fastReflection_MsgSetArtworkAddResponse MsgSetArtworkAddResponse - -func (x *MsgSetArtworkAddResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetArtworkAddResponse)(x) -} - -func (x *MsgSetArtworkAddResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[41] - 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_MsgSetArtworkAddResponse_messageType fastReflection_MsgSetArtworkAddResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetArtworkAddResponse_messageType{} - -type fastReflection_MsgSetArtworkAddResponse_messageType struct{} - -func (x fastReflection_MsgSetArtworkAddResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetArtworkAddResponse)(nil) -} -func (x fastReflection_MsgSetArtworkAddResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetArtworkAddResponse) -} -func (x fastReflection_MsgSetArtworkAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtworkAddResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetArtworkAddResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtworkAddResponse -} - -// 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_MsgSetArtworkAddResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetArtworkAddResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetArtworkAddResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetArtworkAddResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetArtworkAddResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetArtworkAddResponse)(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_MsgSetArtworkAddResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetArtworkAddResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtworkAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtworkAddResponse 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_MsgSetArtworkAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetArtworkAddResponse", 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_MsgSetArtworkAddResponse) 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_MsgSetArtworkAddResponse) 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_MsgSetArtworkAddResponse) 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_MsgSetArtworkAddResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetArtworkAddResponse) - 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().(*MsgSetArtworkAddResponse) - 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().(*MsgSetArtworkAddResponse) - 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: MsgSetArtworkAddResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetArtworkAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetStoryAdd protoreflect.MessageDescriptor - fd_MsgSetStoryAdd_creator protoreflect.FieldDescriptor - fd_MsgSetStoryAdd_setId protoreflect.FieldDescriptor - fd_MsgSetStoryAdd_story protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetStoryAdd = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetStoryAdd") - fd_MsgSetStoryAdd_creator = md_MsgSetStoryAdd.Fields().ByName("creator") - fd_MsgSetStoryAdd_setId = md_MsgSetStoryAdd.Fields().ByName("setId") - fd_MsgSetStoryAdd_story = md_MsgSetStoryAdd.Fields().ByName("story") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetStoryAdd)(nil) - -type fastReflection_MsgSetStoryAdd MsgSetStoryAdd - -func (x *MsgSetStoryAdd) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetStoryAdd)(x) -} - -func (x *MsgSetStoryAdd) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[42] - 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_MsgSetStoryAdd_messageType fastReflection_MsgSetStoryAdd_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetStoryAdd_messageType{} - -type fastReflection_MsgSetStoryAdd_messageType struct{} - -func (x fastReflection_MsgSetStoryAdd_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetStoryAdd)(nil) -} -func (x fastReflection_MsgSetStoryAdd_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryAdd) -} -func (x fastReflection_MsgSetStoryAdd_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryAdd -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetStoryAdd) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryAdd -} - -// 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_MsgSetStoryAdd) Type() protoreflect.MessageType { - return _fastReflection_MsgSetStoryAdd_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetStoryAdd) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryAdd) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetStoryAdd) Interface() protoreflect.ProtoMessage { - return (*MsgSetStoryAdd)(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_MsgSetStoryAdd) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetStoryAdd_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetStoryAdd_setId, value) { - return - } - } - if x.Story != "" { - value := protoreflect.ValueOfString(x.Story) - if !f(fd_MsgSetStoryAdd_story, 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_MsgSetStoryAdd) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryAdd.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetStoryAdd.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetStoryAdd.story": - return x.Story != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryAdd.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetStoryAdd.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetStoryAdd.story": - x.Story = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetStoryAdd.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetStoryAdd.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetStoryAdd.story": - value := x.Story - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryAdd.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetStoryAdd.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetStoryAdd.story": - x.Story = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryAdd.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetStoryAdd is not mutable")) - case "cardchain.cardchain.MsgSetStoryAdd.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetStoryAdd is not mutable")) - case "cardchain.cardchain.MsgSetStoryAdd.story": - panic(fmt.Errorf("field story of message cardchain.cardchain.MsgSetStoryAdd is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryAdd.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetStoryAdd.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetStoryAdd.story": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAdd")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAdd 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_MsgSetStoryAdd) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetStoryAdd", 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_MsgSetStoryAdd) 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_MsgSetStoryAdd) 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_MsgSetStoryAdd) 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_MsgSetStoryAdd) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetStoryAdd) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - l = len(x.Story) - 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().(*MsgSetStoryAdd) - 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.Story) > 0 { - i -= len(x.Story) - copy(dAtA[i:], x.Story) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Story))) - i-- - dAtA[i] = 0x1a - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetStoryAdd) - 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: MsgSetStoryAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetStoryAdd: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Story", 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.Story = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetStoryAddResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetStoryAddResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetStoryAddResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetStoryAddResponse)(nil) - -type fastReflection_MsgSetStoryAddResponse MsgSetStoryAddResponse - -func (x *MsgSetStoryAddResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetStoryAddResponse)(x) -} - -func (x *MsgSetStoryAddResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[43] - 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_MsgSetStoryAddResponse_messageType fastReflection_MsgSetStoryAddResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetStoryAddResponse_messageType{} - -type fastReflection_MsgSetStoryAddResponse_messageType struct{} - -func (x fastReflection_MsgSetStoryAddResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetStoryAddResponse)(nil) -} -func (x fastReflection_MsgSetStoryAddResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryAddResponse) -} -func (x fastReflection_MsgSetStoryAddResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryAddResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetStoryAddResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryAddResponse -} - -// 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_MsgSetStoryAddResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetStoryAddResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetStoryAddResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryAddResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetStoryAddResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetStoryAddResponse)(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_MsgSetStoryAddResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetStoryAddResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryAddResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryAddResponse 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_MsgSetStoryAddResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetStoryAddResponse", 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_MsgSetStoryAddResponse) 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_MsgSetStoryAddResponse) 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_MsgSetStoryAddResponse) 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_MsgSetStoryAddResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetStoryAddResponse) - 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().(*MsgSetStoryAddResponse) - 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().(*MsgSetStoryAddResponse) - 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: MsgSetStoryAddResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetStoryAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgBoosterPackBuy protoreflect.MessageDescriptor - fd_MsgBoosterPackBuy_creator protoreflect.FieldDescriptor - fd_MsgBoosterPackBuy_setId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgBoosterPackBuy = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackBuy") - fd_MsgBoosterPackBuy_creator = md_MsgBoosterPackBuy.Fields().ByName("creator") - fd_MsgBoosterPackBuy_setId = md_MsgBoosterPackBuy.Fields().ByName("setId") -} - -var _ protoreflect.Message = (*fastReflection_MsgBoosterPackBuy)(nil) - -type fastReflection_MsgBoosterPackBuy MsgBoosterPackBuy - -func (x *MsgBoosterPackBuy) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBoosterPackBuy)(x) -} - -func (x *MsgBoosterPackBuy) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[44] - 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_MsgBoosterPackBuy_messageType fastReflection_MsgBoosterPackBuy_messageType -var _ protoreflect.MessageType = fastReflection_MsgBoosterPackBuy_messageType{} - -type fastReflection_MsgBoosterPackBuy_messageType struct{} - -func (x fastReflection_MsgBoosterPackBuy_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBoosterPackBuy)(nil) -} -func (x fastReflection_MsgBoosterPackBuy_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackBuy) -} -func (x fastReflection_MsgBoosterPackBuy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackBuy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBoosterPackBuy) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackBuy -} - -// 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_MsgBoosterPackBuy) Type() protoreflect.MessageType { - return _fastReflection_MsgBoosterPackBuy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBoosterPackBuy) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackBuy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBoosterPackBuy) Interface() protoreflect.ProtoMessage { - return (*MsgBoosterPackBuy)(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_MsgBoosterPackBuy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgBoosterPackBuy_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgBoosterPackBuy_setId, 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_MsgBoosterPackBuy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuy.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgBoosterPackBuy.setId": - return x.SetId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuy.creator": - x.Creator = "" - case "cardchain.cardchain.MsgBoosterPackBuy.setId": - x.SetId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuy.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgBoosterPackBuy.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuy.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgBoosterPackBuy.setId": - x.SetId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuy.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgBoosterPackBuy is not mutable")) - case "cardchain.cardchain.MsgBoosterPackBuy.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgBoosterPackBuy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuy.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgBoosterPackBuy.setId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuy 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_MsgBoosterPackBuy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackBuy", 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_MsgBoosterPackBuy) 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_MsgBoosterPackBuy) 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_MsgBoosterPackBuy) 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_MsgBoosterPackBuy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBoosterPackBuy) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - 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().(*MsgBoosterPackBuy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgBoosterPackBuy) - 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: MsgBoosterPackBuy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackBuy: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgBoosterPackBuyResponse protoreflect.MessageDescriptor - fd_MsgBoosterPackBuyResponse_airdropClaimed protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgBoosterPackBuyResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackBuyResponse") - fd_MsgBoosterPackBuyResponse_airdropClaimed = md_MsgBoosterPackBuyResponse.Fields().ByName("airdropClaimed") -} - -var _ protoreflect.Message = (*fastReflection_MsgBoosterPackBuyResponse)(nil) - -type fastReflection_MsgBoosterPackBuyResponse MsgBoosterPackBuyResponse - -func (x *MsgBoosterPackBuyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBoosterPackBuyResponse)(x) -} - -func (x *MsgBoosterPackBuyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[45] - 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_MsgBoosterPackBuyResponse_messageType fastReflection_MsgBoosterPackBuyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBoosterPackBuyResponse_messageType{} - -type fastReflection_MsgBoosterPackBuyResponse_messageType struct{} - -func (x fastReflection_MsgBoosterPackBuyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBoosterPackBuyResponse)(nil) -} -func (x fastReflection_MsgBoosterPackBuyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackBuyResponse) -} -func (x fastReflection_MsgBoosterPackBuyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackBuyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBoosterPackBuyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackBuyResponse -} - -// 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_MsgBoosterPackBuyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgBoosterPackBuyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBoosterPackBuyResponse) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackBuyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBoosterPackBuyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBoosterPackBuyResponse)(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_MsgBoosterPackBuyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AirdropClaimed != false { - value := protoreflect.ValueOfBool(x.AirdropClaimed) - if !f(fd_MsgBoosterPackBuyResponse_airdropClaimed, 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_MsgBoosterPackBuyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": - return x.AirdropClaimed != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": - x.AirdropClaimed = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": - value := x.AirdropClaimed - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": - x.AirdropClaimed = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": - panic(fmt.Errorf("field airdropClaimed of message cardchain.cardchain.MsgBoosterPackBuyResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackBuyResponse.airdropClaimed": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackBuyResponse 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_MsgBoosterPackBuyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackBuyResponse", 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_MsgBoosterPackBuyResponse) 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_MsgBoosterPackBuyResponse) 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_MsgBoosterPackBuyResponse) 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_MsgBoosterPackBuyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBoosterPackBuyResponse) - 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.AirdropClaimed { - n += 2 - } - 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().(*MsgBoosterPackBuyResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.AirdropClaimed { - i-- - if x.AirdropClaimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - 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().(*MsgBoosterPackBuyResponse) - 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: MsgBoosterPackBuyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackBuyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.AirdropClaimed = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSellOfferCreate protoreflect.MessageDescriptor - fd_MsgSellOfferCreate_creator protoreflect.FieldDescriptor - fd_MsgSellOfferCreate_cardId protoreflect.FieldDescriptor - fd_MsgSellOfferCreate_price protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSellOfferCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferCreate") - fd_MsgSellOfferCreate_creator = md_MsgSellOfferCreate.Fields().ByName("creator") - fd_MsgSellOfferCreate_cardId = md_MsgSellOfferCreate.Fields().ByName("cardId") - fd_MsgSellOfferCreate_price = md_MsgSellOfferCreate.Fields().ByName("price") -} - -var _ protoreflect.Message = (*fastReflection_MsgSellOfferCreate)(nil) - -type fastReflection_MsgSellOfferCreate MsgSellOfferCreate - -func (x *MsgSellOfferCreate) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSellOfferCreate)(x) -} - -func (x *MsgSellOfferCreate) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[46] - 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_MsgSellOfferCreate_messageType fastReflection_MsgSellOfferCreate_messageType -var _ protoreflect.MessageType = fastReflection_MsgSellOfferCreate_messageType{} - -type fastReflection_MsgSellOfferCreate_messageType struct{} - -func (x fastReflection_MsgSellOfferCreate_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSellOfferCreate)(nil) -} -func (x fastReflection_MsgSellOfferCreate_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferCreate) -} -func (x fastReflection_MsgSellOfferCreate_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferCreate -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSellOfferCreate) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferCreate -} - -// 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_MsgSellOfferCreate) Type() protoreflect.MessageType { - return _fastReflection_MsgSellOfferCreate_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSellOfferCreate) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferCreate) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSellOfferCreate) Interface() protoreflect.ProtoMessage { - return (*MsgSellOfferCreate)(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_MsgSellOfferCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSellOfferCreate_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgSellOfferCreate_cardId, value) { - return - } - } - if x.Price != nil { - value := protoreflect.ValueOfMessage(x.Price.ProtoReflect()) - if !f(fd_MsgSellOfferCreate_price, 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_MsgSellOfferCreate) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferCreate.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSellOfferCreate.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.MsgSellOfferCreate.price": - return x.Price != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferCreate.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSellOfferCreate.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.MsgSellOfferCreate.price": - x.Price = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSellOfferCreate.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSellOfferCreate.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSellOfferCreate.price": - value := x.Price - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferCreate.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSellOfferCreate.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.MsgSellOfferCreate.price": - x.Price = value.Message().Interface().(*v1beta1.Coin) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferCreate.price": - if x.Price == nil { - x.Price = new(v1beta1.Coin) - } - return protoreflect.ValueOfMessage(x.Price.ProtoReflect()) - case "cardchain.cardchain.MsgSellOfferCreate.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSellOfferCreate is not mutable")) - case "cardchain.cardchain.MsgSellOfferCreate.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgSellOfferCreate is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferCreate.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSellOfferCreate.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSellOfferCreate.price": - m := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreate 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_MsgSellOfferCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferCreate", 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_MsgSellOfferCreate) 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_MsgSellOfferCreate) 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_MsgSellOfferCreate) 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_MsgSellOfferCreate) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSellOfferCreate) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - if x.Price != nil { - l = options.Size(x.Price) - 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().(*MsgSellOfferCreate) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Price != nil { - encoded, err := options.Marshal(x.Price) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSellOfferCreate) - 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: MsgSellOfferCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferCreate: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Price == nil { - x.Price = &v1beta1.Coin{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Price); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSellOfferCreateResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSellOfferCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferCreateResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSellOfferCreateResponse)(nil) - -type fastReflection_MsgSellOfferCreateResponse MsgSellOfferCreateResponse - -func (x *MsgSellOfferCreateResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSellOfferCreateResponse)(x) -} - -func (x *MsgSellOfferCreateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[47] - 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_MsgSellOfferCreateResponse_messageType fastReflection_MsgSellOfferCreateResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSellOfferCreateResponse_messageType{} - -type fastReflection_MsgSellOfferCreateResponse_messageType struct{} - -func (x fastReflection_MsgSellOfferCreateResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSellOfferCreateResponse)(nil) -} -func (x fastReflection_MsgSellOfferCreateResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferCreateResponse) -} -func (x fastReflection_MsgSellOfferCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferCreateResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSellOfferCreateResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferCreateResponse -} - -// 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_MsgSellOfferCreateResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSellOfferCreateResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSellOfferCreateResponse) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferCreateResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSellOfferCreateResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSellOfferCreateResponse)(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_MsgSellOfferCreateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSellOfferCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferCreateResponse 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_MsgSellOfferCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferCreateResponse", 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_MsgSellOfferCreateResponse) 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_MsgSellOfferCreateResponse) 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_MsgSellOfferCreateResponse) 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_MsgSellOfferCreateResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSellOfferCreateResponse) - 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().(*MsgSellOfferCreateResponse) - 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().(*MsgSellOfferCreateResponse) - 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: MsgSellOfferCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSellOfferBuy protoreflect.MessageDescriptor - fd_MsgSellOfferBuy_creator protoreflect.FieldDescriptor - fd_MsgSellOfferBuy_sellOfferId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSellOfferBuy = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferBuy") - fd_MsgSellOfferBuy_creator = md_MsgSellOfferBuy.Fields().ByName("creator") - fd_MsgSellOfferBuy_sellOfferId = md_MsgSellOfferBuy.Fields().ByName("sellOfferId") -} - -var _ protoreflect.Message = (*fastReflection_MsgSellOfferBuy)(nil) - -type fastReflection_MsgSellOfferBuy MsgSellOfferBuy - -func (x *MsgSellOfferBuy) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSellOfferBuy)(x) -} - -func (x *MsgSellOfferBuy) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[48] - 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_MsgSellOfferBuy_messageType fastReflection_MsgSellOfferBuy_messageType -var _ protoreflect.MessageType = fastReflection_MsgSellOfferBuy_messageType{} - -type fastReflection_MsgSellOfferBuy_messageType struct{} - -func (x fastReflection_MsgSellOfferBuy_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSellOfferBuy)(nil) -} -func (x fastReflection_MsgSellOfferBuy_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferBuy) -} -func (x fastReflection_MsgSellOfferBuy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferBuy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSellOfferBuy) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferBuy -} - -// 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_MsgSellOfferBuy) Type() protoreflect.MessageType { - return _fastReflection_MsgSellOfferBuy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSellOfferBuy) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferBuy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSellOfferBuy) Interface() protoreflect.ProtoMessage { - return (*MsgSellOfferBuy)(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_MsgSellOfferBuy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSellOfferBuy_creator, value) { - return - } - } - if x.SellOfferId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SellOfferId) - if !f(fd_MsgSellOfferBuy_sellOfferId, 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_MsgSellOfferBuy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferBuy.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": - return x.SellOfferId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferBuy.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": - x.SellOfferId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSellOfferBuy.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": - value := x.SellOfferId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferBuy.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": - x.SellOfferId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferBuy.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSellOfferBuy is not mutable")) - case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": - panic(fmt.Errorf("field sellOfferId of message cardchain.cardchain.MsgSellOfferBuy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferBuy.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSellOfferBuy.sellOfferId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuy")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuy 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_MsgSellOfferBuy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferBuy", 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_MsgSellOfferBuy) 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_MsgSellOfferBuy) 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_MsgSellOfferBuy) 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_MsgSellOfferBuy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSellOfferBuy) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SellOfferId != 0 { - n += 1 + runtime.Sov(uint64(x.SellOfferId)) - } - 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().(*MsgSellOfferBuy) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SellOfferId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SellOfferId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSellOfferBuy) - 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: MsgSellOfferBuy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferBuy: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOfferId", wireType) - } - x.SellOfferId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SellOfferId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSellOfferBuyResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSellOfferBuyResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferBuyResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSellOfferBuyResponse)(nil) - -type fastReflection_MsgSellOfferBuyResponse MsgSellOfferBuyResponse - -func (x *MsgSellOfferBuyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSellOfferBuyResponse)(x) -} - -func (x *MsgSellOfferBuyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[49] - 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_MsgSellOfferBuyResponse_messageType fastReflection_MsgSellOfferBuyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSellOfferBuyResponse_messageType{} - -type fastReflection_MsgSellOfferBuyResponse_messageType struct{} - -func (x fastReflection_MsgSellOfferBuyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSellOfferBuyResponse)(nil) -} -func (x fastReflection_MsgSellOfferBuyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferBuyResponse) -} -func (x fastReflection_MsgSellOfferBuyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferBuyResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSellOfferBuyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferBuyResponse -} - -// 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_MsgSellOfferBuyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSellOfferBuyResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSellOfferBuyResponse) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferBuyResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSellOfferBuyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSellOfferBuyResponse)(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_MsgSellOfferBuyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSellOfferBuyResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferBuyResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferBuyResponse 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_MsgSellOfferBuyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferBuyResponse", 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_MsgSellOfferBuyResponse) 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_MsgSellOfferBuyResponse) 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_MsgSellOfferBuyResponse) 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_MsgSellOfferBuyResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSellOfferBuyResponse) - 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().(*MsgSellOfferBuyResponse) - 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().(*MsgSellOfferBuyResponse) - 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: MsgSellOfferBuyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferBuyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSellOfferRemove protoreflect.MessageDescriptor - fd_MsgSellOfferRemove_creator protoreflect.FieldDescriptor - fd_MsgSellOfferRemove_sellOfferId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSellOfferRemove = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferRemove") - fd_MsgSellOfferRemove_creator = md_MsgSellOfferRemove.Fields().ByName("creator") - fd_MsgSellOfferRemove_sellOfferId = md_MsgSellOfferRemove.Fields().ByName("sellOfferId") -} - -var _ protoreflect.Message = (*fastReflection_MsgSellOfferRemove)(nil) - -type fastReflection_MsgSellOfferRemove MsgSellOfferRemove - -func (x *MsgSellOfferRemove) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSellOfferRemove)(x) -} - -func (x *MsgSellOfferRemove) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[50] - 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_MsgSellOfferRemove_messageType fastReflection_MsgSellOfferRemove_messageType -var _ protoreflect.MessageType = fastReflection_MsgSellOfferRemove_messageType{} - -type fastReflection_MsgSellOfferRemove_messageType struct{} - -func (x fastReflection_MsgSellOfferRemove_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSellOfferRemove)(nil) -} -func (x fastReflection_MsgSellOfferRemove_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferRemove) -} -func (x fastReflection_MsgSellOfferRemove_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferRemove -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSellOfferRemove) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferRemove -} - -// 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_MsgSellOfferRemove) Type() protoreflect.MessageType { - return _fastReflection_MsgSellOfferRemove_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSellOfferRemove) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferRemove) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSellOfferRemove) Interface() protoreflect.ProtoMessage { - return (*MsgSellOfferRemove)(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_MsgSellOfferRemove) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSellOfferRemove_creator, value) { - return - } - } - if x.SellOfferId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SellOfferId) - if !f(fd_MsgSellOfferRemove_sellOfferId, 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_MsgSellOfferRemove) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferRemove.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": - return x.SellOfferId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferRemove.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": - x.SellOfferId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSellOfferRemove.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": - value := x.SellOfferId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferRemove.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": - x.SellOfferId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferRemove.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSellOfferRemove is not mutable")) - case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": - panic(fmt.Errorf("field sellOfferId of message cardchain.cardchain.MsgSellOfferRemove is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSellOfferRemove.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSellOfferRemove.sellOfferId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemove")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemove 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_MsgSellOfferRemove) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferRemove", 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_MsgSellOfferRemove) 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_MsgSellOfferRemove) 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_MsgSellOfferRemove) 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_MsgSellOfferRemove) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSellOfferRemove) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SellOfferId != 0 { - n += 1 + runtime.Sov(uint64(x.SellOfferId)) - } - 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().(*MsgSellOfferRemove) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SellOfferId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SellOfferId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSellOfferRemove) - 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: MsgSellOfferRemove: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferRemove: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellOfferId", wireType) - } - x.SellOfferId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SellOfferId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSellOfferRemoveResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSellOfferRemoveResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSellOfferRemoveResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSellOfferRemoveResponse)(nil) - -type fastReflection_MsgSellOfferRemoveResponse MsgSellOfferRemoveResponse - -func (x *MsgSellOfferRemoveResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSellOfferRemoveResponse)(x) -} - -func (x *MsgSellOfferRemoveResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[51] - 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_MsgSellOfferRemoveResponse_messageType fastReflection_MsgSellOfferRemoveResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSellOfferRemoveResponse_messageType{} - -type fastReflection_MsgSellOfferRemoveResponse_messageType struct{} - -func (x fastReflection_MsgSellOfferRemoveResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSellOfferRemoveResponse)(nil) -} -func (x fastReflection_MsgSellOfferRemoveResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferRemoveResponse) -} -func (x fastReflection_MsgSellOfferRemoveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferRemoveResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSellOfferRemoveResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSellOfferRemoveResponse -} - -// 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_MsgSellOfferRemoveResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSellOfferRemoveResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSellOfferRemoveResponse) New() protoreflect.Message { - return new(fastReflection_MsgSellOfferRemoveResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSellOfferRemoveResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSellOfferRemoveResponse)(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_MsgSellOfferRemoveResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSellOfferRemoveResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSellOfferRemoveResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSellOfferRemoveResponse 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_MsgSellOfferRemoveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSellOfferRemoveResponse", 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_MsgSellOfferRemoveResponse) 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_MsgSellOfferRemoveResponse) 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_MsgSellOfferRemoveResponse) 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_MsgSellOfferRemoveResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSellOfferRemoveResponse) - 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().(*MsgSellOfferRemoveResponse) - 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().(*MsgSellOfferRemoveResponse) - 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: MsgSellOfferRemoveResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSellOfferRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardRaritySet protoreflect.MessageDescriptor - fd_MsgCardRaritySet_creator protoreflect.FieldDescriptor - fd_MsgCardRaritySet_cardId protoreflect.FieldDescriptor - fd_MsgCardRaritySet_setId protoreflect.FieldDescriptor - fd_MsgCardRaritySet_rarity protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardRaritySet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardRaritySet") - fd_MsgCardRaritySet_creator = md_MsgCardRaritySet.Fields().ByName("creator") - fd_MsgCardRaritySet_cardId = md_MsgCardRaritySet.Fields().ByName("cardId") - fd_MsgCardRaritySet_setId = md_MsgCardRaritySet.Fields().ByName("setId") - fd_MsgCardRaritySet_rarity = md_MsgCardRaritySet.Fields().ByName("rarity") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardRaritySet)(nil) - -type fastReflection_MsgCardRaritySet MsgCardRaritySet - -func (x *MsgCardRaritySet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardRaritySet)(x) -} - -func (x *MsgCardRaritySet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[52] - 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_MsgCardRaritySet_messageType fastReflection_MsgCardRaritySet_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardRaritySet_messageType{} - -type fastReflection_MsgCardRaritySet_messageType struct{} - -func (x fastReflection_MsgCardRaritySet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardRaritySet)(nil) -} -func (x fastReflection_MsgCardRaritySet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardRaritySet) -} -func (x fastReflection_MsgCardRaritySet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardRaritySet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardRaritySet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardRaritySet -} - -// 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_MsgCardRaritySet) Type() protoreflect.MessageType { - return _fastReflection_MsgCardRaritySet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardRaritySet) New() protoreflect.Message { - return new(fastReflection_MsgCardRaritySet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardRaritySet) Interface() protoreflect.ProtoMessage { - return (*MsgCardRaritySet)(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_MsgCardRaritySet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardRaritySet_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardRaritySet_cardId, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgCardRaritySet_setId, value) { - return - } - } - if x.Rarity != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Rarity)) - if !f(fd_MsgCardRaritySet_rarity, 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_MsgCardRaritySet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardRaritySet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardRaritySet.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.MsgCardRaritySet.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgCardRaritySet.rarity": - return x.Rarity != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySet 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_MsgCardRaritySet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardRaritySet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardRaritySet.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.MsgCardRaritySet.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgCardRaritySet.rarity": - x.Rarity = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySet 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_MsgCardRaritySet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardRaritySet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardRaritySet.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCardRaritySet.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCardRaritySet.rarity": - value := x.Rarity - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySet 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_MsgCardRaritySet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardRaritySet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardRaritySet.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.MsgCardRaritySet.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgCardRaritySet.rarity": - x.Rarity = (CardRarity)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySet 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_MsgCardRaritySet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardRaritySet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardRaritySet is not mutable")) - case "cardchain.cardchain.MsgCardRaritySet.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardRaritySet is not mutable")) - case "cardchain.cardchain.MsgCardRaritySet.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgCardRaritySet is not mutable")) - case "cardchain.cardchain.MsgCardRaritySet.rarity": - panic(fmt.Errorf("field rarity of message cardchain.cardchain.MsgCardRaritySet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySet 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_MsgCardRaritySet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardRaritySet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardRaritySet.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCardRaritySet.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCardRaritySet.rarity": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySet 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_MsgCardRaritySet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardRaritySet", 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_MsgCardRaritySet) 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_MsgCardRaritySet) 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_MsgCardRaritySet) 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_MsgCardRaritySet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardRaritySet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - if x.Rarity != 0 { - n += 1 + runtime.Sov(uint64(x.Rarity)) - } - 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().(*MsgCardRaritySet) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Rarity != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Rarity)) - i-- - dAtA[i] = 0x20 - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x18 - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardRaritySet) - 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: MsgCardRaritySet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardRaritySet: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Rarity", wireType) - } - x.Rarity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Rarity |= CardRarity(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardRaritySetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardRaritySetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardRaritySetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardRaritySetResponse)(nil) - -type fastReflection_MsgCardRaritySetResponse MsgCardRaritySetResponse - -func (x *MsgCardRaritySetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardRaritySetResponse)(x) -} - -func (x *MsgCardRaritySetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[53] - 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_MsgCardRaritySetResponse_messageType fastReflection_MsgCardRaritySetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardRaritySetResponse_messageType{} - -type fastReflection_MsgCardRaritySetResponse_messageType struct{} - -func (x fastReflection_MsgCardRaritySetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardRaritySetResponse)(nil) -} -func (x fastReflection_MsgCardRaritySetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardRaritySetResponse) -} -func (x fastReflection_MsgCardRaritySetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardRaritySetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardRaritySetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardRaritySetResponse -} - -// 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_MsgCardRaritySetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardRaritySetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardRaritySetResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardRaritySetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardRaritySetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardRaritySetResponse)(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_MsgCardRaritySetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCardRaritySetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySetResponse 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_MsgCardRaritySetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySetResponse 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_MsgCardRaritySetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySetResponse 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_MsgCardRaritySetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySetResponse 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_MsgCardRaritySetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySetResponse 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_MsgCardRaritySetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardRaritySetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardRaritySetResponse 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_MsgCardRaritySetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardRaritySetResponse", 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_MsgCardRaritySetResponse) 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_MsgCardRaritySetResponse) 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_MsgCardRaritySetResponse) 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_MsgCardRaritySetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardRaritySetResponse) - 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().(*MsgCardRaritySetResponse) - 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().(*MsgCardRaritySetResponse) - 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: MsgCardRaritySetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardRaritySetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilResponseCommit protoreflect.MessageDescriptor - fd_MsgCouncilResponseCommit_creator protoreflect.FieldDescriptor - fd_MsgCouncilResponseCommit_councilId protoreflect.FieldDescriptor - fd_MsgCouncilResponseCommit_response protoreflect.FieldDescriptor - fd_MsgCouncilResponseCommit_suggestion protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilResponseCommit = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilResponseCommit") - fd_MsgCouncilResponseCommit_creator = md_MsgCouncilResponseCommit.Fields().ByName("creator") - fd_MsgCouncilResponseCommit_councilId = md_MsgCouncilResponseCommit.Fields().ByName("councilId") - fd_MsgCouncilResponseCommit_response = md_MsgCouncilResponseCommit.Fields().ByName("response") - fd_MsgCouncilResponseCommit_suggestion = md_MsgCouncilResponseCommit.Fields().ByName("suggestion") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilResponseCommit)(nil) - -type fastReflection_MsgCouncilResponseCommit MsgCouncilResponseCommit - -func (x *MsgCouncilResponseCommit) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseCommit)(x) -} - -func (x *MsgCouncilResponseCommit) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[54] - 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_MsgCouncilResponseCommit_messageType fastReflection_MsgCouncilResponseCommit_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilResponseCommit_messageType{} - -type fastReflection_MsgCouncilResponseCommit_messageType struct{} - -func (x fastReflection_MsgCouncilResponseCommit_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseCommit)(nil) -} -func (x fastReflection_MsgCouncilResponseCommit_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseCommit) -} -func (x fastReflection_MsgCouncilResponseCommit_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseCommit -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilResponseCommit) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseCommit -} - -// 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_MsgCouncilResponseCommit) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilResponseCommit_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilResponseCommit) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseCommit) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilResponseCommit) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilResponseCommit)(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_MsgCouncilResponseCommit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCouncilResponseCommit_creator, value) { - return - } - } - if x.CouncilId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CouncilId) - if !f(fd_MsgCouncilResponseCommit_councilId, value) { - return - } - } - if x.Response != "" { - value := protoreflect.ValueOfString(x.Response) - if !f(fd_MsgCouncilResponseCommit_response, value) { - return - } - } - if x.Suggestion != "" { - value := protoreflect.ValueOfString(x.Suggestion) - if !f(fd_MsgCouncilResponseCommit_suggestion, 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_MsgCouncilResponseCommit) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseCommit.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCouncilResponseCommit.councilId": - return x.CouncilId != uint64(0) - case "cardchain.cardchain.MsgCouncilResponseCommit.response": - return x.Response != "" - case "cardchain.cardchain.MsgCouncilResponseCommit.suggestion": - return x.Suggestion != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommit")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommit 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_MsgCouncilResponseCommit) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseCommit.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCouncilResponseCommit.councilId": - x.CouncilId = uint64(0) - case "cardchain.cardchain.MsgCouncilResponseCommit.response": - x.Response = "" - case "cardchain.cardchain.MsgCouncilResponseCommit.suggestion": - x.Suggestion = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommit")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommit 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_MsgCouncilResponseCommit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCouncilResponseCommit.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCouncilResponseCommit.councilId": - value := x.CouncilId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCouncilResponseCommit.response": - value := x.Response - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCouncilResponseCommit.suggestion": - value := x.Suggestion - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommit")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommit 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_MsgCouncilResponseCommit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseCommit.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCouncilResponseCommit.councilId": - x.CouncilId = value.Uint() - case "cardchain.cardchain.MsgCouncilResponseCommit.response": - x.Response = value.Interface().(string) - case "cardchain.cardchain.MsgCouncilResponseCommit.suggestion": - x.Suggestion = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommit")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommit 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_MsgCouncilResponseCommit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseCommit.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilResponseCommit is not mutable")) - case "cardchain.cardchain.MsgCouncilResponseCommit.councilId": - panic(fmt.Errorf("field councilId of message cardchain.cardchain.MsgCouncilResponseCommit is not mutable")) - case "cardchain.cardchain.MsgCouncilResponseCommit.response": - panic(fmt.Errorf("field response of message cardchain.cardchain.MsgCouncilResponseCommit is not mutable")) - case "cardchain.cardchain.MsgCouncilResponseCommit.suggestion": - panic(fmt.Errorf("field suggestion of message cardchain.cardchain.MsgCouncilResponseCommit is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommit")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommit 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_MsgCouncilResponseCommit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseCommit.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCouncilResponseCommit.councilId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCouncilResponseCommit.response": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCouncilResponseCommit.suggestion": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommit")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommit 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_MsgCouncilResponseCommit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilResponseCommit", 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_MsgCouncilResponseCommit) 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_MsgCouncilResponseCommit) 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_MsgCouncilResponseCommit) 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_MsgCouncilResponseCommit) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilResponseCommit) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CouncilId != 0 { - n += 1 + runtime.Sov(uint64(x.CouncilId)) - } - l = len(x.Response) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Suggestion) - 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().(*MsgCouncilResponseCommit) - 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.Suggestion) > 0 { - i -= len(x.Suggestion) - copy(dAtA[i:], x.Suggestion) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Suggestion))) - i-- - dAtA[i] = 0x22 - } - if len(x.Response) > 0 { - i -= len(x.Response) - copy(dAtA[i:], x.Response) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Response))) - i-- - dAtA[i] = 0x1a - } - if x.CouncilId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CouncilId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCouncilResponseCommit) - 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: MsgCouncilResponseCommit: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilResponseCommit: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CouncilId", wireType) - } - x.CouncilId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CouncilId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Response", 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.Response = 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 Suggestion", 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.Suggestion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilResponseCommitResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilResponseCommitResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilResponseCommitResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilResponseCommitResponse)(nil) - -type fastReflection_MsgCouncilResponseCommitResponse MsgCouncilResponseCommitResponse - -func (x *MsgCouncilResponseCommitResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseCommitResponse)(x) -} - -func (x *MsgCouncilResponseCommitResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[55] - 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_MsgCouncilResponseCommitResponse_messageType fastReflection_MsgCouncilResponseCommitResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilResponseCommitResponse_messageType{} - -type fastReflection_MsgCouncilResponseCommitResponse_messageType struct{} - -func (x fastReflection_MsgCouncilResponseCommitResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseCommitResponse)(nil) -} -func (x fastReflection_MsgCouncilResponseCommitResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseCommitResponse) -} -func (x fastReflection_MsgCouncilResponseCommitResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseCommitResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilResponseCommitResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseCommitResponse -} - -// 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_MsgCouncilResponseCommitResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilResponseCommitResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilResponseCommitResponse) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseCommitResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilResponseCommitResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilResponseCommitResponse)(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_MsgCouncilResponseCommitResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCouncilResponseCommitResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommitResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommitResponse 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_MsgCouncilResponseCommitResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommitResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommitResponse 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_MsgCouncilResponseCommitResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommitResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommitResponse 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_MsgCouncilResponseCommitResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommitResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommitResponse 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_MsgCouncilResponseCommitResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommitResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommitResponse 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_MsgCouncilResponseCommitResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseCommitResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseCommitResponse 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_MsgCouncilResponseCommitResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilResponseCommitResponse", 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_MsgCouncilResponseCommitResponse) 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_MsgCouncilResponseCommitResponse) 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_MsgCouncilResponseCommitResponse) 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_MsgCouncilResponseCommitResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilResponseCommitResponse) - 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().(*MsgCouncilResponseCommitResponse) - 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().(*MsgCouncilResponseCommitResponse) - 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: MsgCouncilResponseCommitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilResponseCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilResponseReveal protoreflect.MessageDescriptor - fd_MsgCouncilResponseReveal_creator protoreflect.FieldDescriptor - fd_MsgCouncilResponseReveal_councilId protoreflect.FieldDescriptor - fd_MsgCouncilResponseReveal_response protoreflect.FieldDescriptor - fd_MsgCouncilResponseReveal_secret protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilResponseReveal = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilResponseReveal") - fd_MsgCouncilResponseReveal_creator = md_MsgCouncilResponseReveal.Fields().ByName("creator") - fd_MsgCouncilResponseReveal_councilId = md_MsgCouncilResponseReveal.Fields().ByName("councilId") - fd_MsgCouncilResponseReveal_response = md_MsgCouncilResponseReveal.Fields().ByName("response") - fd_MsgCouncilResponseReveal_secret = md_MsgCouncilResponseReveal.Fields().ByName("secret") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilResponseReveal)(nil) - -type fastReflection_MsgCouncilResponseReveal MsgCouncilResponseReveal - -func (x *MsgCouncilResponseReveal) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseReveal)(x) -} - -func (x *MsgCouncilResponseReveal) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[56] - 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_MsgCouncilResponseReveal_messageType fastReflection_MsgCouncilResponseReveal_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilResponseReveal_messageType{} - -type fastReflection_MsgCouncilResponseReveal_messageType struct{} - -func (x fastReflection_MsgCouncilResponseReveal_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseReveal)(nil) -} -func (x fastReflection_MsgCouncilResponseReveal_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseReveal) -} -func (x fastReflection_MsgCouncilResponseReveal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseReveal -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilResponseReveal) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseReveal -} - -// 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_MsgCouncilResponseReveal) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilResponseReveal_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilResponseReveal) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseReveal) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilResponseReveal) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilResponseReveal)(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_MsgCouncilResponseReveal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCouncilResponseReveal_creator, value) { - return - } - } - if x.CouncilId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CouncilId) - if !f(fd_MsgCouncilResponseReveal_councilId, value) { - return - } - } - if x.Response != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Response)) - if !f(fd_MsgCouncilResponseReveal_response, value) { - return - } - } - if x.Secret != "" { - value := protoreflect.ValueOfString(x.Secret) - if !f(fd_MsgCouncilResponseReveal_secret, 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_MsgCouncilResponseReveal) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseReveal.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCouncilResponseReveal.councilId": - return x.CouncilId != uint64(0) - case "cardchain.cardchain.MsgCouncilResponseReveal.response": - return x.Response != 0 - case "cardchain.cardchain.MsgCouncilResponseReveal.secret": - return x.Secret != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseReveal")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseReveal 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_MsgCouncilResponseReveal) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseReveal.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCouncilResponseReveal.councilId": - x.CouncilId = uint64(0) - case "cardchain.cardchain.MsgCouncilResponseReveal.response": - x.Response = 0 - case "cardchain.cardchain.MsgCouncilResponseReveal.secret": - x.Secret = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseReveal")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseReveal 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_MsgCouncilResponseReveal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCouncilResponseReveal.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCouncilResponseReveal.councilId": - value := x.CouncilId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgCouncilResponseReveal.response": - value := x.Response - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.MsgCouncilResponseReveal.secret": - value := x.Secret - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseReveal")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseReveal 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_MsgCouncilResponseReveal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseReveal.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCouncilResponseReveal.councilId": - x.CouncilId = value.Uint() - case "cardchain.cardchain.MsgCouncilResponseReveal.response": - x.Response = (Response)(value.Enum()) - case "cardchain.cardchain.MsgCouncilResponseReveal.secret": - x.Secret = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseReveal")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseReveal 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_MsgCouncilResponseReveal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseReveal.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilResponseReveal is not mutable")) - case "cardchain.cardchain.MsgCouncilResponseReveal.councilId": - panic(fmt.Errorf("field councilId of message cardchain.cardchain.MsgCouncilResponseReveal is not mutable")) - case "cardchain.cardchain.MsgCouncilResponseReveal.response": - panic(fmt.Errorf("field response of message cardchain.cardchain.MsgCouncilResponseReveal is not mutable")) - case "cardchain.cardchain.MsgCouncilResponseReveal.secret": - panic(fmt.Errorf("field secret of message cardchain.cardchain.MsgCouncilResponseReveal is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseReveal")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseReveal 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_MsgCouncilResponseReveal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilResponseReveal.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCouncilResponseReveal.councilId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgCouncilResponseReveal.response": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.MsgCouncilResponseReveal.secret": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseReveal")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseReveal 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_MsgCouncilResponseReveal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilResponseReveal", 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_MsgCouncilResponseReveal) 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_MsgCouncilResponseReveal) 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_MsgCouncilResponseReveal) 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_MsgCouncilResponseReveal) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilResponseReveal) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CouncilId != 0 { - n += 1 + runtime.Sov(uint64(x.CouncilId)) - } - if x.Response != 0 { - n += 1 + runtime.Sov(uint64(x.Response)) - } - l = len(x.Secret) - 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().(*MsgCouncilResponseReveal) - 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.Secret) > 0 { - i -= len(x.Secret) - copy(dAtA[i:], x.Secret) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Secret))) - i-- - dAtA[i] = 0x22 - } - if x.Response != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Response)) - i-- - dAtA[i] = 0x18 - } - if x.CouncilId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CouncilId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCouncilResponseReveal) - 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: MsgCouncilResponseReveal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilResponseReveal: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CouncilId", wireType) - } - x.CouncilId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CouncilId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) - } - x.Response = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Response |= Response(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Secret", 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.Secret = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilResponseRevealResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilResponseRevealResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilResponseRevealResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilResponseRevealResponse)(nil) - -type fastReflection_MsgCouncilResponseRevealResponse MsgCouncilResponseRevealResponse - -func (x *MsgCouncilResponseRevealResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseRevealResponse)(x) -} - -func (x *MsgCouncilResponseRevealResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[57] - 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_MsgCouncilResponseRevealResponse_messageType fastReflection_MsgCouncilResponseRevealResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilResponseRevealResponse_messageType{} - -type fastReflection_MsgCouncilResponseRevealResponse_messageType struct{} - -func (x fastReflection_MsgCouncilResponseRevealResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilResponseRevealResponse)(nil) -} -func (x fastReflection_MsgCouncilResponseRevealResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseRevealResponse) -} -func (x fastReflection_MsgCouncilResponseRevealResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseRevealResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilResponseRevealResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilResponseRevealResponse -} - -// 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_MsgCouncilResponseRevealResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilResponseRevealResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilResponseRevealResponse) New() protoreflect.Message { - return new(fastReflection_MsgCouncilResponseRevealResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilResponseRevealResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilResponseRevealResponse)(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_MsgCouncilResponseRevealResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCouncilResponseRevealResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseRevealResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseRevealResponse 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_MsgCouncilResponseRevealResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseRevealResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseRevealResponse 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_MsgCouncilResponseRevealResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseRevealResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseRevealResponse 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_MsgCouncilResponseRevealResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseRevealResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseRevealResponse 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_MsgCouncilResponseRevealResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseRevealResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseRevealResponse 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_MsgCouncilResponseRevealResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilResponseRevealResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilResponseRevealResponse 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_MsgCouncilResponseRevealResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilResponseRevealResponse", 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_MsgCouncilResponseRevealResponse) 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_MsgCouncilResponseRevealResponse) 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_MsgCouncilResponseRevealResponse) 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_MsgCouncilResponseRevealResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilResponseRevealResponse) - 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().(*MsgCouncilResponseRevealResponse) - 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().(*MsgCouncilResponseRevealResponse) - 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: MsgCouncilResponseRevealResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilResponseRevealResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilRestart protoreflect.MessageDescriptor - fd_MsgCouncilRestart_creator protoreflect.FieldDescriptor - fd_MsgCouncilRestart_councilId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilRestart = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilRestart") - fd_MsgCouncilRestart_creator = md_MsgCouncilRestart.Fields().ByName("creator") - fd_MsgCouncilRestart_councilId = md_MsgCouncilRestart.Fields().ByName("councilId") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilRestart)(nil) - -type fastReflection_MsgCouncilRestart MsgCouncilRestart - -func (x *MsgCouncilRestart) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilRestart)(x) -} - -func (x *MsgCouncilRestart) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[58] - 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_MsgCouncilRestart_messageType fastReflection_MsgCouncilRestart_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilRestart_messageType{} - -type fastReflection_MsgCouncilRestart_messageType struct{} - -func (x fastReflection_MsgCouncilRestart_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilRestart)(nil) -} -func (x fastReflection_MsgCouncilRestart_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRestart) -} -func (x fastReflection_MsgCouncilRestart_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRestart -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilRestart) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRestart -} - -// 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_MsgCouncilRestart) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilRestart_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilRestart) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRestart) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilRestart) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilRestart)(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_MsgCouncilRestart) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCouncilRestart_creator, value) { - return - } - } - if x.CouncilId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CouncilId) - if !f(fd_MsgCouncilRestart_councilId, 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_MsgCouncilRestart) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRestart.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCouncilRestart.councilId": - return x.CouncilId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestart")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestart 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_MsgCouncilRestart) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRestart.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCouncilRestart.councilId": - x.CouncilId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestart")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestart 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_MsgCouncilRestart) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCouncilRestart.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCouncilRestart.councilId": - value := x.CouncilId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestart")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestart 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_MsgCouncilRestart) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRestart.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCouncilRestart.councilId": - x.CouncilId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestart")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestart 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_MsgCouncilRestart) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRestart.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCouncilRestart is not mutable")) - case "cardchain.cardchain.MsgCouncilRestart.councilId": - panic(fmt.Errorf("field councilId of message cardchain.cardchain.MsgCouncilRestart is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestart")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestart 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_MsgCouncilRestart) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCouncilRestart.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCouncilRestart.councilId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestart")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestart 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_MsgCouncilRestart) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilRestart", 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_MsgCouncilRestart) 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_MsgCouncilRestart) 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_MsgCouncilRestart) 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_MsgCouncilRestart) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilRestart) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CouncilId != 0 { - n += 1 + runtime.Sov(uint64(x.CouncilId)) - } - 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().(*MsgCouncilRestart) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CouncilId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CouncilId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCouncilRestart) - 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: MsgCouncilRestart: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilRestart: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CouncilId", wireType) - } - x.CouncilId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CouncilId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCouncilRestartResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCouncilRestartResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCouncilRestartResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCouncilRestartResponse)(nil) - -type fastReflection_MsgCouncilRestartResponse MsgCouncilRestartResponse - -func (x *MsgCouncilRestartResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCouncilRestartResponse)(x) -} - -func (x *MsgCouncilRestartResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[59] - 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_MsgCouncilRestartResponse_messageType fastReflection_MsgCouncilRestartResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCouncilRestartResponse_messageType{} - -type fastReflection_MsgCouncilRestartResponse_messageType struct{} - -func (x fastReflection_MsgCouncilRestartResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCouncilRestartResponse)(nil) -} -func (x fastReflection_MsgCouncilRestartResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRestartResponse) -} -func (x fastReflection_MsgCouncilRestartResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRestartResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCouncilRestartResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCouncilRestartResponse -} - -// 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_MsgCouncilRestartResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCouncilRestartResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCouncilRestartResponse) New() protoreflect.Message { - return new(fastReflection_MsgCouncilRestartResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCouncilRestartResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCouncilRestartResponse)(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_MsgCouncilRestartResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCouncilRestartResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestartResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestartResponse 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_MsgCouncilRestartResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestartResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestartResponse 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_MsgCouncilRestartResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestartResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestartResponse 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_MsgCouncilRestartResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestartResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestartResponse 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_MsgCouncilRestartResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestartResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestartResponse 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_MsgCouncilRestartResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCouncilRestartResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCouncilRestartResponse 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_MsgCouncilRestartResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCouncilRestartResponse", 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_MsgCouncilRestartResponse) 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_MsgCouncilRestartResponse) 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_MsgCouncilRestartResponse) 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_MsgCouncilRestartResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCouncilRestartResponse) - 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().(*MsgCouncilRestartResponse) - 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().(*MsgCouncilRestartResponse) - 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: MsgCouncilRestartResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCouncilRestartResponse: 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 = (*_MsgMatchConfirm_4_list)(nil) - -type _MsgMatchConfirm_4_list struct { - list *[]*SingleVote -} - -func (x *_MsgMatchConfirm_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMatchConfirm_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgMatchConfirm_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SingleVote) - (*x.list)[i] = concreteValue -} - -func (x *_MsgMatchConfirm_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SingleVote) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMatchConfirm_4_list) AppendMutable() protoreflect.Value { - v := new(SingleVote) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMatchConfirm_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgMatchConfirm_4_list) NewElement() protoreflect.Value { - v := new(SingleVote) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgMatchConfirm_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgMatchConfirm protoreflect.MessageDescriptor - fd_MsgMatchConfirm_creator protoreflect.FieldDescriptor - fd_MsgMatchConfirm_matchId protoreflect.FieldDescriptor - fd_MsgMatchConfirm_outcome protoreflect.FieldDescriptor - fd_MsgMatchConfirm_votedCards protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchConfirm = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchConfirm") - fd_MsgMatchConfirm_creator = md_MsgMatchConfirm.Fields().ByName("creator") - fd_MsgMatchConfirm_matchId = md_MsgMatchConfirm.Fields().ByName("matchId") - fd_MsgMatchConfirm_outcome = md_MsgMatchConfirm.Fields().ByName("outcome") - fd_MsgMatchConfirm_votedCards = md_MsgMatchConfirm.Fields().ByName("votedCards") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchConfirm)(nil) - -type fastReflection_MsgMatchConfirm MsgMatchConfirm - -func (x *MsgMatchConfirm) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchConfirm)(x) -} - -func (x *MsgMatchConfirm) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[60] - 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_MsgMatchConfirm_messageType fastReflection_MsgMatchConfirm_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchConfirm_messageType{} - -type fastReflection_MsgMatchConfirm_messageType struct{} - -func (x fastReflection_MsgMatchConfirm_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchConfirm)(nil) -} -func (x fastReflection_MsgMatchConfirm_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchConfirm) -} -func (x fastReflection_MsgMatchConfirm_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchConfirm -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchConfirm) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchConfirm -} - -// 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_MsgMatchConfirm) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchConfirm_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchConfirm) New() protoreflect.Message { - return new(fastReflection_MsgMatchConfirm) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchConfirm) Interface() protoreflect.ProtoMessage { - return (*MsgMatchConfirm)(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_MsgMatchConfirm) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgMatchConfirm_creator, value) { - return - } - } - if x.MatchId != uint64(0) { - value := protoreflect.ValueOfUint64(x.MatchId) - if !f(fd_MsgMatchConfirm_matchId, value) { - return - } - } - if x.Outcome != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Outcome)) - if !f(fd_MsgMatchConfirm_outcome, value) { - return - } - } - if len(x.VotedCards) != 0 { - value := protoreflect.ValueOfList(&_MsgMatchConfirm_4_list{list: &x.VotedCards}) - if !f(fd_MsgMatchConfirm_votedCards, 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_MsgMatchConfirm) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchConfirm.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgMatchConfirm.matchId": - return x.MatchId != uint64(0) - case "cardchain.cardchain.MsgMatchConfirm.outcome": - return x.Outcome != 0 - case "cardchain.cardchain.MsgMatchConfirm.votedCards": - return len(x.VotedCards) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirm")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirm 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_MsgMatchConfirm) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchConfirm.creator": - x.Creator = "" - case "cardchain.cardchain.MsgMatchConfirm.matchId": - x.MatchId = uint64(0) - case "cardchain.cardchain.MsgMatchConfirm.outcome": - x.Outcome = 0 - case "cardchain.cardchain.MsgMatchConfirm.votedCards": - x.VotedCards = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirm")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirm 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_MsgMatchConfirm) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgMatchConfirm.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgMatchConfirm.matchId": - value := x.MatchId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgMatchConfirm.outcome": - value := x.Outcome - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.MsgMatchConfirm.votedCards": - if len(x.VotedCards) == 0 { - return protoreflect.ValueOfList(&_MsgMatchConfirm_4_list{}) - } - listValue := &_MsgMatchConfirm_4_list{list: &x.VotedCards} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirm")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirm 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_MsgMatchConfirm) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchConfirm.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgMatchConfirm.matchId": - x.MatchId = value.Uint() - case "cardchain.cardchain.MsgMatchConfirm.outcome": - x.Outcome = (Outcome)(value.Enum()) - case "cardchain.cardchain.MsgMatchConfirm.votedCards": - lv := value.List() - clv := lv.(*_MsgMatchConfirm_4_list) - x.VotedCards = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirm")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirm 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_MsgMatchConfirm) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchConfirm.votedCards": - if x.VotedCards == nil { - x.VotedCards = []*SingleVote{} - } - value := &_MsgMatchConfirm_4_list{list: &x.VotedCards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgMatchConfirm.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgMatchConfirm is not mutable")) - case "cardchain.cardchain.MsgMatchConfirm.matchId": - panic(fmt.Errorf("field matchId of message cardchain.cardchain.MsgMatchConfirm is not mutable")) - case "cardchain.cardchain.MsgMatchConfirm.outcome": - panic(fmt.Errorf("field outcome of message cardchain.cardchain.MsgMatchConfirm is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirm")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirm 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_MsgMatchConfirm) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchConfirm.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgMatchConfirm.matchId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgMatchConfirm.outcome": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.MsgMatchConfirm.votedCards": - list := []*SingleVote{} - return protoreflect.ValueOfList(&_MsgMatchConfirm_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirm")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirm 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_MsgMatchConfirm) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchConfirm", 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_MsgMatchConfirm) 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_MsgMatchConfirm) 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_MsgMatchConfirm) 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_MsgMatchConfirm) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchConfirm) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.MatchId != 0 { - n += 1 + runtime.Sov(uint64(x.MatchId)) - } - if x.Outcome != 0 { - n += 1 + runtime.Sov(uint64(x.Outcome)) - } - if len(x.VotedCards) > 0 { - for _, e := range x.VotedCards { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgMatchConfirm) - 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.VotedCards) > 0 { - for iNdEx := len(x.VotedCards) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.VotedCards[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if x.Outcome != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Outcome)) - i-- - dAtA[i] = 0x18 - } - if x.MatchId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MatchId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgMatchConfirm) - 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: MsgMatchConfirm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchConfirm: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType) - } - x.MatchId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.MatchId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) - } - x.Outcome = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Outcome |= Outcome(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotedCards", 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.VotedCards = append(x.VotedCards, &SingleVote{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VotedCards[len(x.VotedCards)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgMatchConfirmResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchConfirmResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchConfirmResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchConfirmResponse)(nil) - -type fastReflection_MsgMatchConfirmResponse MsgMatchConfirmResponse - -func (x *MsgMatchConfirmResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchConfirmResponse)(x) -} - -func (x *MsgMatchConfirmResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[61] - 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_MsgMatchConfirmResponse_messageType fastReflection_MsgMatchConfirmResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchConfirmResponse_messageType{} - -type fastReflection_MsgMatchConfirmResponse_messageType struct{} - -func (x fastReflection_MsgMatchConfirmResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchConfirmResponse)(nil) -} -func (x fastReflection_MsgMatchConfirmResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchConfirmResponse) -} -func (x fastReflection_MsgMatchConfirmResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchConfirmResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchConfirmResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchConfirmResponse -} - -// 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_MsgMatchConfirmResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchConfirmResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchConfirmResponse) New() protoreflect.Message { - return new(fastReflection_MsgMatchConfirmResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchConfirmResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMatchConfirmResponse)(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_MsgMatchConfirmResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgMatchConfirmResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirmResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirmResponse 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_MsgMatchConfirmResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirmResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirmResponse 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_MsgMatchConfirmResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirmResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirmResponse 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_MsgMatchConfirmResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirmResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirmResponse 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_MsgMatchConfirmResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirmResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirmResponse 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_MsgMatchConfirmResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchConfirmResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchConfirmResponse 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_MsgMatchConfirmResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchConfirmResponse", 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_MsgMatchConfirmResponse) 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_MsgMatchConfirmResponse) 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_MsgMatchConfirmResponse) 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_MsgMatchConfirmResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchConfirmResponse) - 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().(*MsgMatchConfirmResponse) - 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().(*MsgMatchConfirmResponse) - 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: MsgMatchConfirmResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchConfirmResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileCardSet protoreflect.MessageDescriptor - fd_MsgProfileCardSet_creator protoreflect.FieldDescriptor - fd_MsgProfileCardSet_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileCardSet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileCardSet") - fd_MsgProfileCardSet_creator = md_MsgProfileCardSet.Fields().ByName("creator") - fd_MsgProfileCardSet_cardId = md_MsgProfileCardSet.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileCardSet)(nil) - -type fastReflection_MsgProfileCardSet MsgProfileCardSet - -func (x *MsgProfileCardSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileCardSet)(x) -} - -func (x *MsgProfileCardSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[62] - 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_MsgProfileCardSet_messageType fastReflection_MsgProfileCardSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileCardSet_messageType{} - -type fastReflection_MsgProfileCardSet_messageType struct{} - -func (x fastReflection_MsgProfileCardSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileCardSet)(nil) -} -func (x fastReflection_MsgProfileCardSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileCardSet) -} -func (x fastReflection_MsgProfileCardSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileCardSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileCardSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileCardSet -} - -// 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_MsgProfileCardSet) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileCardSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileCardSet) New() protoreflect.Message { - return new(fastReflection_MsgProfileCardSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileCardSet) Interface() protoreflect.ProtoMessage { - return (*MsgProfileCardSet)(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_MsgProfileCardSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgProfileCardSet_creator, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgProfileCardSet_cardId, 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_MsgProfileCardSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileCardSet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgProfileCardSet.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSet 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_MsgProfileCardSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileCardSet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgProfileCardSet.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSet 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_MsgProfileCardSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgProfileCardSet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgProfileCardSet.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSet 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_MsgProfileCardSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileCardSet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgProfileCardSet.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSet 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_MsgProfileCardSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileCardSet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgProfileCardSet is not mutable")) - case "cardchain.cardchain.MsgProfileCardSet.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgProfileCardSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSet 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_MsgProfileCardSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileCardSet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgProfileCardSet.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSet 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_MsgProfileCardSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileCardSet", 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_MsgProfileCardSet) 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_MsgProfileCardSet) 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_MsgProfileCardSet) 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_MsgProfileCardSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileCardSet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*MsgProfileCardSet) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgProfileCardSet) - 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: MsgProfileCardSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileCardSet: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileCardSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileCardSetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileCardSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileCardSetResponse)(nil) - -type fastReflection_MsgProfileCardSetResponse MsgProfileCardSetResponse - -func (x *MsgProfileCardSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileCardSetResponse)(x) -} - -func (x *MsgProfileCardSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[63] - 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_MsgProfileCardSetResponse_messageType fastReflection_MsgProfileCardSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileCardSetResponse_messageType{} - -type fastReflection_MsgProfileCardSetResponse_messageType struct{} - -func (x fastReflection_MsgProfileCardSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileCardSetResponse)(nil) -} -func (x fastReflection_MsgProfileCardSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileCardSetResponse) -} -func (x fastReflection_MsgProfileCardSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileCardSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileCardSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileCardSetResponse -} - -// 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_MsgProfileCardSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileCardSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileCardSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgProfileCardSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileCardSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgProfileCardSetResponse)(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_MsgProfileCardSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgProfileCardSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSetResponse 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_MsgProfileCardSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSetResponse 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_MsgProfileCardSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSetResponse 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_MsgProfileCardSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSetResponse 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_MsgProfileCardSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSetResponse 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_MsgProfileCardSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileCardSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileCardSetResponse 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_MsgProfileCardSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileCardSetResponse", 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_MsgProfileCardSetResponse) 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_MsgProfileCardSetResponse) 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_MsgProfileCardSetResponse) 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_MsgProfileCardSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileCardSetResponse) - 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().(*MsgProfileCardSetResponse) - 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().(*MsgProfileCardSetResponse) - 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: MsgProfileCardSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileCardSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileWebsiteSet protoreflect.MessageDescriptor - fd_MsgProfileWebsiteSet_creator protoreflect.FieldDescriptor - fd_MsgProfileWebsiteSet_website protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileWebsiteSet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileWebsiteSet") - fd_MsgProfileWebsiteSet_creator = md_MsgProfileWebsiteSet.Fields().ByName("creator") - fd_MsgProfileWebsiteSet_website = md_MsgProfileWebsiteSet.Fields().ByName("website") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileWebsiteSet)(nil) - -type fastReflection_MsgProfileWebsiteSet MsgProfileWebsiteSet - -func (x *MsgProfileWebsiteSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileWebsiteSet)(x) -} - -func (x *MsgProfileWebsiteSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[64] - 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_MsgProfileWebsiteSet_messageType fastReflection_MsgProfileWebsiteSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileWebsiteSet_messageType{} - -type fastReflection_MsgProfileWebsiteSet_messageType struct{} - -func (x fastReflection_MsgProfileWebsiteSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileWebsiteSet)(nil) -} -func (x fastReflection_MsgProfileWebsiteSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileWebsiteSet) -} -func (x fastReflection_MsgProfileWebsiteSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileWebsiteSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileWebsiteSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileWebsiteSet -} - -// 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_MsgProfileWebsiteSet) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileWebsiteSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileWebsiteSet) New() protoreflect.Message { - return new(fastReflection_MsgProfileWebsiteSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileWebsiteSet) Interface() protoreflect.ProtoMessage { - return (*MsgProfileWebsiteSet)(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_MsgProfileWebsiteSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgProfileWebsiteSet_creator, value) { - return - } - } - if x.Website != "" { - value := protoreflect.ValueOfString(x.Website) - if !f(fd_MsgProfileWebsiteSet_website, 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_MsgProfileWebsiteSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileWebsiteSet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgProfileWebsiteSet.website": - return x.Website != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSet 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_MsgProfileWebsiteSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileWebsiteSet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgProfileWebsiteSet.website": - x.Website = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSet 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_MsgProfileWebsiteSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgProfileWebsiteSet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgProfileWebsiteSet.website": - value := x.Website - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSet 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_MsgProfileWebsiteSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileWebsiteSet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgProfileWebsiteSet.website": - x.Website = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSet 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_MsgProfileWebsiteSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileWebsiteSet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgProfileWebsiteSet is not mutable")) - case "cardchain.cardchain.MsgProfileWebsiteSet.website": - panic(fmt.Errorf("field website of message cardchain.cardchain.MsgProfileWebsiteSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSet 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_MsgProfileWebsiteSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileWebsiteSet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgProfileWebsiteSet.website": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSet 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_MsgProfileWebsiteSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileWebsiteSet", 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_MsgProfileWebsiteSet) 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_MsgProfileWebsiteSet) 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_MsgProfileWebsiteSet) 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_MsgProfileWebsiteSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileWebsiteSet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Website) - 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().(*MsgProfileWebsiteSet) - 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.Website) > 0 { - i -= len(x.Website) - copy(dAtA[i:], x.Website) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Website))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgProfileWebsiteSet) - 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: MsgProfileWebsiteSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileWebsiteSet: 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 Creator", 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.Creator = 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 Website", 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.Website = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileWebsiteSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileWebsiteSetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileWebsiteSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileWebsiteSetResponse)(nil) - -type fastReflection_MsgProfileWebsiteSetResponse MsgProfileWebsiteSetResponse - -func (x *MsgProfileWebsiteSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileWebsiteSetResponse)(x) -} - -func (x *MsgProfileWebsiteSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[65] - 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_MsgProfileWebsiteSetResponse_messageType fastReflection_MsgProfileWebsiteSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileWebsiteSetResponse_messageType{} - -type fastReflection_MsgProfileWebsiteSetResponse_messageType struct{} - -func (x fastReflection_MsgProfileWebsiteSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileWebsiteSetResponse)(nil) -} -func (x fastReflection_MsgProfileWebsiteSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileWebsiteSetResponse) -} -func (x fastReflection_MsgProfileWebsiteSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileWebsiteSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileWebsiteSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileWebsiteSetResponse -} - -// 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_MsgProfileWebsiteSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileWebsiteSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileWebsiteSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgProfileWebsiteSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileWebsiteSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgProfileWebsiteSetResponse)(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_MsgProfileWebsiteSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgProfileWebsiteSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSetResponse 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_MsgProfileWebsiteSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSetResponse 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_MsgProfileWebsiteSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSetResponse 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_MsgProfileWebsiteSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSetResponse 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_MsgProfileWebsiteSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSetResponse 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_MsgProfileWebsiteSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileWebsiteSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileWebsiteSetResponse 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_MsgProfileWebsiteSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileWebsiteSetResponse", 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_MsgProfileWebsiteSetResponse) 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_MsgProfileWebsiteSetResponse) 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_MsgProfileWebsiteSetResponse) 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_MsgProfileWebsiteSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileWebsiteSetResponse) - 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().(*MsgProfileWebsiteSetResponse) - 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().(*MsgProfileWebsiteSetResponse) - 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: MsgProfileWebsiteSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileWebsiteSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileBioSet protoreflect.MessageDescriptor - fd_MsgProfileBioSet_creator protoreflect.FieldDescriptor - fd_MsgProfileBioSet_bio protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileBioSet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileBioSet") - fd_MsgProfileBioSet_creator = md_MsgProfileBioSet.Fields().ByName("creator") - fd_MsgProfileBioSet_bio = md_MsgProfileBioSet.Fields().ByName("bio") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileBioSet)(nil) - -type fastReflection_MsgProfileBioSet MsgProfileBioSet - -func (x *MsgProfileBioSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileBioSet)(x) -} - -func (x *MsgProfileBioSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[66] - 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_MsgProfileBioSet_messageType fastReflection_MsgProfileBioSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileBioSet_messageType{} - -type fastReflection_MsgProfileBioSet_messageType struct{} - -func (x fastReflection_MsgProfileBioSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileBioSet)(nil) -} -func (x fastReflection_MsgProfileBioSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileBioSet) -} -func (x fastReflection_MsgProfileBioSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileBioSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileBioSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileBioSet -} - -// 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_MsgProfileBioSet) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileBioSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileBioSet) New() protoreflect.Message { - return new(fastReflection_MsgProfileBioSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileBioSet) Interface() protoreflect.ProtoMessage { - return (*MsgProfileBioSet)(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_MsgProfileBioSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgProfileBioSet_creator, value) { - return - } - } - if x.Bio != "" { - value := protoreflect.ValueOfString(x.Bio) - if !f(fd_MsgProfileBioSet_bio, 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_MsgProfileBioSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileBioSet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgProfileBioSet.bio": - return x.Bio != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSet 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_MsgProfileBioSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileBioSet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgProfileBioSet.bio": - x.Bio = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSet 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_MsgProfileBioSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgProfileBioSet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgProfileBioSet.bio": - value := x.Bio - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSet 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_MsgProfileBioSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileBioSet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgProfileBioSet.bio": - x.Bio = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSet 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_MsgProfileBioSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileBioSet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgProfileBioSet is not mutable")) - case "cardchain.cardchain.MsgProfileBioSet.bio": - panic(fmt.Errorf("field bio of message cardchain.cardchain.MsgProfileBioSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSet 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_MsgProfileBioSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileBioSet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgProfileBioSet.bio": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSet 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_MsgProfileBioSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileBioSet", 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_MsgProfileBioSet) 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_MsgProfileBioSet) 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_MsgProfileBioSet) 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_MsgProfileBioSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileBioSet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Bio) - 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().(*MsgProfileBioSet) - 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.Bio) > 0 { - i -= len(x.Bio) - copy(dAtA[i:], x.Bio) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bio))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgProfileBioSet) - 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: MsgProfileBioSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileBioSet: 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 Creator", 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.Creator = 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 Bio", 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.Bio = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileBioSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileBioSetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileBioSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileBioSetResponse)(nil) - -type fastReflection_MsgProfileBioSetResponse MsgProfileBioSetResponse - -func (x *MsgProfileBioSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileBioSetResponse)(x) -} - -func (x *MsgProfileBioSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[67] - 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_MsgProfileBioSetResponse_messageType fastReflection_MsgProfileBioSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileBioSetResponse_messageType{} - -type fastReflection_MsgProfileBioSetResponse_messageType struct{} - -func (x fastReflection_MsgProfileBioSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileBioSetResponse)(nil) -} -func (x fastReflection_MsgProfileBioSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileBioSetResponse) -} -func (x fastReflection_MsgProfileBioSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileBioSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileBioSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileBioSetResponse -} - -// 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_MsgProfileBioSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileBioSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileBioSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgProfileBioSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileBioSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgProfileBioSetResponse)(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_MsgProfileBioSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgProfileBioSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSetResponse 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_MsgProfileBioSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSetResponse 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_MsgProfileBioSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSetResponse 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_MsgProfileBioSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSetResponse 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_MsgProfileBioSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSetResponse 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_MsgProfileBioSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileBioSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileBioSetResponse 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_MsgProfileBioSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileBioSetResponse", 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_MsgProfileBioSetResponse) 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_MsgProfileBioSetResponse) 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_MsgProfileBioSetResponse) 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_MsgProfileBioSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileBioSetResponse) - 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().(*MsgProfileBioSetResponse) - 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().(*MsgProfileBioSetResponse) - 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: MsgProfileBioSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileBioSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgBoosterPackOpen protoreflect.MessageDescriptor - fd_MsgBoosterPackOpen_creator protoreflect.FieldDescriptor - fd_MsgBoosterPackOpen_boosterPackId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgBoosterPackOpen = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackOpen") - fd_MsgBoosterPackOpen_creator = md_MsgBoosterPackOpen.Fields().ByName("creator") - fd_MsgBoosterPackOpen_boosterPackId = md_MsgBoosterPackOpen.Fields().ByName("boosterPackId") -} - -var _ protoreflect.Message = (*fastReflection_MsgBoosterPackOpen)(nil) - -type fastReflection_MsgBoosterPackOpen MsgBoosterPackOpen - -func (x *MsgBoosterPackOpen) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBoosterPackOpen)(x) -} - -func (x *MsgBoosterPackOpen) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[68] - 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_MsgBoosterPackOpen_messageType fastReflection_MsgBoosterPackOpen_messageType -var _ protoreflect.MessageType = fastReflection_MsgBoosterPackOpen_messageType{} - -type fastReflection_MsgBoosterPackOpen_messageType struct{} - -func (x fastReflection_MsgBoosterPackOpen_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBoosterPackOpen)(nil) -} -func (x fastReflection_MsgBoosterPackOpen_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackOpen) -} -func (x fastReflection_MsgBoosterPackOpen_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackOpen -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBoosterPackOpen) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackOpen -} - -// 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_MsgBoosterPackOpen) Type() protoreflect.MessageType { - return _fastReflection_MsgBoosterPackOpen_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBoosterPackOpen) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackOpen) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBoosterPackOpen) Interface() protoreflect.ProtoMessage { - return (*MsgBoosterPackOpen)(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_MsgBoosterPackOpen) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgBoosterPackOpen_creator, value) { - return - } - } - if x.BoosterPackId != uint64(0) { - value := protoreflect.ValueOfUint64(x.BoosterPackId) - if !f(fd_MsgBoosterPackOpen_boosterPackId, 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_MsgBoosterPackOpen) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpen.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgBoosterPackOpen.boosterPackId": - return x.BoosterPackId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpen 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_MsgBoosterPackOpen) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpen.creator": - x.Creator = "" - case "cardchain.cardchain.MsgBoosterPackOpen.boosterPackId": - x.BoosterPackId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpen 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_MsgBoosterPackOpen) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpen.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgBoosterPackOpen.boosterPackId": - value := x.BoosterPackId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpen 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_MsgBoosterPackOpen) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpen.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgBoosterPackOpen.boosterPackId": - x.BoosterPackId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpen 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_MsgBoosterPackOpen) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpen.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgBoosterPackOpen is not mutable")) - case "cardchain.cardchain.MsgBoosterPackOpen.boosterPackId": - panic(fmt.Errorf("field boosterPackId of message cardchain.cardchain.MsgBoosterPackOpen is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpen 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_MsgBoosterPackOpen) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpen.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgBoosterPackOpen.boosterPackId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpen 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_MsgBoosterPackOpen) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackOpen", 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_MsgBoosterPackOpen) 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_MsgBoosterPackOpen) 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_MsgBoosterPackOpen) 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_MsgBoosterPackOpen) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBoosterPackOpen) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.BoosterPackId != 0 { - n += 1 + runtime.Sov(uint64(x.BoosterPackId)) - } - 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().(*MsgBoosterPackOpen) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.BoosterPackId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BoosterPackId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgBoosterPackOpen) - 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: MsgBoosterPackOpen: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackOpen: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BoosterPackId", wireType) - } - x.BoosterPackId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BoosterPackId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 = (*_MsgBoosterPackOpenResponse_1_list)(nil) - -type _MsgBoosterPackOpenResponse_1_list struct { - list *[]uint64 -} - -func (x *_MsgBoosterPackOpenResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgBoosterPackOpenResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MsgBoosterPackOpenResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgBoosterPackOpenResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgBoosterPackOpenResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgBoosterPackOpenResponse at list field CardIds as it is not of Message kind")) -} - -func (x *_MsgBoosterPackOpenResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgBoosterPackOpenResponse_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MsgBoosterPackOpenResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgBoosterPackOpenResponse protoreflect.MessageDescriptor - fd_MsgBoosterPackOpenResponse_cardIds protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgBoosterPackOpenResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackOpenResponse") - fd_MsgBoosterPackOpenResponse_cardIds = md_MsgBoosterPackOpenResponse.Fields().ByName("cardIds") -} - -var _ protoreflect.Message = (*fastReflection_MsgBoosterPackOpenResponse)(nil) - -type fastReflection_MsgBoosterPackOpenResponse MsgBoosterPackOpenResponse - -func (x *MsgBoosterPackOpenResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBoosterPackOpenResponse)(x) -} - -func (x *MsgBoosterPackOpenResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[69] - 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_MsgBoosterPackOpenResponse_messageType fastReflection_MsgBoosterPackOpenResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBoosterPackOpenResponse_messageType{} - -type fastReflection_MsgBoosterPackOpenResponse_messageType struct{} - -func (x fastReflection_MsgBoosterPackOpenResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBoosterPackOpenResponse)(nil) -} -func (x fastReflection_MsgBoosterPackOpenResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackOpenResponse) -} -func (x fastReflection_MsgBoosterPackOpenResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackOpenResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBoosterPackOpenResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackOpenResponse -} - -// 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_MsgBoosterPackOpenResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgBoosterPackOpenResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBoosterPackOpenResponse) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackOpenResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBoosterPackOpenResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBoosterPackOpenResponse)(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_MsgBoosterPackOpenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.CardIds) != 0 { - value := protoreflect.ValueOfList(&_MsgBoosterPackOpenResponse_1_list{list: &x.CardIds}) - if !f(fd_MsgBoosterPackOpenResponse_cardIds, 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_MsgBoosterPackOpenResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpenResponse.cardIds": - return len(x.CardIds) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpenResponse 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_MsgBoosterPackOpenResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpenResponse.cardIds": - x.CardIds = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpenResponse 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_MsgBoosterPackOpenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpenResponse.cardIds": - if len(x.CardIds) == 0 { - return protoreflect.ValueOfList(&_MsgBoosterPackOpenResponse_1_list{}) - } - listValue := &_MsgBoosterPackOpenResponse_1_list{list: &x.CardIds} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpenResponse 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_MsgBoosterPackOpenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpenResponse.cardIds": - lv := value.List() - clv := lv.(*_MsgBoosterPackOpenResponse_1_list) - x.CardIds = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpenResponse 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_MsgBoosterPackOpenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpenResponse.cardIds": - if x.CardIds == nil { - x.CardIds = []uint64{} - } - value := &_MsgBoosterPackOpenResponse_1_list{list: &x.CardIds} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpenResponse 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_MsgBoosterPackOpenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackOpenResponse.cardIds": - list := []uint64{} - return protoreflect.ValueOfList(&_MsgBoosterPackOpenResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackOpenResponse 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_MsgBoosterPackOpenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackOpenResponse", 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_MsgBoosterPackOpenResponse) 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_MsgBoosterPackOpenResponse) 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_MsgBoosterPackOpenResponse) 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_MsgBoosterPackOpenResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBoosterPackOpenResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.CardIds) > 0 { - l = 0 - for _, e := range x.CardIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*MsgBoosterPackOpenResponse) - 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.CardIds) > 0 { - var pksize2 int - for _, num := range x.CardIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.CardIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - 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().(*MsgBoosterPackOpenResponse) - 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: MsgBoosterPackOpenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackOpenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardIds = append(x.CardIds, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.CardIds) == 0 { - x.CardIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CardIds = append(x.CardIds, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgBoosterPackTransfer protoreflect.MessageDescriptor - fd_MsgBoosterPackTransfer_creator protoreflect.FieldDescriptor - fd_MsgBoosterPackTransfer_boosterPackId protoreflect.FieldDescriptor - fd_MsgBoosterPackTransfer_receiver protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgBoosterPackTransfer = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackTransfer") - fd_MsgBoosterPackTransfer_creator = md_MsgBoosterPackTransfer.Fields().ByName("creator") - fd_MsgBoosterPackTransfer_boosterPackId = md_MsgBoosterPackTransfer.Fields().ByName("boosterPackId") - fd_MsgBoosterPackTransfer_receiver = md_MsgBoosterPackTransfer.Fields().ByName("receiver") -} - -var _ protoreflect.Message = (*fastReflection_MsgBoosterPackTransfer)(nil) - -type fastReflection_MsgBoosterPackTransfer MsgBoosterPackTransfer - -func (x *MsgBoosterPackTransfer) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBoosterPackTransfer)(x) -} - -func (x *MsgBoosterPackTransfer) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[70] - 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_MsgBoosterPackTransfer_messageType fastReflection_MsgBoosterPackTransfer_messageType -var _ protoreflect.MessageType = fastReflection_MsgBoosterPackTransfer_messageType{} - -type fastReflection_MsgBoosterPackTransfer_messageType struct{} - -func (x fastReflection_MsgBoosterPackTransfer_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBoosterPackTransfer)(nil) -} -func (x fastReflection_MsgBoosterPackTransfer_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackTransfer) -} -func (x fastReflection_MsgBoosterPackTransfer_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackTransfer -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBoosterPackTransfer) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackTransfer -} - -// 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_MsgBoosterPackTransfer) Type() protoreflect.MessageType { - return _fastReflection_MsgBoosterPackTransfer_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBoosterPackTransfer) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackTransfer) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBoosterPackTransfer) Interface() protoreflect.ProtoMessage { - return (*MsgBoosterPackTransfer)(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_MsgBoosterPackTransfer) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgBoosterPackTransfer_creator, value) { - return - } - } - if x.BoosterPackId != uint64(0) { - value := protoreflect.ValueOfUint64(x.BoosterPackId) - if !f(fd_MsgBoosterPackTransfer_boosterPackId, value) { - return - } - } - if x.Receiver != "" { - value := protoreflect.ValueOfString(x.Receiver) - if !f(fd_MsgBoosterPackTransfer_receiver, 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_MsgBoosterPackTransfer) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackTransfer.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgBoosterPackTransfer.boosterPackId": - return x.BoosterPackId != uint64(0) - case "cardchain.cardchain.MsgBoosterPackTransfer.receiver": - return x.Receiver != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransfer 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_MsgBoosterPackTransfer) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackTransfer.creator": - x.Creator = "" - case "cardchain.cardchain.MsgBoosterPackTransfer.boosterPackId": - x.BoosterPackId = uint64(0) - case "cardchain.cardchain.MsgBoosterPackTransfer.receiver": - x.Receiver = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransfer 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_MsgBoosterPackTransfer) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgBoosterPackTransfer.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgBoosterPackTransfer.boosterPackId": - value := x.BoosterPackId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgBoosterPackTransfer.receiver": - value := x.Receiver - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransfer 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_MsgBoosterPackTransfer) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackTransfer.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgBoosterPackTransfer.boosterPackId": - x.BoosterPackId = value.Uint() - case "cardchain.cardchain.MsgBoosterPackTransfer.receiver": - x.Receiver = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransfer 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_MsgBoosterPackTransfer) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackTransfer.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgBoosterPackTransfer is not mutable")) - case "cardchain.cardchain.MsgBoosterPackTransfer.boosterPackId": - panic(fmt.Errorf("field boosterPackId of message cardchain.cardchain.MsgBoosterPackTransfer is not mutable")) - case "cardchain.cardchain.MsgBoosterPackTransfer.receiver": - panic(fmt.Errorf("field receiver of message cardchain.cardchain.MsgBoosterPackTransfer is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransfer 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_MsgBoosterPackTransfer) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgBoosterPackTransfer.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgBoosterPackTransfer.boosterPackId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgBoosterPackTransfer.receiver": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransfer")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransfer 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_MsgBoosterPackTransfer) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackTransfer", 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_MsgBoosterPackTransfer) 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_MsgBoosterPackTransfer) 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_MsgBoosterPackTransfer) 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_MsgBoosterPackTransfer) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBoosterPackTransfer) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.BoosterPackId != 0 { - n += 1 + runtime.Sov(uint64(x.BoosterPackId)) - } - l = len(x.Receiver) - 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().(*MsgBoosterPackTransfer) - 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.Receiver) > 0 { - i -= len(x.Receiver) - copy(dAtA[i:], x.Receiver) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Receiver))) - i-- - dAtA[i] = 0x1a - } - if x.BoosterPackId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BoosterPackId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgBoosterPackTransfer) - 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: MsgBoosterPackTransfer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackTransfer: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BoosterPackId", wireType) - } - x.BoosterPackId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BoosterPackId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgBoosterPackTransferResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgBoosterPackTransferResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgBoosterPackTransferResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgBoosterPackTransferResponse)(nil) - -type fastReflection_MsgBoosterPackTransferResponse MsgBoosterPackTransferResponse - -func (x *MsgBoosterPackTransferResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgBoosterPackTransferResponse)(x) -} - -func (x *MsgBoosterPackTransferResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[71] - 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_MsgBoosterPackTransferResponse_messageType fastReflection_MsgBoosterPackTransferResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgBoosterPackTransferResponse_messageType{} - -type fastReflection_MsgBoosterPackTransferResponse_messageType struct{} - -func (x fastReflection_MsgBoosterPackTransferResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgBoosterPackTransferResponse)(nil) -} -func (x fastReflection_MsgBoosterPackTransferResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackTransferResponse) -} -func (x fastReflection_MsgBoosterPackTransferResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackTransferResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgBoosterPackTransferResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgBoosterPackTransferResponse -} - -// 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_MsgBoosterPackTransferResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgBoosterPackTransferResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgBoosterPackTransferResponse) New() protoreflect.Message { - return new(fastReflection_MsgBoosterPackTransferResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgBoosterPackTransferResponse) Interface() protoreflect.ProtoMessage { - return (*MsgBoosterPackTransferResponse)(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_MsgBoosterPackTransferResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgBoosterPackTransferResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransferResponse 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_MsgBoosterPackTransferResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransferResponse 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_MsgBoosterPackTransferResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransferResponse 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_MsgBoosterPackTransferResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransferResponse 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_MsgBoosterPackTransferResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransferResponse 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_MsgBoosterPackTransferResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgBoosterPackTransferResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgBoosterPackTransferResponse 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_MsgBoosterPackTransferResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgBoosterPackTransferResponse", 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_MsgBoosterPackTransferResponse) 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_MsgBoosterPackTransferResponse) 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_MsgBoosterPackTransferResponse) 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_MsgBoosterPackTransferResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgBoosterPackTransferResponse) - 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().(*MsgBoosterPackTransferResponse) - 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().(*MsgBoosterPackTransferResponse) - 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: MsgBoosterPackTransferResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgBoosterPackTransferResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetStoryWriterSet protoreflect.MessageDescriptor - fd_MsgSetStoryWriterSet_creator protoreflect.FieldDescriptor - fd_MsgSetStoryWriterSet_setId protoreflect.FieldDescriptor - fd_MsgSetStoryWriterSet_storyWriter protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetStoryWriterSet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetStoryWriterSet") - fd_MsgSetStoryWriterSet_creator = md_MsgSetStoryWriterSet.Fields().ByName("creator") - fd_MsgSetStoryWriterSet_setId = md_MsgSetStoryWriterSet.Fields().ByName("setId") - fd_MsgSetStoryWriterSet_storyWriter = md_MsgSetStoryWriterSet.Fields().ByName("storyWriter") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetStoryWriterSet)(nil) - -type fastReflection_MsgSetStoryWriterSet MsgSetStoryWriterSet - -func (x *MsgSetStoryWriterSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetStoryWriterSet)(x) -} - -func (x *MsgSetStoryWriterSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[72] - 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_MsgSetStoryWriterSet_messageType fastReflection_MsgSetStoryWriterSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetStoryWriterSet_messageType{} - -type fastReflection_MsgSetStoryWriterSet_messageType struct{} - -func (x fastReflection_MsgSetStoryWriterSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetStoryWriterSet)(nil) -} -func (x fastReflection_MsgSetStoryWriterSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryWriterSet) -} -func (x fastReflection_MsgSetStoryWriterSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryWriterSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetStoryWriterSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryWriterSet -} - -// 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_MsgSetStoryWriterSet) Type() protoreflect.MessageType { - return _fastReflection_MsgSetStoryWriterSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetStoryWriterSet) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryWriterSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetStoryWriterSet) Interface() protoreflect.ProtoMessage { - return (*MsgSetStoryWriterSet)(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_MsgSetStoryWriterSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetStoryWriterSet_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetStoryWriterSet_setId, value) { - return - } - } - if x.StoryWriter != "" { - value := protoreflect.ValueOfString(x.StoryWriter) - if !f(fd_MsgSetStoryWriterSet_storyWriter, 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_MsgSetStoryWriterSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryWriterSet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetStoryWriterSet.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetStoryWriterSet.storyWriter": - return x.StoryWriter != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSet 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_MsgSetStoryWriterSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryWriterSet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetStoryWriterSet.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetStoryWriterSet.storyWriter": - x.StoryWriter = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSet 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_MsgSetStoryWriterSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetStoryWriterSet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetStoryWriterSet.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetStoryWriterSet.storyWriter": - value := x.StoryWriter - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSet 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_MsgSetStoryWriterSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryWriterSet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetStoryWriterSet.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetStoryWriterSet.storyWriter": - x.StoryWriter = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSet 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_MsgSetStoryWriterSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryWriterSet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetStoryWriterSet is not mutable")) - case "cardchain.cardchain.MsgSetStoryWriterSet.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetStoryWriterSet is not mutable")) - case "cardchain.cardchain.MsgSetStoryWriterSet.storyWriter": - panic(fmt.Errorf("field storyWriter of message cardchain.cardchain.MsgSetStoryWriterSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSet 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_MsgSetStoryWriterSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetStoryWriterSet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetStoryWriterSet.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetStoryWriterSet.storyWriter": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSet 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_MsgSetStoryWriterSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetStoryWriterSet", 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_MsgSetStoryWriterSet) 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_MsgSetStoryWriterSet) 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_MsgSetStoryWriterSet) 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_MsgSetStoryWriterSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetStoryWriterSet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - l = len(x.StoryWriter) - 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().(*MsgSetStoryWriterSet) - 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.StoryWriter) > 0 { - i -= len(x.StoryWriter) - copy(dAtA[i:], x.StoryWriter) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.StoryWriter))) - i-- - dAtA[i] = 0x1a - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetStoryWriterSet) - 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: MsgSetStoryWriterSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetStoryWriterSet: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StoryWriter", 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.StoryWriter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetStoryWriterSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetStoryWriterSetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetStoryWriterSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetStoryWriterSetResponse)(nil) - -type fastReflection_MsgSetStoryWriterSetResponse MsgSetStoryWriterSetResponse - -func (x *MsgSetStoryWriterSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetStoryWriterSetResponse)(x) -} - -func (x *MsgSetStoryWriterSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[73] - 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_MsgSetStoryWriterSetResponse_messageType fastReflection_MsgSetStoryWriterSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetStoryWriterSetResponse_messageType{} - -type fastReflection_MsgSetStoryWriterSetResponse_messageType struct{} - -func (x fastReflection_MsgSetStoryWriterSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetStoryWriterSetResponse)(nil) -} -func (x fastReflection_MsgSetStoryWriterSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryWriterSetResponse) -} -func (x fastReflection_MsgSetStoryWriterSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryWriterSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetStoryWriterSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetStoryWriterSetResponse -} - -// 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_MsgSetStoryWriterSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetStoryWriterSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetStoryWriterSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetStoryWriterSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetStoryWriterSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetStoryWriterSetResponse)(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_MsgSetStoryWriterSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetStoryWriterSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSetResponse 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_MsgSetStoryWriterSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSetResponse 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_MsgSetStoryWriterSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSetResponse 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_MsgSetStoryWriterSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSetResponse 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_MsgSetStoryWriterSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSetResponse 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_MsgSetStoryWriterSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetStoryWriterSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetStoryWriterSetResponse 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_MsgSetStoryWriterSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetStoryWriterSetResponse", 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_MsgSetStoryWriterSetResponse) 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_MsgSetStoryWriterSetResponse) 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_MsgSetStoryWriterSetResponse) 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_MsgSetStoryWriterSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetStoryWriterSetResponse) - 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().(*MsgSetStoryWriterSetResponse) - 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().(*MsgSetStoryWriterSetResponse) - 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: MsgSetStoryWriterSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetStoryWriterSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetArtistSet protoreflect.MessageDescriptor - fd_MsgSetArtistSet_creator protoreflect.FieldDescriptor - fd_MsgSetArtistSet_setId protoreflect.FieldDescriptor - fd_MsgSetArtistSet_artist protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetArtistSet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetArtistSet") - fd_MsgSetArtistSet_creator = md_MsgSetArtistSet.Fields().ByName("creator") - fd_MsgSetArtistSet_setId = md_MsgSetArtistSet.Fields().ByName("setId") - fd_MsgSetArtistSet_artist = md_MsgSetArtistSet.Fields().ByName("artist") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetArtistSet)(nil) - -type fastReflection_MsgSetArtistSet MsgSetArtistSet - -func (x *MsgSetArtistSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetArtistSet)(x) -} - -func (x *MsgSetArtistSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[74] - 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_MsgSetArtistSet_messageType fastReflection_MsgSetArtistSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetArtistSet_messageType{} - -type fastReflection_MsgSetArtistSet_messageType struct{} - -func (x fastReflection_MsgSetArtistSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetArtistSet)(nil) -} -func (x fastReflection_MsgSetArtistSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetArtistSet) -} -func (x fastReflection_MsgSetArtistSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtistSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetArtistSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtistSet -} - -// 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_MsgSetArtistSet) Type() protoreflect.MessageType { - return _fastReflection_MsgSetArtistSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetArtistSet) New() protoreflect.Message { - return new(fastReflection_MsgSetArtistSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetArtistSet) Interface() protoreflect.ProtoMessage { - return (*MsgSetArtistSet)(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_MsgSetArtistSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetArtistSet_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetArtistSet_setId, value) { - return - } - } - if x.Artist != "" { - value := protoreflect.ValueOfString(x.Artist) - if !f(fd_MsgSetArtistSet_artist, 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_MsgSetArtistSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtistSet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetArtistSet.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetArtistSet.artist": - return x.Artist != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSet 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_MsgSetArtistSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtistSet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetArtistSet.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetArtistSet.artist": - x.Artist = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSet 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_MsgSetArtistSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetArtistSet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetArtistSet.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetArtistSet.artist": - value := x.Artist - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSet 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_MsgSetArtistSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtistSet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetArtistSet.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetArtistSet.artist": - x.Artist = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSet 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_MsgSetArtistSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtistSet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetArtistSet is not mutable")) - case "cardchain.cardchain.MsgSetArtistSet.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetArtistSet is not mutable")) - case "cardchain.cardchain.MsgSetArtistSet.artist": - panic(fmt.Errorf("field artist of message cardchain.cardchain.MsgSetArtistSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSet 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_MsgSetArtistSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetArtistSet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetArtistSet.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetArtistSet.artist": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSet 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_MsgSetArtistSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetArtistSet", 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_MsgSetArtistSet) 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_MsgSetArtistSet) 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_MsgSetArtistSet) 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_MsgSetArtistSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetArtistSet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - l = len(x.Artist) - 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().(*MsgSetArtistSet) - 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.Artist) > 0 { - i -= len(x.Artist) - copy(dAtA[i:], x.Artist) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Artist))) - i-- - dAtA[i] = 0x1a - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetArtistSet) - 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: MsgSetArtistSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetArtistSet: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Artist", 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.Artist = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetArtistSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetArtistSetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetArtistSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetArtistSetResponse)(nil) - -type fastReflection_MsgSetArtistSetResponse MsgSetArtistSetResponse - -func (x *MsgSetArtistSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetArtistSetResponse)(x) -} - -func (x *MsgSetArtistSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[75] - 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_MsgSetArtistSetResponse_messageType fastReflection_MsgSetArtistSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetArtistSetResponse_messageType{} - -type fastReflection_MsgSetArtistSetResponse_messageType struct{} - -func (x fastReflection_MsgSetArtistSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetArtistSetResponse)(nil) -} -func (x fastReflection_MsgSetArtistSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetArtistSetResponse) -} -func (x fastReflection_MsgSetArtistSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtistSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetArtistSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetArtistSetResponse -} - -// 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_MsgSetArtistSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetArtistSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetArtistSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetArtistSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetArtistSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetArtistSetResponse)(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_MsgSetArtistSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetArtistSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSetResponse 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_MsgSetArtistSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSetResponse 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_MsgSetArtistSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSetResponse 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_MsgSetArtistSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSetResponse 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_MsgSetArtistSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSetResponse 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_MsgSetArtistSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetArtistSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetArtistSetResponse 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_MsgSetArtistSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetArtistSetResponse", 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_MsgSetArtistSetResponse) 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_MsgSetArtistSetResponse) 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_MsgSetArtistSetResponse) 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_MsgSetArtistSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetArtistSetResponse) - 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().(*MsgSetArtistSetResponse) - 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().(*MsgSetArtistSetResponse) - 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: MsgSetArtistSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetArtistSetResponse: 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 = (*_MsgCardVoteMulti_2_list)(nil) - -type _MsgCardVoteMulti_2_list struct { - list *[]*SingleVote -} - -func (x *_MsgCardVoteMulti_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgCardVoteMulti_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgCardVoteMulti_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SingleVote) - (*x.list)[i] = concreteValue -} - -func (x *_MsgCardVoteMulti_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*SingleVote) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgCardVoteMulti_2_list) AppendMutable() protoreflect.Value { - v := new(SingleVote) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCardVoteMulti_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgCardVoteMulti_2_list) NewElement() protoreflect.Value { - v := new(SingleVote) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCardVoteMulti_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgCardVoteMulti protoreflect.MessageDescriptor - fd_MsgCardVoteMulti_creator protoreflect.FieldDescriptor - fd_MsgCardVoteMulti_votes protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardVoteMulti = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardVoteMulti") - fd_MsgCardVoteMulti_creator = md_MsgCardVoteMulti.Fields().ByName("creator") - fd_MsgCardVoteMulti_votes = md_MsgCardVoteMulti.Fields().ByName("votes") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardVoteMulti)(nil) - -type fastReflection_MsgCardVoteMulti MsgCardVoteMulti - -func (x *MsgCardVoteMulti) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardVoteMulti)(x) -} - -func (x *MsgCardVoteMulti) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[76] - 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_MsgCardVoteMulti_messageType fastReflection_MsgCardVoteMulti_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardVoteMulti_messageType{} - -type fastReflection_MsgCardVoteMulti_messageType struct{} - -func (x fastReflection_MsgCardVoteMulti_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardVoteMulti)(nil) -} -func (x fastReflection_MsgCardVoteMulti_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardVoteMulti) -} -func (x fastReflection_MsgCardVoteMulti_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVoteMulti -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardVoteMulti) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVoteMulti -} - -// 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_MsgCardVoteMulti) Type() protoreflect.MessageType { - return _fastReflection_MsgCardVoteMulti_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardVoteMulti) New() protoreflect.Message { - return new(fastReflection_MsgCardVoteMulti) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardVoteMulti) Interface() protoreflect.ProtoMessage { - return (*MsgCardVoteMulti)(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_MsgCardVoteMulti) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCardVoteMulti_creator, value) { - return - } - } - if len(x.Votes) != 0 { - value := protoreflect.ValueOfList(&_MsgCardVoteMulti_2_list{list: &x.Votes}) - if !f(fd_MsgCardVoteMulti_votes, 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_MsgCardVoteMulti) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMulti.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgCardVoteMulti.votes": - return len(x.Votes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMulti")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMulti 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_MsgCardVoteMulti) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMulti.creator": - x.Creator = "" - case "cardchain.cardchain.MsgCardVoteMulti.votes": - x.Votes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMulti")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMulti 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_MsgCardVoteMulti) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardVoteMulti.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardVoteMulti.votes": - if len(x.Votes) == 0 { - return protoreflect.ValueOfList(&_MsgCardVoteMulti_2_list{}) - } - listValue := &_MsgCardVoteMulti_2_list{list: &x.Votes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMulti")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMulti 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_MsgCardVoteMulti) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMulti.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgCardVoteMulti.votes": - lv := value.List() - clv := lv.(*_MsgCardVoteMulti_2_list) - x.Votes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMulti")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMulti 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_MsgCardVoteMulti) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMulti.votes": - if x.Votes == nil { - x.Votes = []*SingleVote{} - } - value := &_MsgCardVoteMulti_2_list{list: &x.Votes} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgCardVoteMulti.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgCardVoteMulti is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMulti")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMulti 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_MsgCardVoteMulti) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMulti.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardVoteMulti.votes": - list := []*SingleVote{} - return protoreflect.ValueOfList(&_MsgCardVoteMulti_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMulti")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMulti 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_MsgCardVoteMulti) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardVoteMulti", 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_MsgCardVoteMulti) 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_MsgCardVoteMulti) 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_MsgCardVoteMulti) 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_MsgCardVoteMulti) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardVoteMulti) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Votes) > 0 { - for _, e := range x.Votes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCardVoteMulti) - 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.Votes) > 0 { - for iNdEx := len(x.Votes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Votes[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] = 0x12 - } - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgCardVoteMulti) - 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: MsgCardVoteMulti: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardVoteMulti: 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 Creator", 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.Creator = 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 Votes", 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.Votes = append(x.Votes, &SingleVote{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Votes[len(x.Votes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardVoteMultiResponse protoreflect.MessageDescriptor - fd_MsgCardVoteMultiResponse_airdropClaimed protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardVoteMultiResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardVoteMultiResponse") - fd_MsgCardVoteMultiResponse_airdropClaimed = md_MsgCardVoteMultiResponse.Fields().ByName("airdropClaimed") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardVoteMultiResponse)(nil) - -type fastReflection_MsgCardVoteMultiResponse MsgCardVoteMultiResponse - -func (x *MsgCardVoteMultiResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardVoteMultiResponse)(x) -} - -func (x *MsgCardVoteMultiResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[77] - 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_MsgCardVoteMultiResponse_messageType fastReflection_MsgCardVoteMultiResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardVoteMultiResponse_messageType{} - -type fastReflection_MsgCardVoteMultiResponse_messageType struct{} - -func (x fastReflection_MsgCardVoteMultiResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardVoteMultiResponse)(nil) -} -func (x fastReflection_MsgCardVoteMultiResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardVoteMultiResponse) -} -func (x fastReflection_MsgCardVoteMultiResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVoteMultiResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardVoteMultiResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardVoteMultiResponse -} - -// 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_MsgCardVoteMultiResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardVoteMultiResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardVoteMultiResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardVoteMultiResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardVoteMultiResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardVoteMultiResponse)(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_MsgCardVoteMultiResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AirdropClaimed != false { - value := protoreflect.ValueOfBool(x.AirdropClaimed) - if !f(fd_MsgCardVoteMultiResponse_airdropClaimed, 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_MsgCardVoteMultiResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMultiResponse.airdropClaimed": - return x.AirdropClaimed != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMultiResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMultiResponse 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_MsgCardVoteMultiResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMultiResponse.airdropClaimed": - x.AirdropClaimed = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMultiResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMultiResponse 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_MsgCardVoteMultiResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardVoteMultiResponse.airdropClaimed": - value := x.AirdropClaimed - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMultiResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMultiResponse 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_MsgCardVoteMultiResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMultiResponse.airdropClaimed": - x.AirdropClaimed = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMultiResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMultiResponse 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_MsgCardVoteMultiResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMultiResponse.airdropClaimed": - panic(fmt.Errorf("field airdropClaimed of message cardchain.cardchain.MsgCardVoteMultiResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMultiResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMultiResponse 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_MsgCardVoteMultiResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardVoteMultiResponse.airdropClaimed": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardVoteMultiResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardVoteMultiResponse 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_MsgCardVoteMultiResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardVoteMultiResponse", 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_MsgCardVoteMultiResponse) 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_MsgCardVoteMultiResponse) 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_MsgCardVoteMultiResponse) 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_MsgCardVoteMultiResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardVoteMultiResponse) - 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.AirdropClaimed { - n += 2 - } - 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().(*MsgCardVoteMultiResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.AirdropClaimed { - i-- - if x.AirdropClaimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - 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().(*MsgCardVoteMultiResponse) - 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: MsgCardVoteMultiResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardVoteMultiResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirdropClaimed", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.AirdropClaimed = bool(v != 0) - 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 = (*_MsgMatchOpen_4_list)(nil) - -type _MsgMatchOpen_4_list struct { - list *[]uint64 -} - -func (x *_MsgMatchOpen_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMatchOpen_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MsgMatchOpen_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgMatchOpen_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMatchOpen_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgMatchOpen at list field PlayerADeck as it is not of Message kind")) -} - -func (x *_MsgMatchOpen_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgMatchOpen_4_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MsgMatchOpen_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MsgMatchOpen_5_list)(nil) - -type _MsgMatchOpen_5_list struct { - list *[]uint64 -} - -func (x *_MsgMatchOpen_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgMatchOpen_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MsgMatchOpen_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgMatchOpen_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgMatchOpen_5_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgMatchOpen at list field PlayerBDeck as it is not of Message kind")) -} - -func (x *_MsgMatchOpen_5_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgMatchOpen_5_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MsgMatchOpen_5_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgMatchOpen protoreflect.MessageDescriptor - fd_MsgMatchOpen_creator protoreflect.FieldDescriptor - fd_MsgMatchOpen_playerA protoreflect.FieldDescriptor - fd_MsgMatchOpen_playerB protoreflect.FieldDescriptor - fd_MsgMatchOpen_playerADeck protoreflect.FieldDescriptor - fd_MsgMatchOpen_playerBDeck protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchOpen = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchOpen") - fd_MsgMatchOpen_creator = md_MsgMatchOpen.Fields().ByName("creator") - fd_MsgMatchOpen_playerA = md_MsgMatchOpen.Fields().ByName("playerA") - fd_MsgMatchOpen_playerB = md_MsgMatchOpen.Fields().ByName("playerB") - fd_MsgMatchOpen_playerADeck = md_MsgMatchOpen.Fields().ByName("playerADeck") - fd_MsgMatchOpen_playerBDeck = md_MsgMatchOpen.Fields().ByName("playerBDeck") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchOpen)(nil) - -type fastReflection_MsgMatchOpen MsgMatchOpen - -func (x *MsgMatchOpen) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchOpen)(x) -} - -func (x *MsgMatchOpen) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[78] - 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_MsgMatchOpen_messageType fastReflection_MsgMatchOpen_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchOpen_messageType{} - -type fastReflection_MsgMatchOpen_messageType struct{} - -func (x fastReflection_MsgMatchOpen_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchOpen)(nil) -} -func (x fastReflection_MsgMatchOpen_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchOpen) -} -func (x fastReflection_MsgMatchOpen_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchOpen -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchOpen) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchOpen -} - -// 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_MsgMatchOpen) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchOpen_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchOpen) New() protoreflect.Message { - return new(fastReflection_MsgMatchOpen) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchOpen) Interface() protoreflect.ProtoMessage { - return (*MsgMatchOpen)(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_MsgMatchOpen) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgMatchOpen_creator, value) { - return - } - } - if x.PlayerA != "" { - value := protoreflect.ValueOfString(x.PlayerA) - if !f(fd_MsgMatchOpen_playerA, value) { - return - } - } - if x.PlayerB != "" { - value := protoreflect.ValueOfString(x.PlayerB) - if !f(fd_MsgMatchOpen_playerB, value) { - return - } - } - if len(x.PlayerADeck) != 0 { - value := protoreflect.ValueOfList(&_MsgMatchOpen_4_list{list: &x.PlayerADeck}) - if !f(fd_MsgMatchOpen_playerADeck, value) { - return - } - } - if len(x.PlayerBDeck) != 0 { - value := protoreflect.ValueOfList(&_MsgMatchOpen_5_list{list: &x.PlayerBDeck}) - if !f(fd_MsgMatchOpen_playerBDeck, 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_MsgMatchOpen) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpen.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgMatchOpen.playerA": - return x.PlayerA != "" - case "cardchain.cardchain.MsgMatchOpen.playerB": - return x.PlayerB != "" - case "cardchain.cardchain.MsgMatchOpen.playerADeck": - return len(x.PlayerADeck) != 0 - case "cardchain.cardchain.MsgMatchOpen.playerBDeck": - return len(x.PlayerBDeck) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpen 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_MsgMatchOpen) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpen.creator": - x.Creator = "" - case "cardchain.cardchain.MsgMatchOpen.playerA": - x.PlayerA = "" - case "cardchain.cardchain.MsgMatchOpen.playerB": - x.PlayerB = "" - case "cardchain.cardchain.MsgMatchOpen.playerADeck": - x.PlayerADeck = nil - case "cardchain.cardchain.MsgMatchOpen.playerBDeck": - x.PlayerBDeck = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpen 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_MsgMatchOpen) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgMatchOpen.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgMatchOpen.playerA": - value := x.PlayerA - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgMatchOpen.playerB": - value := x.PlayerB - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgMatchOpen.playerADeck": - if len(x.PlayerADeck) == 0 { - return protoreflect.ValueOfList(&_MsgMatchOpen_4_list{}) - } - listValue := &_MsgMatchOpen_4_list{list: &x.PlayerADeck} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.MsgMatchOpen.playerBDeck": - if len(x.PlayerBDeck) == 0 { - return protoreflect.ValueOfList(&_MsgMatchOpen_5_list{}) - } - listValue := &_MsgMatchOpen_5_list{list: &x.PlayerBDeck} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpen 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_MsgMatchOpen) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpen.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgMatchOpen.playerA": - x.PlayerA = value.Interface().(string) - case "cardchain.cardchain.MsgMatchOpen.playerB": - x.PlayerB = value.Interface().(string) - case "cardchain.cardchain.MsgMatchOpen.playerADeck": - lv := value.List() - clv := lv.(*_MsgMatchOpen_4_list) - x.PlayerADeck = *clv.list - case "cardchain.cardchain.MsgMatchOpen.playerBDeck": - lv := value.List() - clv := lv.(*_MsgMatchOpen_5_list) - x.PlayerBDeck = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpen 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_MsgMatchOpen) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpen.playerADeck": - if x.PlayerADeck == nil { - x.PlayerADeck = []uint64{} - } - value := &_MsgMatchOpen_4_list{list: &x.PlayerADeck} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgMatchOpen.playerBDeck": - if x.PlayerBDeck == nil { - x.PlayerBDeck = []uint64{} - } - value := &_MsgMatchOpen_5_list{list: &x.PlayerBDeck} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgMatchOpen.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgMatchOpen is not mutable")) - case "cardchain.cardchain.MsgMatchOpen.playerA": - panic(fmt.Errorf("field playerA of message cardchain.cardchain.MsgMatchOpen is not mutable")) - case "cardchain.cardchain.MsgMatchOpen.playerB": - panic(fmt.Errorf("field playerB of message cardchain.cardchain.MsgMatchOpen is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpen 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_MsgMatchOpen) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpen.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgMatchOpen.playerA": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgMatchOpen.playerB": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgMatchOpen.playerADeck": - list := []uint64{} - return protoreflect.ValueOfList(&_MsgMatchOpen_4_list{list: &list}) - case "cardchain.cardchain.MsgMatchOpen.playerBDeck": - list := []uint64{} - return protoreflect.ValueOfList(&_MsgMatchOpen_5_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpen")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpen 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_MsgMatchOpen) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchOpen", 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_MsgMatchOpen) 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_MsgMatchOpen) 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_MsgMatchOpen) 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_MsgMatchOpen) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchOpen) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PlayerA) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PlayerB) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.PlayerADeck) > 0 { - l = 0 - for _, e := range x.PlayerADeck { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.PlayerBDeck) > 0 { - l = 0 - for _, e := range x.PlayerBDeck { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*MsgMatchOpen) - 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.PlayerBDeck) > 0 { - var pksize2 int - for _, num := range x.PlayerBDeck { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.PlayerBDeck { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x2a - } - if len(x.PlayerADeck) > 0 { - var pksize4 int - for _, num := range x.PlayerADeck { - pksize4 += runtime.Sov(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num := range x.PlayerADeck { - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) - i-- - dAtA[i] = 0x22 - } - if len(x.PlayerB) > 0 { - i -= len(x.PlayerB) - copy(dAtA[i:], x.PlayerB) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PlayerB))) - i-- - dAtA[i] = 0x1a - } - if len(x.PlayerA) > 0 { - i -= len(x.PlayerA) - copy(dAtA[i:], x.PlayerA) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PlayerA))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgMatchOpen) - 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: MsgMatchOpen: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchOpen: 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 Creator", 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.Creator = 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 PlayerA", 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.PlayerA = 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 PlayerB", 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.PlayerB = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayerADeck = append(x.PlayerADeck, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.PlayerADeck) == 0 { - x.PlayerADeck = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayerADeck = append(x.PlayerADeck, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayerADeck", wireType) - } - case 5: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayerBDeck = append(x.PlayerBDeck, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.PlayerBDeck) == 0 { - x.PlayerBDeck = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PlayerBDeck = append(x.PlayerBDeck, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PlayerBDeck", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgMatchOpenResponse protoreflect.MessageDescriptor - fd_MsgMatchOpenResponse_matchId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgMatchOpenResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgMatchOpenResponse") - fd_MsgMatchOpenResponse_matchId = md_MsgMatchOpenResponse.Fields().ByName("matchId") -} - -var _ protoreflect.Message = (*fastReflection_MsgMatchOpenResponse)(nil) - -type fastReflection_MsgMatchOpenResponse MsgMatchOpenResponse - -func (x *MsgMatchOpenResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgMatchOpenResponse)(x) -} - -func (x *MsgMatchOpenResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[79] - 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_MsgMatchOpenResponse_messageType fastReflection_MsgMatchOpenResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgMatchOpenResponse_messageType{} - -type fastReflection_MsgMatchOpenResponse_messageType struct{} - -func (x fastReflection_MsgMatchOpenResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgMatchOpenResponse)(nil) -} -func (x fastReflection_MsgMatchOpenResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgMatchOpenResponse) -} -func (x fastReflection_MsgMatchOpenResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchOpenResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgMatchOpenResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgMatchOpenResponse -} - -// 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_MsgMatchOpenResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgMatchOpenResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgMatchOpenResponse) New() protoreflect.Message { - return new(fastReflection_MsgMatchOpenResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgMatchOpenResponse) Interface() protoreflect.ProtoMessage { - return (*MsgMatchOpenResponse)(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_MsgMatchOpenResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MatchId != uint64(0) { - value := protoreflect.ValueOfUint64(x.MatchId) - if !f(fd_MsgMatchOpenResponse_matchId, 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_MsgMatchOpenResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpenResponse.matchId": - return x.MatchId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpenResponse 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_MsgMatchOpenResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpenResponse.matchId": - x.MatchId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpenResponse 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_MsgMatchOpenResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgMatchOpenResponse.matchId": - value := x.MatchId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpenResponse 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_MsgMatchOpenResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpenResponse.matchId": - x.MatchId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpenResponse 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_MsgMatchOpenResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpenResponse.matchId": - panic(fmt.Errorf("field matchId of message cardchain.cardchain.MsgMatchOpenResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpenResponse 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_MsgMatchOpenResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgMatchOpenResponse.matchId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgMatchOpenResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgMatchOpenResponse 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_MsgMatchOpenResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgMatchOpenResponse", 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_MsgMatchOpenResponse) 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_MsgMatchOpenResponse) 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_MsgMatchOpenResponse) 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_MsgMatchOpenResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgMatchOpenResponse) - 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.MatchId != 0 { - n += 1 + runtime.Sov(uint64(x.MatchId)) - } - 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().(*MsgMatchOpenResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.MatchId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MatchId)) - i-- - dAtA[i] = 0x8 - } - 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().(*MsgMatchOpenResponse) - 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: MsgMatchOpenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgMatchOpenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType) - } - x.MatchId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.MatchId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetNameSet protoreflect.MessageDescriptor - fd_MsgSetNameSet_creator protoreflect.FieldDescriptor - fd_MsgSetNameSet_setId protoreflect.FieldDescriptor - fd_MsgSetNameSet_name protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetNameSet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetNameSet") - fd_MsgSetNameSet_creator = md_MsgSetNameSet.Fields().ByName("creator") - fd_MsgSetNameSet_setId = md_MsgSetNameSet.Fields().ByName("setId") - fd_MsgSetNameSet_name = md_MsgSetNameSet.Fields().ByName("name") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetNameSet)(nil) - -type fastReflection_MsgSetNameSet MsgSetNameSet - -func (x *MsgSetNameSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetNameSet)(x) -} - -func (x *MsgSetNameSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[80] - 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_MsgSetNameSet_messageType fastReflection_MsgSetNameSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetNameSet_messageType{} - -type fastReflection_MsgSetNameSet_messageType struct{} - -func (x fastReflection_MsgSetNameSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetNameSet)(nil) -} -func (x fastReflection_MsgSetNameSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetNameSet) -} -func (x fastReflection_MsgSetNameSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetNameSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetNameSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetNameSet -} - -// 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_MsgSetNameSet) Type() protoreflect.MessageType { - return _fastReflection_MsgSetNameSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetNameSet) New() protoreflect.Message { - return new(fastReflection_MsgSetNameSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetNameSet) Interface() protoreflect.ProtoMessage { - return (*MsgSetNameSet)(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_MsgSetNameSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetNameSet_creator, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetNameSet_setId, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgSetNameSet_name, 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_MsgSetNameSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetNameSet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgSetNameSet.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.MsgSetNameSet.name": - return x.Name != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSet 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_MsgSetNameSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetNameSet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgSetNameSet.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.MsgSetNameSet.name": - x.Name = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSet 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_MsgSetNameSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetNameSet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetNameSet.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgSetNameSet.name": - value := x.Name - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSet 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_MsgSetNameSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetNameSet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgSetNameSet.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.MsgSetNameSet.name": - x.Name = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSet 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_MsgSetNameSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetNameSet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgSetNameSet is not mutable")) - case "cardchain.cardchain.MsgSetNameSet.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetNameSet is not mutable")) - case "cardchain.cardchain.MsgSetNameSet.name": - panic(fmt.Errorf("field name of message cardchain.cardchain.MsgSetNameSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSet 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_MsgSetNameSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetNameSet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetNameSet.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgSetNameSet.name": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSet 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_MsgSetNameSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetNameSet", 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_MsgSetNameSet) 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_MsgSetNameSet) 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_MsgSetNameSet) 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_MsgSetNameSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetNameSet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - l = len(x.Name) - 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().(*MsgSetNameSet) - 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.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x1a - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgSetNameSet) - 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: MsgSetNameSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetNameSet: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetNameSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetNameSetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetNameSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetNameSetResponse)(nil) - -type fastReflection_MsgSetNameSetResponse MsgSetNameSetResponse - -func (x *MsgSetNameSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetNameSetResponse)(x) -} - -func (x *MsgSetNameSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[81] - 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_MsgSetNameSetResponse_messageType fastReflection_MsgSetNameSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetNameSetResponse_messageType{} - -type fastReflection_MsgSetNameSetResponse_messageType struct{} - -func (x fastReflection_MsgSetNameSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetNameSetResponse)(nil) -} -func (x fastReflection_MsgSetNameSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetNameSetResponse) -} -func (x fastReflection_MsgSetNameSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetNameSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetNameSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetNameSetResponse -} - -// 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_MsgSetNameSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetNameSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetNameSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetNameSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetNameSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetNameSetResponse)(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_MsgSetNameSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetNameSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSetResponse 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_MsgSetNameSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSetResponse 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_MsgSetNameSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSetResponse 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_MsgSetNameSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSetResponse 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_MsgSetNameSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSetResponse 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_MsgSetNameSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetNameSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetNameSetResponse 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_MsgSetNameSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetNameSetResponse", 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_MsgSetNameSetResponse) 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_MsgSetNameSetResponse) 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_MsgSetNameSetResponse) 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_MsgSetNameSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetNameSetResponse) - 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().(*MsgSetNameSetResponse) - 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().(*MsgSetNameSetResponse) - 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: MsgSetNameSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetNameSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileAliasSet protoreflect.MessageDescriptor - fd_MsgProfileAliasSet_creator protoreflect.FieldDescriptor - fd_MsgProfileAliasSet_alias protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileAliasSet = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileAliasSet") - fd_MsgProfileAliasSet_creator = md_MsgProfileAliasSet.Fields().ByName("creator") - fd_MsgProfileAliasSet_alias = md_MsgProfileAliasSet.Fields().ByName("alias") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileAliasSet)(nil) - -type fastReflection_MsgProfileAliasSet MsgProfileAliasSet - -func (x *MsgProfileAliasSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileAliasSet)(x) -} - -func (x *MsgProfileAliasSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[82] - 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_MsgProfileAliasSet_messageType fastReflection_MsgProfileAliasSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileAliasSet_messageType{} - -type fastReflection_MsgProfileAliasSet_messageType struct{} - -func (x fastReflection_MsgProfileAliasSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileAliasSet)(nil) -} -func (x fastReflection_MsgProfileAliasSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileAliasSet) -} -func (x fastReflection_MsgProfileAliasSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileAliasSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileAliasSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileAliasSet -} - -// 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_MsgProfileAliasSet) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileAliasSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileAliasSet) New() protoreflect.Message { - return new(fastReflection_MsgProfileAliasSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileAliasSet) Interface() protoreflect.ProtoMessage { - return (*MsgProfileAliasSet)(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_MsgProfileAliasSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgProfileAliasSet_creator, value) { - return - } - } - if x.Alias != "" { - value := protoreflect.ValueOfString(x.Alias) - if !f(fd_MsgProfileAliasSet_alias, 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_MsgProfileAliasSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileAliasSet.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgProfileAliasSet.alias": - return x.Alias != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSet 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_MsgProfileAliasSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileAliasSet.creator": - x.Creator = "" - case "cardchain.cardchain.MsgProfileAliasSet.alias": - x.Alias = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSet 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_MsgProfileAliasSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgProfileAliasSet.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgProfileAliasSet.alias": - value := x.Alias - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSet 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_MsgProfileAliasSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileAliasSet.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgProfileAliasSet.alias": - x.Alias = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSet 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_MsgProfileAliasSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileAliasSet.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgProfileAliasSet is not mutable")) - case "cardchain.cardchain.MsgProfileAliasSet.alias": - panic(fmt.Errorf("field alias of message cardchain.cardchain.MsgProfileAliasSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSet 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_MsgProfileAliasSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgProfileAliasSet.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgProfileAliasSet.alias": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSet")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSet 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_MsgProfileAliasSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileAliasSet", 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_MsgProfileAliasSet) 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_MsgProfileAliasSet) 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_MsgProfileAliasSet) 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_MsgProfileAliasSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileAliasSet) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Alias) - 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().(*MsgProfileAliasSet) - 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.Alias) > 0 { - i -= len(x.Alias) - copy(dAtA[i:], x.Alias) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgProfileAliasSet) - 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: MsgProfileAliasSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileAliasSet: 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 Creator", 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.Creator = 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 Alias", 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.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgProfileAliasSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgProfileAliasSetResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgProfileAliasSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgProfileAliasSetResponse)(nil) - -type fastReflection_MsgProfileAliasSetResponse MsgProfileAliasSetResponse - -func (x *MsgProfileAliasSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgProfileAliasSetResponse)(x) -} - -func (x *MsgProfileAliasSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[83] - 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_MsgProfileAliasSetResponse_messageType fastReflection_MsgProfileAliasSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgProfileAliasSetResponse_messageType{} - -type fastReflection_MsgProfileAliasSetResponse_messageType struct{} - -func (x fastReflection_MsgProfileAliasSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgProfileAliasSetResponse)(nil) -} -func (x fastReflection_MsgProfileAliasSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgProfileAliasSetResponse) -} -func (x fastReflection_MsgProfileAliasSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileAliasSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgProfileAliasSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgProfileAliasSetResponse -} - -// 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_MsgProfileAliasSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgProfileAliasSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgProfileAliasSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgProfileAliasSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgProfileAliasSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgProfileAliasSetResponse)(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_MsgProfileAliasSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgProfileAliasSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSetResponse 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_MsgProfileAliasSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSetResponse 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_MsgProfileAliasSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSetResponse 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_MsgProfileAliasSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSetResponse 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_MsgProfileAliasSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSetResponse 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_MsgProfileAliasSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgProfileAliasSetResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgProfileAliasSetResponse 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_MsgProfileAliasSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgProfileAliasSetResponse", 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_MsgProfileAliasSetResponse) 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_MsgProfileAliasSetResponse) 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_MsgProfileAliasSetResponse) 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_MsgProfileAliasSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgProfileAliasSetResponse) - 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().(*MsgProfileAliasSetResponse) - 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().(*MsgProfileAliasSetResponse) - 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: MsgProfileAliasSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProfileAliasSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEarlyAccessInvite protoreflect.MessageDescriptor - fd_MsgEarlyAccessInvite_creator protoreflect.FieldDescriptor - fd_MsgEarlyAccessInvite_user protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEarlyAccessInvite = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEarlyAccessInvite") - fd_MsgEarlyAccessInvite_creator = md_MsgEarlyAccessInvite.Fields().ByName("creator") - fd_MsgEarlyAccessInvite_user = md_MsgEarlyAccessInvite.Fields().ByName("user") -} - -var _ protoreflect.Message = (*fastReflection_MsgEarlyAccessInvite)(nil) - -type fastReflection_MsgEarlyAccessInvite MsgEarlyAccessInvite - -func (x *MsgEarlyAccessInvite) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessInvite)(x) -} - -func (x *MsgEarlyAccessInvite) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[84] - 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_MsgEarlyAccessInvite_messageType fastReflection_MsgEarlyAccessInvite_messageType -var _ protoreflect.MessageType = fastReflection_MsgEarlyAccessInvite_messageType{} - -type fastReflection_MsgEarlyAccessInvite_messageType struct{} - -func (x fastReflection_MsgEarlyAccessInvite_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessInvite)(nil) -} -func (x fastReflection_MsgEarlyAccessInvite_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessInvite) -} -func (x fastReflection_MsgEarlyAccessInvite_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessInvite -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEarlyAccessInvite) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessInvite -} - -// 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_MsgEarlyAccessInvite) Type() protoreflect.MessageType { - return _fastReflection_MsgEarlyAccessInvite_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEarlyAccessInvite) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessInvite) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEarlyAccessInvite) Interface() protoreflect.ProtoMessage { - return (*MsgEarlyAccessInvite)(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_MsgEarlyAccessInvite) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgEarlyAccessInvite_creator, value) { - return - } - } - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_MsgEarlyAccessInvite_user, 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_MsgEarlyAccessInvite) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessInvite.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgEarlyAccessInvite.user": - return x.User != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInvite 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_MsgEarlyAccessInvite) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessInvite.creator": - x.Creator = "" - case "cardchain.cardchain.MsgEarlyAccessInvite.user": - x.User = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInvite 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_MsgEarlyAccessInvite) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgEarlyAccessInvite.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEarlyAccessInvite.user": - value := x.User - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInvite 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_MsgEarlyAccessInvite) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessInvite.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgEarlyAccessInvite.user": - x.User = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInvite 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_MsgEarlyAccessInvite) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessInvite.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgEarlyAccessInvite is not mutable")) - case "cardchain.cardchain.MsgEarlyAccessInvite.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.MsgEarlyAccessInvite is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInvite 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_MsgEarlyAccessInvite) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessInvite.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEarlyAccessInvite.user": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInvite 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_MsgEarlyAccessInvite) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEarlyAccessInvite", 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_MsgEarlyAccessInvite) 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_MsgEarlyAccessInvite) 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_MsgEarlyAccessInvite) 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_MsgEarlyAccessInvite) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEarlyAccessInvite) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.User) - 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().(*MsgEarlyAccessInvite) - 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.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgEarlyAccessInvite) - 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: MsgEarlyAccessInvite: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEarlyAccessInvite: 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 Creator", 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.Creator = 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 User", 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.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEarlyAccessInviteResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEarlyAccessInviteResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEarlyAccessInviteResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgEarlyAccessInviteResponse)(nil) - -type fastReflection_MsgEarlyAccessInviteResponse MsgEarlyAccessInviteResponse - -func (x *MsgEarlyAccessInviteResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessInviteResponse)(x) -} - -func (x *MsgEarlyAccessInviteResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[85] - 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_MsgEarlyAccessInviteResponse_messageType fastReflection_MsgEarlyAccessInviteResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgEarlyAccessInviteResponse_messageType{} - -type fastReflection_MsgEarlyAccessInviteResponse_messageType struct{} - -func (x fastReflection_MsgEarlyAccessInviteResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessInviteResponse)(nil) -} -func (x fastReflection_MsgEarlyAccessInviteResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessInviteResponse) -} -func (x fastReflection_MsgEarlyAccessInviteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessInviteResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEarlyAccessInviteResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessInviteResponse -} - -// 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_MsgEarlyAccessInviteResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgEarlyAccessInviteResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEarlyAccessInviteResponse) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessInviteResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEarlyAccessInviteResponse) Interface() protoreflect.ProtoMessage { - return (*MsgEarlyAccessInviteResponse)(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_MsgEarlyAccessInviteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgEarlyAccessInviteResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInviteResponse 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_MsgEarlyAccessInviteResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInviteResponse 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_MsgEarlyAccessInviteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInviteResponse 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_MsgEarlyAccessInviteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInviteResponse 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_MsgEarlyAccessInviteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInviteResponse 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_MsgEarlyAccessInviteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessInviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessInviteResponse 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_MsgEarlyAccessInviteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEarlyAccessInviteResponse", 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_MsgEarlyAccessInviteResponse) 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_MsgEarlyAccessInviteResponse) 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_MsgEarlyAccessInviteResponse) 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_MsgEarlyAccessInviteResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEarlyAccessInviteResponse) - 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().(*MsgEarlyAccessInviteResponse) - 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().(*MsgEarlyAccessInviteResponse) - 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: MsgEarlyAccessInviteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEarlyAccessInviteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgZealyConnect protoreflect.MessageDescriptor - fd_MsgZealyConnect_creator protoreflect.FieldDescriptor - fd_MsgZealyConnect_zealyId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgZealyConnect = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgZealyConnect") - fd_MsgZealyConnect_creator = md_MsgZealyConnect.Fields().ByName("creator") - fd_MsgZealyConnect_zealyId = md_MsgZealyConnect.Fields().ByName("zealyId") -} - -var _ protoreflect.Message = (*fastReflection_MsgZealyConnect)(nil) - -type fastReflection_MsgZealyConnect MsgZealyConnect - -func (x *MsgZealyConnect) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgZealyConnect)(x) -} - -func (x *MsgZealyConnect) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[86] - 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_MsgZealyConnect_messageType fastReflection_MsgZealyConnect_messageType -var _ protoreflect.MessageType = fastReflection_MsgZealyConnect_messageType{} - -type fastReflection_MsgZealyConnect_messageType struct{} - -func (x fastReflection_MsgZealyConnect_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgZealyConnect)(nil) -} -func (x fastReflection_MsgZealyConnect_messageType) New() protoreflect.Message { - return new(fastReflection_MsgZealyConnect) -} -func (x fastReflection_MsgZealyConnect_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgZealyConnect -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgZealyConnect) Descriptor() protoreflect.MessageDescriptor { - return md_MsgZealyConnect -} - -// 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_MsgZealyConnect) Type() protoreflect.MessageType { - return _fastReflection_MsgZealyConnect_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgZealyConnect) New() protoreflect.Message { - return new(fastReflection_MsgZealyConnect) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgZealyConnect) Interface() protoreflect.ProtoMessage { - return (*MsgZealyConnect)(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_MsgZealyConnect) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgZealyConnect_creator, value) { - return - } - } - if x.ZealyId != "" { - value := protoreflect.ValueOfString(x.ZealyId) - if !f(fd_MsgZealyConnect_zealyId, 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_MsgZealyConnect) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgZealyConnect.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgZealyConnect.zealyId": - return x.ZealyId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnect")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnect 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_MsgZealyConnect) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgZealyConnect.creator": - x.Creator = "" - case "cardchain.cardchain.MsgZealyConnect.zealyId": - x.ZealyId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnect")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnect 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_MsgZealyConnect) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgZealyConnect.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgZealyConnect.zealyId": - value := x.ZealyId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnect")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnect 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_MsgZealyConnect) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgZealyConnect.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgZealyConnect.zealyId": - x.ZealyId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnect")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnect 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_MsgZealyConnect) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgZealyConnect.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgZealyConnect is not mutable")) - case "cardchain.cardchain.MsgZealyConnect.zealyId": - panic(fmt.Errorf("field zealyId of message cardchain.cardchain.MsgZealyConnect is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnect")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnect 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_MsgZealyConnect) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgZealyConnect.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgZealyConnect.zealyId": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnect")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnect 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_MsgZealyConnect) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgZealyConnect", 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_MsgZealyConnect) 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_MsgZealyConnect) 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_MsgZealyConnect) 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_MsgZealyConnect) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgZealyConnect) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ZealyId) - 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().(*MsgZealyConnect) - 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.ZealyId) > 0 { - i -= len(x.ZealyId) - copy(dAtA[i:], x.ZealyId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ZealyId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgZealyConnect) - 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: MsgZealyConnect: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgZealyConnect: 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 Creator", 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.Creator = 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 ZealyId", 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.ZealyId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgZealyConnectResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgZealyConnectResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgZealyConnectResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgZealyConnectResponse)(nil) - -type fastReflection_MsgZealyConnectResponse MsgZealyConnectResponse - -func (x *MsgZealyConnectResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgZealyConnectResponse)(x) -} - -func (x *MsgZealyConnectResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[87] - 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_MsgZealyConnectResponse_messageType fastReflection_MsgZealyConnectResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgZealyConnectResponse_messageType{} - -type fastReflection_MsgZealyConnectResponse_messageType struct{} - -func (x fastReflection_MsgZealyConnectResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgZealyConnectResponse)(nil) -} -func (x fastReflection_MsgZealyConnectResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgZealyConnectResponse) -} -func (x fastReflection_MsgZealyConnectResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgZealyConnectResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgZealyConnectResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgZealyConnectResponse -} - -// 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_MsgZealyConnectResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgZealyConnectResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgZealyConnectResponse) New() protoreflect.Message { - return new(fastReflection_MsgZealyConnectResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgZealyConnectResponse) Interface() protoreflect.ProtoMessage { - return (*MsgZealyConnectResponse)(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_MsgZealyConnectResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgZealyConnectResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnectResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnectResponse 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_MsgZealyConnectResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnectResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnectResponse 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_MsgZealyConnectResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnectResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnectResponse 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_MsgZealyConnectResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnectResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnectResponse 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_MsgZealyConnectResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnectResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnectResponse 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_MsgZealyConnectResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgZealyConnectResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgZealyConnectResponse 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_MsgZealyConnectResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgZealyConnectResponse", 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_MsgZealyConnectResponse) 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_MsgZealyConnectResponse) 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_MsgZealyConnectResponse) 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_MsgZealyConnectResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgZealyConnectResponse) - 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().(*MsgZealyConnectResponse) - 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().(*MsgZealyConnectResponse) - 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: MsgZealyConnectResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgZealyConnectResponse: 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 = (*_MsgEncounterCreate_3_list)(nil) - -type _MsgEncounterCreate_3_list struct { - list *[]uint64 -} - -func (x *_MsgEncounterCreate_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgEncounterCreate_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_MsgEncounterCreate_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgEncounterCreate_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgEncounterCreate_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgEncounterCreate at list field Drawlist as it is not of Message kind")) -} - -func (x *_MsgEncounterCreate_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgEncounterCreate_3_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MsgEncounterCreate_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.Map = (*_MsgEncounterCreate_4_map)(nil) - -type _MsgEncounterCreate_4_map struct { - m *map[string]string -} - -func (x *_MsgEncounterCreate_4_map) Len() int { - if x.m == nil { - return 0 - } - return len(*x.m) -} - -func (x *_MsgEncounterCreate_4_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { - if x.m == nil { - return - } - for k, v := range *x.m { - mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) - mapValue := protoreflect.ValueOfString(v) - if !f(mapKey, mapValue) { - break - } - } -} - -func (x *_MsgEncounterCreate_4_map) Has(key protoreflect.MapKey) bool { - if x.m == nil { - return false - } - keyUnwrapped := key.String() - concreteValue := keyUnwrapped - _, ok := (*x.m)[concreteValue] - return ok -} - -func (x *_MsgEncounterCreate_4_map) Clear(key protoreflect.MapKey) { - if x.m == nil { - return - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - delete(*x.m, concreteKey) -} - -func (x *_MsgEncounterCreate_4_map) Get(key protoreflect.MapKey) protoreflect.Value { - if x.m == nil { - return protoreflect.Value{} - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if !ok { - return protoreflect.Value{} - } - return protoreflect.ValueOfString(v) -} - -func (x *_MsgEncounterCreate_4_map) Set(key protoreflect.MapKey, value protoreflect.Value) { - if !key.IsValid() || !value.IsValid() { - panic("invalid key or value provided") - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.m)[concreteKey] = concreteValue -} - -func (x *_MsgEncounterCreate_4_map) Mutable(key protoreflect.MapKey) protoreflect.Value { - panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") -} - -func (x *_MsgEncounterCreate_4_map) NewValue() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgEncounterCreate_4_map) IsValid() bool { - return x.m != nil -} - -var ( - md_MsgEncounterCreate protoreflect.MessageDescriptor - fd_MsgEncounterCreate_creator protoreflect.FieldDescriptor - fd_MsgEncounterCreate_name protoreflect.FieldDescriptor - fd_MsgEncounterCreate_drawlist protoreflect.FieldDescriptor - fd_MsgEncounterCreate_parameters protoreflect.FieldDescriptor - fd_MsgEncounterCreate_image protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEncounterCreate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEncounterCreate") - fd_MsgEncounterCreate_creator = md_MsgEncounterCreate.Fields().ByName("creator") - fd_MsgEncounterCreate_name = md_MsgEncounterCreate.Fields().ByName("name") - fd_MsgEncounterCreate_drawlist = md_MsgEncounterCreate.Fields().ByName("drawlist") - fd_MsgEncounterCreate_parameters = md_MsgEncounterCreate.Fields().ByName("parameters") - fd_MsgEncounterCreate_image = md_MsgEncounterCreate.Fields().ByName("image") -} - -var _ protoreflect.Message = (*fastReflection_MsgEncounterCreate)(nil) - -type fastReflection_MsgEncounterCreate MsgEncounterCreate - -func (x *MsgEncounterCreate) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEncounterCreate)(x) -} - -func (x *MsgEncounterCreate) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[88] - 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_MsgEncounterCreate_messageType fastReflection_MsgEncounterCreate_messageType -var _ protoreflect.MessageType = fastReflection_MsgEncounterCreate_messageType{} - -type fastReflection_MsgEncounterCreate_messageType struct{} - -func (x fastReflection_MsgEncounterCreate_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEncounterCreate)(nil) -} -func (x fastReflection_MsgEncounterCreate_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEncounterCreate) -} -func (x fastReflection_MsgEncounterCreate_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterCreate -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEncounterCreate) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterCreate -} - -// 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_MsgEncounterCreate) Type() protoreflect.MessageType { - return _fastReflection_MsgEncounterCreate_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEncounterCreate) New() protoreflect.Message { - return new(fastReflection_MsgEncounterCreate) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEncounterCreate) Interface() protoreflect.ProtoMessage { - return (*MsgEncounterCreate)(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_MsgEncounterCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgEncounterCreate_creator, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgEncounterCreate_name, value) { - return - } - } - if len(x.Drawlist) != 0 { - value := protoreflect.ValueOfList(&_MsgEncounterCreate_3_list{list: &x.Drawlist}) - if !f(fd_MsgEncounterCreate_drawlist, value) { - return - } - } - if len(x.Parameters) != 0 { - value := protoreflect.ValueOfMap(&_MsgEncounterCreate_4_map{m: &x.Parameters}) - if !f(fd_MsgEncounterCreate_parameters, value) { - return - } - } - if len(x.Image) != 0 { - value := protoreflect.ValueOfBytes(x.Image) - if !f(fd_MsgEncounterCreate_image, 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_MsgEncounterCreate) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterCreate.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgEncounterCreate.name": - return x.Name != "" - case "cardchain.cardchain.MsgEncounterCreate.drawlist": - return len(x.Drawlist) != 0 - case "cardchain.cardchain.MsgEncounterCreate.parameters": - return len(x.Parameters) != 0 - case "cardchain.cardchain.MsgEncounterCreate.image": - return len(x.Image) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreate 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_MsgEncounterCreate) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterCreate.creator": - x.Creator = "" - case "cardchain.cardchain.MsgEncounterCreate.name": - x.Name = "" - case "cardchain.cardchain.MsgEncounterCreate.drawlist": - x.Drawlist = nil - case "cardchain.cardchain.MsgEncounterCreate.parameters": - x.Parameters = nil - case "cardchain.cardchain.MsgEncounterCreate.image": - x.Image = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreate 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_MsgEncounterCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgEncounterCreate.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEncounterCreate.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEncounterCreate.drawlist": - if len(x.Drawlist) == 0 { - return protoreflect.ValueOfList(&_MsgEncounterCreate_3_list{}) - } - listValue := &_MsgEncounterCreate_3_list{list: &x.Drawlist} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.MsgEncounterCreate.parameters": - if len(x.Parameters) == 0 { - return protoreflect.ValueOfMap(&_MsgEncounterCreate_4_map{}) - } - mapValue := &_MsgEncounterCreate_4_map{m: &x.Parameters} - return protoreflect.ValueOfMap(mapValue) - case "cardchain.cardchain.MsgEncounterCreate.image": - value := x.Image - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreate 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_MsgEncounterCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterCreate.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgEncounterCreate.name": - x.Name = value.Interface().(string) - case "cardchain.cardchain.MsgEncounterCreate.drawlist": - lv := value.List() - clv := lv.(*_MsgEncounterCreate_3_list) - x.Drawlist = *clv.list - case "cardchain.cardchain.MsgEncounterCreate.parameters": - mv := value.Map() - cmv := mv.(*_MsgEncounterCreate_4_map) - x.Parameters = *cmv.m - case "cardchain.cardchain.MsgEncounterCreate.image": - x.Image = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreate 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_MsgEncounterCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterCreate.drawlist": - if x.Drawlist == nil { - x.Drawlist = []uint64{} - } - value := &_MsgEncounterCreate_3_list{list: &x.Drawlist} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgEncounterCreate.parameters": - if x.Parameters == nil { - x.Parameters = make(map[string]string) - } - value := &_MsgEncounterCreate_4_map{m: &x.Parameters} - return protoreflect.ValueOfMap(value) - case "cardchain.cardchain.MsgEncounterCreate.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgEncounterCreate is not mutable")) - case "cardchain.cardchain.MsgEncounterCreate.name": - panic(fmt.Errorf("field name of message cardchain.cardchain.MsgEncounterCreate is not mutable")) - case "cardchain.cardchain.MsgEncounterCreate.image": - panic(fmt.Errorf("field image of message cardchain.cardchain.MsgEncounterCreate is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreate 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_MsgEncounterCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterCreate.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEncounterCreate.name": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEncounterCreate.drawlist": - list := []uint64{} - return protoreflect.ValueOfList(&_MsgEncounterCreate_3_list{list: &list}) - case "cardchain.cardchain.MsgEncounterCreate.parameters": - m := make(map[string]string) - return protoreflect.ValueOfMap(&_MsgEncounterCreate_4_map{m: &m}) - case "cardchain.cardchain.MsgEncounterCreate.image": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreate 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_MsgEncounterCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEncounterCreate", 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_MsgEncounterCreate) 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_MsgEncounterCreate) 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_MsgEncounterCreate) 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_MsgEncounterCreate) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEncounterCreate) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Drawlist) > 0 { - l = 0 - for _, e := range x.Drawlist { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.Parameters) > 0 { - SiZeMaP := func(k string, v string) { - mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v))) - n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) - } - if options.Deterministic { - sortme := make([]string, 0, len(x.Parameters)) - for k := range x.Parameters { - sortme = append(sortme, k) - } - sort.Strings(sortme) - for _, k := range sortme { - v := x.Parameters[k] - SiZeMaP(k, v) - } - } else { - for k, v := range x.Parameters { - SiZeMaP(k, v) - } - } - } - l = len(x.Image) - 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().(*MsgEncounterCreate) - 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.Image) > 0 { - i -= len(x.Image) - copy(dAtA[i:], x.Image) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Image))) - i-- - dAtA[i] = 0x2a - } - if len(x.Parameters) > 0 { - MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) { - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - return protoiface.MarshalOutput{}, nil - } - if options.Deterministic { - keysForParameters := make([]string, 0, len(x.Parameters)) - for k := range x.Parameters { - keysForParameters = append(keysForParameters, string(k)) - } - sort.Slice(keysForParameters, func(i, j int) bool { - return keysForParameters[i] < keysForParameters[j] - }) - for iNdEx := len(keysForParameters) - 1; iNdEx >= 0; iNdEx-- { - v := x.Parameters[string(keysForParameters[iNdEx])] - out, err := MaRsHaLmAp(keysForParameters[iNdEx], v) - if err != nil { - return out, err - } - } - } else { - for k := range x.Parameters { - v := x.Parameters[k] - out, err := MaRsHaLmAp(k, v) - if err != nil { - return out, err - } - } - } - } - if len(x.Drawlist) > 0 { - var pksize2 int - for _, num := range x.Drawlist { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.Drawlist { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x1a - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgEncounterCreate) - 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: MsgEncounterCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEncounterCreate: 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 Creator", 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.Creator = 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 Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Drawlist = append(x.Drawlist, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Drawlist) == 0 { - x.Drawlist = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Drawlist = append(x.Drawlist, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Drawlist", wireType) - } - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Parameters == nil { - x.Parameters = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey 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++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapkey > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue 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++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - 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) > postIndex { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - x.Parameters[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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.Image = append(x.Image[:0], dAtA[iNdEx:postIndex]...) - if x.Image == nil { - x.Image = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEncounterCreateResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEncounterCreateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEncounterCreateResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgEncounterCreateResponse)(nil) - -type fastReflection_MsgEncounterCreateResponse MsgEncounterCreateResponse - -func (x *MsgEncounterCreateResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEncounterCreateResponse)(x) -} - -func (x *MsgEncounterCreateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[89] - 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_MsgEncounterCreateResponse_messageType fastReflection_MsgEncounterCreateResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgEncounterCreateResponse_messageType{} - -type fastReflection_MsgEncounterCreateResponse_messageType struct{} - -func (x fastReflection_MsgEncounterCreateResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEncounterCreateResponse)(nil) -} -func (x fastReflection_MsgEncounterCreateResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEncounterCreateResponse) -} -func (x fastReflection_MsgEncounterCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterCreateResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEncounterCreateResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterCreateResponse -} - -// 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_MsgEncounterCreateResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgEncounterCreateResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEncounterCreateResponse) New() protoreflect.Message { - return new(fastReflection_MsgEncounterCreateResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEncounterCreateResponse) Interface() protoreflect.ProtoMessage { - return (*MsgEncounterCreateResponse)(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_MsgEncounterCreateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgEncounterCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreateResponse 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_MsgEncounterCreateResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreateResponse 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_MsgEncounterCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreateResponse 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_MsgEncounterCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreateResponse 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_MsgEncounterCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreateResponse 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_MsgEncounterCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCreateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCreateResponse 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_MsgEncounterCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEncounterCreateResponse", 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_MsgEncounterCreateResponse) 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_MsgEncounterCreateResponse) 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_MsgEncounterCreateResponse) 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_MsgEncounterCreateResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEncounterCreateResponse) - 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().(*MsgEncounterCreateResponse) - 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().(*MsgEncounterCreateResponse) - 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: MsgEncounterCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEncounterCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEncounterDo protoreflect.MessageDescriptor - fd_MsgEncounterDo_creator protoreflect.FieldDescriptor - fd_MsgEncounterDo_encounterId protoreflect.FieldDescriptor - fd_MsgEncounterDo_user protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEncounterDo = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEncounterDo") - fd_MsgEncounterDo_creator = md_MsgEncounterDo.Fields().ByName("creator") - fd_MsgEncounterDo_encounterId = md_MsgEncounterDo.Fields().ByName("encounterId") - fd_MsgEncounterDo_user = md_MsgEncounterDo.Fields().ByName("user") -} - -var _ protoreflect.Message = (*fastReflection_MsgEncounterDo)(nil) - -type fastReflection_MsgEncounterDo MsgEncounterDo - -func (x *MsgEncounterDo) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEncounterDo)(x) -} - -func (x *MsgEncounterDo) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[90] - 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_MsgEncounterDo_messageType fastReflection_MsgEncounterDo_messageType -var _ protoreflect.MessageType = fastReflection_MsgEncounterDo_messageType{} - -type fastReflection_MsgEncounterDo_messageType struct{} - -func (x fastReflection_MsgEncounterDo_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEncounterDo)(nil) -} -func (x fastReflection_MsgEncounterDo_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEncounterDo) -} -func (x fastReflection_MsgEncounterDo_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterDo -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEncounterDo) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterDo -} - -// 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_MsgEncounterDo) Type() protoreflect.MessageType { - return _fastReflection_MsgEncounterDo_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEncounterDo) New() protoreflect.Message { - return new(fastReflection_MsgEncounterDo) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEncounterDo) Interface() protoreflect.ProtoMessage { - return (*MsgEncounterDo)(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_MsgEncounterDo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgEncounterDo_creator, value) { - return - } - } - if x.EncounterId != uint64(0) { - value := protoreflect.ValueOfUint64(x.EncounterId) - if !f(fd_MsgEncounterDo_encounterId, value) { - return - } - } - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_MsgEncounterDo_user, 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_MsgEncounterDo) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterDo.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgEncounterDo.encounterId": - return x.EncounterId != uint64(0) - case "cardchain.cardchain.MsgEncounterDo.user": - return x.User != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDo")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDo 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_MsgEncounterDo) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterDo.creator": - x.Creator = "" - case "cardchain.cardchain.MsgEncounterDo.encounterId": - x.EncounterId = uint64(0) - case "cardchain.cardchain.MsgEncounterDo.user": - x.User = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDo")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDo 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_MsgEncounterDo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgEncounterDo.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEncounterDo.encounterId": - value := x.EncounterId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgEncounterDo.user": - value := x.User - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDo")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDo 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_MsgEncounterDo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterDo.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgEncounterDo.encounterId": - x.EncounterId = value.Uint() - case "cardchain.cardchain.MsgEncounterDo.user": - x.User = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDo")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDo 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_MsgEncounterDo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterDo.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgEncounterDo is not mutable")) - case "cardchain.cardchain.MsgEncounterDo.encounterId": - panic(fmt.Errorf("field encounterId of message cardchain.cardchain.MsgEncounterDo is not mutable")) - case "cardchain.cardchain.MsgEncounterDo.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.MsgEncounterDo is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDo")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDo 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_MsgEncounterDo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterDo.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEncounterDo.encounterId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgEncounterDo.user": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDo")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDo 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_MsgEncounterDo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEncounterDo", 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_MsgEncounterDo) 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_MsgEncounterDo) 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_MsgEncounterDo) 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_MsgEncounterDo) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEncounterDo) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.EncounterId != 0 { - n += 1 + runtime.Sov(uint64(x.EncounterId)) - } - l = len(x.User) - 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().(*MsgEncounterDo) - 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.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - i-- - dAtA[i] = 0x1a - } - if x.EncounterId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EncounterId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgEncounterDo) - 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: MsgEncounterDo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEncounterDo: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncounterId", wireType) - } - x.EncounterId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EncounterId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEncounterDoResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEncounterDoResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEncounterDoResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgEncounterDoResponse)(nil) - -type fastReflection_MsgEncounterDoResponse MsgEncounterDoResponse - -func (x *MsgEncounterDoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEncounterDoResponse)(x) -} - -func (x *MsgEncounterDoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[91] - 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_MsgEncounterDoResponse_messageType fastReflection_MsgEncounterDoResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgEncounterDoResponse_messageType{} - -type fastReflection_MsgEncounterDoResponse_messageType struct{} - -func (x fastReflection_MsgEncounterDoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEncounterDoResponse)(nil) -} -func (x fastReflection_MsgEncounterDoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEncounterDoResponse) -} -func (x fastReflection_MsgEncounterDoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterDoResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEncounterDoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterDoResponse -} - -// 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_MsgEncounterDoResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgEncounterDoResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEncounterDoResponse) New() protoreflect.Message { - return new(fastReflection_MsgEncounterDoResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEncounterDoResponse) Interface() protoreflect.ProtoMessage { - return (*MsgEncounterDoResponse)(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_MsgEncounterDoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgEncounterDoResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDoResponse 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_MsgEncounterDoResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDoResponse 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_MsgEncounterDoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDoResponse 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_MsgEncounterDoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDoResponse 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_MsgEncounterDoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDoResponse 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_MsgEncounterDoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterDoResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterDoResponse 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_MsgEncounterDoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEncounterDoResponse", 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_MsgEncounterDoResponse) 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_MsgEncounterDoResponse) 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_MsgEncounterDoResponse) 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_MsgEncounterDoResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEncounterDoResponse) - 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().(*MsgEncounterDoResponse) - 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().(*MsgEncounterDoResponse) - 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: MsgEncounterDoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEncounterDoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEncounterClose protoreflect.MessageDescriptor - fd_MsgEncounterClose_creator protoreflect.FieldDescriptor - fd_MsgEncounterClose_encounterId protoreflect.FieldDescriptor - fd_MsgEncounterClose_user protoreflect.FieldDescriptor - fd_MsgEncounterClose_won protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEncounterClose = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEncounterClose") - fd_MsgEncounterClose_creator = md_MsgEncounterClose.Fields().ByName("creator") - fd_MsgEncounterClose_encounterId = md_MsgEncounterClose.Fields().ByName("encounterId") - fd_MsgEncounterClose_user = md_MsgEncounterClose.Fields().ByName("user") - fd_MsgEncounterClose_won = md_MsgEncounterClose.Fields().ByName("won") -} - -var _ protoreflect.Message = (*fastReflection_MsgEncounterClose)(nil) - -type fastReflection_MsgEncounterClose MsgEncounterClose - -func (x *MsgEncounterClose) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEncounterClose)(x) -} - -func (x *MsgEncounterClose) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[92] - 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_MsgEncounterClose_messageType fastReflection_MsgEncounterClose_messageType -var _ protoreflect.MessageType = fastReflection_MsgEncounterClose_messageType{} - -type fastReflection_MsgEncounterClose_messageType struct{} - -func (x fastReflection_MsgEncounterClose_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEncounterClose)(nil) -} -func (x fastReflection_MsgEncounterClose_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEncounterClose) -} -func (x fastReflection_MsgEncounterClose_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterClose -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEncounterClose) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterClose -} - -// 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_MsgEncounterClose) Type() protoreflect.MessageType { - return _fastReflection_MsgEncounterClose_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEncounterClose) New() protoreflect.Message { - return new(fastReflection_MsgEncounterClose) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEncounterClose) Interface() protoreflect.ProtoMessage { - return (*MsgEncounterClose)(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_MsgEncounterClose) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgEncounterClose_creator, value) { - return - } - } - if x.EncounterId != uint64(0) { - value := protoreflect.ValueOfUint64(x.EncounterId) - if !f(fd_MsgEncounterClose_encounterId, value) { - return - } - } - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_MsgEncounterClose_user, value) { - return - } - } - if x.Won != false { - value := protoreflect.ValueOfBool(x.Won) - if !f(fd_MsgEncounterClose_won, 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_MsgEncounterClose) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterClose.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgEncounterClose.encounterId": - return x.EncounterId != uint64(0) - case "cardchain.cardchain.MsgEncounterClose.user": - return x.User != "" - case "cardchain.cardchain.MsgEncounterClose.won": - return x.Won != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterClose")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterClose 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_MsgEncounterClose) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterClose.creator": - x.Creator = "" - case "cardchain.cardchain.MsgEncounterClose.encounterId": - x.EncounterId = uint64(0) - case "cardchain.cardchain.MsgEncounterClose.user": - x.User = "" - case "cardchain.cardchain.MsgEncounterClose.won": - x.Won = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterClose")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterClose 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_MsgEncounterClose) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgEncounterClose.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEncounterClose.encounterId": - value := x.EncounterId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.MsgEncounterClose.user": - value := x.User - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEncounterClose.won": - value := x.Won - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterClose")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterClose 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_MsgEncounterClose) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterClose.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgEncounterClose.encounterId": - x.EncounterId = value.Uint() - case "cardchain.cardchain.MsgEncounterClose.user": - x.User = value.Interface().(string) - case "cardchain.cardchain.MsgEncounterClose.won": - x.Won = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterClose")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterClose 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_MsgEncounterClose) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterClose.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgEncounterClose is not mutable")) - case "cardchain.cardchain.MsgEncounterClose.encounterId": - panic(fmt.Errorf("field encounterId of message cardchain.cardchain.MsgEncounterClose is not mutable")) - case "cardchain.cardchain.MsgEncounterClose.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.MsgEncounterClose is not mutable")) - case "cardchain.cardchain.MsgEncounterClose.won": - panic(fmt.Errorf("field won of message cardchain.cardchain.MsgEncounterClose is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterClose")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterClose 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_MsgEncounterClose) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEncounterClose.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEncounterClose.encounterId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.MsgEncounterClose.user": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEncounterClose.won": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterClose")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterClose 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_MsgEncounterClose) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEncounterClose", 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_MsgEncounterClose) 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_MsgEncounterClose) 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_MsgEncounterClose) 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_MsgEncounterClose) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEncounterClose) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.EncounterId != 0 { - n += 1 + runtime.Sov(uint64(x.EncounterId)) - } - l = len(x.User) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Won { - n += 2 - } - 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().(*MsgEncounterClose) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Won { - i-- - if x.Won { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(x.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - i-- - dAtA[i] = 0x1a - } - if x.EncounterId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.EncounterId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgEncounterClose) - 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: MsgEncounterClose: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEncounterClose: 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 Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncounterId", wireType) - } - x.EncounterId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EncounterId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Won", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Won = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEncounterCloseResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEncounterCloseResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEncounterCloseResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgEncounterCloseResponse)(nil) - -type fastReflection_MsgEncounterCloseResponse MsgEncounterCloseResponse - -func (x *MsgEncounterCloseResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEncounterCloseResponse)(x) -} - -func (x *MsgEncounterCloseResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[93] - 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_MsgEncounterCloseResponse_messageType fastReflection_MsgEncounterCloseResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgEncounterCloseResponse_messageType{} - -type fastReflection_MsgEncounterCloseResponse_messageType struct{} - -func (x fastReflection_MsgEncounterCloseResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEncounterCloseResponse)(nil) -} -func (x fastReflection_MsgEncounterCloseResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEncounterCloseResponse) -} -func (x fastReflection_MsgEncounterCloseResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterCloseResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEncounterCloseResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEncounterCloseResponse -} - -// 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_MsgEncounterCloseResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgEncounterCloseResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEncounterCloseResponse) New() protoreflect.Message { - return new(fastReflection_MsgEncounterCloseResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEncounterCloseResponse) Interface() protoreflect.ProtoMessage { - return (*MsgEncounterCloseResponse)(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_MsgEncounterCloseResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgEncounterCloseResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCloseResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCloseResponse 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_MsgEncounterCloseResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCloseResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCloseResponse 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_MsgEncounterCloseResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCloseResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCloseResponse 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_MsgEncounterCloseResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCloseResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCloseResponse 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_MsgEncounterCloseResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCloseResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCloseResponse 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_MsgEncounterCloseResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEncounterCloseResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEncounterCloseResponse 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_MsgEncounterCloseResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEncounterCloseResponse", 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_MsgEncounterCloseResponse) 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_MsgEncounterCloseResponse) 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_MsgEncounterCloseResponse) 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_MsgEncounterCloseResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEncounterCloseResponse) - 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().(*MsgEncounterCloseResponse) - 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().(*MsgEncounterCloseResponse) - 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: MsgEncounterCloseResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEncounterCloseResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEarlyAccessDisinvite protoreflect.MessageDescriptor - fd_MsgEarlyAccessDisinvite_creator protoreflect.FieldDescriptor - fd_MsgEarlyAccessDisinvite_user protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEarlyAccessDisinvite = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEarlyAccessDisinvite") - fd_MsgEarlyAccessDisinvite_creator = md_MsgEarlyAccessDisinvite.Fields().ByName("creator") - fd_MsgEarlyAccessDisinvite_user = md_MsgEarlyAccessDisinvite.Fields().ByName("user") -} - -var _ protoreflect.Message = (*fastReflection_MsgEarlyAccessDisinvite)(nil) - -type fastReflection_MsgEarlyAccessDisinvite MsgEarlyAccessDisinvite - -func (x *MsgEarlyAccessDisinvite) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessDisinvite)(x) -} - -func (x *MsgEarlyAccessDisinvite) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[94] - 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_MsgEarlyAccessDisinvite_messageType fastReflection_MsgEarlyAccessDisinvite_messageType -var _ protoreflect.MessageType = fastReflection_MsgEarlyAccessDisinvite_messageType{} - -type fastReflection_MsgEarlyAccessDisinvite_messageType struct{} - -func (x fastReflection_MsgEarlyAccessDisinvite_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessDisinvite)(nil) -} -func (x fastReflection_MsgEarlyAccessDisinvite_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessDisinvite) -} -func (x fastReflection_MsgEarlyAccessDisinvite_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessDisinvite -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEarlyAccessDisinvite) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessDisinvite -} - -// 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_MsgEarlyAccessDisinvite) Type() protoreflect.MessageType { - return _fastReflection_MsgEarlyAccessDisinvite_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEarlyAccessDisinvite) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessDisinvite) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEarlyAccessDisinvite) Interface() protoreflect.ProtoMessage { - return (*MsgEarlyAccessDisinvite)(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_MsgEarlyAccessDisinvite) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgEarlyAccessDisinvite_creator, value) { - return - } - } - if x.User != "" { - value := protoreflect.ValueOfString(x.User) - if !f(fd_MsgEarlyAccessDisinvite_user, 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_MsgEarlyAccessDisinvite) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessDisinvite.creator": - return x.Creator != "" - case "cardchain.cardchain.MsgEarlyAccessDisinvite.user": - return x.User != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinvite 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_MsgEarlyAccessDisinvite) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessDisinvite.creator": - x.Creator = "" - case "cardchain.cardchain.MsgEarlyAccessDisinvite.user": - x.User = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinvite 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_MsgEarlyAccessDisinvite) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgEarlyAccessDisinvite.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEarlyAccessDisinvite.user": - value := x.User - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinvite 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_MsgEarlyAccessDisinvite) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessDisinvite.creator": - x.Creator = value.Interface().(string) - case "cardchain.cardchain.MsgEarlyAccessDisinvite.user": - x.User = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinvite 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_MsgEarlyAccessDisinvite) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessDisinvite.creator": - panic(fmt.Errorf("field creator of message cardchain.cardchain.MsgEarlyAccessDisinvite is not mutable")) - case "cardchain.cardchain.MsgEarlyAccessDisinvite.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.MsgEarlyAccessDisinvite is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinvite 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_MsgEarlyAccessDisinvite) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessDisinvite.creator": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEarlyAccessDisinvite.user": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinvite")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinvite 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_MsgEarlyAccessDisinvite) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEarlyAccessDisinvite", 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_MsgEarlyAccessDisinvite) 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_MsgEarlyAccessDisinvite) 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_MsgEarlyAccessDisinvite) 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_MsgEarlyAccessDisinvite) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEarlyAccessDisinvite) - 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.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.User) - 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().(*MsgEarlyAccessDisinvite) - 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.User) > 0 { - i -= len(x.User) - copy(dAtA[i:], x.User) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - 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().(*MsgEarlyAccessDisinvite) - 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: MsgEarlyAccessDisinvite: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEarlyAccessDisinvite: 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 Creator", 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.Creator = 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 User", 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.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEarlyAccessDisinviteResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEarlyAccessDisinviteResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEarlyAccessDisinviteResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgEarlyAccessDisinviteResponse)(nil) - -type fastReflection_MsgEarlyAccessDisinviteResponse MsgEarlyAccessDisinviteResponse - -func (x *MsgEarlyAccessDisinviteResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessDisinviteResponse)(x) -} - -func (x *MsgEarlyAccessDisinviteResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[95] - 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_MsgEarlyAccessDisinviteResponse_messageType fastReflection_MsgEarlyAccessDisinviteResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgEarlyAccessDisinviteResponse_messageType{} - -type fastReflection_MsgEarlyAccessDisinviteResponse_messageType struct{} - -func (x fastReflection_MsgEarlyAccessDisinviteResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessDisinviteResponse)(nil) -} -func (x fastReflection_MsgEarlyAccessDisinviteResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessDisinviteResponse) -} -func (x fastReflection_MsgEarlyAccessDisinviteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessDisinviteResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEarlyAccessDisinviteResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessDisinviteResponse -} - -// 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_MsgEarlyAccessDisinviteResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgEarlyAccessDisinviteResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEarlyAccessDisinviteResponse) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessDisinviteResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEarlyAccessDisinviteResponse) Interface() protoreflect.ProtoMessage { - return (*MsgEarlyAccessDisinviteResponse)(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_MsgEarlyAccessDisinviteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgEarlyAccessDisinviteResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinviteResponse 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_MsgEarlyAccessDisinviteResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinviteResponse 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_MsgEarlyAccessDisinviteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinviteResponse 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_MsgEarlyAccessDisinviteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinviteResponse 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_MsgEarlyAccessDisinviteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinviteResponse 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_MsgEarlyAccessDisinviteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessDisinviteResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessDisinviteResponse 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_MsgEarlyAccessDisinviteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEarlyAccessDisinviteResponse", 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_MsgEarlyAccessDisinviteResponse) 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_MsgEarlyAccessDisinviteResponse) 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_MsgEarlyAccessDisinviteResponse) 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_MsgEarlyAccessDisinviteResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEarlyAccessDisinviteResponse) - 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().(*MsgEarlyAccessDisinviteResponse) - 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().(*MsgEarlyAccessDisinviteResponse) - 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: MsgEarlyAccessDisinviteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEarlyAccessDisinviteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardBan protoreflect.MessageDescriptor - fd_MsgCardBan_authority protoreflect.FieldDescriptor - fd_MsgCardBan_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardBan = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardBan") - fd_MsgCardBan_authority = md_MsgCardBan.Fields().ByName("authority") - fd_MsgCardBan_cardId = md_MsgCardBan.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardBan)(nil) - -type fastReflection_MsgCardBan MsgCardBan - -func (x *MsgCardBan) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardBan)(x) -} - -func (x *MsgCardBan) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[96] - 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_MsgCardBan_messageType fastReflection_MsgCardBan_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardBan_messageType{} - -type fastReflection_MsgCardBan_messageType struct{} - -func (x fastReflection_MsgCardBan_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardBan)(nil) -} -func (x fastReflection_MsgCardBan_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardBan) -} -func (x fastReflection_MsgCardBan_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardBan -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardBan) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardBan -} - -// 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_MsgCardBan) Type() protoreflect.MessageType { - return _fastReflection_MsgCardBan_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardBan) New() protoreflect.Message { - return new(fastReflection_MsgCardBan) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardBan) Interface() protoreflect.ProtoMessage { - return (*MsgCardBan)(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_MsgCardBan) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgCardBan_authority, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardBan_cardId, 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_MsgCardBan) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardBan.authority": - return x.Authority != "" - case "cardchain.cardchain.MsgCardBan.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBan")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBan 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_MsgCardBan) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardBan.authority": - x.Authority = "" - case "cardchain.cardchain.MsgCardBan.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBan")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBan 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_MsgCardBan) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardBan.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardBan.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBan")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBan 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_MsgCardBan) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardBan.authority": - x.Authority = value.Interface().(string) - case "cardchain.cardchain.MsgCardBan.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBan")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBan 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_MsgCardBan) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardBan.authority": - panic(fmt.Errorf("field authority of message cardchain.cardchain.MsgCardBan is not mutable")) - case "cardchain.cardchain.MsgCardBan.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardBan is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBan")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBan 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_MsgCardBan) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardBan.authority": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardBan.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBan")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBan 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_MsgCardBan) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardBan", 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_MsgCardBan) 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_MsgCardBan) 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_MsgCardBan) 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_MsgCardBan) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardBan) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*MsgCardBan) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCardBan) - 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: MsgCardBan: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardBan: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardBanResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardBanResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardBanResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardBanResponse)(nil) - -type fastReflection_MsgCardBanResponse MsgCardBanResponse - -func (x *MsgCardBanResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardBanResponse)(x) -} - -func (x *MsgCardBanResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[97] - 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_MsgCardBanResponse_messageType fastReflection_MsgCardBanResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardBanResponse_messageType{} - -type fastReflection_MsgCardBanResponse_messageType struct{} - -func (x fastReflection_MsgCardBanResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardBanResponse)(nil) -} -func (x fastReflection_MsgCardBanResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardBanResponse) -} -func (x fastReflection_MsgCardBanResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardBanResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardBanResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardBanResponse -} - -// 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_MsgCardBanResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardBanResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardBanResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardBanResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardBanResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardBanResponse)(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_MsgCardBanResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCardBanResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBanResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBanResponse 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_MsgCardBanResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBanResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBanResponse 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_MsgCardBanResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBanResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBanResponse 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_MsgCardBanResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBanResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBanResponse 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_MsgCardBanResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBanResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBanResponse 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_MsgCardBanResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardBanResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardBanResponse 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_MsgCardBanResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardBanResponse", 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_MsgCardBanResponse) 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_MsgCardBanResponse) 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_MsgCardBanResponse) 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_MsgCardBanResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardBanResponse) - 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().(*MsgCardBanResponse) - 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().(*MsgCardBanResponse) - 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: MsgCardBanResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardBanResponse: 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 = (*_MsgEarlyAccessGrant_2_list)(nil) - -type _MsgEarlyAccessGrant_2_list struct { - list *[]string -} - -func (x *_MsgEarlyAccessGrant_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgEarlyAccessGrant_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_MsgEarlyAccessGrant_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_MsgEarlyAccessGrant_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgEarlyAccessGrant_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgEarlyAccessGrant at list field Users as it is not of Message kind")) -} - -func (x *_MsgEarlyAccessGrant_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_MsgEarlyAccessGrant_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_MsgEarlyAccessGrant_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgEarlyAccessGrant protoreflect.MessageDescriptor - fd_MsgEarlyAccessGrant_authority protoreflect.FieldDescriptor - fd_MsgEarlyAccessGrant_users protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEarlyAccessGrant = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEarlyAccessGrant") - fd_MsgEarlyAccessGrant_authority = md_MsgEarlyAccessGrant.Fields().ByName("authority") - fd_MsgEarlyAccessGrant_users = md_MsgEarlyAccessGrant.Fields().ByName("users") -} - -var _ protoreflect.Message = (*fastReflection_MsgEarlyAccessGrant)(nil) - -type fastReflection_MsgEarlyAccessGrant MsgEarlyAccessGrant - -func (x *MsgEarlyAccessGrant) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessGrant)(x) -} - -func (x *MsgEarlyAccessGrant) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[98] - 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_MsgEarlyAccessGrant_messageType fastReflection_MsgEarlyAccessGrant_messageType -var _ protoreflect.MessageType = fastReflection_MsgEarlyAccessGrant_messageType{} - -type fastReflection_MsgEarlyAccessGrant_messageType struct{} - -func (x fastReflection_MsgEarlyAccessGrant_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessGrant)(nil) -} -func (x fastReflection_MsgEarlyAccessGrant_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessGrant) -} -func (x fastReflection_MsgEarlyAccessGrant_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessGrant -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEarlyAccessGrant) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessGrant -} - -// 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_MsgEarlyAccessGrant) Type() protoreflect.MessageType { - return _fastReflection_MsgEarlyAccessGrant_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEarlyAccessGrant) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessGrant) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEarlyAccessGrant) Interface() protoreflect.ProtoMessage { - return (*MsgEarlyAccessGrant)(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_MsgEarlyAccessGrant) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgEarlyAccessGrant_authority, value) { - return - } - } - if len(x.Users) != 0 { - value := protoreflect.ValueOfList(&_MsgEarlyAccessGrant_2_list{list: &x.Users}) - if !f(fd_MsgEarlyAccessGrant_users, 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_MsgEarlyAccessGrant) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessGrant.authority": - return x.Authority != "" - case "cardchain.cardchain.MsgEarlyAccessGrant.users": - return len(x.Users) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrant")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrant 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_MsgEarlyAccessGrant) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessGrant.authority": - x.Authority = "" - case "cardchain.cardchain.MsgEarlyAccessGrant.users": - x.Users = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrant")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrant 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_MsgEarlyAccessGrant) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgEarlyAccessGrant.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgEarlyAccessGrant.users": - if len(x.Users) == 0 { - return protoreflect.ValueOfList(&_MsgEarlyAccessGrant_2_list{}) - } - listValue := &_MsgEarlyAccessGrant_2_list{list: &x.Users} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrant")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrant 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_MsgEarlyAccessGrant) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessGrant.authority": - x.Authority = value.Interface().(string) - case "cardchain.cardchain.MsgEarlyAccessGrant.users": - lv := value.List() - clv := lv.(*_MsgEarlyAccessGrant_2_list) - x.Users = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrant")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrant 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_MsgEarlyAccessGrant) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessGrant.users": - if x.Users == nil { - x.Users = []string{} - } - value := &_MsgEarlyAccessGrant_2_list{list: &x.Users} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.MsgEarlyAccessGrant.authority": - panic(fmt.Errorf("field authority of message cardchain.cardchain.MsgEarlyAccessGrant is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrant")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrant 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_MsgEarlyAccessGrant) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgEarlyAccessGrant.authority": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgEarlyAccessGrant.users": - list := []string{} - return protoreflect.ValueOfList(&_MsgEarlyAccessGrant_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrant")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrant 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_MsgEarlyAccessGrant) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEarlyAccessGrant", 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_MsgEarlyAccessGrant) 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_MsgEarlyAccessGrant) 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_MsgEarlyAccessGrant) 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_MsgEarlyAccessGrant) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEarlyAccessGrant) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Users) > 0 { - for _, s := range x.Users { - 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().(*MsgEarlyAccessGrant) - 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.Users) > 0 { - for iNdEx := len(x.Users) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Users[iNdEx]) - copy(dAtA[i:], x.Users[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Users[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgEarlyAccessGrant) - 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: MsgEarlyAccessGrant: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEarlyAccessGrant: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Users", 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.Users = append(x.Users, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgEarlyAccessGrantResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgEarlyAccessGrantResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgEarlyAccessGrantResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgEarlyAccessGrantResponse)(nil) - -type fastReflection_MsgEarlyAccessGrantResponse MsgEarlyAccessGrantResponse - -func (x *MsgEarlyAccessGrantResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessGrantResponse)(x) -} - -func (x *MsgEarlyAccessGrantResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[99] - 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_MsgEarlyAccessGrantResponse_messageType fastReflection_MsgEarlyAccessGrantResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgEarlyAccessGrantResponse_messageType{} - -type fastReflection_MsgEarlyAccessGrantResponse_messageType struct{} - -func (x fastReflection_MsgEarlyAccessGrantResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgEarlyAccessGrantResponse)(nil) -} -func (x fastReflection_MsgEarlyAccessGrantResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessGrantResponse) -} -func (x fastReflection_MsgEarlyAccessGrantResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessGrantResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgEarlyAccessGrantResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgEarlyAccessGrantResponse -} - -// 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_MsgEarlyAccessGrantResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgEarlyAccessGrantResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgEarlyAccessGrantResponse) New() protoreflect.Message { - return new(fastReflection_MsgEarlyAccessGrantResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgEarlyAccessGrantResponse) Interface() protoreflect.ProtoMessage { - return (*MsgEarlyAccessGrantResponse)(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_MsgEarlyAccessGrantResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgEarlyAccessGrantResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrantResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrantResponse 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_MsgEarlyAccessGrantResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrantResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrantResponse 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_MsgEarlyAccessGrantResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrantResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrantResponse 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_MsgEarlyAccessGrantResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrantResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrantResponse 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_MsgEarlyAccessGrantResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrantResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrantResponse 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_MsgEarlyAccessGrantResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgEarlyAccessGrantResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgEarlyAccessGrantResponse 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_MsgEarlyAccessGrantResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgEarlyAccessGrantResponse", 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_MsgEarlyAccessGrantResponse) 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_MsgEarlyAccessGrantResponse) 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_MsgEarlyAccessGrantResponse) 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_MsgEarlyAccessGrantResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgEarlyAccessGrantResponse) - 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().(*MsgEarlyAccessGrantResponse) - 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().(*MsgEarlyAccessGrantResponse) - 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: MsgEarlyAccessGrantResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEarlyAccessGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetActivate protoreflect.MessageDescriptor - fd_MsgSetActivate_authority protoreflect.FieldDescriptor - fd_MsgSetActivate_setId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetActivate = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetActivate") - fd_MsgSetActivate_authority = md_MsgSetActivate.Fields().ByName("authority") - fd_MsgSetActivate_setId = md_MsgSetActivate.Fields().ByName("setId") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetActivate)(nil) - -type fastReflection_MsgSetActivate MsgSetActivate - -func (x *MsgSetActivate) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetActivate)(x) -} - -func (x *MsgSetActivate) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[100] - 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_MsgSetActivate_messageType fastReflection_MsgSetActivate_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetActivate_messageType{} - -type fastReflection_MsgSetActivate_messageType struct{} - -func (x fastReflection_MsgSetActivate_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetActivate)(nil) -} -func (x fastReflection_MsgSetActivate_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetActivate) -} -func (x fastReflection_MsgSetActivate_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetActivate -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetActivate) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetActivate -} - -// 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_MsgSetActivate) Type() protoreflect.MessageType { - return _fastReflection_MsgSetActivate_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetActivate) New() protoreflect.Message { - return new(fastReflection_MsgSetActivate) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetActivate) Interface() protoreflect.ProtoMessage { - return (*MsgSetActivate)(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_MsgSetActivate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgSetActivate_authority, value) { - return - } - } - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_MsgSetActivate_setId, 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_MsgSetActivate) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetActivate.authority": - return x.Authority != "" - case "cardchain.cardchain.MsgSetActivate.setId": - return x.SetId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivate 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_MsgSetActivate) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetActivate.authority": - x.Authority = "" - case "cardchain.cardchain.MsgSetActivate.setId": - x.SetId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivate 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_MsgSetActivate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgSetActivate.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgSetActivate.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivate 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_MsgSetActivate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetActivate.authority": - x.Authority = value.Interface().(string) - case "cardchain.cardchain.MsgSetActivate.setId": - x.SetId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivate 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_MsgSetActivate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetActivate.authority": - panic(fmt.Errorf("field authority of message cardchain.cardchain.MsgSetActivate is not mutable")) - case "cardchain.cardchain.MsgSetActivate.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.MsgSetActivate is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivate 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_MsgSetActivate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgSetActivate.authority": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgSetActivate.setId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivate")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivate 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_MsgSetActivate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetActivate", 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_MsgSetActivate) 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_MsgSetActivate) 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_MsgSetActivate) 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_MsgSetActivate) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetActivate) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - 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().(*MsgSetActivate) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSetActivate) - 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: MsgSetActivate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetActivate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetActivateResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgSetActivateResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgSetActivateResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetActivateResponse)(nil) - -type fastReflection_MsgSetActivateResponse MsgSetActivateResponse - -func (x *MsgSetActivateResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetActivateResponse)(x) -} - -func (x *MsgSetActivateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[101] - 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_MsgSetActivateResponse_messageType fastReflection_MsgSetActivateResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetActivateResponse_messageType{} - -type fastReflection_MsgSetActivateResponse_messageType struct{} - -func (x fastReflection_MsgSetActivateResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetActivateResponse)(nil) -} -func (x fastReflection_MsgSetActivateResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetActivateResponse) -} -func (x fastReflection_MsgSetActivateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetActivateResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetActivateResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetActivateResponse -} - -// 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_MsgSetActivateResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetActivateResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetActivateResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetActivateResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetActivateResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetActivateResponse)(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_MsgSetActivateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetActivateResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivateResponse 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_MsgSetActivateResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivateResponse 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_MsgSetActivateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivateResponse 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_MsgSetActivateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivateResponse 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_MsgSetActivateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivateResponse 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_MsgSetActivateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgSetActivateResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgSetActivateResponse 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_MsgSetActivateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgSetActivateResponse", 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_MsgSetActivateResponse) 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_MsgSetActivateResponse) 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_MsgSetActivateResponse) 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_MsgSetActivateResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetActivateResponse) - 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().(*MsgSetActivateResponse) - 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().(*MsgSetActivateResponse) - 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: MsgSetActivateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetActivateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardCopyrightClaim protoreflect.MessageDescriptor - fd_MsgCardCopyrightClaim_authority protoreflect.FieldDescriptor - fd_MsgCardCopyrightClaim_cardId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardCopyrightClaim = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardCopyrightClaim") - fd_MsgCardCopyrightClaim_authority = md_MsgCardCopyrightClaim.Fields().ByName("authority") - fd_MsgCardCopyrightClaim_cardId = md_MsgCardCopyrightClaim.Fields().ByName("cardId") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardCopyrightClaim)(nil) - -type fastReflection_MsgCardCopyrightClaim MsgCardCopyrightClaim - -func (x *MsgCardCopyrightClaim) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardCopyrightClaim)(x) -} - -func (x *MsgCardCopyrightClaim) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[102] - 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_MsgCardCopyrightClaim_messageType fastReflection_MsgCardCopyrightClaim_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardCopyrightClaim_messageType{} - -type fastReflection_MsgCardCopyrightClaim_messageType struct{} - -func (x fastReflection_MsgCardCopyrightClaim_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardCopyrightClaim)(nil) -} -func (x fastReflection_MsgCardCopyrightClaim_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardCopyrightClaim) -} -func (x fastReflection_MsgCardCopyrightClaim_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardCopyrightClaim -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardCopyrightClaim) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardCopyrightClaim -} - -// 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_MsgCardCopyrightClaim) Type() protoreflect.MessageType { - return _fastReflection_MsgCardCopyrightClaim_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardCopyrightClaim) New() protoreflect.Message { - return new(fastReflection_MsgCardCopyrightClaim) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardCopyrightClaim) Interface() protoreflect.ProtoMessage { - return (*MsgCardCopyrightClaim)(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_MsgCardCopyrightClaim) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgCardCopyrightClaim_authority, value) { - return - } - } - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_MsgCardCopyrightClaim_cardId, 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_MsgCardCopyrightClaim) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardCopyrightClaim.authority": - return x.Authority != "" - case "cardchain.cardchain.MsgCardCopyrightClaim.cardId": - return x.CardId != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaim")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaim 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_MsgCardCopyrightClaim) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardCopyrightClaim.authority": - x.Authority = "" - case "cardchain.cardchain.MsgCardCopyrightClaim.cardId": - x.CardId = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaim")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaim 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_MsgCardCopyrightClaim) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.MsgCardCopyrightClaim.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.MsgCardCopyrightClaim.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaim")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaim 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_MsgCardCopyrightClaim) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardCopyrightClaim.authority": - x.Authority = value.Interface().(string) - case "cardchain.cardchain.MsgCardCopyrightClaim.cardId": - x.CardId = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaim")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaim 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_MsgCardCopyrightClaim) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardCopyrightClaim.authority": - panic(fmt.Errorf("field authority of message cardchain.cardchain.MsgCardCopyrightClaim is not mutable")) - case "cardchain.cardchain.MsgCardCopyrightClaim.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.MsgCardCopyrightClaim is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaim")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaim 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_MsgCardCopyrightClaim) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.MsgCardCopyrightClaim.authority": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.MsgCardCopyrightClaim.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaim")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaim 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_MsgCardCopyrightClaim) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardCopyrightClaim", 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_MsgCardCopyrightClaim) 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_MsgCardCopyrightClaim) 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_MsgCardCopyrightClaim) 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_MsgCardCopyrightClaim) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardCopyrightClaim) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - 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().(*MsgCardCopyrightClaim) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCardCopyrightClaim) - 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: MsgCardCopyrightClaim: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardCopyrightClaim: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCardCopyrightClaimResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_cardchain_tx_proto_init() - md_MsgCardCopyrightClaimResponse = File_cardchain_cardchain_tx_proto.Messages().ByName("MsgCardCopyrightClaimResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCardCopyrightClaimResponse)(nil) - -type fastReflection_MsgCardCopyrightClaimResponse MsgCardCopyrightClaimResponse - -func (x *MsgCardCopyrightClaimResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCardCopyrightClaimResponse)(x) -} - -func (x *MsgCardCopyrightClaimResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[103] - 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_MsgCardCopyrightClaimResponse_messageType fastReflection_MsgCardCopyrightClaimResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCardCopyrightClaimResponse_messageType{} - -type fastReflection_MsgCardCopyrightClaimResponse_messageType struct{} - -func (x fastReflection_MsgCardCopyrightClaimResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCardCopyrightClaimResponse)(nil) -} -func (x fastReflection_MsgCardCopyrightClaimResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCardCopyrightClaimResponse) -} -func (x fastReflection_MsgCardCopyrightClaimResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardCopyrightClaimResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCardCopyrightClaimResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCardCopyrightClaimResponse -} - -// 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_MsgCardCopyrightClaimResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCardCopyrightClaimResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCardCopyrightClaimResponse) New() protoreflect.Message { - return new(fastReflection_MsgCardCopyrightClaimResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCardCopyrightClaimResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCardCopyrightClaimResponse)(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_MsgCardCopyrightClaimResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCardCopyrightClaimResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaimResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaimResponse 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_MsgCardCopyrightClaimResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaimResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaimResponse 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_MsgCardCopyrightClaimResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaimResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaimResponse 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_MsgCardCopyrightClaimResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaimResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaimResponse 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_MsgCardCopyrightClaimResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaimResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaimResponse 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_MsgCardCopyrightClaimResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.MsgCardCopyrightClaimResponse")) - } - panic(fmt.Errorf("message cardchain.cardchain.MsgCardCopyrightClaimResponse 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_MsgCardCopyrightClaimResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.MsgCardCopyrightClaimResponse", 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_MsgCardCopyrightClaimResponse) 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_MsgCardCopyrightClaimResponse) 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_MsgCardCopyrightClaimResponse) 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_MsgCardCopyrightClaimResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCardCopyrightClaimResponse) - 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().(*MsgCardCopyrightClaimResponse) - 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().(*MsgCardCopyrightClaimResponse) - 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: MsgCardCopyrightClaimResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCardCopyrightClaimResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the address that controls the module (defaults to x/gov unless - // overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // NOTE: All parameters must be supplied. - Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *MsgUpdateParams) Reset() { - *x = MsgUpdateParams{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParams) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgUpdateParams) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgUpdateParams) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateParamsResponse) Reset() { - *x = MsgUpdateParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParamsResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{1} -} - -type MsgUserCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - NewUser string `protobuf:"bytes,2,opt,name=newUser,proto3" json:"newUser,omitempty"` - Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` -} - -func (x *MsgUserCreate) Reset() { - *x = MsgUserCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUserCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUserCreate) ProtoMessage() {} - -// Deprecated: Use MsgUserCreate.ProtoReflect.Descriptor instead. -func (*MsgUserCreate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MsgUserCreate) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgUserCreate) GetNewUser() string { - if x != nil { - return x.NewUser - } - return "" -} - -func (x *MsgUserCreate) GetAlias() string { - if x != nil { - return x.Alias - } - return "" -} - -type MsgUserCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUserCreateResponse) Reset() { - *x = MsgUserCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUserCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUserCreateResponse) ProtoMessage() {} - -// Deprecated: Use MsgUserCreateResponse.ProtoReflect.Descriptor instead. -func (*MsgUserCreateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{3} -} - -type MsgCardSchemeBuy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Bid *v1beta1.Coin `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` -} - -func (x *MsgCardSchemeBuy) Reset() { - *x = MsgCardSchemeBuy{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardSchemeBuy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardSchemeBuy) ProtoMessage() {} - -// Deprecated: Use MsgCardSchemeBuy.ProtoReflect.Descriptor instead. -func (*MsgCardSchemeBuy) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgCardSchemeBuy) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardSchemeBuy) GetBid() *v1beta1.Coin { - if x != nil { - return x.Bid - } - return nil -} - -type MsgCardSchemeBuyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *MsgCardSchemeBuyResponse) Reset() { - *x = MsgCardSchemeBuyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardSchemeBuyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardSchemeBuyResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardSchemeBuyResponse.ProtoReflect.Descriptor instead. -func (*MsgCardSchemeBuyResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{5} -} - -func (x *MsgCardSchemeBuyResponse) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type MsgCardSaveContent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"` - Artist string `protobuf:"bytes,5,opt,name=artist,proto3" json:"artist,omitempty"` - BalanceAnchor bool `protobuf:"varint,6,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` -} - -func (x *MsgCardSaveContent) Reset() { - *x = MsgCardSaveContent{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardSaveContent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardSaveContent) ProtoMessage() {} - -// Deprecated: Use MsgCardSaveContent.ProtoReflect.Descriptor instead. -func (*MsgCardSaveContent) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{6} -} - -func (x *MsgCardSaveContent) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardSaveContent) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *MsgCardSaveContent) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - -func (x *MsgCardSaveContent) GetNotes() string { - if x != nil { - return x.Notes - } - return "" -} - -func (x *MsgCardSaveContent) GetArtist() string { - if x != nil { - return x.Artist - } - return "" -} - -func (x *MsgCardSaveContent) GetBalanceAnchor() bool { - if x != nil { - return x.BalanceAnchor - } - return false -} - -type MsgCardSaveContentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` -} - -func (x *MsgCardSaveContentResponse) Reset() { - *x = MsgCardSaveContentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardSaveContentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardSaveContentResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardSaveContentResponse.ProtoReflect.Descriptor instead. -func (*MsgCardSaveContentResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{7} -} - -func (x *MsgCardSaveContentResponse) GetAirdropClaimed() bool { - if x != nil { - return x.AirdropClaimed - } - return false -} - -type MsgCardVote struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Vote *SingleVote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` -} - -func (x *MsgCardVote) Reset() { - *x = MsgCardVote{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardVote) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardVote) ProtoMessage() {} - -// Deprecated: Use MsgCardVote.ProtoReflect.Descriptor instead. -func (*MsgCardVote) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{8} -} - -func (x *MsgCardVote) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardVote) GetVote() *SingleVote { - if x != nil { - return x.Vote - } - return nil -} - -type MsgCardVoteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` -} - -func (x *MsgCardVoteResponse) Reset() { - *x = MsgCardVoteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardVoteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardVoteResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardVoteResponse.ProtoReflect.Descriptor instead. -func (*MsgCardVoteResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{9} -} - -func (x *MsgCardVoteResponse) GetAirdropClaimed() bool { - if x != nil { - return x.AirdropClaimed - } - return false -} - -type MsgCardTransfer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` -} - -func (x *MsgCardTransfer) Reset() { - *x = MsgCardTransfer{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardTransfer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardTransfer) ProtoMessage() {} - -// Deprecated: Use MsgCardTransfer.ProtoReflect.Descriptor instead. -func (*MsgCardTransfer) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{10} -} - -func (x *MsgCardTransfer) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardTransfer) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *MsgCardTransfer) GetReceiver() string { - if x != nil { - return x.Receiver - } - return "" -} - -type MsgCardTransferResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCardTransferResponse) Reset() { - *x = MsgCardTransferResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardTransferResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardTransferResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardTransferResponse.ProtoReflect.Descriptor instead. -func (*MsgCardTransferResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{11} -} - -type MsgCardDonate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Amount *v1beta1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (x *MsgCardDonate) Reset() { - *x = MsgCardDonate{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardDonate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardDonate) ProtoMessage() {} - -// Deprecated: Use MsgCardDonate.ProtoReflect.Descriptor instead. -func (*MsgCardDonate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{12} -} - -func (x *MsgCardDonate) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardDonate) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *MsgCardDonate) GetAmount() *v1beta1.Coin { - if x != nil { - return x.Amount - } - return nil -} - -type MsgCardDonateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCardDonateResponse) Reset() { - *x = MsgCardDonateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardDonateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardDonateResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardDonateResponse.ProtoReflect.Descriptor instead. -func (*MsgCardDonateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{13} -} - -type MsgCardArtworkAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` - FullArt bool `protobuf:"varint,4,opt,name=fullArt,proto3" json:"fullArt,omitempty"` -} - -func (x *MsgCardArtworkAdd) Reset() { - *x = MsgCardArtworkAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardArtworkAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardArtworkAdd) ProtoMessage() {} - -// Deprecated: Use MsgCardArtworkAdd.ProtoReflect.Descriptor instead. -func (*MsgCardArtworkAdd) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{14} -} - -func (x *MsgCardArtworkAdd) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardArtworkAdd) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *MsgCardArtworkAdd) GetImage() []byte { - if x != nil { - return x.Image - } - return nil -} - -func (x *MsgCardArtworkAdd) GetFullArt() bool { - if x != nil { - return x.FullArt - } - return false -} - -type MsgCardArtworkAddResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCardArtworkAddResponse) Reset() { - *x = MsgCardArtworkAddResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardArtworkAddResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardArtworkAddResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardArtworkAddResponse.ProtoReflect.Descriptor instead. -func (*MsgCardArtworkAddResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{15} -} - -type MsgCardArtistChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` -} - -func (x *MsgCardArtistChange) Reset() { - *x = MsgCardArtistChange{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardArtistChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardArtistChange) ProtoMessage() {} - -// Deprecated: Use MsgCardArtistChange.ProtoReflect.Descriptor instead. -func (*MsgCardArtistChange) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{16} -} - -func (x *MsgCardArtistChange) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardArtistChange) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *MsgCardArtistChange) GetArtist() string { - if x != nil { - return x.Artist - } - return "" -} - -type MsgCardArtistChangeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCardArtistChangeResponse) Reset() { - *x = MsgCardArtistChangeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardArtistChangeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardArtistChangeResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardArtistChangeResponse.ProtoReflect.Descriptor instead. -func (*MsgCardArtistChangeResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{17} -} - -type MsgCouncilRegister struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` -} - -func (x *MsgCouncilRegister) Reset() { - *x = MsgCouncilRegister{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilRegister) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilRegister) ProtoMessage() {} - -// Deprecated: Use MsgCouncilRegister.ProtoReflect.Descriptor instead. -func (*MsgCouncilRegister) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{18} -} - -func (x *MsgCouncilRegister) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -type MsgCouncilRegisterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCouncilRegisterResponse) Reset() { - *x = MsgCouncilRegisterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilRegisterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilRegisterResponse) ProtoMessage() {} - -// Deprecated: Use MsgCouncilRegisterResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilRegisterResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{19} -} - -type MsgCouncilDeregister struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` -} - -func (x *MsgCouncilDeregister) Reset() { - *x = MsgCouncilDeregister{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilDeregister) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilDeregister) ProtoMessage() {} - -// Deprecated: Use MsgCouncilDeregister.ProtoReflect.Descriptor instead. -func (*MsgCouncilDeregister) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{20} -} - -func (x *MsgCouncilDeregister) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -type MsgCouncilDeregisterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCouncilDeregisterResponse) Reset() { - *x = MsgCouncilDeregisterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilDeregisterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilDeregisterResponse) ProtoMessage() {} - -// Deprecated: Use MsgCouncilDeregisterResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilDeregisterResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{21} -} - -type MsgMatchReport struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MatchId uint64 `protobuf:"varint,2,opt,name=matchId,proto3" json:"matchId,omitempty"` - PlayedCardsA []uint64 `protobuf:"varint,3,rep,packed,name=playedCardsA,proto3" json:"playedCardsA,omitempty"` - PlayedCardsB []uint64 `protobuf:"varint,4,rep,packed,name=playedCardsB,proto3" json:"playedCardsB,omitempty"` - Outcome Outcome `protobuf:"varint,5,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` -} - -func (x *MsgMatchReport) Reset() { - *x = MsgMatchReport{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchReport) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchReport) ProtoMessage() {} - -// Deprecated: Use MsgMatchReport.ProtoReflect.Descriptor instead. -func (*MsgMatchReport) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{22} -} - -func (x *MsgMatchReport) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgMatchReport) GetMatchId() uint64 { - if x != nil { - return x.MatchId - } - return 0 -} - -func (x *MsgMatchReport) GetPlayedCardsA() []uint64 { - if x != nil { - return x.PlayedCardsA - } - return nil -} - -func (x *MsgMatchReport) GetPlayedCardsB() []uint64 { - if x != nil { - return x.PlayedCardsB - } - return nil -} - -func (x *MsgMatchReport) GetOutcome() Outcome { - if x != nil { - return x.Outcome - } - return Outcome_Undefined -} - -type MsgMatchReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgMatchReportResponse) Reset() { - *x = MsgMatchReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchReportResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchReportResponse) ProtoMessage() {} - -// Deprecated: Use MsgMatchReportResponse.ProtoReflect.Descriptor instead. -func (*MsgMatchReportResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{23} -} - -type MsgCouncilCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *MsgCouncilCreate) Reset() { - *x = MsgCouncilCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilCreate) ProtoMessage() {} - -// Deprecated: Use MsgCouncilCreate.ProtoReflect.Descriptor instead. -func (*MsgCouncilCreate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{24} -} - -func (x *MsgCouncilCreate) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCouncilCreate) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type MsgCouncilCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCouncilCreateResponse) Reset() { - *x = MsgCouncilCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilCreateResponse) ProtoMessage() {} - -// Deprecated: Use MsgCouncilCreateResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilCreateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{25} -} - -type MsgMatchReporterAppoint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"` -} - -func (x *MsgMatchReporterAppoint) Reset() { - *x = MsgMatchReporterAppoint{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchReporterAppoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchReporterAppoint) ProtoMessage() {} - -// Deprecated: Use MsgMatchReporterAppoint.ProtoReflect.Descriptor instead. -func (*MsgMatchReporterAppoint) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{26} -} - -func (x *MsgMatchReporterAppoint) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgMatchReporterAppoint) GetReporter() string { - if x != nil { - return x.Reporter - } - return "" -} - -type MsgMatchReporterAppointResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgMatchReporterAppointResponse) Reset() { - *x = MsgMatchReporterAppointResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchReporterAppointResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchReporterAppointResponse) ProtoMessage() {} - -// Deprecated: Use MsgMatchReporterAppointResponse.ProtoReflect.Descriptor instead. -func (*MsgMatchReporterAppointResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{27} -} - -type MsgSetCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` - StoryWriter string `protobuf:"bytes,4,opt,name=storyWriter,proto3" json:"storyWriter,omitempty"` - Contributors []string `protobuf:"bytes,5,rep,name=contributors,proto3" json:"contributors,omitempty"` -} - -func (x *MsgSetCreate) Reset() { - *x = MsgSetCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetCreate) ProtoMessage() {} - -// Deprecated: Use MsgSetCreate.ProtoReflect.Descriptor instead. -func (*MsgSetCreate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{28} -} - -func (x *MsgSetCreate) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetCreate) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MsgSetCreate) GetArtist() string { - if x != nil { - return x.Artist - } - return "" -} - -func (x *MsgSetCreate) GetStoryWriter() string { - if x != nil { - return x.StoryWriter - } - return "" -} - -func (x *MsgSetCreate) GetContributors() []string { - if x != nil { - return x.Contributors - } - return nil -} - -type MsgSetCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetCreateResponse) Reset() { - *x = MsgSetCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetCreateResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetCreateResponse.ProtoReflect.Descriptor instead. -func (*MsgSetCreateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{29} -} - -type MsgSetCardAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - CardId uint64 `protobuf:"varint,3,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *MsgSetCardAdd) Reset() { - *x = MsgSetCardAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetCardAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetCardAdd) ProtoMessage() {} - -// Deprecated: Use MsgSetCardAdd.ProtoReflect.Descriptor instead. -func (*MsgSetCardAdd) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{30} -} - -func (x *MsgSetCardAdd) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetCardAdd) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetCardAdd) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type MsgSetCardAddResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetCardAddResponse) Reset() { - *x = MsgSetCardAddResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetCardAddResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetCardAddResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetCardAddResponse.ProtoReflect.Descriptor instead. -func (*MsgSetCardAddResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{31} -} - -type MsgSetCardRemove struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - CardId uint64 `protobuf:"varint,3,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *MsgSetCardRemove) Reset() { - *x = MsgSetCardRemove{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetCardRemove) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetCardRemove) ProtoMessage() {} - -// Deprecated: Use MsgSetCardRemove.ProtoReflect.Descriptor instead. -func (*MsgSetCardRemove) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{32} -} - -func (x *MsgSetCardRemove) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetCardRemove) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetCardRemove) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type MsgSetCardRemoveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetCardRemoveResponse) Reset() { - *x = MsgSetCardRemoveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetCardRemoveResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetCardRemoveResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetCardRemoveResponse.ProtoReflect.Descriptor instead. -func (*MsgSetCardRemoveResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{33} -} - -type MsgSetContributorAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *MsgSetContributorAdd) Reset() { - *x = MsgSetContributorAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetContributorAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetContributorAdd) ProtoMessage() {} - -// Deprecated: Use MsgSetContributorAdd.ProtoReflect.Descriptor instead. -func (*MsgSetContributorAdd) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{34} -} - -func (x *MsgSetContributorAdd) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetContributorAdd) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetContributorAdd) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -type MsgSetContributorAddResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetContributorAddResponse) Reset() { - *x = MsgSetContributorAddResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetContributorAddResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetContributorAddResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetContributorAddResponse.ProtoReflect.Descriptor instead. -func (*MsgSetContributorAddResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{35} -} - -type MsgSetContributorRemove struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *MsgSetContributorRemove) Reset() { - *x = MsgSetContributorRemove{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetContributorRemove) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetContributorRemove) ProtoMessage() {} - -// Deprecated: Use MsgSetContributorRemove.ProtoReflect.Descriptor instead. -func (*MsgSetContributorRemove) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{36} -} - -func (x *MsgSetContributorRemove) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetContributorRemove) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetContributorRemove) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -type MsgSetContributorRemoveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetContributorRemoveResponse) Reset() { - *x = MsgSetContributorRemoveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetContributorRemoveResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetContributorRemoveResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetContributorRemoveResponse.ProtoReflect.Descriptor instead. -func (*MsgSetContributorRemoveResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{37} -} - -type MsgSetFinalize struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` -} - -func (x *MsgSetFinalize) Reset() { - *x = MsgSetFinalize{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetFinalize) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetFinalize) ProtoMessage() {} - -// Deprecated: Use MsgSetFinalize.ProtoReflect.Descriptor instead. -func (*MsgSetFinalize) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{38} -} - -func (x *MsgSetFinalize) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetFinalize) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -type MsgSetFinalizeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetFinalizeResponse) Reset() { - *x = MsgSetFinalizeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetFinalizeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetFinalizeResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetFinalizeResponse.ProtoReflect.Descriptor instead. -func (*MsgSetFinalizeResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{39} -} - -type MsgSetArtworkAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` -} - -func (x *MsgSetArtworkAdd) Reset() { - *x = MsgSetArtworkAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetArtworkAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetArtworkAdd) ProtoMessage() {} - -// Deprecated: Use MsgSetArtworkAdd.ProtoReflect.Descriptor instead. -func (*MsgSetArtworkAdd) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{40} -} - -func (x *MsgSetArtworkAdd) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetArtworkAdd) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetArtworkAdd) GetImage() []byte { - if x != nil { - return x.Image - } - return nil -} - -type MsgSetArtworkAddResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetArtworkAddResponse) Reset() { - *x = MsgSetArtworkAddResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetArtworkAddResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetArtworkAddResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetArtworkAddResponse.ProtoReflect.Descriptor instead. -func (*MsgSetArtworkAddResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{41} -} - -type MsgSetStoryAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - Story string `protobuf:"bytes,3,opt,name=story,proto3" json:"story,omitempty"` -} - -func (x *MsgSetStoryAdd) Reset() { - *x = MsgSetStoryAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetStoryAdd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetStoryAdd) ProtoMessage() {} - -// Deprecated: Use MsgSetStoryAdd.ProtoReflect.Descriptor instead. -func (*MsgSetStoryAdd) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{42} -} - -func (x *MsgSetStoryAdd) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetStoryAdd) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetStoryAdd) GetStory() string { - if x != nil { - return x.Story - } - return "" -} - -type MsgSetStoryAddResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetStoryAddResponse) Reset() { - *x = MsgSetStoryAddResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetStoryAddResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetStoryAddResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetStoryAddResponse.ProtoReflect.Descriptor instead. -func (*MsgSetStoryAddResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{43} -} - -type MsgBoosterPackBuy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` -} - -func (x *MsgBoosterPackBuy) Reset() { - *x = MsgBoosterPackBuy{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBoosterPackBuy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBoosterPackBuy) ProtoMessage() {} - -// Deprecated: Use MsgBoosterPackBuy.ProtoReflect.Descriptor instead. -func (*MsgBoosterPackBuy) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{44} -} - -func (x *MsgBoosterPackBuy) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgBoosterPackBuy) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -type MsgBoosterPackBuyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` -} - -func (x *MsgBoosterPackBuyResponse) Reset() { - *x = MsgBoosterPackBuyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBoosterPackBuyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBoosterPackBuyResponse) ProtoMessage() {} - -// Deprecated: Use MsgBoosterPackBuyResponse.ProtoReflect.Descriptor instead. -func (*MsgBoosterPackBuyResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{45} -} - -func (x *MsgBoosterPackBuyResponse) GetAirdropClaimed() bool { - if x != nil { - return x.AirdropClaimed - } - return false -} - -type MsgSellOfferCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Price *v1beta1.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` -} - -func (x *MsgSellOfferCreate) Reset() { - *x = MsgSellOfferCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSellOfferCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSellOfferCreate) ProtoMessage() {} - -// Deprecated: Use MsgSellOfferCreate.ProtoReflect.Descriptor instead. -func (*MsgSellOfferCreate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{46} -} - -func (x *MsgSellOfferCreate) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSellOfferCreate) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *MsgSellOfferCreate) GetPrice() *v1beta1.Coin { - if x != nil { - return x.Price - } - return nil -} - -type MsgSellOfferCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSellOfferCreateResponse) Reset() { - *x = MsgSellOfferCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSellOfferCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSellOfferCreateResponse) ProtoMessage() {} - -// Deprecated: Use MsgSellOfferCreateResponse.ProtoReflect.Descriptor instead. -func (*MsgSellOfferCreateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{47} -} - -type MsgSellOfferBuy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SellOfferId uint64 `protobuf:"varint,2,opt,name=sellOfferId,proto3" json:"sellOfferId,omitempty"` -} - -func (x *MsgSellOfferBuy) Reset() { - *x = MsgSellOfferBuy{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSellOfferBuy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSellOfferBuy) ProtoMessage() {} - -// Deprecated: Use MsgSellOfferBuy.ProtoReflect.Descriptor instead. -func (*MsgSellOfferBuy) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{48} -} - -func (x *MsgSellOfferBuy) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSellOfferBuy) GetSellOfferId() uint64 { - if x != nil { - return x.SellOfferId - } - return 0 -} - -type MsgSellOfferBuyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSellOfferBuyResponse) Reset() { - *x = MsgSellOfferBuyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSellOfferBuyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSellOfferBuyResponse) ProtoMessage() {} - -// Deprecated: Use MsgSellOfferBuyResponse.ProtoReflect.Descriptor instead. -func (*MsgSellOfferBuyResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{49} -} - -type MsgSellOfferRemove struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SellOfferId uint64 `protobuf:"varint,2,opt,name=sellOfferId,proto3" json:"sellOfferId,omitempty"` -} - -func (x *MsgSellOfferRemove) Reset() { - *x = MsgSellOfferRemove{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSellOfferRemove) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSellOfferRemove) ProtoMessage() {} - -// Deprecated: Use MsgSellOfferRemove.ProtoReflect.Descriptor instead. -func (*MsgSellOfferRemove) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{50} -} - -func (x *MsgSellOfferRemove) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSellOfferRemove) GetSellOfferId() uint64 { - if x != nil { - return x.SellOfferId - } - return 0 -} - -type MsgSellOfferRemoveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSellOfferRemoveResponse) Reset() { - *x = MsgSellOfferRemoveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSellOfferRemoveResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSellOfferRemoveResponse) ProtoMessage() {} - -// Deprecated: Use MsgSellOfferRemoveResponse.ProtoReflect.Descriptor instead. -func (*MsgSellOfferRemoveResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{51} -} - -type MsgCardRaritySet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - SetId uint64 `protobuf:"varint,3,opt,name=setId,proto3" json:"setId,omitempty"` - Rarity CardRarity `protobuf:"varint,4,opt,name=rarity,proto3,enum=cardchain.cardchain.CardRarity" json:"rarity,omitempty"` -} - -func (x *MsgCardRaritySet) Reset() { - *x = MsgCardRaritySet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardRaritySet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardRaritySet) ProtoMessage() {} - -// Deprecated: Use MsgCardRaritySet.ProtoReflect.Descriptor instead. -func (*MsgCardRaritySet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{52} -} - -func (x *MsgCardRaritySet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardRaritySet) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *MsgCardRaritySet) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgCardRaritySet) GetRarity() CardRarity { - if x != nil { - return x.Rarity - } - return CardRarity_common -} - -type MsgCardRaritySetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCardRaritySetResponse) Reset() { - *x = MsgCardRaritySetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardRaritySetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardRaritySetResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardRaritySetResponse.ProtoReflect.Descriptor instead. -func (*MsgCardRaritySetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{53} -} - -type MsgCouncilResponseCommit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CouncilId uint64 `protobuf:"varint,2,opt,name=councilId,proto3" json:"councilId,omitempty"` - Response string `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` - Suggestion string `protobuf:"bytes,4,opt,name=suggestion,proto3" json:"suggestion,omitempty"` -} - -func (x *MsgCouncilResponseCommit) Reset() { - *x = MsgCouncilResponseCommit{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilResponseCommit) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilResponseCommit) ProtoMessage() {} - -// Deprecated: Use MsgCouncilResponseCommit.ProtoReflect.Descriptor instead. -func (*MsgCouncilResponseCommit) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{54} -} - -func (x *MsgCouncilResponseCommit) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCouncilResponseCommit) GetCouncilId() uint64 { - if x != nil { - return x.CouncilId - } - return 0 -} - -func (x *MsgCouncilResponseCommit) GetResponse() string { - if x != nil { - return x.Response - } - return "" -} - -func (x *MsgCouncilResponseCommit) GetSuggestion() string { - if x != nil { - return x.Suggestion - } - return "" -} - -type MsgCouncilResponseCommitResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCouncilResponseCommitResponse) Reset() { - *x = MsgCouncilResponseCommitResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilResponseCommitResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilResponseCommitResponse) ProtoMessage() {} - -// Deprecated: Use MsgCouncilResponseCommitResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilResponseCommitResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{55} -} - -type MsgCouncilResponseReveal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CouncilId uint64 `protobuf:"varint,2,opt,name=councilId,proto3" json:"councilId,omitempty"` - Response Response `protobuf:"varint,3,opt,name=response,proto3,enum=cardchain.cardchain.Response" json:"response,omitempty"` - Secret string `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"` -} - -func (x *MsgCouncilResponseReveal) Reset() { - *x = MsgCouncilResponseReveal{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilResponseReveal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilResponseReveal) ProtoMessage() {} - -// Deprecated: Use MsgCouncilResponseReveal.ProtoReflect.Descriptor instead. -func (*MsgCouncilResponseReveal) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{56} -} - -func (x *MsgCouncilResponseReveal) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCouncilResponseReveal) GetCouncilId() uint64 { - if x != nil { - return x.CouncilId - } - return 0 -} - -func (x *MsgCouncilResponseReveal) GetResponse() Response { - if x != nil { - return x.Response - } - return Response_Yes -} - -func (x *MsgCouncilResponseReveal) GetSecret() string { - if x != nil { - return x.Secret - } - return "" -} - -type MsgCouncilResponseRevealResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCouncilResponseRevealResponse) Reset() { - *x = MsgCouncilResponseRevealResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilResponseRevealResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilResponseRevealResponse) ProtoMessage() {} - -// Deprecated: Use MsgCouncilResponseRevealResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilResponseRevealResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{57} -} - -type MsgCouncilRestart struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CouncilId uint64 `protobuf:"varint,2,opt,name=councilId,proto3" json:"councilId,omitempty"` -} - -func (x *MsgCouncilRestart) Reset() { - *x = MsgCouncilRestart{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilRestart) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilRestart) ProtoMessage() {} - -// Deprecated: Use MsgCouncilRestart.ProtoReflect.Descriptor instead. -func (*MsgCouncilRestart) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{58} -} - -func (x *MsgCouncilRestart) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCouncilRestart) GetCouncilId() uint64 { - if x != nil { - return x.CouncilId - } - return 0 -} - -type MsgCouncilRestartResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCouncilRestartResponse) Reset() { - *x = MsgCouncilRestartResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCouncilRestartResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCouncilRestartResponse) ProtoMessage() {} - -// Deprecated: Use MsgCouncilRestartResponse.ProtoReflect.Descriptor instead. -func (*MsgCouncilRestartResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{59} -} - -type MsgMatchConfirm struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MatchId uint64 `protobuf:"varint,2,opt,name=matchId,proto3" json:"matchId,omitempty"` - Outcome Outcome `protobuf:"varint,3,opt,name=outcome,proto3,enum=cardchain.cardchain.Outcome" json:"outcome,omitempty"` - VotedCards []*SingleVote `protobuf:"bytes,4,rep,name=votedCards,proto3" json:"votedCards,omitempty"` -} - -func (x *MsgMatchConfirm) Reset() { - *x = MsgMatchConfirm{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchConfirm) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchConfirm) ProtoMessage() {} - -// Deprecated: Use MsgMatchConfirm.ProtoReflect.Descriptor instead. -func (*MsgMatchConfirm) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{60} -} - -func (x *MsgMatchConfirm) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgMatchConfirm) GetMatchId() uint64 { - if x != nil { - return x.MatchId - } - return 0 -} - -func (x *MsgMatchConfirm) GetOutcome() Outcome { - if x != nil { - return x.Outcome - } - return Outcome_Undefined -} - -func (x *MsgMatchConfirm) GetVotedCards() []*SingleVote { - if x != nil { - return x.VotedCards - } - return nil -} - -type MsgMatchConfirmResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgMatchConfirmResponse) Reset() { - *x = MsgMatchConfirmResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchConfirmResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchConfirmResponse) ProtoMessage() {} - -// Deprecated: Use MsgMatchConfirmResponse.ProtoReflect.Descriptor instead. -func (*MsgMatchConfirmResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{61} -} - -type MsgProfileCardSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *MsgProfileCardSet) Reset() { - *x = MsgProfileCardSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileCardSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileCardSet) ProtoMessage() {} - -// Deprecated: Use MsgProfileCardSet.ProtoReflect.Descriptor instead. -func (*MsgProfileCardSet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{62} -} - -func (x *MsgProfileCardSet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgProfileCardSet) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type MsgProfileCardSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgProfileCardSetResponse) Reset() { - *x = MsgProfileCardSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileCardSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileCardSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgProfileCardSetResponse.ProtoReflect.Descriptor instead. -func (*MsgProfileCardSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{63} -} - -type MsgProfileWebsiteSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Website string `protobuf:"bytes,2,opt,name=website,proto3" json:"website,omitempty"` -} - -func (x *MsgProfileWebsiteSet) Reset() { - *x = MsgProfileWebsiteSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileWebsiteSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileWebsiteSet) ProtoMessage() {} - -// Deprecated: Use MsgProfileWebsiteSet.ProtoReflect.Descriptor instead. -func (*MsgProfileWebsiteSet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{64} -} - -func (x *MsgProfileWebsiteSet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgProfileWebsiteSet) GetWebsite() string { - if x != nil { - return x.Website - } - return "" -} - -type MsgProfileWebsiteSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgProfileWebsiteSetResponse) Reset() { - *x = MsgProfileWebsiteSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileWebsiteSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileWebsiteSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgProfileWebsiteSetResponse.ProtoReflect.Descriptor instead. -func (*MsgProfileWebsiteSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{65} -} - -type MsgProfileBioSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Bio string `protobuf:"bytes,2,opt,name=bio,proto3" json:"bio,omitempty"` -} - -func (x *MsgProfileBioSet) Reset() { - *x = MsgProfileBioSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileBioSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileBioSet) ProtoMessage() {} - -// Deprecated: Use MsgProfileBioSet.ProtoReflect.Descriptor instead. -func (*MsgProfileBioSet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{66} -} - -func (x *MsgProfileBioSet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgProfileBioSet) GetBio() string { - if x != nil { - return x.Bio - } - return "" -} - -type MsgProfileBioSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgProfileBioSetResponse) Reset() { - *x = MsgProfileBioSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileBioSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileBioSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgProfileBioSetResponse.ProtoReflect.Descriptor instead. -func (*MsgProfileBioSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{67} -} - -type MsgBoosterPackOpen struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - BoosterPackId uint64 `protobuf:"varint,2,opt,name=boosterPackId,proto3" json:"boosterPackId,omitempty"` -} - -func (x *MsgBoosterPackOpen) Reset() { - *x = MsgBoosterPackOpen{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBoosterPackOpen) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBoosterPackOpen) ProtoMessage() {} - -// Deprecated: Use MsgBoosterPackOpen.ProtoReflect.Descriptor instead. -func (*MsgBoosterPackOpen) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{68} -} - -func (x *MsgBoosterPackOpen) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgBoosterPackOpen) GetBoosterPackId() uint64 { - if x != nil { - return x.BoosterPackId - } - return 0 -} - -type MsgBoosterPackOpenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardIds []uint64 `protobuf:"varint,1,rep,packed,name=cardIds,proto3" json:"cardIds,omitempty"` -} - -func (x *MsgBoosterPackOpenResponse) Reset() { - *x = MsgBoosterPackOpenResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBoosterPackOpenResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBoosterPackOpenResponse) ProtoMessage() {} - -// Deprecated: Use MsgBoosterPackOpenResponse.ProtoReflect.Descriptor instead. -func (*MsgBoosterPackOpenResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{69} -} - -func (x *MsgBoosterPackOpenResponse) GetCardIds() []uint64 { - if x != nil { - return x.CardIds - } - return nil -} - -type MsgBoosterPackTransfer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - BoosterPackId uint64 `protobuf:"varint,2,opt,name=boosterPackId,proto3" json:"boosterPackId,omitempty"` - Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` -} - -func (x *MsgBoosterPackTransfer) Reset() { - *x = MsgBoosterPackTransfer{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBoosterPackTransfer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBoosterPackTransfer) ProtoMessage() {} - -// Deprecated: Use MsgBoosterPackTransfer.ProtoReflect.Descriptor instead. -func (*MsgBoosterPackTransfer) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{70} -} - -func (x *MsgBoosterPackTransfer) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgBoosterPackTransfer) GetBoosterPackId() uint64 { - if x != nil { - return x.BoosterPackId - } - return 0 -} - -func (x *MsgBoosterPackTransfer) GetReceiver() string { - if x != nil { - return x.Receiver - } - return "" -} - -type MsgBoosterPackTransferResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgBoosterPackTransferResponse) Reset() { - *x = MsgBoosterPackTransferResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgBoosterPackTransferResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgBoosterPackTransferResponse) ProtoMessage() {} - -// Deprecated: Use MsgBoosterPackTransferResponse.ProtoReflect.Descriptor instead. -func (*MsgBoosterPackTransferResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{71} -} - -type MsgSetStoryWriterSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - StoryWriter string `protobuf:"bytes,3,opt,name=storyWriter,proto3" json:"storyWriter,omitempty"` -} - -func (x *MsgSetStoryWriterSet) Reset() { - *x = MsgSetStoryWriterSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetStoryWriterSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetStoryWriterSet) ProtoMessage() {} - -// Deprecated: Use MsgSetStoryWriterSet.ProtoReflect.Descriptor instead. -func (*MsgSetStoryWriterSet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{72} -} - -func (x *MsgSetStoryWriterSet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetStoryWriterSet) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetStoryWriterSet) GetStoryWriter() string { - if x != nil { - return x.StoryWriter - } - return "" -} - -type MsgSetStoryWriterSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetStoryWriterSetResponse) Reset() { - *x = MsgSetStoryWriterSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetStoryWriterSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetStoryWriterSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetStoryWriterSetResponse.ProtoReflect.Descriptor instead. -func (*MsgSetStoryWriterSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{73} -} - -type MsgSetArtistSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - Artist string `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"` -} - -func (x *MsgSetArtistSet) Reset() { - *x = MsgSetArtistSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetArtistSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetArtistSet) ProtoMessage() {} - -// Deprecated: Use MsgSetArtistSet.ProtoReflect.Descriptor instead. -func (*MsgSetArtistSet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{74} -} - -func (x *MsgSetArtistSet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetArtistSet) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetArtistSet) GetArtist() string { - if x != nil { - return x.Artist - } - return "" -} - -type MsgSetArtistSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetArtistSetResponse) Reset() { - *x = MsgSetArtistSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetArtistSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetArtistSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetArtistSetResponse.ProtoReflect.Descriptor instead. -func (*MsgSetArtistSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{75} -} - -type MsgCardVoteMulti struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Votes []*SingleVote `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes,omitempty"` -} - -func (x *MsgCardVoteMulti) Reset() { - *x = MsgCardVoteMulti{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardVoteMulti) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardVoteMulti) ProtoMessage() {} - -// Deprecated: Use MsgCardVoteMulti.ProtoReflect.Descriptor instead. -func (*MsgCardVoteMulti) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{76} -} - -func (x *MsgCardVoteMulti) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCardVoteMulti) GetVotes() []*SingleVote { - if x != nil { - return x.Votes - } - return nil -} - -type MsgCardVoteMultiResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` -} - -func (x *MsgCardVoteMultiResponse) Reset() { - *x = MsgCardVoteMultiResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardVoteMultiResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardVoteMultiResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardVoteMultiResponse.ProtoReflect.Descriptor instead. -func (*MsgCardVoteMultiResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{77} -} - -func (x *MsgCardVoteMultiResponse) GetAirdropClaimed() bool { - if x != nil { - return x.AirdropClaimed - } - return false -} - -type MsgMatchOpen struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - PlayerA string `protobuf:"bytes,2,opt,name=playerA,proto3" json:"playerA,omitempty"` - PlayerB string `protobuf:"bytes,3,opt,name=playerB,proto3" json:"playerB,omitempty"` - PlayerADeck []uint64 `protobuf:"varint,4,rep,packed,name=playerADeck,proto3" json:"playerADeck,omitempty"` - PlayerBDeck []uint64 `protobuf:"varint,5,rep,packed,name=playerBDeck,proto3" json:"playerBDeck,omitempty"` -} - -func (x *MsgMatchOpen) Reset() { - *x = MsgMatchOpen{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchOpen) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchOpen) ProtoMessage() {} - -// Deprecated: Use MsgMatchOpen.ProtoReflect.Descriptor instead. -func (*MsgMatchOpen) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{78} -} - -func (x *MsgMatchOpen) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgMatchOpen) GetPlayerA() string { - if x != nil { - return x.PlayerA - } - return "" -} - -func (x *MsgMatchOpen) GetPlayerB() string { - if x != nil { - return x.PlayerB - } - return "" -} - -func (x *MsgMatchOpen) GetPlayerADeck() []uint64 { - if x != nil { - return x.PlayerADeck - } - return nil -} - -func (x *MsgMatchOpen) GetPlayerBDeck() []uint64 { - if x != nil { - return x.PlayerBDeck - } - return nil -} - -type MsgMatchOpenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MatchId uint64 `protobuf:"varint,1,opt,name=matchId,proto3" json:"matchId,omitempty"` -} - -func (x *MsgMatchOpenResponse) Reset() { - *x = MsgMatchOpenResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgMatchOpenResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgMatchOpenResponse) ProtoMessage() {} - -// Deprecated: Use MsgMatchOpenResponse.ProtoReflect.Descriptor instead. -func (*MsgMatchOpenResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{79} -} - -func (x *MsgMatchOpenResponse) GetMatchId() uint64 { - if x != nil { - return x.MatchId - } - return 0 -} - -type MsgSetNameSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *MsgSetNameSet) Reset() { - *x = MsgSetNameSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetNameSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetNameSet) ProtoMessage() {} - -// Deprecated: Use MsgSetNameSet.ProtoReflect.Descriptor instead. -func (*MsgSetNameSet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{80} -} - -func (x *MsgSetNameSet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetNameSet) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *MsgSetNameSet) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type MsgSetNameSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetNameSetResponse) Reset() { - *x = MsgSetNameSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetNameSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetNameSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetNameSetResponse.ProtoReflect.Descriptor instead. -func (*MsgSetNameSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{81} -} - -type MsgProfileAliasSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` -} - -func (x *MsgProfileAliasSet) Reset() { - *x = MsgProfileAliasSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileAliasSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileAliasSet) ProtoMessage() {} - -// Deprecated: Use MsgProfileAliasSet.ProtoReflect.Descriptor instead. -func (*MsgProfileAliasSet) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{82} -} - -func (x *MsgProfileAliasSet) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgProfileAliasSet) GetAlias() string { - if x != nil { - return x.Alias - } - return "" -} - -type MsgProfileAliasSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgProfileAliasSetResponse) Reset() { - *x = MsgProfileAliasSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgProfileAliasSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgProfileAliasSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgProfileAliasSetResponse.ProtoReflect.Descriptor instead. -func (*MsgProfileAliasSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{83} -} - -type MsgEarlyAccessInvite struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *MsgEarlyAccessInvite) Reset() { - *x = MsgEarlyAccessInvite{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEarlyAccessInvite) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEarlyAccessInvite) ProtoMessage() {} - -// Deprecated: Use MsgEarlyAccessInvite.ProtoReflect.Descriptor instead. -func (*MsgEarlyAccessInvite) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{84} -} - -func (x *MsgEarlyAccessInvite) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgEarlyAccessInvite) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -type MsgEarlyAccessInviteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgEarlyAccessInviteResponse) Reset() { - *x = MsgEarlyAccessInviteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEarlyAccessInviteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEarlyAccessInviteResponse) ProtoMessage() {} - -// Deprecated: Use MsgEarlyAccessInviteResponse.ProtoReflect.Descriptor instead. -func (*MsgEarlyAccessInviteResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{85} -} - -type MsgZealyConnect struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ZealyId string `protobuf:"bytes,2,opt,name=zealyId,proto3" json:"zealyId,omitempty"` -} - -func (x *MsgZealyConnect) Reset() { - *x = MsgZealyConnect{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgZealyConnect) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgZealyConnect) ProtoMessage() {} - -// Deprecated: Use MsgZealyConnect.ProtoReflect.Descriptor instead. -func (*MsgZealyConnect) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{86} -} - -func (x *MsgZealyConnect) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgZealyConnect) GetZealyId() string { - if x != nil { - return x.ZealyId - } - return "" -} - -type MsgZealyConnectResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgZealyConnectResponse) Reset() { - *x = MsgZealyConnectResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgZealyConnectResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgZealyConnectResponse) ProtoMessage() {} - -// Deprecated: Use MsgZealyConnectResponse.ProtoReflect.Descriptor instead. -func (*MsgZealyConnectResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{87} -} - -type MsgEncounterCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Drawlist []uint64 `protobuf:"varint,3,rep,packed,name=drawlist,proto3" json:"drawlist,omitempty"` - Parameters map[string]string `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Image []byte `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` -} - -func (x *MsgEncounterCreate) Reset() { - *x = MsgEncounterCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEncounterCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEncounterCreate) ProtoMessage() {} - -// Deprecated: Use MsgEncounterCreate.ProtoReflect.Descriptor instead. -func (*MsgEncounterCreate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{88} -} - -func (x *MsgEncounterCreate) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgEncounterCreate) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MsgEncounterCreate) GetDrawlist() []uint64 { - if x != nil { - return x.Drawlist - } - return nil -} - -func (x *MsgEncounterCreate) GetParameters() map[string]string { - if x != nil { - return x.Parameters - } - return nil -} - -func (x *MsgEncounterCreate) GetImage() []byte { - if x != nil { - return x.Image - } - return nil -} - -type MsgEncounterCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgEncounterCreateResponse) Reset() { - *x = MsgEncounterCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEncounterCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEncounterCreateResponse) ProtoMessage() {} - -// Deprecated: Use MsgEncounterCreateResponse.ProtoReflect.Descriptor instead. -func (*MsgEncounterCreateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{89} -} - -type MsgEncounterDo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - EncounterId uint64 `protobuf:"varint,2,opt,name=encounterId,proto3" json:"encounterId,omitempty"` - User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *MsgEncounterDo) Reset() { - *x = MsgEncounterDo{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEncounterDo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEncounterDo) ProtoMessage() {} - -// Deprecated: Use MsgEncounterDo.ProtoReflect.Descriptor instead. -func (*MsgEncounterDo) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{90} -} - -func (x *MsgEncounterDo) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgEncounterDo) GetEncounterId() uint64 { - if x != nil { - return x.EncounterId - } - return 0 -} - -func (x *MsgEncounterDo) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -type MsgEncounterDoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgEncounterDoResponse) Reset() { - *x = MsgEncounterDoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEncounterDoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEncounterDoResponse) ProtoMessage() {} - -// Deprecated: Use MsgEncounterDoResponse.ProtoReflect.Descriptor instead. -func (*MsgEncounterDoResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{91} -} - -type MsgEncounterClose struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - EncounterId uint64 `protobuf:"varint,2,opt,name=encounterId,proto3" json:"encounterId,omitempty"` - User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - Won bool `protobuf:"varint,4,opt,name=won,proto3" json:"won,omitempty"` -} - -func (x *MsgEncounterClose) Reset() { - *x = MsgEncounterClose{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEncounterClose) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEncounterClose) ProtoMessage() {} - -// Deprecated: Use MsgEncounterClose.ProtoReflect.Descriptor instead. -func (*MsgEncounterClose) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{92} -} - -func (x *MsgEncounterClose) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgEncounterClose) GetEncounterId() uint64 { - if x != nil { - return x.EncounterId - } - return 0 -} - -func (x *MsgEncounterClose) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -func (x *MsgEncounterClose) GetWon() bool { - if x != nil { - return x.Won - } - return false -} - -type MsgEncounterCloseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgEncounterCloseResponse) Reset() { - *x = MsgEncounterCloseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEncounterCloseResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEncounterCloseResponse) ProtoMessage() {} - -// Deprecated: Use MsgEncounterCloseResponse.ProtoReflect.Descriptor instead. -func (*MsgEncounterCloseResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{93} -} - -type MsgEarlyAccessDisinvite struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *MsgEarlyAccessDisinvite) Reset() { - *x = MsgEarlyAccessDisinvite{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEarlyAccessDisinvite) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEarlyAccessDisinvite) ProtoMessage() {} - -// Deprecated: Use MsgEarlyAccessDisinvite.ProtoReflect.Descriptor instead. -func (*MsgEarlyAccessDisinvite) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{94} -} - -func (x *MsgEarlyAccessDisinvite) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgEarlyAccessDisinvite) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -type MsgEarlyAccessDisinviteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgEarlyAccessDisinviteResponse) Reset() { - *x = MsgEarlyAccessDisinviteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEarlyAccessDisinviteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEarlyAccessDisinviteResponse) ProtoMessage() {} - -// Deprecated: Use MsgEarlyAccessDisinviteResponse.ProtoReflect.Descriptor instead. -func (*MsgEarlyAccessDisinviteResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{95} -} - -type MsgCardBan struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *MsgCardBan) Reset() { - *x = MsgCardBan{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardBan) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardBan) ProtoMessage() {} - -// Deprecated: Use MsgCardBan.ProtoReflect.Descriptor instead. -func (*MsgCardBan) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{96} -} - -func (x *MsgCardBan) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgCardBan) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type MsgCardBanResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCardBanResponse) Reset() { - *x = MsgCardBanResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardBanResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardBanResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardBanResponse.ProtoReflect.Descriptor instead. -func (*MsgCardBanResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{97} -} - -type MsgEarlyAccessGrant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` -} - -func (x *MsgEarlyAccessGrant) Reset() { - *x = MsgEarlyAccessGrant{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEarlyAccessGrant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEarlyAccessGrant) ProtoMessage() {} - -// Deprecated: Use MsgEarlyAccessGrant.ProtoReflect.Descriptor instead. -func (*MsgEarlyAccessGrant) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{98} -} - -func (x *MsgEarlyAccessGrant) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgEarlyAccessGrant) GetUsers() []string { - if x != nil { - return x.Users - } - return nil -} - -type MsgEarlyAccessGrantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgEarlyAccessGrantResponse) Reset() { - *x = MsgEarlyAccessGrantResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgEarlyAccessGrantResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgEarlyAccessGrantResponse) ProtoMessage() {} - -// Deprecated: Use MsgEarlyAccessGrantResponse.ProtoReflect.Descriptor instead. -func (*MsgEarlyAccessGrantResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{99} -} - -type MsgSetActivate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - SetId uint64 `protobuf:"varint,2,opt,name=setId,proto3" json:"setId,omitempty"` -} - -func (x *MsgSetActivate) Reset() { - *x = MsgSetActivate{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetActivate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetActivate) ProtoMessage() {} - -// Deprecated: Use MsgSetActivate.ProtoReflect.Descriptor instead. -func (*MsgSetActivate) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{100} -} - -func (x *MsgSetActivate) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgSetActivate) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -type MsgSetActivateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetActivateResponse) Reset() { - *x = MsgSetActivateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetActivateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetActivateResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetActivateResponse.ProtoReflect.Descriptor instead. -func (*MsgSetActivateResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{101} -} - -type MsgCardCopyrightClaim struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` -} - -func (x *MsgCardCopyrightClaim) Reset() { - *x = MsgCardCopyrightClaim{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardCopyrightClaim) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardCopyrightClaim) ProtoMessage() {} - -// Deprecated: Use MsgCardCopyrightClaim.ProtoReflect.Descriptor instead. -func (*MsgCardCopyrightClaim) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{102} -} - -func (x *MsgCardCopyrightClaim) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgCardCopyrightClaim) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -type MsgCardCopyrightClaimResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCardCopyrightClaimResponse) Reset() { - *x = MsgCardCopyrightClaimResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_tx_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCardCopyrightClaimResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCardCopyrightClaimResponse) ProtoMessage() {} - -// Deprecated: Use MsgCardCopyrightClaimResponse.ProtoReflect.Descriptor instead. -func (*MsgCardCopyrightClaimResponse) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_tx_proto_rawDescGZIP(), []int{103} -} - -var File_cardchain_cardchain_tx_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_tx_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, - 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x75, 0x6e, 0x63, - 0x69, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x38, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x25, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, - 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x0d, 0x4d, 0x73, 0x67, - 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, - 0x6c, 0x69, 0x61, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x0a, 0x10, 0x4d, - 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, 0x75, 0x79, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x31, 0x0a, 0x03, 0x62, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x03, 0x62, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x18, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, 0x75, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xc2, - 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x12, - 0x24, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x41, - 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x44, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, - 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, - 0x6d, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, - 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x22, 0x6a, 0x0a, 0x0b, 0x4d, 0x73, 0x67, - 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x33, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x6f, 0x74, - 0x65, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3d, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, - 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0e, - 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6c, 0x61, - 0x69, 0x6d, 0x65, 0x64, 0x22, 0x6d, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, - 0x01, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x12, 0x37, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, - 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x66, 0x75, 0x6c, 0x6c, 0x41, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x66, 0x75, 0x6c, 0x6c, 0x41, 0x72, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, - 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x16, - 0x0a, 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, - 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3e, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, - 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xd2, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64, - 0x43, 0x61, 0x72, 0x64, 0x73, 0x41, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0c, 0x70, 0x6c, - 0x61, 0x79, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x41, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x6c, - 0x61, 0x79, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x42, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, - 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x42, 0x12, 0x36, - 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, - 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, - 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, - 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7d, - 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x3a, 0x0e, 0x82, - 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x21, 0x0a, - 0x1f, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xa8, 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x79, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, - 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, - 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x65, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, - 0x64, 0x41, 0x64, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, - 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, - 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x68, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x3a, - 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1a, 0x0a, - 0x18, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x68, 0x0a, 0x14, 0x4d, 0x73, 0x67, - 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x75, 0x73, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, - 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x73, 0x65, 0x74, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, - 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x0a, - 0x10, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, - 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x64, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, - 0x41, 0x64, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, 0x65, - 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x51, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, - 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x43, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, - 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, - 0x6d, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, - 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x22, 0x8b, 0x01, 0x0a, 0x12, 0x4d, 0x73, - 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x12, 0x35, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x53, 0x65, - 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5b, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, - 0x4f, 0x66, 0x66, 0x65, 0x72, 0x42, 0x75, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, - 0x65, 0x72, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, - 0x65, 0x72, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5e, 0x0a, - 0x12, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, - 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x3a, - 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, - 0x1a, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x10, - 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x06, 0x72, 0x61, 0x72, 0x69, - 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, - 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, 0x52, 0x06, 0x72, 0x61, 0x72, 0x69, 0x74, - 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, - 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, - 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x18, - 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x49, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x49, 0x64, - 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, - 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, - 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb3, - 0x01, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, - 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, - 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x63, - 0x69, 0x6c, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6f, 0x75, 0x6e, - 0x63, 0x69, 0x6c, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xcc, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x72, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, - 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, - 0x6f, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, - 0x12, 0x3f, 0x0a, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, - 0x65, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, - 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, - 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x0a, 0x11, 0x4d, 0x73, - 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x61, 0x72, 0x64, 0x53, 0x65, 0x74, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, - 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, - 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, - 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x61, 0x72, - 0x64, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x0a, 0x14, - 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x57, 0x65, 0x62, 0x73, 0x69, 0x74, - 0x65, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, - 0x0a, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x57, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x42, 0x69, 0x6f, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x69, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x62, 0x69, 0x6f, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x42, 0x69, 0x6f, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x62, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, - 0x63, 0x6b, 0x4f, 0x70, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x49, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, - 0x50, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x36, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, - 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x04, 0x52, 0x07, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x73, 0x22, 0x82, 0x01, 0x0a, - 0x16, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, - 0x72, 0x50, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, - 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x76, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, - 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, - 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, - 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x0f, 0x4d, - 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, - 0x0a, 0x06, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, - 0x74, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x71, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x4d, 0x75, - 0x6c, 0x74, 0x69, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x35, 0x0a, - 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, - 0x6f, 0x74, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x42, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, - 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, - 0x0a, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x43, - 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x22, 0xae, 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x4f, 0x70, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x42, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x42, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, - 0x44, 0x65, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x41, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x42, 0x44, 0x65, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x42, 0x44, 0x65, 0x63, 0x6b, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x30, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x22, 0x61, 0x0a, 0x0d, 0x4d, 0x73, 0x67, - 0x53, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x0c, - 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, - 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x53, 0x65, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x45, 0x61, - 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, - 0x73, 0x67, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x0a, 0x0f, 0x4d, - 0x73, 0x67, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x7a, 0x65, 0x61, 0x6c, - 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x7a, 0x65, 0x61, 0x6c, 0x79, - 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x02, 0x0a, 0x12, - 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x72, 0x61, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x04, 0x52, 0x08, 0x64, 0x72, 0x61, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x0a, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x37, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x45, - 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x49, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x83, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, - 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x77, 0x6f, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x03, 0x77, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, - 0x67, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x69, - 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x0a, - 0x0a, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x42, 0x61, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, - 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x14, 0x0a, 0x12, 0x4d, - 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x73, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x45, 0x61, 0x72, - 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x73, 0x65, 0x74, 0x49, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x77, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, - 0x67, 0x68, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x72, 0x64, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, 0x61, 0x69, - 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x82, 0x2b, 0x0a, 0x03, 0x4d, 0x73, - 0x67, 0x12, 0x62, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x73, 0x65, - 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x65, 0x42, 0x75, 0x79, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, - 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, 0x75, 0x79, 0x1a, 0x2d, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x42, - 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x43, 0x61, - 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x61, 0x72, 0x64, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x08, 0x43, 0x61, 0x72, 0x64, 0x56, - 0x6f, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, - 0x64, 0x56, 0x6f, 0x74, 0x65, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x62, 0x0a, 0x0c, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, - 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x72, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x43, 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, - 0x65, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x44, - 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x61, 0x72, 0x64, 0x44, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x41, 0x64, 0x64, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, - 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x1a, 0x2e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x10, 0x43, - 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, - 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, - 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x30, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x43, - 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x11, 0x43, 0x6f, 0x75, 0x6e, - 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x29, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x31, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, - 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0b, 0x4d, - 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x23, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, - 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, - 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x25, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, - 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x14, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x59, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x21, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, - 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x53, 0x65, - 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, - 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x1a, 0x2a, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x43, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x71, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, - 0x72, 0x41, 0x64, 0x64, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, - 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x1a, - 0x31, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x1a, 0x34, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, - 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, - 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x12, 0x23, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, - 0x7a, 0x65, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x46, - 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x65, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, - 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, - 0x72, 0x79, 0x41, 0x64, 0x64, 0x12, 0x23, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, - 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x42, 0x6f, 0x6f, 0x73, 0x74, - 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x75, - 0x79, 0x1a, 0x2e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, - 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, - 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2f, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, - 0x0a, 0x0c, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x42, 0x75, 0x79, 0x12, 0x24, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, - 0x72, 0x42, 0x75, 0x79, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, - 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, - 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x1a, 0x2f, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x66, 0x66, 0x65, - 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x65, 0x0a, 0x0d, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, - 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, - 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x72, 0x64, 0x52, 0x61, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x15, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, - 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x1a, 0x35, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x15, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x12, 0x2d, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x1a, 0x35, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, - 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x1a, 0x2e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x52, - 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, - 0x0a, 0x0c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x12, 0x24, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x72, 0x6d, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x61, 0x72, - 0x64, 0x53, 0x65, 0x74, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x61, 0x72, 0x64, 0x53, 0x65, 0x74, 0x1a, 0x2e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x61, 0x72, - 0x64, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x11, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x57, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x53, 0x65, - 0x74, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x57, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x53, 0x65, 0x74, 0x1a, 0x31, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x57, 0x65, 0x62, - 0x73, 0x69, 0x74, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x65, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x69, 0x6f, 0x53, 0x65, 0x74, - 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x42, 0x69, 0x6f, 0x53, 0x65, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x69, 0x6f, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, - 0x72, 0x50, 0x61, 0x63, 0x6b, 0x4f, 0x70, 0x65, 0x6e, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x4f, 0x70, - 0x65, 0x6e, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, - 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x13, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, - 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x1a, 0x33, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x11, - 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x53, 0x65, - 0x74, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, - 0x6f, 0x72, 0x79, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x1a, 0x31, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x57, 0x72, - 0x69, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x62, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x12, - 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, - 0x73, 0x74, 0x53, 0x65, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, - 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x4d, - 0x75, 0x6c, 0x74, 0x69, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, - 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x1a, 0x2d, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x4d, 0x75, 0x6c, - 0x74, 0x69, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x09, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x4f, 0x70, 0x65, 0x6e, 0x12, 0x21, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4f, 0x70, 0x65, 0x6e, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x74, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, - 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x53, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x6c, - 0x69, 0x61, 0x73, 0x53, 0x65, 0x74, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x53, 0x65, 0x74, 0x1a, - 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x71, 0x0a, 0x11, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, - 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, - 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, - 0x1a, 0x31, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0c, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x5a, 0x65, 0x61, - 0x6c, 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x4d, 0x73, 0x67, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0f, 0x45, 0x6e, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x1a, 0x2f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0b, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, - 0x72, 0x44, 0x6f, 0x12, 0x23, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, - 0x73, 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x1a, - 0x2e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x7a, 0x0a, 0x14, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, - 0x73, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x69, - 0x6e, 0x76, 0x69, 0x74, 0x65, 0x1a, 0x34, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, - 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x69, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x07, 0x43, - 0x61, 0x72, 0x64, 0x42, 0x61, 0x6e, 0x12, 0x1f, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x61, 0x72, 0x64, 0x42, 0x61, 0x6e, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x72, 0x64, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x6e, 0x0a, 0x10, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x61, - 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x1a, 0x30, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5f, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, - 0x23, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, - 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x74, 0x0a, 0x12, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, - 0x68, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, - 0x61, 0x69, 0x6d, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x72, - 0x64, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xcf, - 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, - 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_tx_proto_rawDescOnce sync.Once - file_cardchain_cardchain_tx_proto_rawDescData = file_cardchain_cardchain_tx_proto_rawDesc -) - -func file_cardchain_cardchain_tx_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_tx_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_tx_proto_rawDescData) - }) - return file_cardchain_cardchain_tx_proto_rawDescData -} - -var file_cardchain_cardchain_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 105) -var file_cardchain_cardchain_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: cardchain.cardchain.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: cardchain.cardchain.MsgUpdateParamsResponse - (*MsgUserCreate)(nil), // 2: cardchain.cardchain.MsgUserCreate - (*MsgUserCreateResponse)(nil), // 3: cardchain.cardchain.MsgUserCreateResponse - (*MsgCardSchemeBuy)(nil), // 4: cardchain.cardchain.MsgCardSchemeBuy - (*MsgCardSchemeBuyResponse)(nil), // 5: cardchain.cardchain.MsgCardSchemeBuyResponse - (*MsgCardSaveContent)(nil), // 6: cardchain.cardchain.MsgCardSaveContent - (*MsgCardSaveContentResponse)(nil), // 7: cardchain.cardchain.MsgCardSaveContentResponse - (*MsgCardVote)(nil), // 8: cardchain.cardchain.MsgCardVote - (*MsgCardVoteResponse)(nil), // 9: cardchain.cardchain.MsgCardVoteResponse - (*MsgCardTransfer)(nil), // 10: cardchain.cardchain.MsgCardTransfer - (*MsgCardTransferResponse)(nil), // 11: cardchain.cardchain.MsgCardTransferResponse - (*MsgCardDonate)(nil), // 12: cardchain.cardchain.MsgCardDonate - (*MsgCardDonateResponse)(nil), // 13: cardchain.cardchain.MsgCardDonateResponse - (*MsgCardArtworkAdd)(nil), // 14: cardchain.cardchain.MsgCardArtworkAdd - (*MsgCardArtworkAddResponse)(nil), // 15: cardchain.cardchain.MsgCardArtworkAddResponse - (*MsgCardArtistChange)(nil), // 16: cardchain.cardchain.MsgCardArtistChange - (*MsgCardArtistChangeResponse)(nil), // 17: cardchain.cardchain.MsgCardArtistChangeResponse - (*MsgCouncilRegister)(nil), // 18: cardchain.cardchain.MsgCouncilRegister - (*MsgCouncilRegisterResponse)(nil), // 19: cardchain.cardchain.MsgCouncilRegisterResponse - (*MsgCouncilDeregister)(nil), // 20: cardchain.cardchain.MsgCouncilDeregister - (*MsgCouncilDeregisterResponse)(nil), // 21: cardchain.cardchain.MsgCouncilDeregisterResponse - (*MsgMatchReport)(nil), // 22: cardchain.cardchain.MsgMatchReport - (*MsgMatchReportResponse)(nil), // 23: cardchain.cardchain.MsgMatchReportResponse - (*MsgCouncilCreate)(nil), // 24: cardchain.cardchain.MsgCouncilCreate - (*MsgCouncilCreateResponse)(nil), // 25: cardchain.cardchain.MsgCouncilCreateResponse - (*MsgMatchReporterAppoint)(nil), // 26: cardchain.cardchain.MsgMatchReporterAppoint - (*MsgMatchReporterAppointResponse)(nil), // 27: cardchain.cardchain.MsgMatchReporterAppointResponse - (*MsgSetCreate)(nil), // 28: cardchain.cardchain.MsgSetCreate - (*MsgSetCreateResponse)(nil), // 29: cardchain.cardchain.MsgSetCreateResponse - (*MsgSetCardAdd)(nil), // 30: cardchain.cardchain.MsgSetCardAdd - (*MsgSetCardAddResponse)(nil), // 31: cardchain.cardchain.MsgSetCardAddResponse - (*MsgSetCardRemove)(nil), // 32: cardchain.cardchain.MsgSetCardRemove - (*MsgSetCardRemoveResponse)(nil), // 33: cardchain.cardchain.MsgSetCardRemoveResponse - (*MsgSetContributorAdd)(nil), // 34: cardchain.cardchain.MsgSetContributorAdd - (*MsgSetContributorAddResponse)(nil), // 35: cardchain.cardchain.MsgSetContributorAddResponse - (*MsgSetContributorRemove)(nil), // 36: cardchain.cardchain.MsgSetContributorRemove - (*MsgSetContributorRemoveResponse)(nil), // 37: cardchain.cardchain.MsgSetContributorRemoveResponse - (*MsgSetFinalize)(nil), // 38: cardchain.cardchain.MsgSetFinalize - (*MsgSetFinalizeResponse)(nil), // 39: cardchain.cardchain.MsgSetFinalizeResponse - (*MsgSetArtworkAdd)(nil), // 40: cardchain.cardchain.MsgSetArtworkAdd - (*MsgSetArtworkAddResponse)(nil), // 41: cardchain.cardchain.MsgSetArtworkAddResponse - (*MsgSetStoryAdd)(nil), // 42: cardchain.cardchain.MsgSetStoryAdd - (*MsgSetStoryAddResponse)(nil), // 43: cardchain.cardchain.MsgSetStoryAddResponse - (*MsgBoosterPackBuy)(nil), // 44: cardchain.cardchain.MsgBoosterPackBuy - (*MsgBoosterPackBuyResponse)(nil), // 45: cardchain.cardchain.MsgBoosterPackBuyResponse - (*MsgSellOfferCreate)(nil), // 46: cardchain.cardchain.MsgSellOfferCreate - (*MsgSellOfferCreateResponse)(nil), // 47: cardchain.cardchain.MsgSellOfferCreateResponse - (*MsgSellOfferBuy)(nil), // 48: cardchain.cardchain.MsgSellOfferBuy - (*MsgSellOfferBuyResponse)(nil), // 49: cardchain.cardchain.MsgSellOfferBuyResponse - (*MsgSellOfferRemove)(nil), // 50: cardchain.cardchain.MsgSellOfferRemove - (*MsgSellOfferRemoveResponse)(nil), // 51: cardchain.cardchain.MsgSellOfferRemoveResponse - (*MsgCardRaritySet)(nil), // 52: cardchain.cardchain.MsgCardRaritySet - (*MsgCardRaritySetResponse)(nil), // 53: cardchain.cardchain.MsgCardRaritySetResponse - (*MsgCouncilResponseCommit)(nil), // 54: cardchain.cardchain.MsgCouncilResponseCommit - (*MsgCouncilResponseCommitResponse)(nil), // 55: cardchain.cardchain.MsgCouncilResponseCommitResponse - (*MsgCouncilResponseReveal)(nil), // 56: cardchain.cardchain.MsgCouncilResponseReveal - (*MsgCouncilResponseRevealResponse)(nil), // 57: cardchain.cardchain.MsgCouncilResponseRevealResponse - (*MsgCouncilRestart)(nil), // 58: cardchain.cardchain.MsgCouncilRestart - (*MsgCouncilRestartResponse)(nil), // 59: cardchain.cardchain.MsgCouncilRestartResponse - (*MsgMatchConfirm)(nil), // 60: cardchain.cardchain.MsgMatchConfirm - (*MsgMatchConfirmResponse)(nil), // 61: cardchain.cardchain.MsgMatchConfirmResponse - (*MsgProfileCardSet)(nil), // 62: cardchain.cardchain.MsgProfileCardSet - (*MsgProfileCardSetResponse)(nil), // 63: cardchain.cardchain.MsgProfileCardSetResponse - (*MsgProfileWebsiteSet)(nil), // 64: cardchain.cardchain.MsgProfileWebsiteSet - (*MsgProfileWebsiteSetResponse)(nil), // 65: cardchain.cardchain.MsgProfileWebsiteSetResponse - (*MsgProfileBioSet)(nil), // 66: cardchain.cardchain.MsgProfileBioSet - (*MsgProfileBioSetResponse)(nil), // 67: cardchain.cardchain.MsgProfileBioSetResponse - (*MsgBoosterPackOpen)(nil), // 68: cardchain.cardchain.MsgBoosterPackOpen - (*MsgBoosterPackOpenResponse)(nil), // 69: cardchain.cardchain.MsgBoosterPackOpenResponse - (*MsgBoosterPackTransfer)(nil), // 70: cardchain.cardchain.MsgBoosterPackTransfer - (*MsgBoosterPackTransferResponse)(nil), // 71: cardchain.cardchain.MsgBoosterPackTransferResponse - (*MsgSetStoryWriterSet)(nil), // 72: cardchain.cardchain.MsgSetStoryWriterSet - (*MsgSetStoryWriterSetResponse)(nil), // 73: cardchain.cardchain.MsgSetStoryWriterSetResponse - (*MsgSetArtistSet)(nil), // 74: cardchain.cardchain.MsgSetArtistSet - (*MsgSetArtistSetResponse)(nil), // 75: cardchain.cardchain.MsgSetArtistSetResponse - (*MsgCardVoteMulti)(nil), // 76: cardchain.cardchain.MsgCardVoteMulti - (*MsgCardVoteMultiResponse)(nil), // 77: cardchain.cardchain.MsgCardVoteMultiResponse - (*MsgMatchOpen)(nil), // 78: cardchain.cardchain.MsgMatchOpen - (*MsgMatchOpenResponse)(nil), // 79: cardchain.cardchain.MsgMatchOpenResponse - (*MsgSetNameSet)(nil), // 80: cardchain.cardchain.MsgSetNameSet - (*MsgSetNameSetResponse)(nil), // 81: cardchain.cardchain.MsgSetNameSetResponse - (*MsgProfileAliasSet)(nil), // 82: cardchain.cardchain.MsgProfileAliasSet - (*MsgProfileAliasSetResponse)(nil), // 83: cardchain.cardchain.MsgProfileAliasSetResponse - (*MsgEarlyAccessInvite)(nil), // 84: cardchain.cardchain.MsgEarlyAccessInvite - (*MsgEarlyAccessInviteResponse)(nil), // 85: cardchain.cardchain.MsgEarlyAccessInviteResponse - (*MsgZealyConnect)(nil), // 86: cardchain.cardchain.MsgZealyConnect - (*MsgZealyConnectResponse)(nil), // 87: cardchain.cardchain.MsgZealyConnectResponse - (*MsgEncounterCreate)(nil), // 88: cardchain.cardchain.MsgEncounterCreate - (*MsgEncounterCreateResponse)(nil), // 89: cardchain.cardchain.MsgEncounterCreateResponse - (*MsgEncounterDo)(nil), // 90: cardchain.cardchain.MsgEncounterDo - (*MsgEncounterDoResponse)(nil), // 91: cardchain.cardchain.MsgEncounterDoResponse - (*MsgEncounterClose)(nil), // 92: cardchain.cardchain.MsgEncounterClose - (*MsgEncounterCloseResponse)(nil), // 93: cardchain.cardchain.MsgEncounterCloseResponse - (*MsgEarlyAccessDisinvite)(nil), // 94: cardchain.cardchain.MsgEarlyAccessDisinvite - (*MsgEarlyAccessDisinviteResponse)(nil), // 95: cardchain.cardchain.MsgEarlyAccessDisinviteResponse - (*MsgCardBan)(nil), // 96: cardchain.cardchain.MsgCardBan - (*MsgCardBanResponse)(nil), // 97: cardchain.cardchain.MsgCardBanResponse - (*MsgEarlyAccessGrant)(nil), // 98: cardchain.cardchain.MsgEarlyAccessGrant - (*MsgEarlyAccessGrantResponse)(nil), // 99: cardchain.cardchain.MsgEarlyAccessGrantResponse - (*MsgSetActivate)(nil), // 100: cardchain.cardchain.MsgSetActivate - (*MsgSetActivateResponse)(nil), // 101: cardchain.cardchain.MsgSetActivateResponse - (*MsgCardCopyrightClaim)(nil), // 102: cardchain.cardchain.MsgCardCopyrightClaim - (*MsgCardCopyrightClaimResponse)(nil), // 103: cardchain.cardchain.MsgCardCopyrightClaimResponse - nil, // 104: cardchain.cardchain.MsgEncounterCreate.ParametersEntry - (*Params)(nil), // 105: cardchain.cardchain.Params - (*v1beta1.Coin)(nil), // 106: cosmos.base.v1beta1.Coin - (*SingleVote)(nil), // 107: cardchain.cardchain.SingleVote - (Outcome)(0), // 108: cardchain.cardchain.Outcome - (CardRarity)(0), // 109: cardchain.cardchain.CardRarity - (Response)(0), // 110: cardchain.cardchain.Response -} -var file_cardchain_cardchain_tx_proto_depIdxs = []int32{ - 105, // 0: cardchain.cardchain.MsgUpdateParams.params:type_name -> cardchain.cardchain.Params - 106, // 1: cardchain.cardchain.MsgCardSchemeBuy.bid:type_name -> cosmos.base.v1beta1.Coin - 107, // 2: cardchain.cardchain.MsgCardVote.vote:type_name -> cardchain.cardchain.SingleVote - 106, // 3: cardchain.cardchain.MsgCardDonate.amount:type_name -> cosmos.base.v1beta1.Coin - 108, // 4: cardchain.cardchain.MsgMatchReport.outcome:type_name -> cardchain.cardchain.Outcome - 106, // 5: cardchain.cardchain.MsgSellOfferCreate.price:type_name -> cosmos.base.v1beta1.Coin - 109, // 6: cardchain.cardchain.MsgCardRaritySet.rarity:type_name -> cardchain.cardchain.CardRarity - 110, // 7: cardchain.cardchain.MsgCouncilResponseReveal.response:type_name -> cardchain.cardchain.Response - 108, // 8: cardchain.cardchain.MsgMatchConfirm.outcome:type_name -> cardchain.cardchain.Outcome - 107, // 9: cardchain.cardchain.MsgMatchConfirm.votedCards:type_name -> cardchain.cardchain.SingleVote - 107, // 10: cardchain.cardchain.MsgCardVoteMulti.votes:type_name -> cardchain.cardchain.SingleVote - 104, // 11: cardchain.cardchain.MsgEncounterCreate.parameters:type_name -> cardchain.cardchain.MsgEncounterCreate.ParametersEntry - 0, // 12: cardchain.cardchain.Msg.UpdateParams:input_type -> cardchain.cardchain.MsgUpdateParams - 2, // 13: cardchain.cardchain.Msg.UserCreate:input_type -> cardchain.cardchain.MsgUserCreate - 4, // 14: cardchain.cardchain.Msg.CardSchemeBuy:input_type -> cardchain.cardchain.MsgCardSchemeBuy - 6, // 15: cardchain.cardchain.Msg.CardSaveContent:input_type -> cardchain.cardchain.MsgCardSaveContent - 8, // 16: cardchain.cardchain.Msg.CardVote:input_type -> cardchain.cardchain.MsgCardVote - 10, // 17: cardchain.cardchain.Msg.CardTransfer:input_type -> cardchain.cardchain.MsgCardTransfer - 12, // 18: cardchain.cardchain.Msg.CardDonate:input_type -> cardchain.cardchain.MsgCardDonate - 14, // 19: cardchain.cardchain.Msg.CardArtworkAdd:input_type -> cardchain.cardchain.MsgCardArtworkAdd - 16, // 20: cardchain.cardchain.Msg.CardArtistChange:input_type -> cardchain.cardchain.MsgCardArtistChange - 18, // 21: cardchain.cardchain.Msg.CouncilRegister:input_type -> cardchain.cardchain.MsgCouncilRegister - 20, // 22: cardchain.cardchain.Msg.CouncilDeregister:input_type -> cardchain.cardchain.MsgCouncilDeregister - 22, // 23: cardchain.cardchain.Msg.MatchReport:input_type -> cardchain.cardchain.MsgMatchReport - 24, // 24: cardchain.cardchain.Msg.CouncilCreate:input_type -> cardchain.cardchain.MsgCouncilCreate - 26, // 25: cardchain.cardchain.Msg.MatchReporterAppoint:input_type -> cardchain.cardchain.MsgMatchReporterAppoint - 28, // 26: cardchain.cardchain.Msg.SetCreate:input_type -> cardchain.cardchain.MsgSetCreate - 30, // 27: cardchain.cardchain.Msg.SetCardAdd:input_type -> cardchain.cardchain.MsgSetCardAdd - 32, // 28: cardchain.cardchain.Msg.SetCardRemove:input_type -> cardchain.cardchain.MsgSetCardRemove - 34, // 29: cardchain.cardchain.Msg.SetContributorAdd:input_type -> cardchain.cardchain.MsgSetContributorAdd - 36, // 30: cardchain.cardchain.Msg.SetContributorRemove:input_type -> cardchain.cardchain.MsgSetContributorRemove - 38, // 31: cardchain.cardchain.Msg.SetFinalize:input_type -> cardchain.cardchain.MsgSetFinalize - 40, // 32: cardchain.cardchain.Msg.SetArtworkAdd:input_type -> cardchain.cardchain.MsgSetArtworkAdd - 42, // 33: cardchain.cardchain.Msg.SetStoryAdd:input_type -> cardchain.cardchain.MsgSetStoryAdd - 44, // 34: cardchain.cardchain.Msg.BoosterPackBuy:input_type -> cardchain.cardchain.MsgBoosterPackBuy - 46, // 35: cardchain.cardchain.Msg.SellOfferCreate:input_type -> cardchain.cardchain.MsgSellOfferCreate - 48, // 36: cardchain.cardchain.Msg.SellOfferBuy:input_type -> cardchain.cardchain.MsgSellOfferBuy - 50, // 37: cardchain.cardchain.Msg.SellOfferRemove:input_type -> cardchain.cardchain.MsgSellOfferRemove - 52, // 38: cardchain.cardchain.Msg.CardRaritySet:input_type -> cardchain.cardchain.MsgCardRaritySet - 54, // 39: cardchain.cardchain.Msg.CouncilResponseCommit:input_type -> cardchain.cardchain.MsgCouncilResponseCommit - 56, // 40: cardchain.cardchain.Msg.CouncilResponseReveal:input_type -> cardchain.cardchain.MsgCouncilResponseReveal - 58, // 41: cardchain.cardchain.Msg.CouncilRestart:input_type -> cardchain.cardchain.MsgCouncilRestart - 60, // 42: cardchain.cardchain.Msg.MatchConfirm:input_type -> cardchain.cardchain.MsgMatchConfirm - 62, // 43: cardchain.cardchain.Msg.ProfileCardSet:input_type -> cardchain.cardchain.MsgProfileCardSet - 64, // 44: cardchain.cardchain.Msg.ProfileWebsiteSet:input_type -> cardchain.cardchain.MsgProfileWebsiteSet - 66, // 45: cardchain.cardchain.Msg.ProfileBioSet:input_type -> cardchain.cardchain.MsgProfileBioSet - 68, // 46: cardchain.cardchain.Msg.BoosterPackOpen:input_type -> cardchain.cardchain.MsgBoosterPackOpen - 70, // 47: cardchain.cardchain.Msg.BoosterPackTransfer:input_type -> cardchain.cardchain.MsgBoosterPackTransfer - 72, // 48: cardchain.cardchain.Msg.SetStoryWriterSet:input_type -> cardchain.cardchain.MsgSetStoryWriterSet - 74, // 49: cardchain.cardchain.Msg.SetArtistSet:input_type -> cardchain.cardchain.MsgSetArtistSet - 76, // 50: cardchain.cardchain.Msg.CardVoteMulti:input_type -> cardchain.cardchain.MsgCardVoteMulti - 78, // 51: cardchain.cardchain.Msg.MatchOpen:input_type -> cardchain.cardchain.MsgMatchOpen - 80, // 52: cardchain.cardchain.Msg.SetNameSet:input_type -> cardchain.cardchain.MsgSetNameSet - 82, // 53: cardchain.cardchain.Msg.ProfileAliasSet:input_type -> cardchain.cardchain.MsgProfileAliasSet - 84, // 54: cardchain.cardchain.Msg.EarlyAccessInvite:input_type -> cardchain.cardchain.MsgEarlyAccessInvite - 86, // 55: cardchain.cardchain.Msg.ZealyConnect:input_type -> cardchain.cardchain.MsgZealyConnect - 88, // 56: cardchain.cardchain.Msg.EncounterCreate:input_type -> cardchain.cardchain.MsgEncounterCreate - 90, // 57: cardchain.cardchain.Msg.EncounterDo:input_type -> cardchain.cardchain.MsgEncounterDo - 92, // 58: cardchain.cardchain.Msg.EncounterClose:input_type -> cardchain.cardchain.MsgEncounterClose - 94, // 59: cardchain.cardchain.Msg.EarlyAccessDisinvite:input_type -> cardchain.cardchain.MsgEarlyAccessDisinvite - 96, // 60: cardchain.cardchain.Msg.CardBan:input_type -> cardchain.cardchain.MsgCardBan - 98, // 61: cardchain.cardchain.Msg.EarlyAccessGrant:input_type -> cardchain.cardchain.MsgEarlyAccessGrant - 100, // 62: cardchain.cardchain.Msg.SetActivate:input_type -> cardchain.cardchain.MsgSetActivate - 102, // 63: cardchain.cardchain.Msg.CardCopyrightClaim:input_type -> cardchain.cardchain.MsgCardCopyrightClaim - 1, // 64: cardchain.cardchain.Msg.UpdateParams:output_type -> cardchain.cardchain.MsgUpdateParamsResponse - 3, // 65: cardchain.cardchain.Msg.UserCreate:output_type -> cardchain.cardchain.MsgUserCreateResponse - 5, // 66: cardchain.cardchain.Msg.CardSchemeBuy:output_type -> cardchain.cardchain.MsgCardSchemeBuyResponse - 7, // 67: cardchain.cardchain.Msg.CardSaveContent:output_type -> cardchain.cardchain.MsgCardSaveContentResponse - 9, // 68: cardchain.cardchain.Msg.CardVote:output_type -> cardchain.cardchain.MsgCardVoteResponse - 11, // 69: cardchain.cardchain.Msg.CardTransfer:output_type -> cardchain.cardchain.MsgCardTransferResponse - 13, // 70: cardchain.cardchain.Msg.CardDonate:output_type -> cardchain.cardchain.MsgCardDonateResponse - 15, // 71: cardchain.cardchain.Msg.CardArtworkAdd:output_type -> cardchain.cardchain.MsgCardArtworkAddResponse - 17, // 72: cardchain.cardchain.Msg.CardArtistChange:output_type -> cardchain.cardchain.MsgCardArtistChangeResponse - 19, // 73: cardchain.cardchain.Msg.CouncilRegister:output_type -> cardchain.cardchain.MsgCouncilRegisterResponse - 21, // 74: cardchain.cardchain.Msg.CouncilDeregister:output_type -> cardchain.cardchain.MsgCouncilDeregisterResponse - 23, // 75: cardchain.cardchain.Msg.MatchReport:output_type -> cardchain.cardchain.MsgMatchReportResponse - 25, // 76: cardchain.cardchain.Msg.CouncilCreate:output_type -> cardchain.cardchain.MsgCouncilCreateResponse - 27, // 77: cardchain.cardchain.Msg.MatchReporterAppoint:output_type -> cardchain.cardchain.MsgMatchReporterAppointResponse - 29, // 78: cardchain.cardchain.Msg.SetCreate:output_type -> cardchain.cardchain.MsgSetCreateResponse - 31, // 79: cardchain.cardchain.Msg.SetCardAdd:output_type -> cardchain.cardchain.MsgSetCardAddResponse - 33, // 80: cardchain.cardchain.Msg.SetCardRemove:output_type -> cardchain.cardchain.MsgSetCardRemoveResponse - 35, // 81: cardchain.cardchain.Msg.SetContributorAdd:output_type -> cardchain.cardchain.MsgSetContributorAddResponse - 37, // 82: cardchain.cardchain.Msg.SetContributorRemove:output_type -> cardchain.cardchain.MsgSetContributorRemoveResponse - 39, // 83: cardchain.cardchain.Msg.SetFinalize:output_type -> cardchain.cardchain.MsgSetFinalizeResponse - 41, // 84: cardchain.cardchain.Msg.SetArtworkAdd:output_type -> cardchain.cardchain.MsgSetArtworkAddResponse - 43, // 85: cardchain.cardchain.Msg.SetStoryAdd:output_type -> cardchain.cardchain.MsgSetStoryAddResponse - 45, // 86: cardchain.cardchain.Msg.BoosterPackBuy:output_type -> cardchain.cardchain.MsgBoosterPackBuyResponse - 47, // 87: cardchain.cardchain.Msg.SellOfferCreate:output_type -> cardchain.cardchain.MsgSellOfferCreateResponse - 49, // 88: cardchain.cardchain.Msg.SellOfferBuy:output_type -> cardchain.cardchain.MsgSellOfferBuyResponse - 51, // 89: cardchain.cardchain.Msg.SellOfferRemove:output_type -> cardchain.cardchain.MsgSellOfferRemoveResponse - 53, // 90: cardchain.cardchain.Msg.CardRaritySet:output_type -> cardchain.cardchain.MsgCardRaritySetResponse - 55, // 91: cardchain.cardchain.Msg.CouncilResponseCommit:output_type -> cardchain.cardchain.MsgCouncilResponseCommitResponse - 57, // 92: cardchain.cardchain.Msg.CouncilResponseReveal:output_type -> cardchain.cardchain.MsgCouncilResponseRevealResponse - 59, // 93: cardchain.cardchain.Msg.CouncilRestart:output_type -> cardchain.cardchain.MsgCouncilRestartResponse - 61, // 94: cardchain.cardchain.Msg.MatchConfirm:output_type -> cardchain.cardchain.MsgMatchConfirmResponse - 63, // 95: cardchain.cardchain.Msg.ProfileCardSet:output_type -> cardchain.cardchain.MsgProfileCardSetResponse - 65, // 96: cardchain.cardchain.Msg.ProfileWebsiteSet:output_type -> cardchain.cardchain.MsgProfileWebsiteSetResponse - 67, // 97: cardchain.cardchain.Msg.ProfileBioSet:output_type -> cardchain.cardchain.MsgProfileBioSetResponse - 69, // 98: cardchain.cardchain.Msg.BoosterPackOpen:output_type -> cardchain.cardchain.MsgBoosterPackOpenResponse - 71, // 99: cardchain.cardchain.Msg.BoosterPackTransfer:output_type -> cardchain.cardchain.MsgBoosterPackTransferResponse - 73, // 100: cardchain.cardchain.Msg.SetStoryWriterSet:output_type -> cardchain.cardchain.MsgSetStoryWriterSetResponse - 75, // 101: cardchain.cardchain.Msg.SetArtistSet:output_type -> cardchain.cardchain.MsgSetArtistSetResponse - 77, // 102: cardchain.cardchain.Msg.CardVoteMulti:output_type -> cardchain.cardchain.MsgCardVoteMultiResponse - 79, // 103: cardchain.cardchain.Msg.MatchOpen:output_type -> cardchain.cardchain.MsgMatchOpenResponse - 81, // 104: cardchain.cardchain.Msg.SetNameSet:output_type -> cardchain.cardchain.MsgSetNameSetResponse - 83, // 105: cardchain.cardchain.Msg.ProfileAliasSet:output_type -> cardchain.cardchain.MsgProfileAliasSetResponse - 85, // 106: cardchain.cardchain.Msg.EarlyAccessInvite:output_type -> cardchain.cardchain.MsgEarlyAccessInviteResponse - 87, // 107: cardchain.cardchain.Msg.ZealyConnect:output_type -> cardchain.cardchain.MsgZealyConnectResponse - 89, // 108: cardchain.cardchain.Msg.EncounterCreate:output_type -> cardchain.cardchain.MsgEncounterCreateResponse - 91, // 109: cardchain.cardchain.Msg.EncounterDo:output_type -> cardchain.cardchain.MsgEncounterDoResponse - 93, // 110: cardchain.cardchain.Msg.EncounterClose:output_type -> cardchain.cardchain.MsgEncounterCloseResponse - 95, // 111: cardchain.cardchain.Msg.EarlyAccessDisinvite:output_type -> cardchain.cardchain.MsgEarlyAccessDisinviteResponse - 97, // 112: cardchain.cardchain.Msg.CardBan:output_type -> cardchain.cardchain.MsgCardBanResponse - 99, // 113: cardchain.cardchain.Msg.EarlyAccessGrant:output_type -> cardchain.cardchain.MsgEarlyAccessGrantResponse - 101, // 114: cardchain.cardchain.Msg.SetActivate:output_type -> cardchain.cardchain.MsgSetActivateResponse - 103, // 115: cardchain.cardchain.Msg.CardCopyrightClaim:output_type -> cardchain.cardchain.MsgCardCopyrightClaimResponse - 64, // [64:116] is the sub-list for method output_type - 12, // [12:64] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_tx_proto_init() } -func file_cardchain_cardchain_tx_proto_init() { - if File_cardchain_cardchain_tx_proto != nil { - return - } - file_cardchain_cardchain_params_proto_init() - file_cardchain_cardchain_voting_proto_init() - file_cardchain_cardchain_match_proto_init() - file_cardchain_cardchain_council_proto_init() - file_cardchain_cardchain_card_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUserCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUserCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSchemeBuy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSchemeBuyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSaveContent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardSaveContentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardVote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardVoteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardTransfer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardTransferResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardDonate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardDonateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtworkAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtworkAddResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtistChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardArtistChangeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilRegister); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilRegisterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilDeregister); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilDeregisterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchReport); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchReporterAppoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchReporterAppointResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetCardAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetCardAddResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetCardRemove); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetCardRemoveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetContributorAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetContributorAddResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetContributorRemove); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetContributorRemoveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetFinalize); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetFinalizeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetArtworkAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetArtworkAddResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetStoryAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetStoryAddResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBoosterPackBuy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBoosterPackBuyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSellOfferCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSellOfferCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSellOfferBuy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSellOfferBuyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSellOfferRemove); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSellOfferRemoveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardRaritySet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardRaritySetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilResponseCommit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilResponseCommitResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilResponseReveal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilResponseRevealResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilRestart); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCouncilRestartResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchConfirm); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchConfirmResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileCardSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileCardSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileWebsiteSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileWebsiteSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileBioSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileBioSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBoosterPackOpen); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBoosterPackOpenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBoosterPackTransfer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgBoosterPackTransferResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetStoryWriterSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetStoryWriterSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetArtistSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetArtistSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardVoteMulti); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardVoteMultiResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchOpen); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgMatchOpenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetNameSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetNameSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileAliasSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgProfileAliasSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEarlyAccessInvite); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEarlyAccessInviteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgZealyConnect); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgZealyConnectResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEncounterCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEncounterCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEncounterDo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEncounterDoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEncounterClose); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEncounterCloseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEarlyAccessDisinvite); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEarlyAccessDisinviteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardBan); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardBanResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEarlyAccessGrant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgEarlyAccessGrantResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetActivate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetActivateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardCopyrightClaim); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_tx_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCardCopyrightClaimResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 105, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cardchain_cardchain_tx_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_tx_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_tx_proto_msgTypes, - }.Build() - File_cardchain_cardchain_tx_proto = out.File - file_cardchain_cardchain_tx_proto_rawDesc = nil - file_cardchain_cardchain_tx_proto_goTypes = nil - file_cardchain_cardchain_tx_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/tx_grpc.pb.go b/api/cardchain/cardchain/tx_grpc.pb.go deleted file mode 100644 index 8f2ec309..00000000 --- a/api/cardchain/cardchain/tx_grpc.pb.go +++ /dev/null @@ -1,2000 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: cardchain/cardchain/tx.proto - -package cardchain - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - Msg_UpdateParams_FullMethodName = "/cardchain.cardchain.Msg/UpdateParams" - Msg_UserCreate_FullMethodName = "/cardchain.cardchain.Msg/UserCreate" - Msg_CardSchemeBuy_FullMethodName = "/cardchain.cardchain.Msg/CardSchemeBuy" - Msg_CardSaveContent_FullMethodName = "/cardchain.cardchain.Msg/CardSaveContent" - Msg_CardVote_FullMethodName = "/cardchain.cardchain.Msg/CardVote" - Msg_CardTransfer_FullMethodName = "/cardchain.cardchain.Msg/CardTransfer" - Msg_CardDonate_FullMethodName = "/cardchain.cardchain.Msg/CardDonate" - Msg_CardArtworkAdd_FullMethodName = "/cardchain.cardchain.Msg/CardArtworkAdd" - Msg_CardArtistChange_FullMethodName = "/cardchain.cardchain.Msg/CardArtistChange" - Msg_CouncilRegister_FullMethodName = "/cardchain.cardchain.Msg/CouncilRegister" - Msg_CouncilDeregister_FullMethodName = "/cardchain.cardchain.Msg/CouncilDeregister" - Msg_MatchReport_FullMethodName = "/cardchain.cardchain.Msg/MatchReport" - Msg_CouncilCreate_FullMethodName = "/cardchain.cardchain.Msg/CouncilCreate" - Msg_MatchReporterAppoint_FullMethodName = "/cardchain.cardchain.Msg/MatchReporterAppoint" - Msg_SetCreate_FullMethodName = "/cardchain.cardchain.Msg/SetCreate" - Msg_SetCardAdd_FullMethodName = "/cardchain.cardchain.Msg/SetCardAdd" - Msg_SetCardRemove_FullMethodName = "/cardchain.cardchain.Msg/SetCardRemove" - Msg_SetContributorAdd_FullMethodName = "/cardchain.cardchain.Msg/SetContributorAdd" - Msg_SetContributorRemove_FullMethodName = "/cardchain.cardchain.Msg/SetContributorRemove" - Msg_SetFinalize_FullMethodName = "/cardchain.cardchain.Msg/SetFinalize" - Msg_SetArtworkAdd_FullMethodName = "/cardchain.cardchain.Msg/SetArtworkAdd" - Msg_SetStoryAdd_FullMethodName = "/cardchain.cardchain.Msg/SetStoryAdd" - Msg_BoosterPackBuy_FullMethodName = "/cardchain.cardchain.Msg/BoosterPackBuy" - Msg_SellOfferCreate_FullMethodName = "/cardchain.cardchain.Msg/SellOfferCreate" - Msg_SellOfferBuy_FullMethodName = "/cardchain.cardchain.Msg/SellOfferBuy" - Msg_SellOfferRemove_FullMethodName = "/cardchain.cardchain.Msg/SellOfferRemove" - Msg_CardRaritySet_FullMethodName = "/cardchain.cardchain.Msg/CardRaritySet" - Msg_CouncilResponseCommit_FullMethodName = "/cardchain.cardchain.Msg/CouncilResponseCommit" - Msg_CouncilResponseReveal_FullMethodName = "/cardchain.cardchain.Msg/CouncilResponseReveal" - Msg_CouncilRestart_FullMethodName = "/cardchain.cardchain.Msg/CouncilRestart" - Msg_MatchConfirm_FullMethodName = "/cardchain.cardchain.Msg/MatchConfirm" - Msg_ProfileCardSet_FullMethodName = "/cardchain.cardchain.Msg/ProfileCardSet" - Msg_ProfileWebsiteSet_FullMethodName = "/cardchain.cardchain.Msg/ProfileWebsiteSet" - Msg_ProfileBioSet_FullMethodName = "/cardchain.cardchain.Msg/ProfileBioSet" - Msg_BoosterPackOpen_FullMethodName = "/cardchain.cardchain.Msg/BoosterPackOpen" - Msg_BoosterPackTransfer_FullMethodName = "/cardchain.cardchain.Msg/BoosterPackTransfer" - Msg_SetStoryWriterSet_FullMethodName = "/cardchain.cardchain.Msg/SetStoryWriterSet" - Msg_SetArtistSet_FullMethodName = "/cardchain.cardchain.Msg/SetArtistSet" - Msg_CardVoteMulti_FullMethodName = "/cardchain.cardchain.Msg/CardVoteMulti" - Msg_MatchOpen_FullMethodName = "/cardchain.cardchain.Msg/MatchOpen" - Msg_SetNameSet_FullMethodName = "/cardchain.cardchain.Msg/SetNameSet" - Msg_ProfileAliasSet_FullMethodName = "/cardchain.cardchain.Msg/ProfileAliasSet" - Msg_EarlyAccessInvite_FullMethodName = "/cardchain.cardchain.Msg/EarlyAccessInvite" - Msg_ZealyConnect_FullMethodName = "/cardchain.cardchain.Msg/ZealyConnect" - Msg_EncounterCreate_FullMethodName = "/cardchain.cardchain.Msg/EncounterCreate" - Msg_EncounterDo_FullMethodName = "/cardchain.cardchain.Msg/EncounterDo" - Msg_EncounterClose_FullMethodName = "/cardchain.cardchain.Msg/EncounterClose" - Msg_EarlyAccessDisinvite_FullMethodName = "/cardchain.cardchain.Msg/EarlyAccessDisinvite" - Msg_CardBan_FullMethodName = "/cardchain.cardchain.Msg/CardBan" - Msg_EarlyAccessGrant_FullMethodName = "/cardchain.cardchain.Msg/EarlyAccessGrant" - Msg_SetActivate_FullMethodName = "/cardchain.cardchain.Msg/SetActivate" - Msg_CardCopyrightClaim_FullMethodName = "/cardchain.cardchain.Msg/CardCopyrightClaim" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type MsgClient interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - UserCreate(ctx context.Context, in *MsgUserCreate, opts ...grpc.CallOption) (*MsgUserCreateResponse, error) - CardSchemeBuy(ctx context.Context, in *MsgCardSchemeBuy, opts ...grpc.CallOption) (*MsgCardSchemeBuyResponse, error) - CardSaveContent(ctx context.Context, in *MsgCardSaveContent, opts ...grpc.CallOption) (*MsgCardSaveContentResponse, error) - CardVote(ctx context.Context, in *MsgCardVote, opts ...grpc.CallOption) (*MsgCardVoteResponse, error) - CardTransfer(ctx context.Context, in *MsgCardTransfer, opts ...grpc.CallOption) (*MsgCardTransferResponse, error) - CardDonate(ctx context.Context, in *MsgCardDonate, opts ...grpc.CallOption) (*MsgCardDonateResponse, error) - CardArtworkAdd(ctx context.Context, in *MsgCardArtworkAdd, opts ...grpc.CallOption) (*MsgCardArtworkAddResponse, error) - CardArtistChange(ctx context.Context, in *MsgCardArtistChange, opts ...grpc.CallOption) (*MsgCardArtistChangeResponse, error) - CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) - CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) - MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) - CouncilCreate(ctx context.Context, in *MsgCouncilCreate, opts ...grpc.CallOption) (*MsgCouncilCreateResponse, error) - MatchReporterAppoint(ctx context.Context, in *MsgMatchReporterAppoint, opts ...grpc.CallOption) (*MsgMatchReporterAppointResponse, error) - SetCreate(ctx context.Context, in *MsgSetCreate, opts ...grpc.CallOption) (*MsgSetCreateResponse, error) - SetCardAdd(ctx context.Context, in *MsgSetCardAdd, opts ...grpc.CallOption) (*MsgSetCardAddResponse, error) - SetCardRemove(ctx context.Context, in *MsgSetCardRemove, opts ...grpc.CallOption) (*MsgSetCardRemoveResponse, error) - SetContributorAdd(ctx context.Context, in *MsgSetContributorAdd, opts ...grpc.CallOption) (*MsgSetContributorAddResponse, error) - SetContributorRemove(ctx context.Context, in *MsgSetContributorRemove, opts ...grpc.CallOption) (*MsgSetContributorRemoveResponse, error) - SetFinalize(ctx context.Context, in *MsgSetFinalize, opts ...grpc.CallOption) (*MsgSetFinalizeResponse, error) - SetArtworkAdd(ctx context.Context, in *MsgSetArtworkAdd, opts ...grpc.CallOption) (*MsgSetArtworkAddResponse, error) - SetStoryAdd(ctx context.Context, in *MsgSetStoryAdd, opts ...grpc.CallOption) (*MsgSetStoryAddResponse, error) - BoosterPackBuy(ctx context.Context, in *MsgBoosterPackBuy, opts ...grpc.CallOption) (*MsgBoosterPackBuyResponse, error) - SellOfferCreate(ctx context.Context, in *MsgSellOfferCreate, opts ...grpc.CallOption) (*MsgSellOfferCreateResponse, error) - SellOfferBuy(ctx context.Context, in *MsgSellOfferBuy, opts ...grpc.CallOption) (*MsgSellOfferBuyResponse, error) - SellOfferRemove(ctx context.Context, in *MsgSellOfferRemove, opts ...grpc.CallOption) (*MsgSellOfferRemoveResponse, error) - CardRaritySet(ctx context.Context, in *MsgCardRaritySet, opts ...grpc.CallOption) (*MsgCardRaritySetResponse, error) - CouncilResponseCommit(ctx context.Context, in *MsgCouncilResponseCommit, opts ...grpc.CallOption) (*MsgCouncilResponseCommitResponse, error) - CouncilResponseReveal(ctx context.Context, in *MsgCouncilResponseReveal, opts ...grpc.CallOption) (*MsgCouncilResponseRevealResponse, error) - CouncilRestart(ctx context.Context, in *MsgCouncilRestart, opts ...grpc.CallOption) (*MsgCouncilRestartResponse, error) - MatchConfirm(ctx context.Context, in *MsgMatchConfirm, opts ...grpc.CallOption) (*MsgMatchConfirmResponse, error) - ProfileCardSet(ctx context.Context, in *MsgProfileCardSet, opts ...grpc.CallOption) (*MsgProfileCardSetResponse, error) - ProfileWebsiteSet(ctx context.Context, in *MsgProfileWebsiteSet, opts ...grpc.CallOption) (*MsgProfileWebsiteSetResponse, error) - ProfileBioSet(ctx context.Context, in *MsgProfileBioSet, opts ...grpc.CallOption) (*MsgProfileBioSetResponse, error) - BoosterPackOpen(ctx context.Context, in *MsgBoosterPackOpen, opts ...grpc.CallOption) (*MsgBoosterPackOpenResponse, error) - BoosterPackTransfer(ctx context.Context, in *MsgBoosterPackTransfer, opts ...grpc.CallOption) (*MsgBoosterPackTransferResponse, error) - SetStoryWriterSet(ctx context.Context, in *MsgSetStoryWriterSet, opts ...grpc.CallOption) (*MsgSetStoryWriterSetResponse, error) - SetArtistSet(ctx context.Context, in *MsgSetArtistSet, opts ...grpc.CallOption) (*MsgSetArtistSetResponse, error) - CardVoteMulti(ctx context.Context, in *MsgCardVoteMulti, opts ...grpc.CallOption) (*MsgCardVoteMultiResponse, error) - MatchOpen(ctx context.Context, in *MsgMatchOpen, opts ...grpc.CallOption) (*MsgMatchOpenResponse, error) - SetNameSet(ctx context.Context, in *MsgSetNameSet, opts ...grpc.CallOption) (*MsgSetNameSetResponse, error) - ProfileAliasSet(ctx context.Context, in *MsgProfileAliasSet, opts ...grpc.CallOption) (*MsgProfileAliasSetResponse, error) - EarlyAccessInvite(ctx context.Context, in *MsgEarlyAccessInvite, opts ...grpc.CallOption) (*MsgEarlyAccessInviteResponse, error) - ZealyConnect(ctx context.Context, in *MsgZealyConnect, opts ...grpc.CallOption) (*MsgZealyConnectResponse, error) - EncounterCreate(ctx context.Context, in *MsgEncounterCreate, opts ...grpc.CallOption) (*MsgEncounterCreateResponse, error) - EncounterDo(ctx context.Context, in *MsgEncounterDo, opts ...grpc.CallOption) (*MsgEncounterDoResponse, error) - EncounterClose(ctx context.Context, in *MsgEncounterClose, opts ...grpc.CallOption) (*MsgEncounterCloseResponse, error) - EarlyAccessDisinvite(ctx context.Context, in *MsgEarlyAccessDisinvite, opts ...grpc.CallOption) (*MsgEarlyAccessDisinviteResponse, error) - CardBan(ctx context.Context, in *MsgCardBan, opts ...grpc.CallOption) (*MsgCardBanResponse, error) - EarlyAccessGrant(ctx context.Context, in *MsgEarlyAccessGrant, opts ...grpc.CallOption) (*MsgEarlyAccessGrantResponse, error) - SetActivate(ctx context.Context, in *MsgSetActivate, opts ...grpc.CallOption) (*MsgSetActivateResponse, error) - CardCopyrightClaim(ctx context.Context, in *MsgCardCopyrightClaim, opts ...grpc.CallOption) (*MsgCardCopyrightClaimResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UserCreate(ctx context.Context, in *MsgUserCreate, opts ...grpc.CallOption) (*MsgUserCreateResponse, error) { - out := new(MsgUserCreateResponse) - err := c.cc.Invoke(ctx, Msg_UserCreate_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardSchemeBuy(ctx context.Context, in *MsgCardSchemeBuy, opts ...grpc.CallOption) (*MsgCardSchemeBuyResponse, error) { - out := new(MsgCardSchemeBuyResponse) - err := c.cc.Invoke(ctx, Msg_CardSchemeBuy_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardSaveContent(ctx context.Context, in *MsgCardSaveContent, opts ...grpc.CallOption) (*MsgCardSaveContentResponse, error) { - out := new(MsgCardSaveContentResponse) - err := c.cc.Invoke(ctx, Msg_CardSaveContent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardVote(ctx context.Context, in *MsgCardVote, opts ...grpc.CallOption) (*MsgCardVoteResponse, error) { - out := new(MsgCardVoteResponse) - err := c.cc.Invoke(ctx, Msg_CardVote_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardTransfer(ctx context.Context, in *MsgCardTransfer, opts ...grpc.CallOption) (*MsgCardTransferResponse, error) { - out := new(MsgCardTransferResponse) - err := c.cc.Invoke(ctx, Msg_CardTransfer_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardDonate(ctx context.Context, in *MsgCardDonate, opts ...grpc.CallOption) (*MsgCardDonateResponse, error) { - out := new(MsgCardDonateResponse) - err := c.cc.Invoke(ctx, Msg_CardDonate_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardArtworkAdd(ctx context.Context, in *MsgCardArtworkAdd, opts ...grpc.CallOption) (*MsgCardArtworkAddResponse, error) { - out := new(MsgCardArtworkAddResponse) - err := c.cc.Invoke(ctx, Msg_CardArtworkAdd_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardArtistChange(ctx context.Context, in *MsgCardArtistChange, opts ...grpc.CallOption) (*MsgCardArtistChangeResponse, error) { - out := new(MsgCardArtistChangeResponse) - err := c.cc.Invoke(ctx, Msg_CardArtistChange_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CouncilRegister(ctx context.Context, in *MsgCouncilRegister, opts ...grpc.CallOption) (*MsgCouncilRegisterResponse, error) { - out := new(MsgCouncilRegisterResponse) - err := c.cc.Invoke(ctx, Msg_CouncilRegister_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CouncilDeregister(ctx context.Context, in *MsgCouncilDeregister, opts ...grpc.CallOption) (*MsgCouncilDeregisterResponse, error) { - out := new(MsgCouncilDeregisterResponse) - err := c.cc.Invoke(ctx, Msg_CouncilDeregister_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) MatchReport(ctx context.Context, in *MsgMatchReport, opts ...grpc.CallOption) (*MsgMatchReportResponse, error) { - out := new(MsgMatchReportResponse) - err := c.cc.Invoke(ctx, Msg_MatchReport_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CouncilCreate(ctx context.Context, in *MsgCouncilCreate, opts ...grpc.CallOption) (*MsgCouncilCreateResponse, error) { - out := new(MsgCouncilCreateResponse) - err := c.cc.Invoke(ctx, Msg_CouncilCreate_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) MatchReporterAppoint(ctx context.Context, in *MsgMatchReporterAppoint, opts ...grpc.CallOption) (*MsgMatchReporterAppointResponse, error) { - out := new(MsgMatchReporterAppointResponse) - err := c.cc.Invoke(ctx, Msg_MatchReporterAppoint_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetCreate(ctx context.Context, in *MsgSetCreate, opts ...grpc.CallOption) (*MsgSetCreateResponse, error) { - out := new(MsgSetCreateResponse) - err := c.cc.Invoke(ctx, Msg_SetCreate_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetCardAdd(ctx context.Context, in *MsgSetCardAdd, opts ...grpc.CallOption) (*MsgSetCardAddResponse, error) { - out := new(MsgSetCardAddResponse) - err := c.cc.Invoke(ctx, Msg_SetCardAdd_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetCardRemove(ctx context.Context, in *MsgSetCardRemove, opts ...grpc.CallOption) (*MsgSetCardRemoveResponse, error) { - out := new(MsgSetCardRemoveResponse) - err := c.cc.Invoke(ctx, Msg_SetCardRemove_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetContributorAdd(ctx context.Context, in *MsgSetContributorAdd, opts ...grpc.CallOption) (*MsgSetContributorAddResponse, error) { - out := new(MsgSetContributorAddResponse) - err := c.cc.Invoke(ctx, Msg_SetContributorAdd_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetContributorRemove(ctx context.Context, in *MsgSetContributorRemove, opts ...grpc.CallOption) (*MsgSetContributorRemoveResponse, error) { - out := new(MsgSetContributorRemoveResponse) - err := c.cc.Invoke(ctx, Msg_SetContributorRemove_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetFinalize(ctx context.Context, in *MsgSetFinalize, opts ...grpc.CallOption) (*MsgSetFinalizeResponse, error) { - out := new(MsgSetFinalizeResponse) - err := c.cc.Invoke(ctx, Msg_SetFinalize_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetArtworkAdd(ctx context.Context, in *MsgSetArtworkAdd, opts ...grpc.CallOption) (*MsgSetArtworkAddResponse, error) { - out := new(MsgSetArtworkAddResponse) - err := c.cc.Invoke(ctx, Msg_SetArtworkAdd_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetStoryAdd(ctx context.Context, in *MsgSetStoryAdd, opts ...grpc.CallOption) (*MsgSetStoryAddResponse, error) { - out := new(MsgSetStoryAddResponse) - err := c.cc.Invoke(ctx, Msg_SetStoryAdd_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) BoosterPackBuy(ctx context.Context, in *MsgBoosterPackBuy, opts ...grpc.CallOption) (*MsgBoosterPackBuyResponse, error) { - out := new(MsgBoosterPackBuyResponse) - err := c.cc.Invoke(ctx, Msg_BoosterPackBuy_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SellOfferCreate(ctx context.Context, in *MsgSellOfferCreate, opts ...grpc.CallOption) (*MsgSellOfferCreateResponse, error) { - out := new(MsgSellOfferCreateResponse) - err := c.cc.Invoke(ctx, Msg_SellOfferCreate_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SellOfferBuy(ctx context.Context, in *MsgSellOfferBuy, opts ...grpc.CallOption) (*MsgSellOfferBuyResponse, error) { - out := new(MsgSellOfferBuyResponse) - err := c.cc.Invoke(ctx, Msg_SellOfferBuy_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SellOfferRemove(ctx context.Context, in *MsgSellOfferRemove, opts ...grpc.CallOption) (*MsgSellOfferRemoveResponse, error) { - out := new(MsgSellOfferRemoveResponse) - err := c.cc.Invoke(ctx, Msg_SellOfferRemove_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardRaritySet(ctx context.Context, in *MsgCardRaritySet, opts ...grpc.CallOption) (*MsgCardRaritySetResponse, error) { - out := new(MsgCardRaritySetResponse) - err := c.cc.Invoke(ctx, Msg_CardRaritySet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CouncilResponseCommit(ctx context.Context, in *MsgCouncilResponseCommit, opts ...grpc.CallOption) (*MsgCouncilResponseCommitResponse, error) { - out := new(MsgCouncilResponseCommitResponse) - err := c.cc.Invoke(ctx, Msg_CouncilResponseCommit_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CouncilResponseReveal(ctx context.Context, in *MsgCouncilResponseReveal, opts ...grpc.CallOption) (*MsgCouncilResponseRevealResponse, error) { - out := new(MsgCouncilResponseRevealResponse) - err := c.cc.Invoke(ctx, Msg_CouncilResponseReveal_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CouncilRestart(ctx context.Context, in *MsgCouncilRestart, opts ...grpc.CallOption) (*MsgCouncilRestartResponse, error) { - out := new(MsgCouncilRestartResponse) - err := c.cc.Invoke(ctx, Msg_CouncilRestart_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) MatchConfirm(ctx context.Context, in *MsgMatchConfirm, opts ...grpc.CallOption) (*MsgMatchConfirmResponse, error) { - out := new(MsgMatchConfirmResponse) - err := c.cc.Invoke(ctx, Msg_MatchConfirm_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ProfileCardSet(ctx context.Context, in *MsgProfileCardSet, opts ...grpc.CallOption) (*MsgProfileCardSetResponse, error) { - out := new(MsgProfileCardSetResponse) - err := c.cc.Invoke(ctx, Msg_ProfileCardSet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ProfileWebsiteSet(ctx context.Context, in *MsgProfileWebsiteSet, opts ...grpc.CallOption) (*MsgProfileWebsiteSetResponse, error) { - out := new(MsgProfileWebsiteSetResponse) - err := c.cc.Invoke(ctx, Msg_ProfileWebsiteSet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ProfileBioSet(ctx context.Context, in *MsgProfileBioSet, opts ...grpc.CallOption) (*MsgProfileBioSetResponse, error) { - out := new(MsgProfileBioSetResponse) - err := c.cc.Invoke(ctx, Msg_ProfileBioSet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) BoosterPackOpen(ctx context.Context, in *MsgBoosterPackOpen, opts ...grpc.CallOption) (*MsgBoosterPackOpenResponse, error) { - out := new(MsgBoosterPackOpenResponse) - err := c.cc.Invoke(ctx, Msg_BoosterPackOpen_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) BoosterPackTransfer(ctx context.Context, in *MsgBoosterPackTransfer, opts ...grpc.CallOption) (*MsgBoosterPackTransferResponse, error) { - out := new(MsgBoosterPackTransferResponse) - err := c.cc.Invoke(ctx, Msg_BoosterPackTransfer_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetStoryWriterSet(ctx context.Context, in *MsgSetStoryWriterSet, opts ...grpc.CallOption) (*MsgSetStoryWriterSetResponse, error) { - out := new(MsgSetStoryWriterSetResponse) - err := c.cc.Invoke(ctx, Msg_SetStoryWriterSet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetArtistSet(ctx context.Context, in *MsgSetArtistSet, opts ...grpc.CallOption) (*MsgSetArtistSetResponse, error) { - out := new(MsgSetArtistSetResponse) - err := c.cc.Invoke(ctx, Msg_SetArtistSet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardVoteMulti(ctx context.Context, in *MsgCardVoteMulti, opts ...grpc.CallOption) (*MsgCardVoteMultiResponse, error) { - out := new(MsgCardVoteMultiResponse) - err := c.cc.Invoke(ctx, Msg_CardVoteMulti_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) MatchOpen(ctx context.Context, in *MsgMatchOpen, opts ...grpc.CallOption) (*MsgMatchOpenResponse, error) { - out := new(MsgMatchOpenResponse) - err := c.cc.Invoke(ctx, Msg_MatchOpen_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetNameSet(ctx context.Context, in *MsgSetNameSet, opts ...grpc.CallOption) (*MsgSetNameSetResponse, error) { - out := new(MsgSetNameSetResponse) - err := c.cc.Invoke(ctx, Msg_SetNameSet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ProfileAliasSet(ctx context.Context, in *MsgProfileAliasSet, opts ...grpc.CallOption) (*MsgProfileAliasSetResponse, error) { - out := new(MsgProfileAliasSetResponse) - err := c.cc.Invoke(ctx, Msg_ProfileAliasSet_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) EarlyAccessInvite(ctx context.Context, in *MsgEarlyAccessInvite, opts ...grpc.CallOption) (*MsgEarlyAccessInviteResponse, error) { - out := new(MsgEarlyAccessInviteResponse) - err := c.cc.Invoke(ctx, Msg_EarlyAccessInvite_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ZealyConnect(ctx context.Context, in *MsgZealyConnect, opts ...grpc.CallOption) (*MsgZealyConnectResponse, error) { - out := new(MsgZealyConnectResponse) - err := c.cc.Invoke(ctx, Msg_ZealyConnect_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) EncounterCreate(ctx context.Context, in *MsgEncounterCreate, opts ...grpc.CallOption) (*MsgEncounterCreateResponse, error) { - out := new(MsgEncounterCreateResponse) - err := c.cc.Invoke(ctx, Msg_EncounterCreate_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) EncounterDo(ctx context.Context, in *MsgEncounterDo, opts ...grpc.CallOption) (*MsgEncounterDoResponse, error) { - out := new(MsgEncounterDoResponse) - err := c.cc.Invoke(ctx, Msg_EncounterDo_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) EncounterClose(ctx context.Context, in *MsgEncounterClose, opts ...grpc.CallOption) (*MsgEncounterCloseResponse, error) { - out := new(MsgEncounterCloseResponse) - err := c.cc.Invoke(ctx, Msg_EncounterClose_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) EarlyAccessDisinvite(ctx context.Context, in *MsgEarlyAccessDisinvite, opts ...grpc.CallOption) (*MsgEarlyAccessDisinviteResponse, error) { - out := new(MsgEarlyAccessDisinviteResponse) - err := c.cc.Invoke(ctx, Msg_EarlyAccessDisinvite_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardBan(ctx context.Context, in *MsgCardBan, opts ...grpc.CallOption) (*MsgCardBanResponse, error) { - out := new(MsgCardBanResponse) - err := c.cc.Invoke(ctx, Msg_CardBan_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) EarlyAccessGrant(ctx context.Context, in *MsgEarlyAccessGrant, opts ...grpc.CallOption) (*MsgEarlyAccessGrantResponse, error) { - out := new(MsgEarlyAccessGrantResponse) - err := c.cc.Invoke(ctx, Msg_EarlyAccessGrant_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetActivate(ctx context.Context, in *MsgSetActivate, opts ...grpc.CallOption) (*MsgSetActivateResponse, error) { - out := new(MsgSetActivateResponse) - err := c.cc.Invoke(ctx, Msg_SetActivate_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CardCopyrightClaim(ctx context.Context, in *MsgCardCopyrightClaim, opts ...grpc.CallOption) (*MsgCardCopyrightClaimResponse, error) { - out := new(MsgCardCopyrightClaimResponse) - err := c.cc.Invoke(ctx, Msg_CardCopyrightClaim_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility -type MsgServer interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - UserCreate(context.Context, *MsgUserCreate) (*MsgUserCreateResponse, error) - CardSchemeBuy(context.Context, *MsgCardSchemeBuy) (*MsgCardSchemeBuyResponse, error) - CardSaveContent(context.Context, *MsgCardSaveContent) (*MsgCardSaveContentResponse, error) - CardVote(context.Context, *MsgCardVote) (*MsgCardVoteResponse, error) - CardTransfer(context.Context, *MsgCardTransfer) (*MsgCardTransferResponse, error) - CardDonate(context.Context, *MsgCardDonate) (*MsgCardDonateResponse, error) - CardArtworkAdd(context.Context, *MsgCardArtworkAdd) (*MsgCardArtworkAddResponse, error) - CardArtistChange(context.Context, *MsgCardArtistChange) (*MsgCardArtistChangeResponse, error) - CouncilRegister(context.Context, *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) - CouncilDeregister(context.Context, *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) - MatchReport(context.Context, *MsgMatchReport) (*MsgMatchReportResponse, error) - CouncilCreate(context.Context, *MsgCouncilCreate) (*MsgCouncilCreateResponse, error) - MatchReporterAppoint(context.Context, *MsgMatchReporterAppoint) (*MsgMatchReporterAppointResponse, error) - SetCreate(context.Context, *MsgSetCreate) (*MsgSetCreateResponse, error) - SetCardAdd(context.Context, *MsgSetCardAdd) (*MsgSetCardAddResponse, error) - SetCardRemove(context.Context, *MsgSetCardRemove) (*MsgSetCardRemoveResponse, error) - SetContributorAdd(context.Context, *MsgSetContributorAdd) (*MsgSetContributorAddResponse, error) - SetContributorRemove(context.Context, *MsgSetContributorRemove) (*MsgSetContributorRemoveResponse, error) - SetFinalize(context.Context, *MsgSetFinalize) (*MsgSetFinalizeResponse, error) - SetArtworkAdd(context.Context, *MsgSetArtworkAdd) (*MsgSetArtworkAddResponse, error) - SetStoryAdd(context.Context, *MsgSetStoryAdd) (*MsgSetStoryAddResponse, error) - BoosterPackBuy(context.Context, *MsgBoosterPackBuy) (*MsgBoosterPackBuyResponse, error) - SellOfferCreate(context.Context, *MsgSellOfferCreate) (*MsgSellOfferCreateResponse, error) - SellOfferBuy(context.Context, *MsgSellOfferBuy) (*MsgSellOfferBuyResponse, error) - SellOfferRemove(context.Context, *MsgSellOfferRemove) (*MsgSellOfferRemoveResponse, error) - CardRaritySet(context.Context, *MsgCardRaritySet) (*MsgCardRaritySetResponse, error) - CouncilResponseCommit(context.Context, *MsgCouncilResponseCommit) (*MsgCouncilResponseCommitResponse, error) - CouncilResponseReveal(context.Context, *MsgCouncilResponseReveal) (*MsgCouncilResponseRevealResponse, error) - CouncilRestart(context.Context, *MsgCouncilRestart) (*MsgCouncilRestartResponse, error) - MatchConfirm(context.Context, *MsgMatchConfirm) (*MsgMatchConfirmResponse, error) - ProfileCardSet(context.Context, *MsgProfileCardSet) (*MsgProfileCardSetResponse, error) - ProfileWebsiteSet(context.Context, *MsgProfileWebsiteSet) (*MsgProfileWebsiteSetResponse, error) - ProfileBioSet(context.Context, *MsgProfileBioSet) (*MsgProfileBioSetResponse, error) - BoosterPackOpen(context.Context, *MsgBoosterPackOpen) (*MsgBoosterPackOpenResponse, error) - BoosterPackTransfer(context.Context, *MsgBoosterPackTransfer) (*MsgBoosterPackTransferResponse, error) - SetStoryWriterSet(context.Context, *MsgSetStoryWriterSet) (*MsgSetStoryWriterSetResponse, error) - SetArtistSet(context.Context, *MsgSetArtistSet) (*MsgSetArtistSetResponse, error) - CardVoteMulti(context.Context, *MsgCardVoteMulti) (*MsgCardVoteMultiResponse, error) - MatchOpen(context.Context, *MsgMatchOpen) (*MsgMatchOpenResponse, error) - SetNameSet(context.Context, *MsgSetNameSet) (*MsgSetNameSetResponse, error) - ProfileAliasSet(context.Context, *MsgProfileAliasSet) (*MsgProfileAliasSetResponse, error) - EarlyAccessInvite(context.Context, *MsgEarlyAccessInvite) (*MsgEarlyAccessInviteResponse, error) - ZealyConnect(context.Context, *MsgZealyConnect) (*MsgZealyConnectResponse, error) - EncounterCreate(context.Context, *MsgEncounterCreate) (*MsgEncounterCreateResponse, error) - EncounterDo(context.Context, *MsgEncounterDo) (*MsgEncounterDoResponse, error) - EncounterClose(context.Context, *MsgEncounterClose) (*MsgEncounterCloseResponse, error) - EarlyAccessDisinvite(context.Context, *MsgEarlyAccessDisinvite) (*MsgEarlyAccessDisinviteResponse, error) - CardBan(context.Context, *MsgCardBan) (*MsgCardBanResponse, error) - EarlyAccessGrant(context.Context, *MsgEarlyAccessGrant) (*MsgEarlyAccessGrantResponse, error) - SetActivate(context.Context, *MsgSetActivate) (*MsgSetActivateResponse, error) - CardCopyrightClaim(context.Context, *MsgCardCopyrightClaim) (*MsgCardCopyrightClaimResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") -} -func (UnimplementedMsgServer) UserCreate(context.Context, *MsgUserCreate) (*MsgUserCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserCreate not implemented") -} -func (UnimplementedMsgServer) CardSchemeBuy(context.Context, *MsgCardSchemeBuy) (*MsgCardSchemeBuyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardSchemeBuy not implemented") -} -func (UnimplementedMsgServer) CardSaveContent(context.Context, *MsgCardSaveContent) (*MsgCardSaveContentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardSaveContent not implemented") -} -func (UnimplementedMsgServer) CardVote(context.Context, *MsgCardVote) (*MsgCardVoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardVote not implemented") -} -func (UnimplementedMsgServer) CardTransfer(context.Context, *MsgCardTransfer) (*MsgCardTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardTransfer not implemented") -} -func (UnimplementedMsgServer) CardDonate(context.Context, *MsgCardDonate) (*MsgCardDonateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardDonate not implemented") -} -func (UnimplementedMsgServer) CardArtworkAdd(context.Context, *MsgCardArtworkAdd) (*MsgCardArtworkAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardArtworkAdd not implemented") -} -func (UnimplementedMsgServer) CardArtistChange(context.Context, *MsgCardArtistChange) (*MsgCardArtistChangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardArtistChange not implemented") -} -func (UnimplementedMsgServer) CouncilRegister(context.Context, *MsgCouncilRegister) (*MsgCouncilRegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilRegister not implemented") -} -func (UnimplementedMsgServer) CouncilDeregister(context.Context, *MsgCouncilDeregister) (*MsgCouncilDeregisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilDeregister not implemented") -} -func (UnimplementedMsgServer) MatchReport(context.Context, *MsgMatchReport) (*MsgMatchReportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MatchReport not implemented") -} -func (UnimplementedMsgServer) CouncilCreate(context.Context, *MsgCouncilCreate) (*MsgCouncilCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilCreate not implemented") -} -func (UnimplementedMsgServer) MatchReporterAppoint(context.Context, *MsgMatchReporterAppoint) (*MsgMatchReporterAppointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MatchReporterAppoint not implemented") -} -func (UnimplementedMsgServer) SetCreate(context.Context, *MsgSetCreate) (*MsgSetCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetCreate not implemented") -} -func (UnimplementedMsgServer) SetCardAdd(context.Context, *MsgSetCardAdd) (*MsgSetCardAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetCardAdd not implemented") -} -func (UnimplementedMsgServer) SetCardRemove(context.Context, *MsgSetCardRemove) (*MsgSetCardRemoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetCardRemove not implemented") -} -func (UnimplementedMsgServer) SetContributorAdd(context.Context, *MsgSetContributorAdd) (*MsgSetContributorAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetContributorAdd not implemented") -} -func (UnimplementedMsgServer) SetContributorRemove(context.Context, *MsgSetContributorRemove) (*MsgSetContributorRemoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetContributorRemove not implemented") -} -func (UnimplementedMsgServer) SetFinalize(context.Context, *MsgSetFinalize) (*MsgSetFinalizeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetFinalize not implemented") -} -func (UnimplementedMsgServer) SetArtworkAdd(context.Context, *MsgSetArtworkAdd) (*MsgSetArtworkAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetArtworkAdd not implemented") -} -func (UnimplementedMsgServer) SetStoryAdd(context.Context, *MsgSetStoryAdd) (*MsgSetStoryAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetStoryAdd not implemented") -} -func (UnimplementedMsgServer) BoosterPackBuy(context.Context, *MsgBoosterPackBuy) (*MsgBoosterPackBuyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BoosterPackBuy not implemented") -} -func (UnimplementedMsgServer) SellOfferCreate(context.Context, *MsgSellOfferCreate) (*MsgSellOfferCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SellOfferCreate not implemented") -} -func (UnimplementedMsgServer) SellOfferBuy(context.Context, *MsgSellOfferBuy) (*MsgSellOfferBuyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SellOfferBuy not implemented") -} -func (UnimplementedMsgServer) SellOfferRemove(context.Context, *MsgSellOfferRemove) (*MsgSellOfferRemoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SellOfferRemove not implemented") -} -func (UnimplementedMsgServer) CardRaritySet(context.Context, *MsgCardRaritySet) (*MsgCardRaritySetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardRaritySet not implemented") -} -func (UnimplementedMsgServer) CouncilResponseCommit(context.Context, *MsgCouncilResponseCommit) (*MsgCouncilResponseCommitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilResponseCommit not implemented") -} -func (UnimplementedMsgServer) CouncilResponseReveal(context.Context, *MsgCouncilResponseReveal) (*MsgCouncilResponseRevealResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilResponseReveal not implemented") -} -func (UnimplementedMsgServer) CouncilRestart(context.Context, *MsgCouncilRestart) (*MsgCouncilRestartResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CouncilRestart not implemented") -} -func (UnimplementedMsgServer) MatchConfirm(context.Context, *MsgMatchConfirm) (*MsgMatchConfirmResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MatchConfirm not implemented") -} -func (UnimplementedMsgServer) ProfileCardSet(context.Context, *MsgProfileCardSet) (*MsgProfileCardSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProfileCardSet not implemented") -} -func (UnimplementedMsgServer) ProfileWebsiteSet(context.Context, *MsgProfileWebsiteSet) (*MsgProfileWebsiteSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProfileWebsiteSet not implemented") -} -func (UnimplementedMsgServer) ProfileBioSet(context.Context, *MsgProfileBioSet) (*MsgProfileBioSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProfileBioSet not implemented") -} -func (UnimplementedMsgServer) BoosterPackOpen(context.Context, *MsgBoosterPackOpen) (*MsgBoosterPackOpenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BoosterPackOpen not implemented") -} -func (UnimplementedMsgServer) BoosterPackTransfer(context.Context, *MsgBoosterPackTransfer) (*MsgBoosterPackTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BoosterPackTransfer not implemented") -} -func (UnimplementedMsgServer) SetStoryWriterSet(context.Context, *MsgSetStoryWriterSet) (*MsgSetStoryWriterSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetStoryWriterSet not implemented") -} -func (UnimplementedMsgServer) SetArtistSet(context.Context, *MsgSetArtistSet) (*MsgSetArtistSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetArtistSet not implemented") -} -func (UnimplementedMsgServer) CardVoteMulti(context.Context, *MsgCardVoteMulti) (*MsgCardVoteMultiResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardVoteMulti not implemented") -} -func (UnimplementedMsgServer) MatchOpen(context.Context, *MsgMatchOpen) (*MsgMatchOpenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MatchOpen not implemented") -} -func (UnimplementedMsgServer) SetNameSet(context.Context, *MsgSetNameSet) (*MsgSetNameSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetNameSet not implemented") -} -func (UnimplementedMsgServer) ProfileAliasSet(context.Context, *MsgProfileAliasSet) (*MsgProfileAliasSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProfileAliasSet not implemented") -} -func (UnimplementedMsgServer) EarlyAccessInvite(context.Context, *MsgEarlyAccessInvite) (*MsgEarlyAccessInviteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EarlyAccessInvite not implemented") -} -func (UnimplementedMsgServer) ZealyConnect(context.Context, *MsgZealyConnect) (*MsgZealyConnectResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ZealyConnect not implemented") -} -func (UnimplementedMsgServer) EncounterCreate(context.Context, *MsgEncounterCreate) (*MsgEncounterCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EncounterCreate not implemented") -} -func (UnimplementedMsgServer) EncounterDo(context.Context, *MsgEncounterDo) (*MsgEncounterDoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EncounterDo not implemented") -} -func (UnimplementedMsgServer) EncounterClose(context.Context, *MsgEncounterClose) (*MsgEncounterCloseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EncounterClose not implemented") -} -func (UnimplementedMsgServer) EarlyAccessDisinvite(context.Context, *MsgEarlyAccessDisinvite) (*MsgEarlyAccessDisinviteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EarlyAccessDisinvite not implemented") -} -func (UnimplementedMsgServer) CardBan(context.Context, *MsgCardBan) (*MsgCardBanResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardBan not implemented") -} -func (UnimplementedMsgServer) EarlyAccessGrant(context.Context, *MsgEarlyAccessGrant) (*MsgEarlyAccessGrantResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EarlyAccessGrant not implemented") -} -func (UnimplementedMsgServer) SetActivate(context.Context, *MsgSetActivate) (*MsgSetActivateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetActivate not implemented") -} -func (UnimplementedMsgServer) CardCopyrightClaim(context.Context, *MsgCardCopyrightClaim) (*MsgCardCopyrightClaimResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CardCopyrightClaim not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateParams_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UserCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUserCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UserCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UserCreate_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UserCreate(ctx, req.(*MsgUserCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardSchemeBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardSchemeBuy) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardSchemeBuy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardSchemeBuy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardSchemeBuy(ctx, req.(*MsgCardSchemeBuy)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardSaveContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardSaveContent) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardSaveContent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardSaveContent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardSaveContent(ctx, req.(*MsgCardSaveContent)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardVote) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardVote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardVote_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardVote(ctx, req.(*MsgCardVote)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardTransfer) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardTransfer_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardTransfer(ctx, req.(*MsgCardTransfer)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardDonate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardDonate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardDonate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardDonate_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardDonate(ctx, req.(*MsgCardDonate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardArtworkAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardArtworkAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardArtworkAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardArtworkAdd_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardArtworkAdd(ctx, req.(*MsgCardArtworkAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardArtistChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardArtistChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardArtistChange(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardArtistChange_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardArtistChange(ctx, req.(*MsgCardArtistChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CouncilRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilRegister) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilRegister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CouncilRegister_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilRegister(ctx, req.(*MsgCouncilRegister)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CouncilDeregister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilDeregister) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilDeregister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CouncilDeregister_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilDeregister(ctx, req.(*MsgCouncilDeregister)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_MatchReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMatchReport) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).MatchReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_MatchReport_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MatchReport(ctx, req.(*MsgMatchReport)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CouncilCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CouncilCreate_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilCreate(ctx, req.(*MsgCouncilCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_MatchReporterAppoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMatchReporterAppoint) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).MatchReporterAppoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_MatchReporterAppoint_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MatchReporterAppoint(ctx, req.(*MsgMatchReporterAppoint)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetCreate_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetCreate(ctx, req.(*MsgSetCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetCardAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetCardAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetCardAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetCardAdd_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetCardAdd(ctx, req.(*MsgSetCardAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetCardRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetCardRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetCardRemove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetCardRemove_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetCardRemove(ctx, req.(*MsgSetCardRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetContributorAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetContributorAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetContributorAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetContributorAdd_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetContributorAdd(ctx, req.(*MsgSetContributorAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetContributorRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetContributorRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetContributorRemove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetContributorRemove_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetContributorRemove(ctx, req.(*MsgSetContributorRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetFinalize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetFinalize) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetFinalize(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetFinalize_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetFinalize(ctx, req.(*MsgSetFinalize)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetArtworkAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetArtworkAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetArtworkAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetArtworkAdd_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetArtworkAdd(ctx, req.(*MsgSetArtworkAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetStoryAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetStoryAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetStoryAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetStoryAdd_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetStoryAdd(ctx, req.(*MsgSetStoryAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_BoosterPackBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBoosterPackBuy) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).BoosterPackBuy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_BoosterPackBuy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BoosterPackBuy(ctx, req.(*MsgBoosterPackBuy)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SellOfferCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSellOfferCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SellOfferCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SellOfferCreate_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SellOfferCreate(ctx, req.(*MsgSellOfferCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SellOfferBuy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSellOfferBuy) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SellOfferBuy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SellOfferBuy_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SellOfferBuy(ctx, req.(*MsgSellOfferBuy)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SellOfferRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSellOfferRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SellOfferRemove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SellOfferRemove_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SellOfferRemove(ctx, req.(*MsgSellOfferRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardRaritySet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardRaritySet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardRaritySet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardRaritySet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardRaritySet(ctx, req.(*MsgCardRaritySet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CouncilResponseCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilResponseCommit) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilResponseCommit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CouncilResponseCommit_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilResponseCommit(ctx, req.(*MsgCouncilResponseCommit)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CouncilResponseReveal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilResponseReveal) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilResponseReveal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CouncilResponseReveal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilResponseReveal(ctx, req.(*MsgCouncilResponseReveal)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CouncilRestart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCouncilRestart) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CouncilRestart(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CouncilRestart_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CouncilRestart(ctx, req.(*MsgCouncilRestart)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_MatchConfirm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMatchConfirm) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).MatchConfirm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_MatchConfirm_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MatchConfirm(ctx, req.(*MsgMatchConfirm)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ProfileCardSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgProfileCardSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ProfileCardSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ProfileCardSet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ProfileCardSet(ctx, req.(*MsgProfileCardSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ProfileWebsiteSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgProfileWebsiteSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ProfileWebsiteSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ProfileWebsiteSet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ProfileWebsiteSet(ctx, req.(*MsgProfileWebsiteSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ProfileBioSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgProfileBioSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ProfileBioSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ProfileBioSet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ProfileBioSet(ctx, req.(*MsgProfileBioSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_BoosterPackOpen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBoosterPackOpen) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).BoosterPackOpen(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_BoosterPackOpen_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BoosterPackOpen(ctx, req.(*MsgBoosterPackOpen)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_BoosterPackTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBoosterPackTransfer) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).BoosterPackTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_BoosterPackTransfer_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BoosterPackTransfer(ctx, req.(*MsgBoosterPackTransfer)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetStoryWriterSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetStoryWriterSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetStoryWriterSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetStoryWriterSet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetStoryWriterSet(ctx, req.(*MsgSetStoryWriterSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetArtistSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetArtistSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetArtistSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetArtistSet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetArtistSet(ctx, req.(*MsgSetArtistSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardVoteMulti_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardVoteMulti) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardVoteMulti(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardVoteMulti_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardVoteMulti(ctx, req.(*MsgCardVoteMulti)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_MatchOpen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMatchOpen) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).MatchOpen(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_MatchOpen_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MatchOpen(ctx, req.(*MsgMatchOpen)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetNameSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetNameSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetNameSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetNameSet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetNameSet(ctx, req.(*MsgSetNameSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ProfileAliasSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgProfileAliasSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ProfileAliasSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ProfileAliasSet_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ProfileAliasSet(ctx, req.(*MsgProfileAliasSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_EarlyAccessInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgEarlyAccessInvite) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).EarlyAccessInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_EarlyAccessInvite_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).EarlyAccessInvite(ctx, req.(*MsgEarlyAccessInvite)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ZealyConnect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgZealyConnect) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ZealyConnect(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_ZealyConnect_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ZealyConnect(ctx, req.(*MsgZealyConnect)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_EncounterCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgEncounterCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).EncounterCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_EncounterCreate_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).EncounterCreate(ctx, req.(*MsgEncounterCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_EncounterDo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgEncounterDo) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).EncounterDo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_EncounterDo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).EncounterDo(ctx, req.(*MsgEncounterDo)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_EncounterClose_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgEncounterClose) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).EncounterClose(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_EncounterClose_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).EncounterClose(ctx, req.(*MsgEncounterClose)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_EarlyAccessDisinvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgEarlyAccessDisinvite) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).EarlyAccessDisinvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_EarlyAccessDisinvite_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).EarlyAccessDisinvite(ctx, req.(*MsgEarlyAccessDisinvite)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardBan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardBan) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardBan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardBan_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardBan(ctx, req.(*MsgCardBan)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_EarlyAccessGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgEarlyAccessGrant) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).EarlyAccessGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_EarlyAccessGrant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).EarlyAccessGrant(ctx, req.(*MsgEarlyAccessGrant)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetActivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetActivate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetActivate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetActivate_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetActivate(ctx, req.(*MsgSetActivate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CardCopyrightClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCardCopyrightClaim) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CardCopyrightClaim(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CardCopyrightClaim_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CardCopyrightClaim(ctx, req.(*MsgCardCopyrightClaim)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cardchain.cardchain.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "UserCreate", - Handler: _Msg_UserCreate_Handler, - }, - { - MethodName: "CardSchemeBuy", - Handler: _Msg_CardSchemeBuy_Handler, - }, - { - MethodName: "CardSaveContent", - Handler: _Msg_CardSaveContent_Handler, - }, - { - MethodName: "CardVote", - Handler: _Msg_CardVote_Handler, - }, - { - MethodName: "CardTransfer", - Handler: _Msg_CardTransfer_Handler, - }, - { - MethodName: "CardDonate", - Handler: _Msg_CardDonate_Handler, - }, - { - MethodName: "CardArtworkAdd", - Handler: _Msg_CardArtworkAdd_Handler, - }, - { - MethodName: "CardArtistChange", - Handler: _Msg_CardArtistChange_Handler, - }, - { - MethodName: "CouncilRegister", - Handler: _Msg_CouncilRegister_Handler, - }, - { - MethodName: "CouncilDeregister", - Handler: _Msg_CouncilDeregister_Handler, - }, - { - MethodName: "MatchReport", - Handler: _Msg_MatchReport_Handler, - }, - { - MethodName: "CouncilCreate", - Handler: _Msg_CouncilCreate_Handler, - }, - { - MethodName: "MatchReporterAppoint", - Handler: _Msg_MatchReporterAppoint_Handler, - }, - { - MethodName: "SetCreate", - Handler: _Msg_SetCreate_Handler, - }, - { - MethodName: "SetCardAdd", - Handler: _Msg_SetCardAdd_Handler, - }, - { - MethodName: "SetCardRemove", - Handler: _Msg_SetCardRemove_Handler, - }, - { - MethodName: "SetContributorAdd", - Handler: _Msg_SetContributorAdd_Handler, - }, - { - MethodName: "SetContributorRemove", - Handler: _Msg_SetContributorRemove_Handler, - }, - { - MethodName: "SetFinalize", - Handler: _Msg_SetFinalize_Handler, - }, - { - MethodName: "SetArtworkAdd", - Handler: _Msg_SetArtworkAdd_Handler, - }, - { - MethodName: "SetStoryAdd", - Handler: _Msg_SetStoryAdd_Handler, - }, - { - MethodName: "BoosterPackBuy", - Handler: _Msg_BoosterPackBuy_Handler, - }, - { - MethodName: "SellOfferCreate", - Handler: _Msg_SellOfferCreate_Handler, - }, - { - MethodName: "SellOfferBuy", - Handler: _Msg_SellOfferBuy_Handler, - }, - { - MethodName: "SellOfferRemove", - Handler: _Msg_SellOfferRemove_Handler, - }, - { - MethodName: "CardRaritySet", - Handler: _Msg_CardRaritySet_Handler, - }, - { - MethodName: "CouncilResponseCommit", - Handler: _Msg_CouncilResponseCommit_Handler, - }, - { - MethodName: "CouncilResponseReveal", - Handler: _Msg_CouncilResponseReveal_Handler, - }, - { - MethodName: "CouncilRestart", - Handler: _Msg_CouncilRestart_Handler, - }, - { - MethodName: "MatchConfirm", - Handler: _Msg_MatchConfirm_Handler, - }, - { - MethodName: "ProfileCardSet", - Handler: _Msg_ProfileCardSet_Handler, - }, - { - MethodName: "ProfileWebsiteSet", - Handler: _Msg_ProfileWebsiteSet_Handler, - }, - { - MethodName: "ProfileBioSet", - Handler: _Msg_ProfileBioSet_Handler, - }, - { - MethodName: "BoosterPackOpen", - Handler: _Msg_BoosterPackOpen_Handler, - }, - { - MethodName: "BoosterPackTransfer", - Handler: _Msg_BoosterPackTransfer_Handler, - }, - { - MethodName: "SetStoryWriterSet", - Handler: _Msg_SetStoryWriterSet_Handler, - }, - { - MethodName: "SetArtistSet", - Handler: _Msg_SetArtistSet_Handler, - }, - { - MethodName: "CardVoteMulti", - Handler: _Msg_CardVoteMulti_Handler, - }, - { - MethodName: "MatchOpen", - Handler: _Msg_MatchOpen_Handler, - }, - { - MethodName: "SetNameSet", - Handler: _Msg_SetNameSet_Handler, - }, - { - MethodName: "ProfileAliasSet", - Handler: _Msg_ProfileAliasSet_Handler, - }, - { - MethodName: "EarlyAccessInvite", - Handler: _Msg_EarlyAccessInvite_Handler, - }, - { - MethodName: "ZealyConnect", - Handler: _Msg_ZealyConnect_Handler, - }, - { - MethodName: "EncounterCreate", - Handler: _Msg_EncounterCreate_Handler, - }, - { - MethodName: "EncounterDo", - Handler: _Msg_EncounterDo_Handler, - }, - { - MethodName: "EncounterClose", - Handler: _Msg_EncounterClose_Handler, - }, - { - MethodName: "EarlyAccessDisinvite", - Handler: _Msg_EarlyAccessDisinvite_Handler, - }, - { - MethodName: "CardBan", - Handler: _Msg_CardBan_Handler, - }, - { - MethodName: "EarlyAccessGrant", - Handler: _Msg_EarlyAccessGrant_Handler, - }, - { - MethodName: "SetActivate", - Handler: _Msg_SetActivate_Handler, - }, - { - MethodName: "CardCopyrightClaim", - Handler: _Msg_CardCopyrightClaim_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cardchain/cardchain/tx.proto", -} diff --git a/api/cardchain/cardchain/user.pulsar.go b/api/cardchain/cardchain/user.pulsar.go deleted file mode 100644 index c0c7e0ad..00000000 --- a/api/cardchain/cardchain/user.pulsar.go +++ /dev/null @@ -1,4912 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_User_2_list)(nil) - -type _User_2_list struct { - list *[]uint64 -} - -func (x *_User_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_User_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_User_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message User at list field OwnedCardSchemes as it is not of Message kind")) -} - -func (x *_User_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_User_2_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_User_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_User_3_list)(nil) - -type _User_3_list struct { - list *[]uint64 -} - -func (x *_User_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_User_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_User_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message User at list field OwnedPrototypes as it is not of Message kind")) -} - -func (x *_User_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_User_3_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_User_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_User_4_list)(nil) - -type _User_4_list struct { - list *[]uint64 -} - -func (x *_User_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_User_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_User_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message User at list field Cards as it is not of Message kind")) -} - -func (x *_User_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_User_4_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_User_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_User_10_list)(nil) - -type _User_10_list struct { - list *[]*BoosterPack -} - -func (x *_User_10_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_10_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_User_10_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BoosterPack) - (*x.list)[i] = concreteValue -} - -func (x *_User_10_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*BoosterPack) - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_10_list) AppendMutable() protoreflect.Value { - v := new(BoosterPack) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_User_10_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_User_10_list) NewElement() protoreflect.Value { - v := new(BoosterPack) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_User_10_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_User_13_list)(nil) - -type _User_13_list struct { - list *[]uint64 -} - -func (x *_User_13_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_13_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_User_13_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_User_13_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_13_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message User at list field VotableCards as it is not of Message kind")) -} - -func (x *_User_13_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_User_13_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_User_13_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_User_14_list)(nil) - -type _User_14_list struct { - list *[]uint64 -} - -func (x *_User_14_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_14_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_User_14_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_User_14_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_14_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message User at list field VotedCards as it is not of Message kind")) -} - -func (x *_User_14_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_User_14_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_User_14_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_User_16_list)(nil) - -type _User_16_list struct { - list *[]uint64 -} - -func (x *_User_16_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_16_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_User_16_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_User_16_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_16_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message User at list field OpenEncounters as it is not of Message kind")) -} - -func (x *_User_16_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_User_16_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_User_16_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_User_17_list)(nil) - -type _User_17_list struct { - list *[]uint64 -} - -func (x *_User_17_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_User_17_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_User_17_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_User_17_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_User_17_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message User at list field WonEncounters as it is not of Message kind")) -} - -func (x *_User_17_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_User_17_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_User_17_list) IsValid() bool { - return x.list != nil -} - -var ( - md_User protoreflect.MessageDescriptor - fd_User_alias protoreflect.FieldDescriptor - fd_User_ownedCardSchemes protoreflect.FieldDescriptor - fd_User_ownedPrototypes protoreflect.FieldDescriptor - fd_User_cards protoreflect.FieldDescriptor - fd_User_CouncilStatus protoreflect.FieldDescriptor - fd_User_ReportMatches protoreflect.FieldDescriptor - fd_User_profileCard protoreflect.FieldDescriptor - fd_User_airDrops protoreflect.FieldDescriptor - fd_User_boosterPacks protoreflect.FieldDescriptor - fd_User_website protoreflect.FieldDescriptor - fd_User_biography protoreflect.FieldDescriptor - fd_User_votableCards protoreflect.FieldDescriptor - fd_User_votedCards protoreflect.FieldDescriptor - fd_User_earlyAccess protoreflect.FieldDescriptor - fd_User_OpenEncounters protoreflect.FieldDescriptor - fd_User_WonEncounters protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_user_proto_init() - md_User = File_cardchain_cardchain_user_proto.Messages().ByName("User") - fd_User_alias = md_User.Fields().ByName("alias") - fd_User_ownedCardSchemes = md_User.Fields().ByName("ownedCardSchemes") - fd_User_ownedPrototypes = md_User.Fields().ByName("ownedPrototypes") - fd_User_cards = md_User.Fields().ByName("cards") - fd_User_CouncilStatus = md_User.Fields().ByName("CouncilStatus") - fd_User_ReportMatches = md_User.Fields().ByName("ReportMatches") - fd_User_profileCard = md_User.Fields().ByName("profileCard") - fd_User_airDrops = md_User.Fields().ByName("airDrops") - fd_User_boosterPacks = md_User.Fields().ByName("boosterPacks") - fd_User_website = md_User.Fields().ByName("website") - fd_User_biography = md_User.Fields().ByName("biography") - fd_User_votableCards = md_User.Fields().ByName("votableCards") - fd_User_votedCards = md_User.Fields().ByName("votedCards") - fd_User_earlyAccess = md_User.Fields().ByName("earlyAccess") - fd_User_OpenEncounters = md_User.Fields().ByName("OpenEncounters") - fd_User_WonEncounters = md_User.Fields().ByName("WonEncounters") -} - -var _ protoreflect.Message = (*fastReflection_User)(nil) - -type fastReflection_User User - -func (x *User) ProtoReflect() protoreflect.Message { - return (*fastReflection_User)(x) -} - -func (x *User) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_user_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_User_messageType fastReflection_User_messageType -var _ protoreflect.MessageType = fastReflection_User_messageType{} - -type fastReflection_User_messageType struct{} - -func (x fastReflection_User_messageType) Zero() protoreflect.Message { - return (*fastReflection_User)(nil) -} -func (x fastReflection_User_messageType) New() protoreflect.Message { - return new(fastReflection_User) -} -func (x fastReflection_User_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_User -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_User) Descriptor() protoreflect.MessageDescriptor { - return md_User -} - -// 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_User) Type() protoreflect.MessageType { - return _fastReflection_User_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_User) New() protoreflect.Message { - return new(fastReflection_User) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_User) Interface() protoreflect.ProtoMessage { - return (*User)(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_User) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Alias != "" { - value := protoreflect.ValueOfString(x.Alias) - if !f(fd_User_alias, value) { - return - } - } - if len(x.OwnedCardSchemes) != 0 { - value := protoreflect.ValueOfList(&_User_2_list{list: &x.OwnedCardSchemes}) - if !f(fd_User_ownedCardSchemes, value) { - return - } - } - if len(x.OwnedPrototypes) != 0 { - value := protoreflect.ValueOfList(&_User_3_list{list: &x.OwnedPrototypes}) - if !f(fd_User_ownedPrototypes, value) { - return - } - } - if len(x.Cards) != 0 { - value := protoreflect.ValueOfList(&_User_4_list{list: &x.Cards}) - if !f(fd_User_cards, value) { - return - } - } - if x.CouncilStatus != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.CouncilStatus)) - if !f(fd_User_CouncilStatus, value) { - return - } - } - if x.ReportMatches != false { - value := protoreflect.ValueOfBool(x.ReportMatches) - if !f(fd_User_ReportMatches, value) { - return - } - } - if x.ProfileCard != uint64(0) { - value := protoreflect.ValueOfUint64(x.ProfileCard) - if !f(fd_User_profileCard, value) { - return - } - } - if x.AirDrops != nil { - value := protoreflect.ValueOfMessage(x.AirDrops.ProtoReflect()) - if !f(fd_User_airDrops, value) { - return - } - } - if len(x.BoosterPacks) != 0 { - value := protoreflect.ValueOfList(&_User_10_list{list: &x.BoosterPacks}) - if !f(fd_User_boosterPacks, value) { - return - } - } - if x.Website != "" { - value := protoreflect.ValueOfString(x.Website) - if !f(fd_User_website, value) { - return - } - } - if x.Biography != "" { - value := protoreflect.ValueOfString(x.Biography) - if !f(fd_User_biography, value) { - return - } - } - if len(x.VotableCards) != 0 { - value := protoreflect.ValueOfList(&_User_13_list{list: &x.VotableCards}) - if !f(fd_User_votableCards, value) { - return - } - } - if len(x.VotedCards) != 0 { - value := protoreflect.ValueOfList(&_User_14_list{list: &x.VotedCards}) - if !f(fd_User_votedCards, value) { - return - } - } - if x.EarlyAccess != nil { - value := protoreflect.ValueOfMessage(x.EarlyAccess.ProtoReflect()) - if !f(fd_User_earlyAccess, value) { - return - } - } - if len(x.OpenEncounters) != 0 { - value := protoreflect.ValueOfList(&_User_16_list{list: &x.OpenEncounters}) - if !f(fd_User_OpenEncounters, value) { - return - } - } - if len(x.WonEncounters) != 0 { - value := protoreflect.ValueOfList(&_User_17_list{list: &x.WonEncounters}) - if !f(fd_User_WonEncounters, 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_User) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.User.alias": - return x.Alias != "" - case "cardchain.cardchain.User.ownedCardSchemes": - return len(x.OwnedCardSchemes) != 0 - case "cardchain.cardchain.User.ownedPrototypes": - return len(x.OwnedPrototypes) != 0 - case "cardchain.cardchain.User.cards": - return len(x.Cards) != 0 - case "cardchain.cardchain.User.CouncilStatus": - return x.CouncilStatus != 0 - case "cardchain.cardchain.User.ReportMatches": - return x.ReportMatches != false - case "cardchain.cardchain.User.profileCard": - return x.ProfileCard != uint64(0) - case "cardchain.cardchain.User.airDrops": - return x.AirDrops != nil - case "cardchain.cardchain.User.boosterPacks": - return len(x.BoosterPacks) != 0 - case "cardchain.cardchain.User.website": - return x.Website != "" - case "cardchain.cardchain.User.biography": - return x.Biography != "" - case "cardchain.cardchain.User.votableCards": - return len(x.VotableCards) != 0 - case "cardchain.cardchain.User.votedCards": - return len(x.VotedCards) != 0 - case "cardchain.cardchain.User.earlyAccess": - return x.EarlyAccess != nil - case "cardchain.cardchain.User.OpenEncounters": - return len(x.OpenEncounters) != 0 - case "cardchain.cardchain.User.WonEncounters": - return len(x.WonEncounters) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.User")) - } - panic(fmt.Errorf("message cardchain.cardchain.User 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_User) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.User.alias": - x.Alias = "" - case "cardchain.cardchain.User.ownedCardSchemes": - x.OwnedCardSchemes = nil - case "cardchain.cardchain.User.ownedPrototypes": - x.OwnedPrototypes = nil - case "cardchain.cardchain.User.cards": - x.Cards = nil - case "cardchain.cardchain.User.CouncilStatus": - x.CouncilStatus = 0 - case "cardchain.cardchain.User.ReportMatches": - x.ReportMatches = false - case "cardchain.cardchain.User.profileCard": - x.ProfileCard = uint64(0) - case "cardchain.cardchain.User.airDrops": - x.AirDrops = nil - case "cardchain.cardchain.User.boosterPacks": - x.BoosterPacks = nil - case "cardchain.cardchain.User.website": - x.Website = "" - case "cardchain.cardchain.User.biography": - x.Biography = "" - case "cardchain.cardchain.User.votableCards": - x.VotableCards = nil - case "cardchain.cardchain.User.votedCards": - x.VotedCards = nil - case "cardchain.cardchain.User.earlyAccess": - x.EarlyAccess = nil - case "cardchain.cardchain.User.OpenEncounters": - x.OpenEncounters = nil - case "cardchain.cardchain.User.WonEncounters": - x.WonEncounters = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.User")) - } - panic(fmt.Errorf("message cardchain.cardchain.User 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_User) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.User.alias": - value := x.Alias - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.User.ownedCardSchemes": - if len(x.OwnedCardSchemes) == 0 { - return protoreflect.ValueOfList(&_User_2_list{}) - } - listValue := &_User_2_list{list: &x.OwnedCardSchemes} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.User.ownedPrototypes": - if len(x.OwnedPrototypes) == 0 { - return protoreflect.ValueOfList(&_User_3_list{}) - } - listValue := &_User_3_list{list: &x.OwnedPrototypes} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.User.cards": - if len(x.Cards) == 0 { - return protoreflect.ValueOfList(&_User_4_list{}) - } - listValue := &_User_4_list{list: &x.Cards} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.User.CouncilStatus": - value := x.CouncilStatus - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "cardchain.cardchain.User.ReportMatches": - value := x.ReportMatches - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.User.profileCard": - value := x.ProfileCard - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.User.airDrops": - value := x.AirDrops - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.User.boosterPacks": - if len(x.BoosterPacks) == 0 { - return protoreflect.ValueOfList(&_User_10_list{}) - } - listValue := &_User_10_list{list: &x.BoosterPacks} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.User.website": - value := x.Website - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.User.biography": - value := x.Biography - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.User.votableCards": - if len(x.VotableCards) == 0 { - return protoreflect.ValueOfList(&_User_13_list{}) - } - listValue := &_User_13_list{list: &x.VotableCards} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.User.votedCards": - if len(x.VotedCards) == 0 { - return protoreflect.ValueOfList(&_User_14_list{}) - } - listValue := &_User_14_list{list: &x.VotedCards} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.User.earlyAccess": - value := x.EarlyAccess - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.cardchain.User.OpenEncounters": - if len(x.OpenEncounters) == 0 { - return protoreflect.ValueOfList(&_User_16_list{}) - } - listValue := &_User_16_list{list: &x.OpenEncounters} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.User.WonEncounters": - if len(x.WonEncounters) == 0 { - return protoreflect.ValueOfList(&_User_17_list{}) - } - listValue := &_User_17_list{list: &x.WonEncounters} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.User")) - } - panic(fmt.Errorf("message cardchain.cardchain.User 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_User) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.User.alias": - x.Alias = value.Interface().(string) - case "cardchain.cardchain.User.ownedCardSchemes": - lv := value.List() - clv := lv.(*_User_2_list) - x.OwnedCardSchemes = *clv.list - case "cardchain.cardchain.User.ownedPrototypes": - lv := value.List() - clv := lv.(*_User_3_list) - x.OwnedPrototypes = *clv.list - case "cardchain.cardchain.User.cards": - lv := value.List() - clv := lv.(*_User_4_list) - x.Cards = *clv.list - case "cardchain.cardchain.User.CouncilStatus": - x.CouncilStatus = (CouncilStatus)(value.Enum()) - case "cardchain.cardchain.User.ReportMatches": - x.ReportMatches = value.Bool() - case "cardchain.cardchain.User.profileCard": - x.ProfileCard = value.Uint() - case "cardchain.cardchain.User.airDrops": - x.AirDrops = value.Message().Interface().(*AirDrops) - case "cardchain.cardchain.User.boosterPacks": - lv := value.List() - clv := lv.(*_User_10_list) - x.BoosterPacks = *clv.list - case "cardchain.cardchain.User.website": - x.Website = value.Interface().(string) - case "cardchain.cardchain.User.biography": - x.Biography = value.Interface().(string) - case "cardchain.cardchain.User.votableCards": - lv := value.List() - clv := lv.(*_User_13_list) - x.VotableCards = *clv.list - case "cardchain.cardchain.User.votedCards": - lv := value.List() - clv := lv.(*_User_14_list) - x.VotedCards = *clv.list - case "cardchain.cardchain.User.earlyAccess": - x.EarlyAccess = value.Message().Interface().(*EarlyAccess) - case "cardchain.cardchain.User.OpenEncounters": - lv := value.List() - clv := lv.(*_User_16_list) - x.OpenEncounters = *clv.list - case "cardchain.cardchain.User.WonEncounters": - lv := value.List() - clv := lv.(*_User_17_list) - x.WonEncounters = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.User")) - } - panic(fmt.Errorf("message cardchain.cardchain.User 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_User) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.User.ownedCardSchemes": - if x.OwnedCardSchemes == nil { - x.OwnedCardSchemes = []uint64{} - } - value := &_User_2_list{list: &x.OwnedCardSchemes} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.ownedPrototypes": - if x.OwnedPrototypes == nil { - x.OwnedPrototypes = []uint64{} - } - value := &_User_3_list{list: &x.OwnedPrototypes} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.cards": - if x.Cards == nil { - x.Cards = []uint64{} - } - value := &_User_4_list{list: &x.Cards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.airDrops": - if x.AirDrops == nil { - x.AirDrops = new(AirDrops) - } - return protoreflect.ValueOfMessage(x.AirDrops.ProtoReflect()) - case "cardchain.cardchain.User.boosterPacks": - if x.BoosterPacks == nil { - x.BoosterPacks = []*BoosterPack{} - } - value := &_User_10_list{list: &x.BoosterPacks} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.votableCards": - if x.VotableCards == nil { - x.VotableCards = []uint64{} - } - value := &_User_13_list{list: &x.VotableCards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.votedCards": - if x.VotedCards == nil { - x.VotedCards = []uint64{} - } - value := &_User_14_list{list: &x.VotedCards} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.earlyAccess": - if x.EarlyAccess == nil { - x.EarlyAccess = new(EarlyAccess) - } - return protoreflect.ValueOfMessage(x.EarlyAccess.ProtoReflect()) - case "cardchain.cardchain.User.OpenEncounters": - if x.OpenEncounters == nil { - x.OpenEncounters = []uint64{} - } - value := &_User_16_list{list: &x.OpenEncounters} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.WonEncounters": - if x.WonEncounters == nil { - x.WonEncounters = []uint64{} - } - value := &_User_17_list{list: &x.WonEncounters} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.User.alias": - panic(fmt.Errorf("field alias of message cardchain.cardchain.User is not mutable")) - case "cardchain.cardchain.User.CouncilStatus": - panic(fmt.Errorf("field CouncilStatus of message cardchain.cardchain.User is not mutable")) - case "cardchain.cardchain.User.ReportMatches": - panic(fmt.Errorf("field ReportMatches of message cardchain.cardchain.User is not mutable")) - case "cardchain.cardchain.User.profileCard": - panic(fmt.Errorf("field profileCard of message cardchain.cardchain.User is not mutable")) - case "cardchain.cardchain.User.website": - panic(fmt.Errorf("field website of message cardchain.cardchain.User is not mutable")) - case "cardchain.cardchain.User.biography": - panic(fmt.Errorf("field biography of message cardchain.cardchain.User is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.User")) - } - panic(fmt.Errorf("message cardchain.cardchain.User 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_User) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.User.alias": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.User.ownedCardSchemes": - list := []uint64{} - return protoreflect.ValueOfList(&_User_2_list{list: &list}) - case "cardchain.cardchain.User.ownedPrototypes": - list := []uint64{} - return protoreflect.ValueOfList(&_User_3_list{list: &list}) - case "cardchain.cardchain.User.cards": - list := []uint64{} - return protoreflect.ValueOfList(&_User_4_list{list: &list}) - case "cardchain.cardchain.User.CouncilStatus": - return protoreflect.ValueOfEnum(0) - case "cardchain.cardchain.User.ReportMatches": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.User.profileCard": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.User.airDrops": - m := new(AirDrops) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.User.boosterPacks": - list := []*BoosterPack{} - return protoreflect.ValueOfList(&_User_10_list{list: &list}) - case "cardchain.cardchain.User.website": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.User.biography": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.User.votableCards": - list := []uint64{} - return protoreflect.ValueOfList(&_User_13_list{list: &list}) - case "cardchain.cardchain.User.votedCards": - list := []uint64{} - return protoreflect.ValueOfList(&_User_14_list{list: &list}) - case "cardchain.cardchain.User.earlyAccess": - m := new(EarlyAccess) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.cardchain.User.OpenEncounters": - list := []uint64{} - return protoreflect.ValueOfList(&_User_16_list{list: &list}) - case "cardchain.cardchain.User.WonEncounters": - list := []uint64{} - return protoreflect.ValueOfList(&_User_17_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.User")) - } - panic(fmt.Errorf("message cardchain.cardchain.User 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_User) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.User", 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_User) 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_User) 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_User) 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_User) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*User) - 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.Alias) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.OwnedCardSchemes) > 0 { - l = 0 - for _, e := range x.OwnedCardSchemes { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.OwnedPrototypes) > 0 { - l = 0 - for _, e := range x.OwnedPrototypes { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.Cards) > 0 { - l = 0 - for _, e := range x.Cards { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if x.CouncilStatus != 0 { - n += 1 + runtime.Sov(uint64(x.CouncilStatus)) - } - if x.ReportMatches { - n += 2 - } - if x.ProfileCard != 0 { - n += 1 + runtime.Sov(uint64(x.ProfileCard)) - } - if x.AirDrops != nil { - l = options.Size(x.AirDrops) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.BoosterPacks) > 0 { - for _, e := range x.BoosterPacks { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Website) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Biography) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.VotableCards) > 0 { - l = 0 - for _, e := range x.VotableCards { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.VotedCards) > 0 { - l = 0 - for _, e := range x.VotedCards { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if x.EarlyAccess != nil { - l = options.Size(x.EarlyAccess) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.OpenEncounters) > 0 { - l = 0 - for _, e := range x.OpenEncounters { - l += runtime.Sov(uint64(e)) - } - n += 2 + runtime.Sov(uint64(l)) + l - } - if len(x.WonEncounters) > 0 { - l = 0 - for _, e := range x.WonEncounters { - l += runtime.Sov(uint64(e)) - } - n += 2 + runtime.Sov(uint64(l)) + 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().(*User) - 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.WonEncounters) > 0 { - var pksize2 int - for _, num := range x.WonEncounters { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.WonEncounters { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if len(x.OpenEncounters) > 0 { - var pksize4 int - for _, num := range x.OpenEncounters { - pksize4 += runtime.Sov(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num := range x.OpenEncounters { - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if x.EarlyAccess != nil { - encoded, err := options.Marshal(x.EarlyAccess) - 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] = 0x7a - } - if len(x.VotedCards) > 0 { - var pksize6 int - for _, num := range x.VotedCards { - pksize6 += runtime.Sov(uint64(num)) - } - i -= pksize6 - j5 := i - for _, num := range x.VotedCards { - for num >= 1<<7 { - dAtA[j5] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j5++ - } - dAtA[j5] = uint8(num) - j5++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize6)) - i-- - dAtA[i] = 0x72 - } - if len(x.VotableCards) > 0 { - var pksize8 int - for _, num := range x.VotableCards { - pksize8 += runtime.Sov(uint64(num)) - } - i -= pksize8 - j7 := i - for _, num := range x.VotableCards { - for num >= 1<<7 { - dAtA[j7] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j7++ - } - dAtA[j7] = uint8(num) - j7++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize8)) - i-- - dAtA[i] = 0x6a - } - if len(x.Biography) > 0 { - i -= len(x.Biography) - copy(dAtA[i:], x.Biography) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Biography))) - i-- - dAtA[i] = 0x62 - } - if len(x.Website) > 0 { - i -= len(x.Website) - copy(dAtA[i:], x.Website) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Website))) - i-- - dAtA[i] = 0x5a - } - if len(x.BoosterPacks) > 0 { - for iNdEx := len(x.BoosterPacks) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.BoosterPacks[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] = 0x52 - } - } - if x.AirDrops != nil { - encoded, err := options.Marshal(x.AirDrops) - 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] = 0x4a - } - if x.ProfileCard != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ProfileCard)) - i-- - dAtA[i] = 0x40 - } - if x.ReportMatches { - i-- - if x.ReportMatches { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if x.CouncilStatus != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CouncilStatus)) - i-- - dAtA[i] = 0x30 - } - if len(x.Cards) > 0 { - var pksize10 int - for _, num := range x.Cards { - pksize10 += runtime.Sov(uint64(num)) - } - i -= pksize10 - j9 := i - for _, num := range x.Cards { - for num >= 1<<7 { - dAtA[j9] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j9++ - } - dAtA[j9] = uint8(num) - j9++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize10)) - i-- - dAtA[i] = 0x22 - } - if len(x.OwnedPrototypes) > 0 { - var pksize12 int - for _, num := range x.OwnedPrototypes { - pksize12 += runtime.Sov(uint64(num)) - } - i -= pksize12 - j11 := i - for _, num := range x.OwnedPrototypes { - for num >= 1<<7 { - dAtA[j11] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j11++ - } - dAtA[j11] = uint8(num) - j11++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize12)) - i-- - dAtA[i] = 0x1a - } - if len(x.OwnedCardSchemes) > 0 { - var pksize14 int - for _, num := range x.OwnedCardSchemes { - pksize14 += runtime.Sov(uint64(num)) - } - i -= pksize14 - j13 := i - for _, num := range x.OwnedCardSchemes { - for num >= 1<<7 { - dAtA[j13] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j13++ - } - dAtA[j13] = uint8(num) - j13++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize14)) - i-- - dAtA[i] = 0x12 - } - if len(x.Alias) > 0 { - i -= len(x.Alias) - copy(dAtA[i:], x.Alias) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Alias))) - 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().(*User) - 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: User: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: User: 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 Alias", 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.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OwnedCardSchemes = append(x.OwnedCardSchemes, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.OwnedCardSchemes) == 0 { - x.OwnedCardSchemes = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OwnedCardSchemes = append(x.OwnedCardSchemes, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnedCardSchemes", wireType) - } - case 3: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OwnedPrototypes = append(x.OwnedPrototypes, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.OwnedPrototypes) == 0 { - x.OwnedPrototypes = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OwnedPrototypes = append(x.OwnedPrototypes, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnedPrototypes", wireType) - } - case 4: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Cards = append(x.Cards, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.Cards) == 0 { - x.Cards = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Cards = append(x.Cards, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Cards", wireType) - } - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CouncilStatus", wireType) - } - x.CouncilStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CouncilStatus |= CouncilStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReportMatches", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ReportMatches = bool(v != 0) - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProfileCard", wireType) - } - x.ProfileCard = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ProfileCard |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AirDrops", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.AirDrops == nil { - x.AirDrops = &AirDrops{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AirDrops); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BoosterPacks", 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.BoosterPacks = append(x.BoosterPacks, &BoosterPack{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BoosterPacks[len(x.BoosterPacks)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Website", 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.Website = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Biography", 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.Biography = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.VotableCards = append(x.VotableCards, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.VotableCards) == 0 { - x.VotableCards = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.VotableCards = append(x.VotableCards, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotableCards", wireType) - } - case 14: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.VotedCards = append(x.VotedCards, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.VotedCards) == 0 { - x.VotedCards = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.VotedCards = append(x.VotedCards, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VotedCards", wireType) - } - case 15: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EarlyAccess", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.EarlyAccess == nil { - x.EarlyAccess = &EarlyAccess{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EarlyAccess); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 16: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OpenEncounters = append(x.OpenEncounters, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.OpenEncounters) == 0 { - x.OpenEncounters = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.OpenEncounters = append(x.OpenEncounters, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OpenEncounters", wireType) - } - case 17: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.WonEncounters = append(x.WonEncounters, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.WonEncounters) == 0 { - x.WonEncounters = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.WonEncounters = append(x.WonEncounters, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WonEncounters", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_EarlyAccess protoreflect.MessageDescriptor - fd_EarlyAccess_active protoreflect.FieldDescriptor - fd_EarlyAccess_invitedByUser protoreflect.FieldDescriptor - fd_EarlyAccess_invitedUser protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_user_proto_init() - md_EarlyAccess = File_cardchain_cardchain_user_proto.Messages().ByName("EarlyAccess") - fd_EarlyAccess_active = md_EarlyAccess.Fields().ByName("active") - fd_EarlyAccess_invitedByUser = md_EarlyAccess.Fields().ByName("invitedByUser") - fd_EarlyAccess_invitedUser = md_EarlyAccess.Fields().ByName("invitedUser") -} - -var _ protoreflect.Message = (*fastReflection_EarlyAccess)(nil) - -type fastReflection_EarlyAccess EarlyAccess - -func (x *EarlyAccess) ProtoReflect() protoreflect.Message { - return (*fastReflection_EarlyAccess)(x) -} - -func (x *EarlyAccess) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_user_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_EarlyAccess_messageType fastReflection_EarlyAccess_messageType -var _ protoreflect.MessageType = fastReflection_EarlyAccess_messageType{} - -type fastReflection_EarlyAccess_messageType struct{} - -func (x fastReflection_EarlyAccess_messageType) Zero() protoreflect.Message { - return (*fastReflection_EarlyAccess)(nil) -} -func (x fastReflection_EarlyAccess_messageType) New() protoreflect.Message { - return new(fastReflection_EarlyAccess) -} -func (x fastReflection_EarlyAccess_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EarlyAccess -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EarlyAccess) Descriptor() protoreflect.MessageDescriptor { - return md_EarlyAccess -} - -// 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_EarlyAccess) Type() protoreflect.MessageType { - return _fastReflection_EarlyAccess_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EarlyAccess) New() protoreflect.Message { - return new(fastReflection_EarlyAccess) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EarlyAccess) Interface() protoreflect.ProtoMessage { - return (*EarlyAccess)(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_EarlyAccess) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Active != false { - value := protoreflect.ValueOfBool(x.Active) - if !f(fd_EarlyAccess_active, value) { - return - } - } - if x.InvitedByUser != "" { - value := protoreflect.ValueOfString(x.InvitedByUser) - if !f(fd_EarlyAccess_invitedByUser, value) { - return - } - } - if x.InvitedUser != "" { - value := protoreflect.ValueOfString(x.InvitedUser) - if !f(fd_EarlyAccess_invitedUser, 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_EarlyAccess) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.EarlyAccess.active": - return x.Active != false - case "cardchain.cardchain.EarlyAccess.invitedByUser": - return x.InvitedByUser != "" - case "cardchain.cardchain.EarlyAccess.invitedUser": - return x.InvitedUser != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EarlyAccess")) - } - panic(fmt.Errorf("message cardchain.cardchain.EarlyAccess 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_EarlyAccess) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.EarlyAccess.active": - x.Active = false - case "cardchain.cardchain.EarlyAccess.invitedByUser": - x.InvitedByUser = "" - case "cardchain.cardchain.EarlyAccess.invitedUser": - x.InvitedUser = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EarlyAccess")) - } - panic(fmt.Errorf("message cardchain.cardchain.EarlyAccess 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_EarlyAccess) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.EarlyAccess.active": - value := x.Active - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.EarlyAccess.invitedByUser": - value := x.InvitedByUser - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.EarlyAccess.invitedUser": - value := x.InvitedUser - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EarlyAccess")) - } - panic(fmt.Errorf("message cardchain.cardchain.EarlyAccess 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_EarlyAccess) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.EarlyAccess.active": - x.Active = value.Bool() - case "cardchain.cardchain.EarlyAccess.invitedByUser": - x.InvitedByUser = value.Interface().(string) - case "cardchain.cardchain.EarlyAccess.invitedUser": - x.InvitedUser = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EarlyAccess")) - } - panic(fmt.Errorf("message cardchain.cardchain.EarlyAccess 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_EarlyAccess) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.EarlyAccess.active": - panic(fmt.Errorf("field active of message cardchain.cardchain.EarlyAccess is not mutable")) - case "cardchain.cardchain.EarlyAccess.invitedByUser": - panic(fmt.Errorf("field invitedByUser of message cardchain.cardchain.EarlyAccess is not mutable")) - case "cardchain.cardchain.EarlyAccess.invitedUser": - panic(fmt.Errorf("field invitedUser of message cardchain.cardchain.EarlyAccess is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EarlyAccess")) - } - panic(fmt.Errorf("message cardchain.cardchain.EarlyAccess 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_EarlyAccess) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.EarlyAccess.active": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.EarlyAccess.invitedByUser": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.EarlyAccess.invitedUser": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.EarlyAccess")) - } - panic(fmt.Errorf("message cardchain.cardchain.EarlyAccess 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_EarlyAccess) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.EarlyAccess", 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_EarlyAccess) 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_EarlyAccess) 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_EarlyAccess) 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_EarlyAccess) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EarlyAccess) - 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.Active { - n += 2 - } - l = len(x.InvitedByUser) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.InvitedUser) - 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().(*EarlyAccess) - 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.InvitedUser) > 0 { - i -= len(x.InvitedUser) - copy(dAtA[i:], x.InvitedUser) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InvitedUser))) - i-- - dAtA[i] = 0x1a - } - if len(x.InvitedByUser) > 0 { - i -= len(x.InvitedByUser) - copy(dAtA[i:], x.InvitedByUser) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InvitedByUser))) - i-- - dAtA[i] = 0x12 - } - if x.Active { - i-- - if x.Active { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - 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().(*EarlyAccess) - 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: EarlyAccess: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EarlyAccess: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Active = bool(v != 0) - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InvitedByUser", 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.InvitedByUser = 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 InvitedUser", 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.InvitedUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_BoosterPack_3_list)(nil) - -type _BoosterPack_3_list struct { - list *[]uint64 -} - -func (x *_BoosterPack_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_BoosterPack_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_BoosterPack_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_BoosterPack_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_BoosterPack_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message BoosterPack at list field RaritiesPerPack as it is not of Message kind")) -} - -func (x *_BoosterPack_3_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_BoosterPack_3_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_BoosterPack_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_BoosterPack_4_list)(nil) - -type _BoosterPack_4_list struct { - list *[]uint64 -} - -func (x *_BoosterPack_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_BoosterPack_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_BoosterPack_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_BoosterPack_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_BoosterPack_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message BoosterPack at list field DropRatiosPerPack as it is not of Message kind")) -} - -func (x *_BoosterPack_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_BoosterPack_4_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_BoosterPack_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_BoosterPack protoreflect.MessageDescriptor - fd_BoosterPack_setId protoreflect.FieldDescriptor - fd_BoosterPack_timeStamp protoreflect.FieldDescriptor - fd_BoosterPack_raritiesPerPack protoreflect.FieldDescriptor - fd_BoosterPack_dropRatiosPerPack protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_user_proto_init() - md_BoosterPack = File_cardchain_cardchain_user_proto.Messages().ByName("BoosterPack") - fd_BoosterPack_setId = md_BoosterPack.Fields().ByName("setId") - fd_BoosterPack_timeStamp = md_BoosterPack.Fields().ByName("timeStamp") - fd_BoosterPack_raritiesPerPack = md_BoosterPack.Fields().ByName("raritiesPerPack") - fd_BoosterPack_dropRatiosPerPack = md_BoosterPack.Fields().ByName("dropRatiosPerPack") -} - -var _ protoreflect.Message = (*fastReflection_BoosterPack)(nil) - -type fastReflection_BoosterPack BoosterPack - -func (x *BoosterPack) ProtoReflect() protoreflect.Message { - return (*fastReflection_BoosterPack)(x) -} - -func (x *BoosterPack) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_user_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_BoosterPack_messageType fastReflection_BoosterPack_messageType -var _ protoreflect.MessageType = fastReflection_BoosterPack_messageType{} - -type fastReflection_BoosterPack_messageType struct{} - -func (x fastReflection_BoosterPack_messageType) Zero() protoreflect.Message { - return (*fastReflection_BoosterPack)(nil) -} -func (x fastReflection_BoosterPack_messageType) New() protoreflect.Message { - return new(fastReflection_BoosterPack) -} -func (x fastReflection_BoosterPack_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_BoosterPack -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_BoosterPack) Descriptor() protoreflect.MessageDescriptor { - return md_BoosterPack -} - -// 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_BoosterPack) Type() protoreflect.MessageType { - return _fastReflection_BoosterPack_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_BoosterPack) New() protoreflect.Message { - return new(fastReflection_BoosterPack) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_BoosterPack) Interface() protoreflect.ProtoMessage { - return (*BoosterPack)(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_BoosterPack) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SetId != uint64(0) { - value := protoreflect.ValueOfUint64(x.SetId) - if !f(fd_BoosterPack_setId, value) { - return - } - } - if x.TimeStamp != int64(0) { - value := protoreflect.ValueOfInt64(x.TimeStamp) - if !f(fd_BoosterPack_timeStamp, value) { - return - } - } - if len(x.RaritiesPerPack) != 0 { - value := protoreflect.ValueOfList(&_BoosterPack_3_list{list: &x.RaritiesPerPack}) - if !f(fd_BoosterPack_raritiesPerPack, value) { - return - } - } - if len(x.DropRatiosPerPack) != 0 { - value := protoreflect.ValueOfList(&_BoosterPack_4_list{list: &x.DropRatiosPerPack}) - if !f(fd_BoosterPack_dropRatiosPerPack, 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_BoosterPack) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.BoosterPack.setId": - return x.SetId != uint64(0) - case "cardchain.cardchain.BoosterPack.timeStamp": - return x.TimeStamp != int64(0) - case "cardchain.cardchain.BoosterPack.raritiesPerPack": - return len(x.RaritiesPerPack) != 0 - case "cardchain.cardchain.BoosterPack.dropRatiosPerPack": - return len(x.DropRatiosPerPack) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.BoosterPack")) - } - panic(fmt.Errorf("message cardchain.cardchain.BoosterPack 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_BoosterPack) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.BoosterPack.setId": - x.SetId = uint64(0) - case "cardchain.cardchain.BoosterPack.timeStamp": - x.TimeStamp = int64(0) - case "cardchain.cardchain.BoosterPack.raritiesPerPack": - x.RaritiesPerPack = nil - case "cardchain.cardchain.BoosterPack.dropRatiosPerPack": - x.DropRatiosPerPack = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.BoosterPack")) - } - panic(fmt.Errorf("message cardchain.cardchain.BoosterPack 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_BoosterPack) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.BoosterPack.setId": - value := x.SetId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.BoosterPack.timeStamp": - value := x.TimeStamp - return protoreflect.ValueOfInt64(value) - case "cardchain.cardchain.BoosterPack.raritiesPerPack": - if len(x.RaritiesPerPack) == 0 { - return protoreflect.ValueOfList(&_BoosterPack_3_list{}) - } - listValue := &_BoosterPack_3_list{list: &x.RaritiesPerPack} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.BoosterPack.dropRatiosPerPack": - if len(x.DropRatiosPerPack) == 0 { - return protoreflect.ValueOfList(&_BoosterPack_4_list{}) - } - listValue := &_BoosterPack_4_list{list: &x.DropRatiosPerPack} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.BoosterPack")) - } - panic(fmt.Errorf("message cardchain.cardchain.BoosterPack 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_BoosterPack) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.BoosterPack.setId": - x.SetId = value.Uint() - case "cardchain.cardchain.BoosterPack.timeStamp": - x.TimeStamp = value.Int() - case "cardchain.cardchain.BoosterPack.raritiesPerPack": - lv := value.List() - clv := lv.(*_BoosterPack_3_list) - x.RaritiesPerPack = *clv.list - case "cardchain.cardchain.BoosterPack.dropRatiosPerPack": - lv := value.List() - clv := lv.(*_BoosterPack_4_list) - x.DropRatiosPerPack = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.BoosterPack")) - } - panic(fmt.Errorf("message cardchain.cardchain.BoosterPack 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_BoosterPack) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.BoosterPack.raritiesPerPack": - if x.RaritiesPerPack == nil { - x.RaritiesPerPack = []uint64{} - } - value := &_BoosterPack_3_list{list: &x.RaritiesPerPack} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.BoosterPack.dropRatiosPerPack": - if x.DropRatiosPerPack == nil { - x.DropRatiosPerPack = []uint64{} - } - value := &_BoosterPack_4_list{list: &x.DropRatiosPerPack} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.BoosterPack.setId": - panic(fmt.Errorf("field setId of message cardchain.cardchain.BoosterPack is not mutable")) - case "cardchain.cardchain.BoosterPack.timeStamp": - panic(fmt.Errorf("field timeStamp of message cardchain.cardchain.BoosterPack is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.BoosterPack")) - } - panic(fmt.Errorf("message cardchain.cardchain.BoosterPack 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_BoosterPack) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.BoosterPack.setId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.BoosterPack.timeStamp": - return protoreflect.ValueOfInt64(int64(0)) - case "cardchain.cardchain.BoosterPack.raritiesPerPack": - list := []uint64{} - return protoreflect.ValueOfList(&_BoosterPack_3_list{list: &list}) - case "cardchain.cardchain.BoosterPack.dropRatiosPerPack": - list := []uint64{} - return protoreflect.ValueOfList(&_BoosterPack_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.BoosterPack")) - } - panic(fmt.Errorf("message cardchain.cardchain.BoosterPack 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_BoosterPack) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.BoosterPack", 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_BoosterPack) 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_BoosterPack) 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_BoosterPack) 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_BoosterPack) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*BoosterPack) - 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.SetId != 0 { - n += 1 + runtime.Sov(uint64(x.SetId)) - } - if x.TimeStamp != 0 { - n += 1 + runtime.Sov(uint64(x.TimeStamp)) - } - if len(x.RaritiesPerPack) > 0 { - l = 0 - for _, e := range x.RaritiesPerPack { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l - } - if len(x.DropRatiosPerPack) > 0 { - l = 0 - for _, e := range x.DropRatiosPerPack { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + 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().(*BoosterPack) - 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.DropRatiosPerPack) > 0 { - var pksize2 int - for _, num := range x.DropRatiosPerPack { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.DropRatiosPerPack { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x22 - } - if len(x.RaritiesPerPack) > 0 { - var pksize4 int - for _, num := range x.RaritiesPerPack { - pksize4 += runtime.Sov(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num := range x.RaritiesPerPack { - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) - i-- - dAtA[i] = 0x1a - } - if x.TimeStamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TimeStamp)) - i-- - dAtA[i] = 0x10 - } - if x.SetId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.SetId)) - i-- - dAtA[i] = 0x8 - } - 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().(*BoosterPack) - 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: BoosterPack: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BoosterPack: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetId", wireType) - } - x.SetId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.SetId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimeStamp", wireType) - } - x.TimeStamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TimeStamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.RaritiesPerPack = append(x.RaritiesPerPack, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.RaritiesPerPack) == 0 { - x.RaritiesPerPack = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.RaritiesPerPack = append(x.RaritiesPerPack, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RaritiesPerPack", wireType) - } - case 4: - if wireType == 0 { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.DropRatiosPerPack = append(x.DropRatiosPerPack, v) - } else if wireType == 2 { - var packedLen 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++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - 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 - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.DropRatiosPerPack) == 0 { - x.DropRatiosPerPack = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v 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++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.DropRatiosPerPack = append(x.DropRatiosPerPack, v) - } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DropRatiosPerPack", wireType) - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_AirDrops protoreflect.MessageDescriptor - fd_AirDrops_vote protoreflect.FieldDescriptor - fd_AirDrops_create protoreflect.FieldDescriptor - fd_AirDrops_buy protoreflect.FieldDescriptor - fd_AirDrops_play protoreflect.FieldDescriptor - fd_AirDrops_user protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_user_proto_init() - md_AirDrops = File_cardchain_cardchain_user_proto.Messages().ByName("AirDrops") - fd_AirDrops_vote = md_AirDrops.Fields().ByName("vote") - fd_AirDrops_create = md_AirDrops.Fields().ByName("create") - fd_AirDrops_buy = md_AirDrops.Fields().ByName("buy") - fd_AirDrops_play = md_AirDrops.Fields().ByName("play") - fd_AirDrops_user = md_AirDrops.Fields().ByName("user") -} - -var _ protoreflect.Message = (*fastReflection_AirDrops)(nil) - -type fastReflection_AirDrops AirDrops - -func (x *AirDrops) ProtoReflect() protoreflect.Message { - return (*fastReflection_AirDrops)(x) -} - -func (x *AirDrops) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_user_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_AirDrops_messageType fastReflection_AirDrops_messageType -var _ protoreflect.MessageType = fastReflection_AirDrops_messageType{} - -type fastReflection_AirDrops_messageType struct{} - -func (x fastReflection_AirDrops_messageType) Zero() protoreflect.Message { - return (*fastReflection_AirDrops)(nil) -} -func (x fastReflection_AirDrops_messageType) New() protoreflect.Message { - return new(fastReflection_AirDrops) -} -func (x fastReflection_AirDrops_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AirDrops -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AirDrops) Descriptor() protoreflect.MessageDescriptor { - return md_AirDrops -} - -// 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_AirDrops) Type() protoreflect.MessageType { - return _fastReflection_AirDrops_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AirDrops) New() protoreflect.Message { - return new(fastReflection_AirDrops) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AirDrops) Interface() protoreflect.ProtoMessage { - return (*AirDrops)(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_AirDrops) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Vote != false { - value := protoreflect.ValueOfBool(x.Vote) - if !f(fd_AirDrops_vote, value) { - return - } - } - if x.Create != false { - value := protoreflect.ValueOfBool(x.Create) - if !f(fd_AirDrops_create, value) { - return - } - } - if x.Buy != false { - value := protoreflect.ValueOfBool(x.Buy) - if !f(fd_AirDrops_buy, value) { - return - } - } - if x.Play != false { - value := protoreflect.ValueOfBool(x.Play) - if !f(fd_AirDrops_play, value) { - return - } - } - if x.User != false { - value := protoreflect.ValueOfBool(x.User) - if !f(fd_AirDrops_user, 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_AirDrops) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.AirDrops.vote": - return x.Vote != false - case "cardchain.cardchain.AirDrops.create": - return x.Create != false - case "cardchain.cardchain.AirDrops.buy": - return x.Buy != false - case "cardchain.cardchain.AirDrops.play": - return x.Play != false - case "cardchain.cardchain.AirDrops.user": - return x.User != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AirDrops")) - } - panic(fmt.Errorf("message cardchain.cardchain.AirDrops 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_AirDrops) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.AirDrops.vote": - x.Vote = false - case "cardchain.cardchain.AirDrops.create": - x.Create = false - case "cardchain.cardchain.AirDrops.buy": - x.Buy = false - case "cardchain.cardchain.AirDrops.play": - x.Play = false - case "cardchain.cardchain.AirDrops.user": - x.User = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AirDrops")) - } - panic(fmt.Errorf("message cardchain.cardchain.AirDrops 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_AirDrops) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.AirDrops.vote": - value := x.Vote - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.AirDrops.create": - value := x.Create - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.AirDrops.buy": - value := x.Buy - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.AirDrops.play": - value := x.Play - return protoreflect.ValueOfBool(value) - case "cardchain.cardchain.AirDrops.user": - value := x.User - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AirDrops")) - } - panic(fmt.Errorf("message cardchain.cardchain.AirDrops 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_AirDrops) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.AirDrops.vote": - x.Vote = value.Bool() - case "cardchain.cardchain.AirDrops.create": - x.Create = value.Bool() - case "cardchain.cardchain.AirDrops.buy": - x.Buy = value.Bool() - case "cardchain.cardchain.AirDrops.play": - x.Play = value.Bool() - case "cardchain.cardchain.AirDrops.user": - x.User = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AirDrops")) - } - panic(fmt.Errorf("message cardchain.cardchain.AirDrops 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_AirDrops) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.AirDrops.vote": - panic(fmt.Errorf("field vote of message cardchain.cardchain.AirDrops is not mutable")) - case "cardchain.cardchain.AirDrops.create": - panic(fmt.Errorf("field create of message cardchain.cardchain.AirDrops is not mutable")) - case "cardchain.cardchain.AirDrops.buy": - panic(fmt.Errorf("field buy of message cardchain.cardchain.AirDrops is not mutable")) - case "cardchain.cardchain.AirDrops.play": - panic(fmt.Errorf("field play of message cardchain.cardchain.AirDrops is not mutable")) - case "cardchain.cardchain.AirDrops.user": - panic(fmt.Errorf("field user of message cardchain.cardchain.AirDrops is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AirDrops")) - } - panic(fmt.Errorf("message cardchain.cardchain.AirDrops 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_AirDrops) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.AirDrops.vote": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.AirDrops.create": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.AirDrops.buy": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.AirDrops.play": - return protoreflect.ValueOfBool(false) - case "cardchain.cardchain.AirDrops.user": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.AirDrops")) - } - panic(fmt.Errorf("message cardchain.cardchain.AirDrops 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_AirDrops) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.AirDrops", 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_AirDrops) 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_AirDrops) 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_AirDrops) 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_AirDrops) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AirDrops) - 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.Vote { - n += 2 - } - if x.Create { - n += 2 - } - if x.Buy { - n += 2 - } - if x.Play { - n += 2 - } - if x.User { - n += 2 - } - 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().(*AirDrops) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.User { - i-- - if x.User { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if x.Play { - i-- - if x.Play { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if x.Buy { - i-- - if x.Buy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if x.Create { - i-- - if x.Create { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if x.Vote { - i-- - if x.Vote { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - 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().(*AirDrops) - 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: AirDrops: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AirDrops: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Vote = bool(v != 0) - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Create", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Create = bool(v != 0) - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Buy", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Buy = bool(v != 0) - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Play", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Play = bool(v != 0) - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.User = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/user.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CouncilStatus int32 - -const ( - CouncilStatus_available CouncilStatus = 0 - CouncilStatus_unavailable CouncilStatus = 1 - CouncilStatus_openCouncil CouncilStatus = 2 - CouncilStatus_startedCouncil CouncilStatus = 3 -) - -// Enum value maps for CouncilStatus. -var ( - CouncilStatus_name = map[int32]string{ - 0: "available", - 1: "unavailable", - 2: "openCouncil", - 3: "startedCouncil", - } - CouncilStatus_value = map[string]int32{ - "available": 0, - "unavailable": 1, - "openCouncil": 2, - "startedCouncil": 3, - } -) - -func (x CouncilStatus) Enum() *CouncilStatus { - p := new(CouncilStatus) - *p = x - return p -} - -func (x CouncilStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CouncilStatus) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_user_proto_enumTypes[0].Descriptor() -} - -func (CouncilStatus) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_user_proto_enumTypes[0] -} - -func (x CouncilStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CouncilStatus.Descriptor instead. -func (CouncilStatus) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_user_proto_rawDescGZIP(), []int{0} -} - -type AirDrop int32 - -const ( - AirDrop_play AirDrop = 0 - AirDrop_vote AirDrop = 1 - AirDrop_create AirDrop = 2 - AirDrop_buy AirDrop = 3 - AirDrop_user AirDrop = 4 -) - -// Enum value maps for AirDrop. -var ( - AirDrop_name = map[int32]string{ - 0: "play", - 1: "vote", - 2: "create", - 3: "buy", - 4: "user", - } - AirDrop_value = map[string]int32{ - "play": 0, - "vote": 1, - "create": 2, - "buy": 3, - "user": 4, - } -) - -func (x AirDrop) Enum() *AirDrop { - p := new(AirDrop) - *p = x - return p -} - -func (x AirDrop) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AirDrop) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_user_proto_enumTypes[1].Descriptor() -} - -func (AirDrop) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_user_proto_enumTypes[1] -} - -func (x AirDrop) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AirDrop.Descriptor instead. -func (AirDrop) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_user_proto_rawDescGZIP(), []int{1} -} - -type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` - OwnedCardSchemes []uint64 `protobuf:"varint,2,rep,packed,name=ownedCardSchemes,proto3" json:"ownedCardSchemes,omitempty"` - OwnedPrototypes []uint64 `protobuf:"varint,3,rep,packed,name=ownedPrototypes,proto3" json:"ownedPrototypes,omitempty"` - Cards []uint64 `protobuf:"varint,4,rep,packed,name=cards,proto3" json:"cards,omitempty"` - CouncilStatus CouncilStatus `protobuf:"varint,6,opt,name=CouncilStatus,proto3,enum=cardchain.cardchain.CouncilStatus" json:"CouncilStatus,omitempty"` - ReportMatches bool `protobuf:"varint,7,opt,name=ReportMatches,proto3" json:"ReportMatches,omitempty"` - ProfileCard uint64 `protobuf:"varint,8,opt,name=profileCard,proto3" json:"profileCard,omitempty"` - AirDrops *AirDrops `protobuf:"bytes,9,opt,name=airDrops,proto3" json:"airDrops,omitempty"` - BoosterPacks []*BoosterPack `protobuf:"bytes,10,rep,name=boosterPacks,proto3" json:"boosterPacks,omitempty"` - Website string `protobuf:"bytes,11,opt,name=website,proto3" json:"website,omitempty"` - Biography string `protobuf:"bytes,12,opt,name=biography,proto3" json:"biography,omitempty"` - VotableCards []uint64 `protobuf:"varint,13,rep,packed,name=votableCards,proto3" json:"votableCards,omitempty"` - VotedCards []uint64 `protobuf:"varint,14,rep,packed,name=votedCards,proto3" json:"votedCards,omitempty"` - EarlyAccess *EarlyAccess `protobuf:"bytes,15,opt,name=earlyAccess,proto3" json:"earlyAccess,omitempty"` - OpenEncounters []uint64 `protobuf:"varint,16,rep,packed,name=OpenEncounters,proto3" json:"OpenEncounters,omitempty"` - WonEncounters []uint64 `protobuf:"varint,17,rep,packed,name=WonEncounters,proto3" json:"WonEncounters,omitempty"` -} - -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_user_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *User) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*User) ProtoMessage() {} - -// Deprecated: Use User.ProtoReflect.Descriptor instead. -func (*User) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_user_proto_rawDescGZIP(), []int{0} -} - -func (x *User) GetAlias() string { - if x != nil { - return x.Alias - } - return "" -} - -func (x *User) GetOwnedCardSchemes() []uint64 { - if x != nil { - return x.OwnedCardSchemes - } - return nil -} - -func (x *User) GetOwnedPrototypes() []uint64 { - if x != nil { - return x.OwnedPrototypes - } - return nil -} - -func (x *User) GetCards() []uint64 { - if x != nil { - return x.Cards - } - return nil -} - -func (x *User) GetCouncilStatus() CouncilStatus { - if x != nil { - return x.CouncilStatus - } - return CouncilStatus_available -} - -func (x *User) GetReportMatches() bool { - if x != nil { - return x.ReportMatches - } - return false -} - -func (x *User) GetProfileCard() uint64 { - if x != nil { - return x.ProfileCard - } - return 0 -} - -func (x *User) GetAirDrops() *AirDrops { - if x != nil { - return x.AirDrops - } - return nil -} - -func (x *User) GetBoosterPacks() []*BoosterPack { - if x != nil { - return x.BoosterPacks - } - return nil -} - -func (x *User) GetWebsite() string { - if x != nil { - return x.Website - } - return "" -} - -func (x *User) GetBiography() string { - if x != nil { - return x.Biography - } - return "" -} - -func (x *User) GetVotableCards() []uint64 { - if x != nil { - return x.VotableCards - } - return nil -} - -func (x *User) GetVotedCards() []uint64 { - if x != nil { - return x.VotedCards - } - return nil -} - -func (x *User) GetEarlyAccess() *EarlyAccess { - if x != nil { - return x.EarlyAccess - } - return nil -} - -func (x *User) GetOpenEncounters() []uint64 { - if x != nil { - return x.OpenEncounters - } - return nil -} - -func (x *User) GetWonEncounters() []uint64 { - if x != nil { - return x.WonEncounters - } - return nil -} - -type EarlyAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` - InvitedByUser string `protobuf:"bytes,2,opt,name=invitedByUser,proto3" json:"invitedByUser,omitempty"` - InvitedUser string `protobuf:"bytes,3,opt,name=invitedUser,proto3" json:"invitedUser,omitempty"` -} - -func (x *EarlyAccess) Reset() { - *x = EarlyAccess{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_user_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EarlyAccess) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EarlyAccess) ProtoMessage() {} - -// Deprecated: Use EarlyAccess.ProtoReflect.Descriptor instead. -func (*EarlyAccess) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_user_proto_rawDescGZIP(), []int{1} -} - -func (x *EarlyAccess) GetActive() bool { - if x != nil { - return x.Active - } - return false -} - -func (x *EarlyAccess) GetInvitedByUser() string { - if x != nil { - return x.InvitedByUser - } - return "" -} - -func (x *EarlyAccess) GetInvitedUser() string { - if x != nil { - return x.InvitedUser - } - return "" -} - -type BoosterPack struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SetId uint64 `protobuf:"varint,1,opt,name=setId,proto3" json:"setId,omitempty"` - TimeStamp int64 `protobuf:"varint,2,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"` - // How often the different rarities will appear in a BoosterPack - RaritiesPerPack []uint64 `protobuf:"varint,3,rep,packed,name=raritiesPerPack,proto3" json:"raritiesPerPack,omitempty"` - // The chances of the rare beeing a normal rare, an exceptional or a unique - DropRatiosPerPack []uint64 `protobuf:"varint,4,rep,packed,name=dropRatiosPerPack,proto3" json:"dropRatiosPerPack,omitempty"` -} - -func (x *BoosterPack) Reset() { - *x = BoosterPack{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_user_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BoosterPack) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BoosterPack) ProtoMessage() {} - -// Deprecated: Use BoosterPack.ProtoReflect.Descriptor instead. -func (*BoosterPack) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_user_proto_rawDescGZIP(), []int{2} -} - -func (x *BoosterPack) GetSetId() uint64 { - if x != nil { - return x.SetId - } - return 0 -} - -func (x *BoosterPack) GetTimeStamp() int64 { - if x != nil { - return x.TimeStamp - } - return 0 -} - -func (x *BoosterPack) GetRaritiesPerPack() []uint64 { - if x != nil { - return x.RaritiesPerPack - } - return nil -} - -func (x *BoosterPack) GetDropRatiosPerPack() []uint64 { - if x != nil { - return x.DropRatiosPerPack - } - return nil -} - -type AirDrops struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vote bool `protobuf:"varint,1,opt,name=vote,proto3" json:"vote,omitempty"` - Create bool `protobuf:"varint,2,opt,name=create,proto3" json:"create,omitempty"` - Buy bool `protobuf:"varint,3,opt,name=buy,proto3" json:"buy,omitempty"` - Play bool `protobuf:"varint,4,opt,name=play,proto3" json:"play,omitempty"` - User bool `protobuf:"varint,5,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *AirDrops) Reset() { - *x = AirDrops{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_user_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AirDrops) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AirDrops) ProtoMessage() {} - -// Deprecated: Use AirDrops.ProtoReflect.Descriptor instead. -func (*AirDrops) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_user_proto_rawDescGZIP(), []int{3} -} - -func (x *AirDrops) GetVote() bool { - if x != nil { - return x.Vote - } - return false -} - -func (x *AirDrops) GetCreate() bool { - if x != nil { - return x.Create - } - return false -} - -func (x *AirDrops) GetBuy() bool { - if x != nil { - return x.Buy - } - return false -} - -func (x *AirDrops) GetPlay() bool { - if x != nil { - return x.Play - } - return false -} - -func (x *AirDrops) GetUser() bool { - if x != nil { - return x.User - } - return false -} - -var File_cardchain_cardchain_user_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_user_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x05, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, - 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x6f, 0x77, 0x6e, 0x65, 0x64, 0x43, - 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, - 0x52, 0x10, 0x6f, 0x77, 0x6e, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x6f, 0x77, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0f, 0x6f, 0x77, 0x6e, - 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x61, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x05, 0x63, 0x61, 0x72, - 0x64, 0x73, 0x12, 0x48, 0x0a, 0x0d, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x43, - 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0d, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x61, 0x72, - 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x43, 0x61, 0x72, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x61, 0x69, 0x72, 0x44, 0x72, 0x6f, 0x70, 0x73, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x69, 0x72, - 0x44, 0x72, 0x6f, 0x70, 0x73, 0x52, 0x08, 0x61, 0x69, 0x72, 0x44, 0x72, 0x6f, 0x70, 0x73, 0x12, - 0x44, 0x0a, 0x0c, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x73, 0x18, - 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x42, 0x6f, 0x6f, 0x73, - 0x74, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, - 0x50, 0x61, 0x63, 0x6b, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x62, 0x69, 0x6f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x79, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x62, 0x69, 0x6f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x79, 0x12, 0x22, 0x0a, - 0x0c, 0x76, 0x6f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x72, 0x64, 0x73, 0x18, 0x0d, 0x20, - 0x03, 0x28, 0x04, 0x52, 0x0c, 0x76, 0x6f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x72, 0x64, - 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, 0x73, 0x18, - 0x0e, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0a, 0x76, 0x6f, 0x74, 0x65, 0x64, 0x43, 0x61, 0x72, 0x64, - 0x73, 0x12, 0x42, 0x0a, 0x0b, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x45, 0x61, 0x72, - 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x0b, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x6e, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0e, 0x4f, - 0x70, 0x65, 0x6e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x24, 0x0a, - 0x0d, 0x57, 0x6f, 0x6e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x11, - 0x20, 0x03, 0x28, 0x04, 0x52, 0x0d, 0x57, 0x6f, 0x6e, 0x45, 0x6e, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x73, 0x22, 0x6d, 0x0a, 0x0b, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, - 0x76, 0x69, 0x74, 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, - 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x55, 0x73, - 0x65, 0x72, 0x22, 0x99, 0x01, 0x0a, 0x0b, 0x42, 0x6f, 0x6f, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, - 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x53, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x61, 0x72, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, - 0x0f, 0x72, 0x61, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, - 0x12, 0x2c, 0x0a, 0x11, 0x64, 0x72, 0x6f, 0x70, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x50, 0x65, - 0x72, 0x50, 0x61, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x11, 0x64, 0x72, 0x6f, - 0x70, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x22, 0x70, - 0x0a, 0x08, 0x41, 0x69, 0x72, 0x44, 0x72, 0x6f, 0x70, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x6f, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x75, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x03, 0x62, 0x75, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x79, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, - 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x2a, 0x54, 0x0a, 0x0d, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x00, - 0x12, 0x0f, 0x0a, 0x0b, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x10, - 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x63, 0x69, 0x6c, - 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x75, - 0x6e, 0x63, 0x69, 0x6c, 0x10, 0x03, 0x2a, 0x3c, 0x0a, 0x07, 0x41, 0x69, 0x72, 0x44, 0x72, 0x6f, - 0x70, 0x12, 0x08, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x79, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x76, - 0x6f, 0x74, 0x65, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, - 0x02, 0x12, 0x07, 0x0a, 0x03, 0x62, 0x75, 0x79, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x10, 0x04, 0x42, 0xd1, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x42, 0x09, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, - 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, - 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, - 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_user_proto_rawDescOnce sync.Once - file_cardchain_cardchain_user_proto_rawDescData = file_cardchain_cardchain_user_proto_rawDesc -) - -func file_cardchain_cardchain_user_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_user_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_user_proto_rawDescData) - }) - return file_cardchain_cardchain_user_proto_rawDescData -} - -var file_cardchain_cardchain_user_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_cardchain_cardchain_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cardchain_cardchain_user_proto_goTypes = []interface{}{ - (CouncilStatus)(0), // 0: cardchain.cardchain.CouncilStatus - (AirDrop)(0), // 1: cardchain.cardchain.AirDrop - (*User)(nil), // 2: cardchain.cardchain.User - (*EarlyAccess)(nil), // 3: cardchain.cardchain.EarlyAccess - (*BoosterPack)(nil), // 4: cardchain.cardchain.BoosterPack - (*AirDrops)(nil), // 5: cardchain.cardchain.AirDrops -} -var file_cardchain_cardchain_user_proto_depIdxs = []int32{ - 0, // 0: cardchain.cardchain.User.CouncilStatus:type_name -> cardchain.cardchain.CouncilStatus - 5, // 1: cardchain.cardchain.User.airDrops:type_name -> cardchain.cardchain.AirDrops - 4, // 2: cardchain.cardchain.User.boosterPacks:type_name -> cardchain.cardchain.BoosterPack - 3, // 3: cardchain.cardchain.User.earlyAccess:type_name -> cardchain.cardchain.EarlyAccess - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_user_proto_init() } -func file_cardchain_cardchain_user_proto_init() { - if File_cardchain_cardchain_user_proto != nil { - return - } - file_cardchain_cardchain_voting_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EarlyAccess); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoosterPack); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AirDrops); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_user_proto_rawDesc, - NumEnums: 2, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_user_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_user_proto_depIdxs, - EnumInfos: file_cardchain_cardchain_user_proto_enumTypes, - MessageInfos: file_cardchain_cardchain_user_proto_msgTypes, - }.Build() - File_cardchain_cardchain_user_proto = out.File - file_cardchain_cardchain_user_proto_rawDesc = nil - file_cardchain_cardchain_user_proto_goTypes = nil - file_cardchain_cardchain_user_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/voting.pulsar.go b/api/cardchain/cardchain/voting.pulsar.go deleted file mode 100644 index 5b1dc8f6..00000000 --- a/api/cardchain/cardchain/voting.pulsar.go +++ /dev/null @@ -1,1437 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_VotingResult protoreflect.MessageDescriptor - fd_VotingResult_cardId protoreflect.FieldDescriptor - fd_VotingResult_fairEnoughVotes protoreflect.FieldDescriptor - fd_VotingResult_overpoweredVotes protoreflect.FieldDescriptor - fd_VotingResult_underpoweredVotes protoreflect.FieldDescriptor - fd_VotingResult_inappropriateVotes protoreflect.FieldDescriptor - fd_VotingResult_result protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_voting_proto_init() - md_VotingResult = File_cardchain_cardchain_voting_proto.Messages().ByName("VotingResult") - fd_VotingResult_cardId = md_VotingResult.Fields().ByName("cardId") - fd_VotingResult_fairEnoughVotes = md_VotingResult.Fields().ByName("fairEnoughVotes") - fd_VotingResult_overpoweredVotes = md_VotingResult.Fields().ByName("overpoweredVotes") - fd_VotingResult_underpoweredVotes = md_VotingResult.Fields().ByName("underpoweredVotes") - fd_VotingResult_inappropriateVotes = md_VotingResult.Fields().ByName("inappropriateVotes") - fd_VotingResult_result = md_VotingResult.Fields().ByName("result") -} - -var _ protoreflect.Message = (*fastReflection_VotingResult)(nil) - -type fastReflection_VotingResult VotingResult - -func (x *VotingResult) ProtoReflect() protoreflect.Message { - return (*fastReflection_VotingResult)(x) -} - -func (x *VotingResult) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_voting_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_VotingResult_messageType fastReflection_VotingResult_messageType -var _ protoreflect.MessageType = fastReflection_VotingResult_messageType{} - -type fastReflection_VotingResult_messageType struct{} - -func (x fastReflection_VotingResult_messageType) Zero() protoreflect.Message { - return (*fastReflection_VotingResult)(nil) -} -func (x fastReflection_VotingResult_messageType) New() protoreflect.Message { - return new(fastReflection_VotingResult) -} -func (x fastReflection_VotingResult_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_VotingResult -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_VotingResult) Descriptor() protoreflect.MessageDescriptor { - return md_VotingResult -} - -// 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_VotingResult) Type() protoreflect.MessageType { - return _fastReflection_VotingResult_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_VotingResult) New() protoreflect.Message { - return new(fastReflection_VotingResult) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_VotingResult) Interface() protoreflect.ProtoMessage { - return (*VotingResult)(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_VotingResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_VotingResult_cardId, value) { - return - } - } - if x.FairEnoughVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.FairEnoughVotes) - if !f(fd_VotingResult_fairEnoughVotes, value) { - return - } - } - if x.OverpoweredVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.OverpoweredVotes) - if !f(fd_VotingResult_overpoweredVotes, value) { - return - } - } - if x.UnderpoweredVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.UnderpoweredVotes) - if !f(fd_VotingResult_underpoweredVotes, value) { - return - } - } - if x.InappropriateVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.InappropriateVotes) - if !f(fd_VotingResult_inappropriateVotes, value) { - return - } - } - if x.Result != "" { - value := protoreflect.ValueOfString(x.Result) - if !f(fd_VotingResult_result, 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_VotingResult) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.VotingResult.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.VotingResult.fairEnoughVotes": - return x.FairEnoughVotes != uint64(0) - case "cardchain.cardchain.VotingResult.overpoweredVotes": - return x.OverpoweredVotes != uint64(0) - case "cardchain.cardchain.VotingResult.underpoweredVotes": - return x.UnderpoweredVotes != uint64(0) - case "cardchain.cardchain.VotingResult.inappropriateVotes": - return x.InappropriateVotes != uint64(0) - case "cardchain.cardchain.VotingResult.result": - return x.Result != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResult")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResult 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_VotingResult) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.VotingResult.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.VotingResult.fairEnoughVotes": - x.FairEnoughVotes = uint64(0) - case "cardchain.cardchain.VotingResult.overpoweredVotes": - x.OverpoweredVotes = uint64(0) - case "cardchain.cardchain.VotingResult.underpoweredVotes": - x.UnderpoweredVotes = uint64(0) - case "cardchain.cardchain.VotingResult.inappropriateVotes": - x.InappropriateVotes = uint64(0) - case "cardchain.cardchain.VotingResult.result": - x.Result = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResult")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResult 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_VotingResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.VotingResult.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResult.fairEnoughVotes": - value := x.FairEnoughVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResult.overpoweredVotes": - value := x.OverpoweredVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResult.underpoweredVotes": - value := x.UnderpoweredVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResult.inappropriateVotes": - value := x.InappropriateVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResult.result": - value := x.Result - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResult")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResult 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_VotingResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.VotingResult.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.VotingResult.fairEnoughVotes": - x.FairEnoughVotes = value.Uint() - case "cardchain.cardchain.VotingResult.overpoweredVotes": - x.OverpoweredVotes = value.Uint() - case "cardchain.cardchain.VotingResult.underpoweredVotes": - x.UnderpoweredVotes = value.Uint() - case "cardchain.cardchain.VotingResult.inappropriateVotes": - x.InappropriateVotes = value.Uint() - case "cardchain.cardchain.VotingResult.result": - x.Result = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResult")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResult 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_VotingResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.VotingResult.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.VotingResult is not mutable")) - case "cardchain.cardchain.VotingResult.fairEnoughVotes": - panic(fmt.Errorf("field fairEnoughVotes of message cardchain.cardchain.VotingResult is not mutable")) - case "cardchain.cardchain.VotingResult.overpoweredVotes": - panic(fmt.Errorf("field overpoweredVotes of message cardchain.cardchain.VotingResult is not mutable")) - case "cardchain.cardchain.VotingResult.underpoweredVotes": - panic(fmt.Errorf("field underpoweredVotes of message cardchain.cardchain.VotingResult is not mutable")) - case "cardchain.cardchain.VotingResult.inappropriateVotes": - panic(fmt.Errorf("field inappropriateVotes of message cardchain.cardchain.VotingResult is not mutable")) - case "cardchain.cardchain.VotingResult.result": - panic(fmt.Errorf("field result of message cardchain.cardchain.VotingResult is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResult")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResult 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_VotingResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.VotingResult.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResult.fairEnoughVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResult.overpoweredVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResult.underpoweredVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResult.inappropriateVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResult.result": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResult")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResult 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_VotingResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.VotingResult", 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_VotingResult) 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_VotingResult) 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_VotingResult) 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_VotingResult) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*VotingResult) - 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.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - if x.FairEnoughVotes != 0 { - n += 1 + runtime.Sov(uint64(x.FairEnoughVotes)) - } - if x.OverpoweredVotes != 0 { - n += 1 + runtime.Sov(uint64(x.OverpoweredVotes)) - } - if x.UnderpoweredVotes != 0 { - n += 1 + runtime.Sov(uint64(x.UnderpoweredVotes)) - } - if x.InappropriateVotes != 0 { - n += 1 + runtime.Sov(uint64(x.InappropriateVotes)) - } - l = len(x.Result) - 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().(*VotingResult) - 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.Result) > 0 { - i -= len(x.Result) - copy(dAtA[i:], x.Result) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Result))) - i-- - dAtA[i] = 0x32 - } - if x.InappropriateVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.InappropriateVotes)) - i-- - dAtA[i] = 0x28 - } - if x.UnderpoweredVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.UnderpoweredVotes)) - i-- - dAtA[i] = 0x20 - } - if x.OverpoweredVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.OverpoweredVotes)) - i-- - dAtA[i] = 0x18 - } - if x.FairEnoughVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.FairEnoughVotes)) - i-- - dAtA[i] = 0x10 - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x8 - } - 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().(*VotingResult) - 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: VotingResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VotingResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FairEnoughVotes", wireType) - } - x.FairEnoughVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.FairEnoughVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OverpoweredVotes", wireType) - } - x.OverpoweredVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.OverpoweredVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnderpoweredVotes", wireType) - } - x.UnderpoweredVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.UnderpoweredVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InappropriateVotes", wireType) - } - x.InappropriateVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.InappropriateVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Result", 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.Result = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_SingleVote protoreflect.MessageDescriptor - fd_SingleVote_cardId protoreflect.FieldDescriptor - fd_SingleVote_voteType protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_voting_proto_init() - md_SingleVote = File_cardchain_cardchain_voting_proto.Messages().ByName("SingleVote") - fd_SingleVote_cardId = md_SingleVote.Fields().ByName("cardId") - fd_SingleVote_voteType = md_SingleVote.Fields().ByName("voteType") -} - -var _ protoreflect.Message = (*fastReflection_SingleVote)(nil) - -type fastReflection_SingleVote SingleVote - -func (x *SingleVote) ProtoReflect() protoreflect.Message { - return (*fastReflection_SingleVote)(x) -} - -func (x *SingleVote) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_voting_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_SingleVote_messageType fastReflection_SingleVote_messageType -var _ protoreflect.MessageType = fastReflection_SingleVote_messageType{} - -type fastReflection_SingleVote_messageType struct{} - -func (x fastReflection_SingleVote_messageType) Zero() protoreflect.Message { - return (*fastReflection_SingleVote)(nil) -} -func (x fastReflection_SingleVote_messageType) New() protoreflect.Message { - return new(fastReflection_SingleVote) -} -func (x fastReflection_SingleVote_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SingleVote -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_SingleVote) Descriptor() protoreflect.MessageDescriptor { - return md_SingleVote -} - -// 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_SingleVote) Type() protoreflect.MessageType { - return _fastReflection_SingleVote_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_SingleVote) New() protoreflect.Message { - return new(fastReflection_SingleVote) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_SingleVote) Interface() protoreflect.ProtoMessage { - return (*SingleVote)(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_SingleVote) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.CardId != uint64(0) { - value := protoreflect.ValueOfUint64(x.CardId) - if !f(fd_SingleVote_cardId, value) { - return - } - } - if x.VoteType != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.VoteType)) - if !f(fd_SingleVote_voteType, 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_SingleVote) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.SingleVote.cardId": - return x.CardId != uint64(0) - case "cardchain.cardchain.SingleVote.voteType": - return x.VoteType != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SingleVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.SingleVote 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_SingleVote) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.SingleVote.cardId": - x.CardId = uint64(0) - case "cardchain.cardchain.SingleVote.voteType": - x.VoteType = 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SingleVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.SingleVote 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_SingleVote) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.SingleVote.cardId": - value := x.CardId - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.SingleVote.voteType": - value := x.VoteType - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SingleVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.SingleVote 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_SingleVote) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.SingleVote.cardId": - x.CardId = value.Uint() - case "cardchain.cardchain.SingleVote.voteType": - x.VoteType = (VoteType)(value.Enum()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SingleVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.SingleVote 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_SingleVote) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.SingleVote.cardId": - panic(fmt.Errorf("field cardId of message cardchain.cardchain.SingleVote is not mutable")) - case "cardchain.cardchain.SingleVote.voteType": - panic(fmt.Errorf("field voteType of message cardchain.cardchain.SingleVote is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SingleVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.SingleVote 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_SingleVote) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.SingleVote.cardId": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.SingleVote.voteType": - return protoreflect.ValueOfEnum(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.SingleVote")) - } - panic(fmt.Errorf("message cardchain.cardchain.SingleVote 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_SingleVote) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.SingleVote", 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_SingleVote) 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_SingleVote) 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_SingleVote) 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_SingleVote) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SingleVote) - 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.CardId != 0 { - n += 1 + runtime.Sov(uint64(x.CardId)) - } - if x.VoteType != 0 { - n += 1 + runtime.Sov(uint64(x.VoteType)) - } - 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().(*SingleVote) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.VoteType != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.VoteType)) - i-- - dAtA[i] = 0x10 - } - if x.CardId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.CardId)) - i-- - dAtA[i] = 0x8 - } - 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().(*SingleVote) - 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: SingleVote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SingleVote: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardId", wireType) - } - x.CardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.CardId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VoteType", wireType) - } - x.VoteType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.VoteType |= VoteType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/cardchain/voting.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type VoteType int32 - -const ( - VoteType_fairEnough VoteType = 0 - VoteType_inappropriate VoteType = 1 - VoteType_overpowered VoteType = 2 - VoteType_underpowered VoteType = 3 -) - -// Enum value maps for VoteType. -var ( - VoteType_name = map[int32]string{ - 0: "fairEnough", - 1: "inappropriate", - 2: "overpowered", - 3: "underpowered", - } - VoteType_value = map[string]int32{ - "fairEnough": 0, - "inappropriate": 1, - "overpowered": 2, - "underpowered": 3, - } -) - -func (x VoteType) Enum() *VoteType { - p := new(VoteType) - *p = x - return p -} - -func (x VoteType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (VoteType) Descriptor() protoreflect.EnumDescriptor { - return file_cardchain_cardchain_voting_proto_enumTypes[0].Descriptor() -} - -func (VoteType) Type() protoreflect.EnumType { - return &file_cardchain_cardchain_voting_proto_enumTypes[0] -} - -func (x VoteType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use VoteType.Descriptor instead. -func (VoteType) EnumDescriptor() ([]byte, []int) { - return file_cardchain_cardchain_voting_proto_rawDescGZIP(), []int{0} -} - -type VotingResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` - FairEnoughVotes uint64 `protobuf:"varint,2,opt,name=fairEnoughVotes,proto3" json:"fairEnoughVotes,omitempty"` - OverpoweredVotes uint64 `protobuf:"varint,3,opt,name=overpoweredVotes,proto3" json:"overpoweredVotes,omitempty"` - UnderpoweredVotes uint64 `protobuf:"varint,4,opt,name=underpoweredVotes,proto3" json:"underpoweredVotes,omitempty"` - InappropriateVotes uint64 `protobuf:"varint,5,opt,name=inappropriateVotes,proto3" json:"inappropriateVotes,omitempty"` - Result string `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` -} - -func (x *VotingResult) Reset() { - *x = VotingResult{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_voting_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VotingResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VotingResult) ProtoMessage() {} - -// Deprecated: Use VotingResult.ProtoReflect.Descriptor instead. -func (*VotingResult) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_voting_proto_rawDescGZIP(), []int{0} -} - -func (x *VotingResult) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *VotingResult) GetFairEnoughVotes() uint64 { - if x != nil { - return x.FairEnoughVotes - } - return 0 -} - -func (x *VotingResult) GetOverpoweredVotes() uint64 { - if x != nil { - return x.OverpoweredVotes - } - return 0 -} - -func (x *VotingResult) GetUnderpoweredVotes() uint64 { - if x != nil { - return x.UnderpoweredVotes - } - return 0 -} - -func (x *VotingResult) GetInappropriateVotes() uint64 { - if x != nil { - return x.InappropriateVotes - } - return 0 -} - -func (x *VotingResult) GetResult() string { - if x != nil { - return x.Result - } - return "" -} - -type SingleVote struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CardId uint64 `protobuf:"varint,1,opt,name=cardId,proto3" json:"cardId,omitempty"` - VoteType VoteType `protobuf:"varint,2,opt,name=voteType,proto3,enum=cardchain.cardchain.VoteType" json:"voteType,omitempty"` -} - -func (x *SingleVote) Reset() { - *x = SingleVote{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_voting_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SingleVote) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SingleVote) ProtoMessage() {} - -// Deprecated: Use SingleVote.ProtoReflect.Descriptor instead. -func (*SingleVote) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_voting_proto_rawDescGZIP(), []int{1} -} - -func (x *SingleVote) GetCardId() uint64 { - if x != nil { - return x.CardId - } - return 0 -} - -func (x *SingleVote) GetVoteType() VoteType { - if x != nil { - return x.VoteType - } - return VoteType_fairEnough -} - -var File_cardchain_cardchain_voting_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_voting_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x22, 0xf2, 0x01, 0x0a, 0x0c, 0x56, 0x6f, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x49, 0x64, - 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x72, 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x56, 0x6f, - 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x66, 0x61, 0x69, 0x72, 0x45, - 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x6f, 0x76, - 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6f, 0x76, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, - 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x11, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x6e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x70, - 0x72, 0x69, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x12, 0x69, 0x6e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x56, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5f, 0x0a, 0x0a, - 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x76, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x08, 0x76, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2a, 0x50, 0x0a, - 0x08, 0x56, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x66, 0x61, 0x69, - 0x72, 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x69, 0x6e, 0x61, - 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, - 0x6f, 0x76, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x10, 0x02, 0x12, 0x10, 0x0a, - 0x0c, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x10, 0x03, 0x42, - 0xd3, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0b, 0x56, 0x6f, 0x74, - 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, - 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, - 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x1f, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_voting_proto_rawDescOnce sync.Once - file_cardchain_cardchain_voting_proto_rawDescData = file_cardchain_cardchain_voting_proto_rawDesc -) - -func file_cardchain_cardchain_voting_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_voting_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_voting_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_voting_proto_rawDescData) - }) - return file_cardchain_cardchain_voting_proto_rawDescData -} - -var file_cardchain_cardchain_voting_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cardchain_cardchain_voting_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cardchain_cardchain_voting_proto_goTypes = []interface{}{ - (VoteType)(0), // 0: cardchain.cardchain.VoteType - (*VotingResult)(nil), // 1: cardchain.cardchain.VotingResult - (*SingleVote)(nil), // 2: cardchain.cardchain.SingleVote -} -var file_cardchain_cardchain_voting_proto_depIdxs = []int32{ - 0, // 0: cardchain.cardchain.SingleVote.voteType:type_name -> cardchain.cardchain.VoteType - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_voting_proto_init() } -func file_cardchain_cardchain_voting_proto_init() { - if File_cardchain_cardchain_voting_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_voting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VotingResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_cardchain_voting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SingleVote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_voting_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_voting_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_voting_proto_depIdxs, - EnumInfos: file_cardchain_cardchain_voting_proto_enumTypes, - MessageInfos: file_cardchain_cardchain_voting_proto_msgTypes, - }.Build() - File_cardchain_cardchain_voting_proto = out.File - file_cardchain_cardchain_voting_proto_rawDesc = nil - file_cardchain_cardchain_voting_proto_goTypes = nil - file_cardchain_cardchain_voting_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/voting_results.pulsar.go b/api/cardchain/cardchain/voting_results.pulsar.go deleted file mode 100644 index 6ba75066..00000000 --- a/api/cardchain/cardchain/voting_results.pulsar.go +++ /dev/null @@ -1,1021 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_VotingResults_6_list)(nil) - -type _VotingResults_6_list struct { - list *[]*VotingResult -} - -func (x *_VotingResults_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_VotingResults_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_VotingResults_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*VotingResult) - (*x.list)[i] = concreteValue -} - -func (x *_VotingResults_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*VotingResult) - *x.list = append(*x.list, concreteValue) -} - -func (x *_VotingResults_6_list) AppendMutable() protoreflect.Value { - v := new(VotingResult) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_VotingResults_6_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_VotingResults_6_list) NewElement() protoreflect.Value { - v := new(VotingResult) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_VotingResults_6_list) IsValid() bool { - return x.list != nil -} - -var ( - md_VotingResults protoreflect.MessageDescriptor - fd_VotingResults_totalVotes protoreflect.FieldDescriptor - fd_VotingResults_totalFairEnoughVotes protoreflect.FieldDescriptor - fd_VotingResults_totalOverpoweredVotes protoreflect.FieldDescriptor - fd_VotingResults_totalUnderpoweredVotes protoreflect.FieldDescriptor - fd_VotingResults_totalInappropriateVotes protoreflect.FieldDescriptor - fd_VotingResults_cardResults protoreflect.FieldDescriptor - fd_VotingResults_notes protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_voting_results_proto_init() - md_VotingResults = File_cardchain_cardchain_voting_results_proto.Messages().ByName("VotingResults") - fd_VotingResults_totalVotes = md_VotingResults.Fields().ByName("totalVotes") - fd_VotingResults_totalFairEnoughVotes = md_VotingResults.Fields().ByName("totalFairEnoughVotes") - fd_VotingResults_totalOverpoweredVotes = md_VotingResults.Fields().ByName("totalOverpoweredVotes") - fd_VotingResults_totalUnderpoweredVotes = md_VotingResults.Fields().ByName("totalUnderpoweredVotes") - fd_VotingResults_totalInappropriateVotes = md_VotingResults.Fields().ByName("totalInappropriateVotes") - fd_VotingResults_cardResults = md_VotingResults.Fields().ByName("cardResults") - fd_VotingResults_notes = md_VotingResults.Fields().ByName("notes") -} - -var _ protoreflect.Message = (*fastReflection_VotingResults)(nil) - -type fastReflection_VotingResults VotingResults - -func (x *VotingResults) ProtoReflect() protoreflect.Message { - return (*fastReflection_VotingResults)(x) -} - -func (x *VotingResults) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_voting_results_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_VotingResults_messageType fastReflection_VotingResults_messageType -var _ protoreflect.MessageType = fastReflection_VotingResults_messageType{} - -type fastReflection_VotingResults_messageType struct{} - -func (x fastReflection_VotingResults_messageType) Zero() protoreflect.Message { - return (*fastReflection_VotingResults)(nil) -} -func (x fastReflection_VotingResults_messageType) New() protoreflect.Message { - return new(fastReflection_VotingResults) -} -func (x fastReflection_VotingResults_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_VotingResults -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_VotingResults) Descriptor() protoreflect.MessageDescriptor { - return md_VotingResults -} - -// 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_VotingResults) Type() protoreflect.MessageType { - return _fastReflection_VotingResults_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_VotingResults) New() protoreflect.Message { - return new(fastReflection_VotingResults) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_VotingResults) Interface() protoreflect.ProtoMessage { - return (*VotingResults)(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_VotingResults) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TotalVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.TotalVotes) - if !f(fd_VotingResults_totalVotes, value) { - return - } - } - if x.TotalFairEnoughVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.TotalFairEnoughVotes) - if !f(fd_VotingResults_totalFairEnoughVotes, value) { - return - } - } - if x.TotalOverpoweredVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.TotalOverpoweredVotes) - if !f(fd_VotingResults_totalOverpoweredVotes, value) { - return - } - } - if x.TotalUnderpoweredVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.TotalUnderpoweredVotes) - if !f(fd_VotingResults_totalUnderpoweredVotes, value) { - return - } - } - if x.TotalInappropriateVotes != uint64(0) { - value := protoreflect.ValueOfUint64(x.TotalInappropriateVotes) - if !f(fd_VotingResults_totalInappropriateVotes, value) { - return - } - } - if len(x.CardResults) != 0 { - value := protoreflect.ValueOfList(&_VotingResults_6_list{list: &x.CardResults}) - if !f(fd_VotingResults_cardResults, value) { - return - } - } - if x.Notes != "" { - value := protoreflect.ValueOfString(x.Notes) - if !f(fd_VotingResults_notes, 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_VotingResults) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.VotingResults.totalVotes": - return x.TotalVotes != uint64(0) - case "cardchain.cardchain.VotingResults.totalFairEnoughVotes": - return x.TotalFairEnoughVotes != uint64(0) - case "cardchain.cardchain.VotingResults.totalOverpoweredVotes": - return x.TotalOverpoweredVotes != uint64(0) - case "cardchain.cardchain.VotingResults.totalUnderpoweredVotes": - return x.TotalUnderpoweredVotes != uint64(0) - case "cardchain.cardchain.VotingResults.totalInappropriateVotes": - return x.TotalInappropriateVotes != uint64(0) - case "cardchain.cardchain.VotingResults.cardResults": - return len(x.CardResults) != 0 - case "cardchain.cardchain.VotingResults.notes": - return x.Notes != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResults")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResults 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_VotingResults) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.VotingResults.totalVotes": - x.TotalVotes = uint64(0) - case "cardchain.cardchain.VotingResults.totalFairEnoughVotes": - x.TotalFairEnoughVotes = uint64(0) - case "cardchain.cardchain.VotingResults.totalOverpoweredVotes": - x.TotalOverpoweredVotes = uint64(0) - case "cardchain.cardchain.VotingResults.totalUnderpoweredVotes": - x.TotalUnderpoweredVotes = uint64(0) - case "cardchain.cardchain.VotingResults.totalInappropriateVotes": - x.TotalInappropriateVotes = uint64(0) - case "cardchain.cardchain.VotingResults.cardResults": - x.CardResults = nil - case "cardchain.cardchain.VotingResults.notes": - x.Notes = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResults")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResults 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_VotingResults) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.VotingResults.totalVotes": - value := x.TotalVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResults.totalFairEnoughVotes": - value := x.TotalFairEnoughVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResults.totalOverpoweredVotes": - value := x.TotalOverpoweredVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResults.totalUnderpoweredVotes": - value := x.TotalUnderpoweredVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResults.totalInappropriateVotes": - value := x.TotalInappropriateVotes - return protoreflect.ValueOfUint64(value) - case "cardchain.cardchain.VotingResults.cardResults": - if len(x.CardResults) == 0 { - return protoreflect.ValueOfList(&_VotingResults_6_list{}) - } - listValue := &_VotingResults_6_list{list: &x.CardResults} - return protoreflect.ValueOfList(listValue) - case "cardchain.cardchain.VotingResults.notes": - value := x.Notes - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResults")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResults 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_VotingResults) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.VotingResults.totalVotes": - x.TotalVotes = value.Uint() - case "cardchain.cardchain.VotingResults.totalFairEnoughVotes": - x.TotalFairEnoughVotes = value.Uint() - case "cardchain.cardchain.VotingResults.totalOverpoweredVotes": - x.TotalOverpoweredVotes = value.Uint() - case "cardchain.cardchain.VotingResults.totalUnderpoweredVotes": - x.TotalUnderpoweredVotes = value.Uint() - case "cardchain.cardchain.VotingResults.totalInappropriateVotes": - x.TotalInappropriateVotes = value.Uint() - case "cardchain.cardchain.VotingResults.cardResults": - lv := value.List() - clv := lv.(*_VotingResults_6_list) - x.CardResults = *clv.list - case "cardchain.cardchain.VotingResults.notes": - x.Notes = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResults")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResults 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_VotingResults) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.VotingResults.cardResults": - if x.CardResults == nil { - x.CardResults = []*VotingResult{} - } - value := &_VotingResults_6_list{list: &x.CardResults} - return protoreflect.ValueOfList(value) - case "cardchain.cardchain.VotingResults.totalVotes": - panic(fmt.Errorf("field totalVotes of message cardchain.cardchain.VotingResults is not mutable")) - case "cardchain.cardchain.VotingResults.totalFairEnoughVotes": - panic(fmt.Errorf("field totalFairEnoughVotes of message cardchain.cardchain.VotingResults is not mutable")) - case "cardchain.cardchain.VotingResults.totalOverpoweredVotes": - panic(fmt.Errorf("field totalOverpoweredVotes of message cardchain.cardchain.VotingResults is not mutable")) - case "cardchain.cardchain.VotingResults.totalUnderpoweredVotes": - panic(fmt.Errorf("field totalUnderpoweredVotes of message cardchain.cardchain.VotingResults is not mutable")) - case "cardchain.cardchain.VotingResults.totalInappropriateVotes": - panic(fmt.Errorf("field totalInappropriateVotes of message cardchain.cardchain.VotingResults is not mutable")) - case "cardchain.cardchain.VotingResults.notes": - panic(fmt.Errorf("field notes of message cardchain.cardchain.VotingResults is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResults")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResults 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_VotingResults) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.VotingResults.totalVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResults.totalFairEnoughVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResults.totalOverpoweredVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResults.totalUnderpoweredVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResults.totalInappropriateVotes": - return protoreflect.ValueOfUint64(uint64(0)) - case "cardchain.cardchain.VotingResults.cardResults": - list := []*VotingResult{} - return protoreflect.ValueOfList(&_VotingResults_6_list{list: &list}) - case "cardchain.cardchain.VotingResults.notes": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.VotingResults")) - } - panic(fmt.Errorf("message cardchain.cardchain.VotingResults 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_VotingResults) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.VotingResults", 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_VotingResults) 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_VotingResults) 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_VotingResults) 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_VotingResults) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*VotingResults) - 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.TotalVotes != 0 { - n += 1 + runtime.Sov(uint64(x.TotalVotes)) - } - if x.TotalFairEnoughVotes != 0 { - n += 1 + runtime.Sov(uint64(x.TotalFairEnoughVotes)) - } - if x.TotalOverpoweredVotes != 0 { - n += 1 + runtime.Sov(uint64(x.TotalOverpoweredVotes)) - } - if x.TotalUnderpoweredVotes != 0 { - n += 1 + runtime.Sov(uint64(x.TotalUnderpoweredVotes)) - } - if x.TotalInappropriateVotes != 0 { - n += 1 + runtime.Sov(uint64(x.TotalInappropriateVotes)) - } - if len(x.CardResults) > 0 { - for _, e := range x.CardResults { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - l = len(x.Notes) - 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().(*VotingResults) - 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.Notes) > 0 { - i -= len(x.Notes) - copy(dAtA[i:], x.Notes) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Notes))) - i-- - dAtA[i] = 0x3a - } - if len(x.CardResults) > 0 { - for iNdEx := len(x.CardResults) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.CardResults[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] = 0x32 - } - } - if x.TotalInappropriateVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalInappropriateVotes)) - i-- - dAtA[i] = 0x28 - } - if x.TotalUnderpoweredVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalUnderpoweredVotes)) - i-- - dAtA[i] = 0x20 - } - if x.TotalOverpoweredVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalOverpoweredVotes)) - i-- - dAtA[i] = 0x18 - } - if x.TotalFairEnoughVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalFairEnoughVotes)) - i-- - dAtA[i] = 0x10 - } - if x.TotalVotes != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalVotes)) - i-- - dAtA[i] = 0x8 - } - 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().(*VotingResults) - 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: VotingResults: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VotingResults: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalVotes", wireType) - } - x.TotalVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TotalVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalFairEnoughVotes", wireType) - } - x.TotalFairEnoughVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TotalFairEnoughVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalOverpoweredVotes", wireType) - } - x.TotalOverpoweredVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TotalOverpoweredVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalUnderpoweredVotes", wireType) - } - x.TotalUnderpoweredVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TotalUnderpoweredVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalInappropriateVotes", wireType) - } - x.TotalInappropriateVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TotalInappropriateVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CardResults", 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.CardResults = append(x.CardResults, &VotingResult{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CardResults[len(x.CardResults)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Notes", 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.Notes = 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 -// protoc (unknown) -// source: cardchain/cardchain/voting_results.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type VotingResults struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TotalVotes uint64 `protobuf:"varint,1,opt,name=totalVotes,proto3" json:"totalVotes,omitempty"` - TotalFairEnoughVotes uint64 `protobuf:"varint,2,opt,name=totalFairEnoughVotes,proto3" json:"totalFairEnoughVotes,omitempty"` - TotalOverpoweredVotes uint64 `protobuf:"varint,3,opt,name=totalOverpoweredVotes,proto3" json:"totalOverpoweredVotes,omitempty"` - TotalUnderpoweredVotes uint64 `protobuf:"varint,4,opt,name=totalUnderpoweredVotes,proto3" json:"totalUnderpoweredVotes,omitempty"` - TotalInappropriateVotes uint64 `protobuf:"varint,5,opt,name=totalInappropriateVotes,proto3" json:"totalInappropriateVotes,omitempty"` - CardResults []*VotingResult `protobuf:"bytes,6,rep,name=cardResults,proto3" json:"cardResults,omitempty"` - Notes string `protobuf:"bytes,7,opt,name=notes,proto3" json:"notes,omitempty"` -} - -func (x *VotingResults) Reset() { - *x = VotingResults{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_voting_results_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VotingResults) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VotingResults) ProtoMessage() {} - -// Deprecated: Use VotingResults.ProtoReflect.Descriptor instead. -func (*VotingResults) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_voting_results_proto_rawDescGZIP(), []int{0} -} - -func (x *VotingResults) GetTotalVotes() uint64 { - if x != nil { - return x.TotalVotes - } - return 0 -} - -func (x *VotingResults) GetTotalFairEnoughVotes() uint64 { - if x != nil { - return x.TotalFairEnoughVotes - } - return 0 -} - -func (x *VotingResults) GetTotalOverpoweredVotes() uint64 { - if x != nil { - return x.TotalOverpoweredVotes - } - return 0 -} - -func (x *VotingResults) GetTotalUnderpoweredVotes() uint64 { - if x != nil { - return x.TotalUnderpoweredVotes - } - return 0 -} - -func (x *VotingResults) GetTotalInappropriateVotes() uint64 { - if x != nil { - return x.TotalInappropriateVotes - } - return 0 -} - -func (x *VotingResults) GetCardResults() []*VotingResult { - if x != nil { - return x.CardResults - } - return nil -} - -func (x *VotingResults) GetNotes() string { - if x != nil { - return x.Notes - } - return "" -} - -var File_cardchain_cardchain_voting_results_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_voting_results_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a, - 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xe6, 0x02, 0x0a, 0x0d, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, - 0x74, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x72, - 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x72, 0x45, 0x6e, 0x6f, 0x75, - 0x67, 0x68, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x4f, 0x76, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4f, 0x76, 0x65, - 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, - 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x65, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x65, 0x64, - 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x17, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x49, 0x6e, - 0x61, 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x49, 0x6e, 0x61, - 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, - 0x43, 0x0a, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x6f, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, 0xda, 0x01, 0x0a, 0x17, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x12, 0x56, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, - 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x43, - 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, - 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_voting_results_proto_rawDescOnce sync.Once - file_cardchain_cardchain_voting_results_proto_rawDescData = file_cardchain_cardchain_voting_results_proto_rawDesc -) - -func file_cardchain_cardchain_voting_results_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_voting_results_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_voting_results_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_voting_results_proto_rawDescData) - }) - return file_cardchain_cardchain_voting_results_proto_rawDescData -} - -var file_cardchain_cardchain_voting_results_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_voting_results_proto_goTypes = []interface{}{ - (*VotingResults)(nil), // 0: cardchain.cardchain.VotingResults - (*VotingResult)(nil), // 1: cardchain.cardchain.VotingResult -} -var file_cardchain_cardchain_voting_results_proto_depIdxs = []int32{ - 1, // 0: cardchain.cardchain.VotingResults.cardResults:type_name -> cardchain.cardchain.VotingResult - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_voting_results_proto_init() } -func file_cardchain_cardchain_voting_results_proto_init() { - if File_cardchain_cardchain_voting_results_proto != nil { - return - } - file_cardchain_cardchain_voting_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_voting_results_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VotingResults); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_voting_results_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_voting_results_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_voting_results_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_voting_results_proto_msgTypes, - }.Build() - File_cardchain_cardchain_voting_results_proto = out.File - file_cardchain_cardchain_voting_results_proto_rawDesc = nil - file_cardchain_cardchain_voting_results_proto_goTypes = nil - file_cardchain_cardchain_voting_results_proto_depIdxs = nil -} diff --git a/api/cardchain/cardchain/zealy.pulsar.go b/api/cardchain/cardchain/zealy.pulsar.go deleted file mode 100644 index 8dedd508..00000000 --- a/api/cardchain/cardchain/zealy.pulsar.go +++ /dev/null @@ -1,642 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package cardchain - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Zealy protoreflect.MessageDescriptor - fd_Zealy_address protoreflect.FieldDescriptor - fd_Zealy_zealyId protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_cardchain_zealy_proto_init() - md_Zealy = File_cardchain_cardchain_zealy_proto.Messages().ByName("Zealy") - fd_Zealy_address = md_Zealy.Fields().ByName("address") - fd_Zealy_zealyId = md_Zealy.Fields().ByName("zealyId") -} - -var _ protoreflect.Message = (*fastReflection_Zealy)(nil) - -type fastReflection_Zealy Zealy - -func (x *Zealy) ProtoReflect() protoreflect.Message { - return (*fastReflection_Zealy)(x) -} - -func (x *Zealy) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_cardchain_zealy_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Zealy_messageType fastReflection_Zealy_messageType -var _ protoreflect.MessageType = fastReflection_Zealy_messageType{} - -type fastReflection_Zealy_messageType struct{} - -func (x fastReflection_Zealy_messageType) Zero() protoreflect.Message { - return (*fastReflection_Zealy)(nil) -} -func (x fastReflection_Zealy_messageType) New() protoreflect.Message { - return new(fastReflection_Zealy) -} -func (x fastReflection_Zealy_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Zealy -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Zealy) Descriptor() protoreflect.MessageDescriptor { - return md_Zealy -} - -// 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_Zealy) Type() protoreflect.MessageType { - return _fastReflection_Zealy_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Zealy) New() protoreflect.Message { - return new(fastReflection_Zealy) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Zealy) Interface() protoreflect.ProtoMessage { - return (*Zealy)(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_Zealy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_Zealy_address, value) { - return - } - } - if x.ZealyId != "" { - value := protoreflect.ValueOfString(x.ZealyId) - if !f(fd_Zealy_zealyId, 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_Zealy) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.cardchain.Zealy.address": - return x.Address != "" - case "cardchain.cardchain.Zealy.zealyId": - return x.ZealyId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Zealy")) - } - panic(fmt.Errorf("message cardchain.cardchain.Zealy 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_Zealy) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.cardchain.Zealy.address": - x.Address = "" - case "cardchain.cardchain.Zealy.zealyId": - x.ZealyId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Zealy")) - } - panic(fmt.Errorf("message cardchain.cardchain.Zealy 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_Zealy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.cardchain.Zealy.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "cardchain.cardchain.Zealy.zealyId": - value := x.ZealyId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Zealy")) - } - panic(fmt.Errorf("message cardchain.cardchain.Zealy 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_Zealy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.cardchain.Zealy.address": - x.Address = value.Interface().(string) - case "cardchain.cardchain.Zealy.zealyId": - x.ZealyId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Zealy")) - } - panic(fmt.Errorf("message cardchain.cardchain.Zealy 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_Zealy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Zealy.address": - panic(fmt.Errorf("field address of message cardchain.cardchain.Zealy is not mutable")) - case "cardchain.cardchain.Zealy.zealyId": - panic(fmt.Errorf("field zealyId of message cardchain.cardchain.Zealy is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Zealy")) - } - panic(fmt.Errorf("message cardchain.cardchain.Zealy 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_Zealy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.cardchain.Zealy.address": - return protoreflect.ValueOfString("") - case "cardchain.cardchain.Zealy.zealyId": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.cardchain.Zealy")) - } - panic(fmt.Errorf("message cardchain.cardchain.Zealy 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_Zealy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.cardchain.Zealy", 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_Zealy) 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_Zealy) 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_Zealy) 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_Zealy) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Zealy) - 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.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ZealyId) - 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().(*Zealy) - 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.ZealyId) > 0 { - i -= len(x.ZealyId) - copy(dAtA[i:], x.ZealyId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ZealyId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - 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().(*Zealy) - 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: Zealy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Zealy: 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 Address", 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.Address = 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 ZealyId", 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.ZealyId = 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 -// protoc (unknown) -// source: cardchain/cardchain/zealy.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Zealy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - ZealyId string `protobuf:"bytes,2,opt,name=zealyId,proto3" json:"zealyId,omitempty"` -} - -func (x *Zealy) Reset() { - *x = Zealy{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_cardchain_zealy_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Zealy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Zealy) ProtoMessage() {} - -// Deprecated: Use Zealy.ProtoReflect.Descriptor instead. -func (*Zealy) Descriptor() ([]byte, []int) { - return file_cardchain_cardchain_zealy_proto_rawDescGZIP(), []int{0} -} - -func (x *Zealy) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *Zealy) GetZealyId() string { - if x != nil { - return x.ZealyId - } - return "" -} - -var File_cardchain_cardchain_zealy_proto protoreflect.FileDescriptor - -var file_cardchain_cardchain_zealy_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x7a, 0x65, 0x61, 0x6c, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x13, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x22, 0x3b, 0x0a, 0x05, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x7a, 0x65, 0x61, - 0x6c, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x7a, 0x65, 0x61, 0x6c, - 0x79, 0x49, 0x64, 0x42, 0xd2, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, - 0x0a, 0x5a, 0x65, 0x61, 0x6c, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, - 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, - 0x43, 0x43, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x13, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, - 0x02, 0x1f, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x14, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_cardchain_zealy_proto_rawDescOnce sync.Once - file_cardchain_cardchain_zealy_proto_rawDescData = file_cardchain_cardchain_zealy_proto_rawDesc -) - -func file_cardchain_cardchain_zealy_proto_rawDescGZIP() []byte { - file_cardchain_cardchain_zealy_proto_rawDescOnce.Do(func() { - file_cardchain_cardchain_zealy_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_cardchain_zealy_proto_rawDescData) - }) - return file_cardchain_cardchain_zealy_proto_rawDescData -} - -var file_cardchain_cardchain_zealy_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_cardchain_zealy_proto_goTypes = []interface{}{ - (*Zealy)(nil), // 0: cardchain.cardchain.Zealy -} -var file_cardchain_cardchain_zealy_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_cardchain_zealy_proto_init() } -func file_cardchain_cardchain_zealy_proto_init() { - if File_cardchain_cardchain_zealy_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_cardchain_zealy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Zealy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_cardchain_zealy_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_cardchain_zealy_proto_goTypes, - DependencyIndexes: file_cardchain_cardchain_zealy_proto_depIdxs, - MessageInfos: file_cardchain_cardchain_zealy_proto_msgTypes, - }.Build() - File_cardchain_cardchain_zealy_proto = out.File - file_cardchain_cardchain_zealy_proto_rawDesc = nil - file_cardchain_cardchain_zealy_proto_goTypes = nil - file_cardchain_cardchain_zealy_proto_depIdxs = nil -} diff --git a/api/cardchain/featureflag/flag.pulsar.go b/api/cardchain/featureflag/flag.pulsar.go deleted file mode 100644 index 10b5e452..00000000 --- a/api/cardchain/featureflag/flag.pulsar.go +++ /dev/null @@ -1,706 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package featureflag - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Flag protoreflect.MessageDescriptor - fd_Flag_Module protoreflect.FieldDescriptor - fd_Flag_Name protoreflect.FieldDescriptor - fd_Flag_Set protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_flag_proto_init() - md_Flag = File_cardchain_featureflag_flag_proto.Messages().ByName("Flag") - fd_Flag_Module = md_Flag.Fields().ByName("Module") - fd_Flag_Name = md_Flag.Fields().ByName("Name") - fd_Flag_Set = md_Flag.Fields().ByName("Set") -} - -var _ protoreflect.Message = (*fastReflection_Flag)(nil) - -type fastReflection_Flag Flag - -func (x *Flag) ProtoReflect() protoreflect.Message { - return (*fastReflection_Flag)(x) -} - -func (x *Flag) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_flag_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Flag_messageType fastReflection_Flag_messageType -var _ protoreflect.MessageType = fastReflection_Flag_messageType{} - -type fastReflection_Flag_messageType struct{} - -func (x fastReflection_Flag_messageType) Zero() protoreflect.Message { - return (*fastReflection_Flag)(nil) -} -func (x fastReflection_Flag_messageType) New() protoreflect.Message { - return new(fastReflection_Flag) -} -func (x fastReflection_Flag_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Flag -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Flag) Descriptor() protoreflect.MessageDescriptor { - return md_Flag -} - -// 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_Flag) Type() protoreflect.MessageType { - return _fastReflection_Flag_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Flag) New() protoreflect.Message { - return new(fastReflection_Flag) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Flag) Interface() protoreflect.ProtoMessage { - return (*Flag)(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_Flag) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Module != "" { - value := protoreflect.ValueOfString(x.Module) - if !f(fd_Flag_Module, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_Flag_Name, value) { - return - } - } - if x.Set_ != false { - value := protoreflect.ValueOfBool(x.Set_) - if !f(fd_Flag_Set, 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_Flag) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.Flag.Module": - return x.Module != "" - case "cardchain.featureflag.Flag.Name": - return x.Name != "" - case "cardchain.featureflag.Flag.Set": - return x.Set_ != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Flag")) - } - panic(fmt.Errorf("message cardchain.featureflag.Flag 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_Flag) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.Flag.Module": - x.Module = "" - case "cardchain.featureflag.Flag.Name": - x.Name = "" - case "cardchain.featureflag.Flag.Set": - x.Set_ = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Flag")) - } - panic(fmt.Errorf("message cardchain.featureflag.Flag 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_Flag) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.Flag.Module": - value := x.Module - return protoreflect.ValueOfString(value) - case "cardchain.featureflag.Flag.Name": - value := x.Name - return protoreflect.ValueOfString(value) - case "cardchain.featureflag.Flag.Set": - value := x.Set_ - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Flag")) - } - panic(fmt.Errorf("message cardchain.featureflag.Flag 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_Flag) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.Flag.Module": - x.Module = value.Interface().(string) - case "cardchain.featureflag.Flag.Name": - x.Name = value.Interface().(string) - case "cardchain.featureflag.Flag.Set": - x.Set_ = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Flag")) - } - panic(fmt.Errorf("message cardchain.featureflag.Flag 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_Flag) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.Flag.Module": - panic(fmt.Errorf("field Module of message cardchain.featureflag.Flag is not mutable")) - case "cardchain.featureflag.Flag.Name": - panic(fmt.Errorf("field Name of message cardchain.featureflag.Flag is not mutable")) - case "cardchain.featureflag.Flag.Set": - panic(fmt.Errorf("field Set of message cardchain.featureflag.Flag is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Flag")) - } - panic(fmt.Errorf("message cardchain.featureflag.Flag 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_Flag) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.Flag.Module": - return protoreflect.ValueOfString("") - case "cardchain.featureflag.Flag.Name": - return protoreflect.ValueOfString("") - case "cardchain.featureflag.Flag.Set": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Flag")) - } - panic(fmt.Errorf("message cardchain.featureflag.Flag 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_Flag) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.Flag", 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_Flag) 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_Flag) 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_Flag) 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_Flag) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Flag) - 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.Module) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Set_ { - n += 2 - } - 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().(*Flag) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Set_ { - i-- - if x.Set_ { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x12 - } - if len(x.Module) > 0 { - i -= len(x.Module) - copy(dAtA[i:], x.Module) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) - 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().(*Flag) - 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: Flag: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Flag: 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 Module", 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.Module = 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 Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Set_", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Set_ = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/featureflag/flag.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Flag struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Module string `protobuf:"bytes,1,opt,name=Module,proto3" json:"Module,omitempty"` - Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` - Set_ bool `protobuf:"varint,3,opt,name=Set,proto3" json:"Set,omitempty"` -} - -func (x *Flag) Reset() { - *x = Flag{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_flag_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Flag) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Flag) ProtoMessage() {} - -// Deprecated: Use Flag.ProtoReflect.Descriptor instead. -func (*Flag) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_flag_proto_rawDescGZIP(), []int{0} -} - -func (x *Flag) GetModule() string { - if x != nil { - return x.Module - } - return "" -} - -func (x *Flag) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Flag) GetSet_() bool { - if x != nil { - return x.Set_ - } - return false -} - -var File_cardchain_featureflag_flag_proto protoreflect.FileDescriptor - -var file_cardchain_featureflag_flag_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x15, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x22, 0x44, 0x0a, 0x04, 0x46, 0x6c, 0x61, - 0x67, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x53, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x53, 0x65, 0x74, 0x42, - 0xdd, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x42, 0x09, 0x46, - 0x6c, 0x61, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, - 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xa2, 0x02, 0x03, 0x43, - 0x46, 0x58, 0xaa, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xca, 0x02, 0x15, 0x43, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, - 0x61, 0x67, 0xe2, 0x02, 0x21, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x3a, 0x3a, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_featureflag_flag_proto_rawDescOnce sync.Once - file_cardchain_featureflag_flag_proto_rawDescData = file_cardchain_featureflag_flag_proto_rawDesc -) - -func file_cardchain_featureflag_flag_proto_rawDescGZIP() []byte { - file_cardchain_featureflag_flag_proto_rawDescOnce.Do(func() { - file_cardchain_featureflag_flag_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_featureflag_flag_proto_rawDescData) - }) - return file_cardchain_featureflag_flag_proto_rawDescData -} - -var file_cardchain_featureflag_flag_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_featureflag_flag_proto_goTypes = []interface{}{ - (*Flag)(nil), // 0: cardchain.featureflag.Flag -} -var file_cardchain_featureflag_flag_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_featureflag_flag_proto_init() } -func file_cardchain_featureflag_flag_proto_init() { - if File_cardchain_featureflag_flag_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_featureflag_flag_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Flag); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_featureflag_flag_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_featureflag_flag_proto_goTypes, - DependencyIndexes: file_cardchain_featureflag_flag_proto_depIdxs, - MessageInfos: file_cardchain_featureflag_flag_proto_msgTypes, - }.Build() - File_cardchain_featureflag_flag_proto = out.File - file_cardchain_featureflag_flag_proto_rawDesc = nil - file_cardchain_featureflag_flag_proto_goTypes = nil - file_cardchain_featureflag_flag_proto_depIdxs = nil -} diff --git a/api/cardchain/featureflag/genesis.pulsar.go b/api/cardchain/featureflag/genesis.pulsar.go deleted file mode 100644 index 2c435bb2..00000000 --- a/api/cardchain/featureflag/genesis.pulsar.go +++ /dev/null @@ -1,952 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package featureflag - -import ( - _ "cosmossdk.io/api/amino" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sort "sort" - sync "sync" -) - -var _ protoreflect.Map = (*_GenesisState_2_map)(nil) - -type _GenesisState_2_map struct { - m *map[string]*Flag -} - -func (x *_GenesisState_2_map) Len() int { - if x.m == nil { - return 0 - } - return len(*x.m) -} - -func (x *_GenesisState_2_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { - if x.m == nil { - return - } - for k, v := range *x.m { - mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) - mapValue := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(mapKey, mapValue) { - break - } - } -} - -func (x *_GenesisState_2_map) Has(key protoreflect.MapKey) bool { - if x.m == nil { - return false - } - keyUnwrapped := key.String() - concreteValue := keyUnwrapped - _, ok := (*x.m)[concreteValue] - return ok -} - -func (x *_GenesisState_2_map) Clear(key protoreflect.MapKey) { - if x.m == nil { - return - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - delete(*x.m, concreteKey) -} - -func (x *_GenesisState_2_map) Get(key protoreflect.MapKey) protoreflect.Value { - if x.m == nil { - return protoreflect.Value{} - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if !ok { - return protoreflect.Value{} - } - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_map) Set(key protoreflect.MapKey, value protoreflect.Value) { - if !key.IsValid() || !value.IsValid() { - panic("invalid key or value provided") - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Flag) - (*x.m)[concreteKey] = concreteValue -} - -func (x *_GenesisState_2_map) Mutable(key protoreflect.MapKey) protoreflect.Value { - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if ok { - return protoreflect.ValueOfMessage(v.ProtoReflect()) - } - newValue := new(Flag) - (*x.m)[concreteKey] = newValue - return protoreflect.ValueOfMessage(newValue.ProtoReflect()) -} - -func (x *_GenesisState_2_map) NewValue() protoreflect.Value { - v := new(Flag) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_2_map) IsValid() bool { - return x.m != nil -} - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_flags protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_genesis_proto_init() - md_GenesisState = File_cardchain_featureflag_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_params = md_GenesisState.Fields().ByName("params") - fd_GenesisState_flags = md_GenesisState.Fields().ByName("flags") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_genesis_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// 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_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_GenesisState_params, value) { - return - } - } - if len(x.Flags) != 0 { - value := protoreflect.ValueOfMap(&_GenesisState_2_map{m: &x.Flags}) - if !f(fd_GenesisState_flags, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.GenesisState.params": - return x.Params != nil - case "cardchain.featureflag.GenesisState.flags": - return len(x.Flags) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.GenesisState")) - } - panic(fmt.Errorf("message cardchain.featureflag.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.GenesisState.params": - x.Params = nil - case "cardchain.featureflag.GenesisState.flags": - x.Flags = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.GenesisState")) - } - panic(fmt.Errorf("message cardchain.featureflag.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.GenesisState.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "cardchain.featureflag.GenesisState.flags": - if len(x.Flags) == 0 { - return protoreflect.ValueOfMap(&_GenesisState_2_map{}) - } - mapValue := &_GenesisState_2_map{m: &x.Flags} - return protoreflect.ValueOfMap(mapValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.GenesisState")) - } - panic(fmt.Errorf("message cardchain.featureflag.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.GenesisState.params": - x.Params = value.Message().Interface().(*Params) - case "cardchain.featureflag.GenesisState.flags": - mv := value.Map() - cmv := mv.(*_GenesisState_2_map) - x.Flags = *cmv.m - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.GenesisState")) - } - panic(fmt.Errorf("message cardchain.featureflag.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.GenesisState.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "cardchain.featureflag.GenesisState.flags": - if x.Flags == nil { - x.Flags = make(map[string]*Flag) - } - value := &_GenesisState_2_map{m: &x.Flags} - return protoreflect.ValueOfMap(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.GenesisState")) - } - panic(fmt.Errorf("message cardchain.featureflag.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.GenesisState.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "cardchain.featureflag.GenesisState.flags": - m := make(map[string]*Flag) - return protoreflect.ValueOfMap(&_GenesisState_2_map{m: &m}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.GenesisState")) - } - panic(fmt.Errorf("message cardchain.featureflag.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - 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.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Flags) > 0 { - SiZeMaP := func(k string, v *Flag) { - l := 0 - if v != nil { - l = options.Size(v) - } - l += 1 + runtime.Sov(uint64(l)) - mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + l - n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) - } - if options.Deterministic { - sortme := make([]string, 0, len(x.Flags)) - for k := range x.Flags { - sortme = append(sortme, k) - } - sort.Strings(sortme) - for _, k := range sortme { - v := x.Flags[k] - SiZeMaP(k, v) - } - } else { - for k, v := range x.Flags { - SiZeMaP(k, v) - } - } - } - 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().(*GenesisState) - 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.Flags) > 0 { - MaRsHaLmAp := func(k string, v *Flag) (protoiface.MarshalOutput, error) { - baseI := i - encoded, err := options.Marshal(v) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - return protoiface.MarshalOutput{}, nil - } - if options.Deterministic { - keysForFlags := make([]string, 0, len(x.Flags)) - for k := range x.Flags { - keysForFlags = append(keysForFlags, string(k)) - } - sort.Slice(keysForFlags, func(i, j int) bool { - return keysForFlags[i] < keysForFlags[j] - }) - for iNdEx := len(keysForFlags) - 1; iNdEx >= 0; iNdEx-- { - v := x.Flags[string(keysForFlags[iNdEx])] - out, err := MaRsHaLmAp(keysForFlags[iNdEx], v) - if err != nil { - return out, err - } - } - } else { - for k := range x.Flags { - v := x.Flags[k] - out, err := MaRsHaLmAp(k, v) - if err != nil { - return out, err - } - } - } - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 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().(*GenesisState) - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Flags == nil { - x.Flags = make(map[string]*Flag) - } - var mapkey string - var mapvalue *Flag - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey 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++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapkey > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen 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++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postmsgIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapvalue = &Flag{} - if err := options.Unmarshal(dAtA[iNdEx:postmsgIndex], mapvalue); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - 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) > postIndex { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - x.Flags[mapkey] = mapvalue - 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 -// protoc (unknown) -// source: cardchain/featureflag/genesis.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenesisState defines the featureflag module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - Flags map[string]*Flag `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_genesis_proto_rawDescGZIP(), []int{0} -} - -func (x *GenesisState) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -func (x *GenesisState) GetFlags() map[string]*Flag { - if x != nil { - return x.Flags - } - return nil -} - -var File_cardchain_featureflag_genesis_proto protoreflect.FileDescriptor - -var file_cardchain_featureflag_genesis_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x1a, 0x11, 0x61, 0x6d, - 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, - 0x2f, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x01, 0x0a, 0x0c, - 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x40, 0x0a, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, - 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x44, - 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x2e, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x66, - 0x6c, 0x61, 0x67, 0x73, 0x1a, 0x55, 0x0a, 0x0a, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x46, 0x6c, 0x61, 0x67, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xe0, 0x01, 0x0a, 0x19, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, - 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xa2, 0x02, 0x03, 0x43, 0x46, - 0x58, 0xaa, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xca, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, - 0x67, 0xe2, 0x02, 0x21, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x3a, 0x3a, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_featureflag_genesis_proto_rawDescOnce sync.Once - file_cardchain_featureflag_genesis_proto_rawDescData = file_cardchain_featureflag_genesis_proto_rawDesc -) - -func file_cardchain_featureflag_genesis_proto_rawDescGZIP() []byte { - file_cardchain_featureflag_genesis_proto_rawDescOnce.Do(func() { - file_cardchain_featureflag_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_featureflag_genesis_proto_rawDescData) - }) - return file_cardchain_featureflag_genesis_proto_rawDescData -} - -var file_cardchain_featureflag_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cardchain_featureflag_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: cardchain.featureflag.GenesisState - nil, // 1: cardchain.featureflag.GenesisState.FlagsEntry - (*Params)(nil), // 2: cardchain.featureflag.Params - (*Flag)(nil), // 3: cardchain.featureflag.Flag -} -var file_cardchain_featureflag_genesis_proto_depIdxs = []int32{ - 2, // 0: cardchain.featureflag.GenesisState.params:type_name -> cardchain.featureflag.Params - 1, // 1: cardchain.featureflag.GenesisState.flags:type_name -> cardchain.featureflag.GenesisState.FlagsEntry - 3, // 2: cardchain.featureflag.GenesisState.FlagsEntry.value:type_name -> cardchain.featureflag.Flag - 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 - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cardchain_featureflag_genesis_proto_init() } -func file_cardchain_featureflag_genesis_proto_init() { - if File_cardchain_featureflag_genesis_proto != nil { - return - } - file_cardchain_featureflag_params_proto_init() - file_cardchain_featureflag_flag_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_featureflag_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_featureflag_genesis_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_featureflag_genesis_proto_goTypes, - DependencyIndexes: file_cardchain_featureflag_genesis_proto_depIdxs, - MessageInfos: file_cardchain_featureflag_genesis_proto_msgTypes, - }.Build() - File_cardchain_featureflag_genesis_proto = out.File - file_cardchain_featureflag_genesis_proto_rawDesc = nil - file_cardchain_featureflag_genesis_proto_goTypes = nil - file_cardchain_featureflag_genesis_proto_depIdxs = nil -} diff --git a/api/cardchain/featureflag/module/module.pulsar.go b/api/cardchain/featureflag/module/module.pulsar.go deleted file mode 100644 index 947efc3f..00000000 --- a/api/cardchain/featureflag/module/module.pulsar.go +++ /dev/null @@ -1,583 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package module - -import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor - fd_Module_authority protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_module_module_proto_init() - md_Module = File_cardchain_featureflag_module_module_proto.Messages().ByName("Module") - fd_Module_authority = md_Module.Fields().ByName("authority") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_module_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// 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_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(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_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_Module_authority, 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_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.module.Module.authority": - return x.Authority != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.module.Module")) - } - panic(fmt.Errorf("message cardchain.featureflag.module.Module 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_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.module.Module.authority": - x.Authority = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.module.Module")) - } - panic(fmt.Errorf("message cardchain.featureflag.module.Module 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_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.module.Module.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.module.Module")) - } - panic(fmt.Errorf("message cardchain.featureflag.module.Module 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_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.module.Module.authority": - x.Authority = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.module.Module")) - } - panic(fmt.Errorf("message cardchain.featureflag.module.Module 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_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.module.Module.authority": - panic(fmt.Errorf("field authority of message cardchain.featureflag.module.Module is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.module.Module")) - } - panic(fmt.Errorf("message cardchain.featureflag.module.Module 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_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.module.Module.authority": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.module.Module")) - } - panic(fmt.Errorf("message cardchain.featureflag.module.Module 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_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.module.Module", 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_Module) 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_Module) 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_Module) 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_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.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().(*Module) - 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.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - 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: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/featureflag/module/module.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Module is the config object for the module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority defines the custom module authority. If not set, defaults to the governance module. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_module_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_module_module_proto_rawDescGZIP(), []int{0} -} - -func (x *Module) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -var File_cardchain_featureflag_module_module_proto protoreflect.FileDescriptor - -var file_cardchain_featureflag_module_module_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, - 0x61, 0x67, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x64, 0x0a, 0x06, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x3a, 0x3c, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x36, 0x0a, 0x34, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, - 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, - 0x67, 0x42, 0x8a, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, - 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, - 0x03, 0x43, 0x46, 0x4d, 0xaa, 0x02, 0x1c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0xca, 0x02, 0x1c, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x5c, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0xe2, 0x02, 0x28, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x46, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_featureflag_module_module_proto_rawDescOnce sync.Once - file_cardchain_featureflag_module_module_proto_rawDescData = file_cardchain_featureflag_module_module_proto_rawDesc -) - -func file_cardchain_featureflag_module_module_proto_rawDescGZIP() []byte { - file_cardchain_featureflag_module_module_proto_rawDescOnce.Do(func() { - file_cardchain_featureflag_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_featureflag_module_module_proto_rawDescData) - }) - return file_cardchain_featureflag_module_module_proto_rawDescData -} - -var file_cardchain_featureflag_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_featureflag_module_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: cardchain.featureflag.module.Module -} -var file_cardchain_featureflag_module_module_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_featureflag_module_module_proto_init() } -func file_cardchain_featureflag_module_module_proto_init() { - if File_cardchain_featureflag_module_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_featureflag_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_featureflag_module_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_featureflag_module_module_proto_goTypes, - DependencyIndexes: file_cardchain_featureflag_module_module_proto_depIdxs, - MessageInfos: file_cardchain_featureflag_module_module_proto_msgTypes, - }.Build() - File_cardchain_featureflag_module_module_proto = out.File - file_cardchain_featureflag_module_module_proto_rawDesc = nil - file_cardchain_featureflag_module_module_proto_goTypes = nil - file_cardchain_featureflag_module_module_proto_depIdxs = nil -} diff --git a/api/cardchain/featureflag/params.pulsar.go b/api/cardchain/featureflag/params.pulsar.go deleted file mode 100644 index fb51fec2..00000000 --- a/api/cardchain/featureflag/params.pulsar.go +++ /dev/null @@ -1,504 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package featureflag - -import ( - _ "cosmossdk.io/api/amino" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Params protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_featureflag_params_proto_init() - md_Params = File_cardchain_featureflag_params_proto.Messages().ByName("Params") -} - -var _ protoreflect.Message = (*fastReflection_Params)(nil) - -type fastReflection_Params Params - -func (x *Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_Params)(x) -} - -func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_params_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Params_messageType fastReflection_Params_messageType -var _ protoreflect.MessageType = fastReflection_Params_messageType{} - -type fastReflection_Params_messageType struct{} - -func (x fastReflection_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_Params)(nil) -} -func (x fastReflection_Params_messageType) New() protoreflect.Message { - return new(fastReflection_Params) -} -func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// 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_Params) Type() protoreflect.MessageType { - return _fastReflection_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Params) New() protoreflect.Message { - return new(fastReflection_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { - return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Params")) - } - panic(fmt.Errorf("message cardchain.featureflag.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Params")) - } - panic(fmt.Errorf("message cardchain.featureflag.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Params")) - } - panic(fmt.Errorf("message cardchain.featureflag.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Params")) - } - panic(fmt.Errorf("message cardchain.featureflag.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Params")) - } - panic(fmt.Errorf("message cardchain.featureflag.Params 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_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.Params")) - } - panic(fmt.Errorf("message cardchain.featureflag.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Params) - 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().(*Params) - 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().(*Params) - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/featureflag/params.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Params defines the parameters for the module. -type Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Params) Reset() { - *x = Params{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_params_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Params) ProtoMessage() {} - -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_params_proto_rawDescGZIP(), []int{0} -} - -var File_cardchain_featureflag_params_proto protoreflect.FileDescriptor - -var file_cardchain_featureflag_params_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, - 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x1a, 0x11, 0x61, 0x6d, 0x69, - 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, - 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x31, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x27, - 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, - 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x66, 0x6c, 0x61, 0x67, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, - 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xa2, 0x02, 0x03, 0x43, 0x46, 0x58, 0xaa, 0x02, 0x15, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x66, 0x6c, 0x61, 0x67, 0xca, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xe2, 0x02, 0x21, 0x43, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x66, 0x6c, 0x61, 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x16, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_cardchain_featureflag_params_proto_rawDescOnce sync.Once - file_cardchain_featureflag_params_proto_rawDescData = file_cardchain_featureflag_params_proto_rawDesc -) - -func file_cardchain_featureflag_params_proto_rawDescGZIP() []byte { - file_cardchain_featureflag_params_proto_rawDescOnce.Do(func() { - file_cardchain_featureflag_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_featureflag_params_proto_rawDescData) - }) - return file_cardchain_featureflag_params_proto_rawDescData -} - -var file_cardchain_featureflag_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cardchain_featureflag_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: cardchain.featureflag.Params -} -var file_cardchain_featureflag_params_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cardchain_featureflag_params_proto_init() } -func file_cardchain_featureflag_params_proto_init() { - if File_cardchain_featureflag_params_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cardchain_featureflag_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_featureflag_params_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cardchain_featureflag_params_proto_goTypes, - DependencyIndexes: file_cardchain_featureflag_params_proto_depIdxs, - MessageInfos: file_cardchain_featureflag_params_proto_msgTypes, - }.Build() - File_cardchain_featureflag_params_proto = out.File - file_cardchain_featureflag_params_proto_rawDesc = nil - file_cardchain_featureflag_params_proto_goTypes = nil - file_cardchain_featureflag_params_proto_depIdxs = nil -} diff --git a/api/cardchain/featureflag/query.pulsar.go b/api/cardchain/featureflag/query.pulsar.go deleted file mode 100644 index c59dbb7d..00000000 --- a/api/cardchain/featureflag/query.pulsar.go +++ /dev/null @@ -1,3020 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package featureflag - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/base/query/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryParamsRequest protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_featureflag_query_proto_init() - md_QueryParamsRequest = File_cardchain_featureflag_query_proto.Messages().ByName("QueryParamsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) - -type fastReflection_QueryParamsRequest QueryParamsRequest - -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) -} - -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} - -type fastReflection_QueryParamsRequest_messageType struct{} - -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) -} -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// 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_QueryParamsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) - 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().(*QueryParamsRequest) - 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().(*QueryParamsRequest) - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_query_proto_init() - md_QueryParamsResponse = File_cardchain_featureflag_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) - -type fastReflection_QueryParamsResponse QueryParamsResponse - -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) -} - -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} - -type fastReflection_QueryParamsResponse_messageType struct{} - -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) -} -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// 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_QueryParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(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_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_QueryParamsResponse_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.QueryParamsResponse.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.QueryParamsResponse.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryParamsResponse.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryParamsResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) - 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.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 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().(*QueryParamsResponse) - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: 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 Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryFlagRequest protoreflect.MessageDescriptor - fd_QueryFlagRequest_module protoreflect.FieldDescriptor - fd_QueryFlagRequest_name protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_query_proto_init() - md_QueryFlagRequest = File_cardchain_featureflag_query_proto.Messages().ByName("QueryFlagRequest") - fd_QueryFlagRequest_module = md_QueryFlagRequest.Fields().ByName("module") - fd_QueryFlagRequest_name = md_QueryFlagRequest.Fields().ByName("name") -} - -var _ protoreflect.Message = (*fastReflection_QueryFlagRequest)(nil) - -type fastReflection_QueryFlagRequest QueryFlagRequest - -func (x *QueryFlagRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFlagRequest)(x) -} - -func (x *QueryFlagRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFlagRequest_messageType fastReflection_QueryFlagRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFlagRequest_messageType{} - -type fastReflection_QueryFlagRequest_messageType struct{} - -func (x fastReflection_QueryFlagRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFlagRequest)(nil) -} -func (x fastReflection_QueryFlagRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFlagRequest) -} -func (x fastReflection_QueryFlagRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFlagRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagRequest -} - -// 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_QueryFlagRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryFlagRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFlagRequest) New() protoreflect.Message { - return new(fastReflection_QueryFlagRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFlagRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFlagRequest)(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_QueryFlagRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Module != "" { - value := protoreflect.ValueOfString(x.Module) - if !f(fd_QueryFlagRequest_module, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_QueryFlagRequest_name, 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_QueryFlagRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagRequest.module": - return x.Module != "" - case "cardchain.featureflag.QueryFlagRequest.name": - return x.Name != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagRequest 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_QueryFlagRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagRequest.module": - x.Module = "" - case "cardchain.featureflag.QueryFlagRequest.name": - x.Name = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagRequest 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_QueryFlagRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.QueryFlagRequest.module": - value := x.Module - return protoreflect.ValueOfString(value) - case "cardchain.featureflag.QueryFlagRequest.name": - value := x.Name - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagRequest 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_QueryFlagRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagRequest.module": - x.Module = value.Interface().(string) - case "cardchain.featureflag.QueryFlagRequest.name": - x.Name = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagRequest 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_QueryFlagRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagRequest.module": - panic(fmt.Errorf("field module of message cardchain.featureflag.QueryFlagRequest is not mutable")) - case "cardchain.featureflag.QueryFlagRequest.name": - panic(fmt.Errorf("field name of message cardchain.featureflag.QueryFlagRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagRequest 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_QueryFlagRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagRequest.module": - return protoreflect.ValueOfString("") - case "cardchain.featureflag.QueryFlagRequest.name": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagRequest 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_QueryFlagRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.QueryFlagRequest", 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_QueryFlagRequest) 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_QueryFlagRequest) 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_QueryFlagRequest) 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_QueryFlagRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFlagRequest) - 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.Module) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Name) - 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().(*QueryFlagRequest) - 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.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x12 - } - if len(x.Module) > 0 { - i -= len(x.Module) - copy(dAtA[i:], x.Module) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) - 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().(*QueryFlagRequest) - 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: QueryFlagRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFlagRequest: 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 Module", 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.Module = 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 Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryFlagResponse protoreflect.MessageDescriptor - fd_QueryFlagResponse_flag protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_query_proto_init() - md_QueryFlagResponse = File_cardchain_featureflag_query_proto.Messages().ByName("QueryFlagResponse") - fd_QueryFlagResponse_flag = md_QueryFlagResponse.Fields().ByName("flag") -} - -var _ protoreflect.Message = (*fastReflection_QueryFlagResponse)(nil) - -type fastReflection_QueryFlagResponse QueryFlagResponse - -func (x *QueryFlagResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFlagResponse)(x) -} - -func (x *QueryFlagResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_query_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_QueryFlagResponse_messageType fastReflection_QueryFlagResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFlagResponse_messageType{} - -type fastReflection_QueryFlagResponse_messageType struct{} - -func (x fastReflection_QueryFlagResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFlagResponse)(nil) -} -func (x fastReflection_QueryFlagResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFlagResponse) -} -func (x fastReflection_QueryFlagResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFlagResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagResponse -} - -// 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_QueryFlagResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryFlagResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFlagResponse) New() protoreflect.Message { - return new(fastReflection_QueryFlagResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFlagResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFlagResponse)(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_QueryFlagResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Flag != nil { - value := protoreflect.ValueOfMessage(x.Flag.ProtoReflect()) - if !f(fd_QueryFlagResponse_flag, 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_QueryFlagResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagResponse.flag": - return x.Flag != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagResponse 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_QueryFlagResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagResponse.flag": - x.Flag = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagResponse 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_QueryFlagResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.QueryFlagResponse.flag": - value := x.Flag - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagResponse 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_QueryFlagResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagResponse.flag": - x.Flag = value.Message().Interface().(*Flag) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagResponse 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_QueryFlagResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagResponse.flag": - if x.Flag == nil { - x.Flag = new(Flag) - } - return protoreflect.ValueOfMessage(x.Flag.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagResponse 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_QueryFlagResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagResponse.flag": - m := new(Flag) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagResponse 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_QueryFlagResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.QueryFlagResponse", 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_QueryFlagResponse) 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_QueryFlagResponse) 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_QueryFlagResponse) 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_QueryFlagResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFlagResponse) - 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.Flag != nil { - l = options.Size(x.Flag) - 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().(*QueryFlagResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Flag != nil { - encoded, err := options.Marshal(x.Flag) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFlagResponse) - 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: QueryFlagResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFlagResponse: 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 Flag", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Flag == nil { - x.Flag = &Flag{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Flag); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryFlagsRequest protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_featureflag_query_proto_init() - md_QueryFlagsRequest = File_cardchain_featureflag_query_proto.Messages().ByName("QueryFlagsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryFlagsRequest)(nil) - -type fastReflection_QueryFlagsRequest QueryFlagsRequest - -func (x *QueryFlagsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFlagsRequest)(x) -} - -func (x *QueryFlagsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFlagsRequest_messageType fastReflection_QueryFlagsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryFlagsRequest_messageType{} - -type fastReflection_QueryFlagsRequest_messageType struct{} - -func (x fastReflection_QueryFlagsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFlagsRequest)(nil) -} -func (x fastReflection_QueryFlagsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFlagsRequest) -} -func (x fastReflection_QueryFlagsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFlagsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagsRequest -} - -// 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_QueryFlagsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryFlagsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFlagsRequest) New() protoreflect.Message { - return new(fastReflection_QueryFlagsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFlagsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryFlagsRequest)(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_QueryFlagsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryFlagsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsRequest 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_QueryFlagsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsRequest 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_QueryFlagsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsRequest 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_QueryFlagsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsRequest 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_QueryFlagsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsRequest 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_QueryFlagsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsRequest")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsRequest 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_QueryFlagsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.QueryFlagsRequest", 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_QueryFlagsRequest) 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_QueryFlagsRequest) 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_QueryFlagsRequest) 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_QueryFlagsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFlagsRequest) - 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().(*QueryFlagsRequest) - 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().(*QueryFlagsRequest) - 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: QueryFlagsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFlagsRequest: 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 = (*_QueryFlagsResponse_1_list)(nil) - -type _QueryFlagsResponse_1_list struct { - list *[]*Flag -} - -func (x *_QueryFlagsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryFlagsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryFlagsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Flag) - (*x.list)[i] = concreteValue -} - -func (x *_QueryFlagsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Flag) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryFlagsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Flag) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryFlagsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryFlagsResponse_1_list) NewElement() protoreflect.Value { - v := new(Flag) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryFlagsResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryFlagsResponse protoreflect.MessageDescriptor - fd_QueryFlagsResponse_flags protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_query_proto_init() - md_QueryFlagsResponse = File_cardchain_featureflag_query_proto.Messages().ByName("QueryFlagsResponse") - fd_QueryFlagsResponse_flags = md_QueryFlagsResponse.Fields().ByName("flags") -} - -var _ protoreflect.Message = (*fastReflection_QueryFlagsResponse)(nil) - -type fastReflection_QueryFlagsResponse QueryFlagsResponse - -func (x *QueryFlagsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryFlagsResponse)(x) -} - -func (x *QueryFlagsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryFlagsResponse_messageType fastReflection_QueryFlagsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryFlagsResponse_messageType{} - -type fastReflection_QueryFlagsResponse_messageType struct{} - -func (x fastReflection_QueryFlagsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryFlagsResponse)(nil) -} -func (x fastReflection_QueryFlagsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryFlagsResponse) -} -func (x fastReflection_QueryFlagsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryFlagsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryFlagsResponse -} - -// 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_QueryFlagsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryFlagsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryFlagsResponse) New() protoreflect.Message { - return new(fastReflection_QueryFlagsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryFlagsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryFlagsResponse)(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_QueryFlagsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Flags) != 0 { - value := protoreflect.ValueOfList(&_QueryFlagsResponse_1_list{list: &x.Flags}) - if !f(fd_QueryFlagsResponse_flags, 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_QueryFlagsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagsResponse.flags": - return len(x.Flags) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsResponse 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_QueryFlagsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagsResponse.flags": - x.Flags = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsResponse 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_QueryFlagsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.QueryFlagsResponse.flags": - if len(x.Flags) == 0 { - return protoreflect.ValueOfList(&_QueryFlagsResponse_1_list{}) - } - listValue := &_QueryFlagsResponse_1_list{list: &x.Flags} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsResponse 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_QueryFlagsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagsResponse.flags": - lv := value.List() - clv := lv.(*_QueryFlagsResponse_1_list) - x.Flags = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsResponse 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_QueryFlagsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagsResponse.flags": - if x.Flags == nil { - x.Flags = []*Flag{} - } - value := &_QueryFlagsResponse_1_list{list: &x.Flags} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsResponse 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_QueryFlagsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.QueryFlagsResponse.flags": - list := []*Flag{} - return protoreflect.ValueOfList(&_QueryFlagsResponse_1_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.QueryFlagsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.QueryFlagsResponse 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_QueryFlagsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.QueryFlagsResponse", 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_QueryFlagsResponse) 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_QueryFlagsResponse) 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_QueryFlagsResponse) 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_QueryFlagsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryFlagsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Flags) > 0 { - for _, e := range x.Flags { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryFlagsResponse) - 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.Flags) > 0 { - for iNdEx := len(x.Flags) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Flags[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryFlagsResponse) - 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: QueryFlagsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFlagsResponse: 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 Flags", 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.Flags = append(x.Flags, &Flag{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Flags[len(x.Flags)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/featureflag/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryParamsRequest) Reset() { - *x = QueryParamsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsRequest) ProtoMessage() {} - -// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_query_proto_rawDescGZIP(), []int{0} -} - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params holds all the parameters of this module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *QueryParamsResponse) Reset() { - *x = QueryParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsResponse) ProtoMessage() {} - -// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryParamsResponse) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -type QueryFlagRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *QueryFlagRequest) Reset() { - *x = QueryFlagRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFlagRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFlagRequest) ProtoMessage() {} - -// Deprecated: Use QueryFlagRequest.ProtoReflect.Descriptor instead. -func (*QueryFlagRequest) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryFlagRequest) GetModule() string { - if x != nil { - return x.Module - } - return "" -} - -func (x *QueryFlagRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type QueryFlagResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Flag *Flag `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"` -} - -func (x *QueryFlagResponse) Reset() { - *x = QueryFlagResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFlagResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFlagResponse) ProtoMessage() {} - -// Deprecated: Use QueryFlagResponse.ProtoReflect.Descriptor instead. -func (*QueryFlagResponse) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryFlagResponse) GetFlag() *Flag { - if x != nil { - return x.Flag - } - return nil -} - -type QueryFlagsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryFlagsRequest) Reset() { - *x = QueryFlagsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFlagsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFlagsRequest) ProtoMessage() {} - -// Deprecated: Use QueryFlagsRequest.ProtoReflect.Descriptor instead. -func (*QueryFlagsRequest) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_query_proto_rawDescGZIP(), []int{4} -} - -type QueryFlagsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Flags []*Flag `protobuf:"bytes,1,rep,name=flags,proto3" json:"flags,omitempty"` -} - -func (x *QueryFlagsResponse) Reset() { - *x = QueryFlagsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryFlagsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryFlagsResponse) ProtoMessage() {} - -// Deprecated: Use QueryFlagsResponse.ProtoReflect.Descriptor instead. -func (*QueryFlagsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryFlagsResponse) GetFlags() []*Flag { - if x != nil { - return x.Flags - } - return nil -} - -var File_cardchain_featureflag_query_proto protoreflect.FileDescriptor - -var file_cardchain_featureflag_query_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, - 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, - 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x20, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x57, 0x0a, 0x13, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, - 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x22, 0x3e, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6c, 0x61, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x44, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6c, 0x61, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x46, 0x6c, - 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x22, 0x13, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x47, 0x0a, - 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x46, 0x6c, 0x61, 0x67, 0x52, - 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x32, 0xdc, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x12, 0x98, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, - 0x6c, 0x61, 0x67, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x44, 0x65, 0x63, - 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x04, - 0x46, 0x6c, 0x61, 0x67, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6c, 0x61, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, - 0x3d, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, - 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x7b, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x7d, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x94, - 0x01, 0x0a, 0x05, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x46, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x44, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, - 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, - 0x66, 0x6c, 0x61, 0x67, 0x73, 0x42, 0xde, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, - 0x6c, 0x61, 0x67, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, - 0x6c, 0x61, 0x67, 0xa2, 0x02, 0x03, 0x43, 0x46, 0x58, 0xaa, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, - 0x67, 0xca, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xe2, 0x02, 0x21, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, - 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x46, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_featureflag_query_proto_rawDescOnce sync.Once - file_cardchain_featureflag_query_proto_rawDescData = file_cardchain_featureflag_query_proto_rawDesc -) - -func file_cardchain_featureflag_query_proto_rawDescGZIP() []byte { - file_cardchain_featureflag_query_proto_rawDescOnce.Do(func() { - file_cardchain_featureflag_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_featureflag_query_proto_rawDescData) - }) - return file_cardchain_featureflag_query_proto_rawDescData -} - -var file_cardchain_featureflag_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_cardchain_featureflag_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: cardchain.featureflag.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: cardchain.featureflag.QueryParamsResponse - (*QueryFlagRequest)(nil), // 2: cardchain.featureflag.QueryFlagRequest - (*QueryFlagResponse)(nil), // 3: cardchain.featureflag.QueryFlagResponse - (*QueryFlagsRequest)(nil), // 4: cardchain.featureflag.QueryFlagsRequest - (*QueryFlagsResponse)(nil), // 5: cardchain.featureflag.QueryFlagsResponse - (*Params)(nil), // 6: cardchain.featureflag.Params - (*Flag)(nil), // 7: cardchain.featureflag.Flag -} -var file_cardchain_featureflag_query_proto_depIdxs = []int32{ - 6, // 0: cardchain.featureflag.QueryParamsResponse.params:type_name -> cardchain.featureflag.Params - 7, // 1: cardchain.featureflag.QueryFlagResponse.flag:type_name -> cardchain.featureflag.Flag - 7, // 2: cardchain.featureflag.QueryFlagsResponse.flags:type_name -> cardchain.featureflag.Flag - 0, // 3: cardchain.featureflag.Query.Params:input_type -> cardchain.featureflag.QueryParamsRequest - 2, // 4: cardchain.featureflag.Query.Flag:input_type -> cardchain.featureflag.QueryFlagRequest - 4, // 5: cardchain.featureflag.Query.Flags:input_type -> cardchain.featureflag.QueryFlagsRequest - 1, // 6: cardchain.featureflag.Query.Params:output_type -> cardchain.featureflag.QueryParamsResponse - 3, // 7: cardchain.featureflag.Query.Flag:output_type -> cardchain.featureflag.QueryFlagResponse - 5, // 8: cardchain.featureflag.Query.Flags:output_type -> cardchain.featureflag.QueryFlagsResponse - 6, // [6:9] is the sub-list for method output_type - 3, // [3:6] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cardchain_featureflag_query_proto_init() } -func file_cardchain_featureflag_query_proto_init() { - if File_cardchain_featureflag_query_proto != nil { - return - } - file_cardchain_featureflag_params_proto_init() - file_cardchain_featureflag_flag_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_featureflag_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFlagRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFlagResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFlagsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryFlagsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_featureflag_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cardchain_featureflag_query_proto_goTypes, - DependencyIndexes: file_cardchain_featureflag_query_proto_depIdxs, - MessageInfos: file_cardchain_featureflag_query_proto_msgTypes, - }.Build() - File_cardchain_featureflag_query_proto = out.File - file_cardchain_featureflag_query_proto_rawDesc = nil - file_cardchain_featureflag_query_proto_goTypes = nil - file_cardchain_featureflag_query_proto_depIdxs = nil -} diff --git a/api/cardchain/featureflag/query_grpc.pb.go b/api/cardchain/featureflag/query_grpc.pb.go deleted file mode 100644 index e78920c8..00000000 --- a/api/cardchain/featureflag/query_grpc.pb.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: cardchain/featureflag/query.proto - -package featureflag - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - Query_Params_FullMethodName = "/cardchain.featureflag.Query/Params" - Query_Flag_FullMethodName = "/cardchain.featureflag.Query/Flag" - Query_Flags_FullMethodName = "/cardchain.featureflag.Query/Flags" -) - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of Flag items. - Flag(ctx context.Context, in *QueryFlagRequest, opts ...grpc.CallOption) (*QueryFlagResponse, error) - // Queries a list of Flags items. - Flags(ctx context.Context, in *QueryFlagsRequest, opts ...grpc.CallOption) (*QueryFlagsResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Flag(ctx context.Context, in *QueryFlagRequest, opts ...grpc.CallOption) (*QueryFlagResponse, error) { - out := new(QueryFlagResponse) - err := c.cc.Invoke(ctx, Query_Flag_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Flags(ctx context.Context, in *QueryFlagsRequest, opts ...grpc.CallOption) (*QueryFlagsResponse, error) { - out := new(QueryFlagsResponse) - err := c.cc.Invoke(ctx, Query_Flags_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of Flag items. - Flag(context.Context, *QueryFlagRequest) (*QueryFlagResponse, error) - // Queries a list of Flags items. - Flags(context.Context, *QueryFlagsRequest) (*QueryFlagsResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (UnimplementedQueryServer) Flag(context.Context, *QueryFlagRequest) (*QueryFlagResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Flag not implemented") -} -func (UnimplementedQueryServer) Flags(context.Context, *QueryFlagsRequest) (*QueryFlagsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Flags not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { - s.RegisterService(&Query_ServiceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Params_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Flag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryFlagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Flag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Flag_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Flag(ctx, req.(*QueryFlagRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Flags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryFlagsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Flags(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Flags_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Flags(ctx, req.(*QueryFlagsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cardchain.featureflag.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "Flag", - Handler: _Query_Flag_Handler, - }, - { - MethodName: "Flags", - Handler: _Query_Flags_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cardchain/featureflag/query.proto", -} diff --git a/api/cardchain/featureflag/tx.pulsar.go b/api/cardchain/featureflag/tx.pulsar.go deleted file mode 100644 index 170d9381..00000000 --- a/api/cardchain/featureflag/tx.pulsar.go +++ /dev/null @@ -1,2180 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package featureflag - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_MsgUpdateParams protoreflect.MessageDescriptor - fd_MsgUpdateParams_authority protoreflect.FieldDescriptor - fd_MsgUpdateParams_params protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_tx_proto_init() - md_MsgUpdateParams = File_cardchain_featureflag_tx_proto.Messages().ByName("MsgUpdateParams") - fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") - fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) - -type fastReflection_MsgUpdateParams MsgUpdateParams - -func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(x) -} - -func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} - -type fastReflection_MsgUpdateParams_messageType struct{} - -func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(nil) -} -func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} -func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParams)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgUpdateParams_authority, value) { - return - } - } - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_MsgUpdateParams_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.MsgUpdateParams.authority": - return x.Authority != "" - case "cardchain.featureflag.MsgUpdateParams.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.MsgUpdateParams.authority": - x.Authority = "" - case "cardchain.featureflag.MsgUpdateParams.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.MsgUpdateParams.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.featureflag.MsgUpdateParams.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParams does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.MsgUpdateParams.authority": - x.Authority = value.Interface().(string) - case "cardchain.featureflag.MsgUpdateParams.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.MsgUpdateParams.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "cardchain.featureflag.MsgUpdateParams.authority": - panic(fmt.Errorf("field authority of message cardchain.featureflag.MsgUpdateParams is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.MsgUpdateParams.authority": - return protoreflect.ValueOfString("") - case "cardchain.featureflag.MsgUpdateParams.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParams")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.MsgUpdateParams", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParams) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateParamsResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_featureflag_tx_proto_init() - md_MsgUpdateParamsResponse = File_cardchain_featureflag_tx_proto.Messages().ByName("MsgUpdateParamsResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) - -type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse - -func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(x) -} - -func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} - -type fastReflection_MsgUpdateParamsResponse_messageType struct{} - -func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(nil) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParamsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.MsgUpdateParamsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSet protoreflect.MessageDescriptor - fd_MsgSet_authority protoreflect.FieldDescriptor - fd_MsgSet_module protoreflect.FieldDescriptor - fd_MsgSet_name protoreflect.FieldDescriptor - fd_MsgSet_value protoreflect.FieldDescriptor -) - -func init() { - file_cardchain_featureflag_tx_proto_init() - md_MsgSet = File_cardchain_featureflag_tx_proto.Messages().ByName("MsgSet") - fd_MsgSet_authority = md_MsgSet.Fields().ByName("authority") - fd_MsgSet_module = md_MsgSet.Fields().ByName("module") - fd_MsgSet_name = md_MsgSet.Fields().ByName("name") - fd_MsgSet_value = md_MsgSet.Fields().ByName("value") -} - -var _ protoreflect.Message = (*fastReflection_MsgSet)(nil) - -type fastReflection_MsgSet MsgSet - -func (x *MsgSet) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSet)(x) -} - -func (x *MsgSet) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSet_messageType fastReflection_MsgSet_messageType -var _ protoreflect.MessageType = fastReflection_MsgSet_messageType{} - -type fastReflection_MsgSet_messageType struct{} - -func (x fastReflection_MsgSet_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSet)(nil) -} -func (x fastReflection_MsgSet_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSet) -} -func (x fastReflection_MsgSet_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSet -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSet) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSet -} - -// 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_MsgSet) Type() protoreflect.MessageType { - return _fastReflection_MsgSet_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSet) New() protoreflect.Message { - return new(fastReflection_MsgSet) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSet) Interface() protoreflect.ProtoMessage { - return (*MsgSet)(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_MsgSet) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgSet_authority, value) { - return - } - } - if x.Module != "" { - value := protoreflect.ValueOfString(x.Module) - if !f(fd_MsgSet_module, value) { - return - } - } - if x.Name != "" { - value := protoreflect.ValueOfString(x.Name) - if !f(fd_MsgSet_name, value) { - return - } - } - if x.Value != false { - value := protoreflect.ValueOfBool(x.Value) - if !f(fd_MsgSet_value, 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_MsgSet) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "cardchain.featureflag.MsgSet.authority": - return x.Authority != "" - case "cardchain.featureflag.MsgSet.module": - return x.Module != "" - case "cardchain.featureflag.MsgSet.name": - return x.Name != "" - case "cardchain.featureflag.MsgSet.value": - return x.Value != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSet")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSet 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_MsgSet) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "cardchain.featureflag.MsgSet.authority": - x.Authority = "" - case "cardchain.featureflag.MsgSet.module": - x.Module = "" - case "cardchain.featureflag.MsgSet.name": - x.Name = "" - case "cardchain.featureflag.MsgSet.value": - x.Value = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSet")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSet 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_MsgSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "cardchain.featureflag.MsgSet.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "cardchain.featureflag.MsgSet.module": - value := x.Module - return protoreflect.ValueOfString(value) - case "cardchain.featureflag.MsgSet.name": - value := x.Name - return protoreflect.ValueOfString(value) - case "cardchain.featureflag.MsgSet.value": - value := x.Value - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSet")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSet 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_MsgSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "cardchain.featureflag.MsgSet.authority": - x.Authority = value.Interface().(string) - case "cardchain.featureflag.MsgSet.module": - x.Module = value.Interface().(string) - case "cardchain.featureflag.MsgSet.name": - x.Name = value.Interface().(string) - case "cardchain.featureflag.MsgSet.value": - x.Value = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSet")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSet 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_MsgSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.MsgSet.authority": - panic(fmt.Errorf("field authority of message cardchain.featureflag.MsgSet is not mutable")) - case "cardchain.featureflag.MsgSet.module": - panic(fmt.Errorf("field module of message cardchain.featureflag.MsgSet is not mutable")) - case "cardchain.featureflag.MsgSet.name": - panic(fmt.Errorf("field name of message cardchain.featureflag.MsgSet is not mutable")) - case "cardchain.featureflag.MsgSet.value": - panic(fmt.Errorf("field value of message cardchain.featureflag.MsgSet is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSet")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSet 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_MsgSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "cardchain.featureflag.MsgSet.authority": - return protoreflect.ValueOfString("") - case "cardchain.featureflag.MsgSet.module": - return protoreflect.ValueOfString("") - case "cardchain.featureflag.MsgSet.name": - return protoreflect.ValueOfString("") - case "cardchain.featureflag.MsgSet.value": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSet")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSet 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_MsgSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.MsgSet", 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_MsgSet) 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_MsgSet) 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_MsgSet) 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_MsgSet) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSet) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Module) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Name) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Value { - n += 2 - } - 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().(*MsgSet) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Value { - i-- - if x.Value { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(x.Name) > 0 { - i -= len(x.Name) - copy(dAtA[i:], x.Name) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) - i-- - dAtA[i] = 0x1a - } - if len(x.Module) > 0 { - i -= len(x.Module) - copy(dAtA[i:], x.Module) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Module))) - i-- - dAtA[i] = 0x12 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSet) - 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: MsgSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Module", 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.Module = 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 Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var v 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++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.Value = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetResponse protoreflect.MessageDescriptor -) - -func init() { - file_cardchain_featureflag_tx_proto_init() - md_MsgSetResponse = File_cardchain_featureflag_tx_proto.Messages().ByName("MsgSetResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetResponse)(nil) - -type fastReflection_MsgSetResponse MsgSetResponse - -func (x *MsgSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetResponse)(x) -} - -func (x *MsgSetResponse) slowProtoReflect() protoreflect.Message { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSetResponse_messageType fastReflection_MsgSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetResponse_messageType{} - -type fastReflection_MsgSetResponse_messageType struct{} - -func (x fastReflection_MsgSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetResponse)(nil) -} -func (x fastReflection_MsgSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetResponse) -} -func (x fastReflection_MsgSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetResponse -} - -// 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_MsgSetResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetResponse)(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_MsgSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSetResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSetResponse 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_MsgSetResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSetResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSetResponse 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_MsgSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSetResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSetResponse 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_MsgSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSetResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSetResponse 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_MsgSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSetResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSetResponse 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_MsgSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: cardchain.featureflag.MsgSetResponse")) - } - panic(fmt.Errorf("message cardchain.featureflag.MsgSetResponse 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_MsgSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in cardchain.featureflag.MsgSetResponse", 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_MsgSetResponse) 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_MsgSetResponse) 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_MsgSetResponse) 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_MsgSetResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetResponse) - 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().(*MsgSetResponse) - 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().(*MsgSetResponse) - 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: MsgSetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: cardchain/featureflag/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the address that controls the module (defaults to x/gov unless - // overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // NOTE: All parameters must be supplied. - Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *MsgUpdateParams) Reset() { - *x = MsgUpdateParams{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParams) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgUpdateParams) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgUpdateParams) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateParamsResponse) Reset() { - *x = MsgUpdateParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParamsResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_tx_proto_rawDescGZIP(), []int{1} -} - -type MsgSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Value bool `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *MsgSet) Reset() { - *x = MsgSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSet) ProtoMessage() {} - -// Deprecated: Use MsgSet.ProtoReflect.Descriptor instead. -func (*MsgSet) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MsgSet) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgSet) GetModule() string { - if x != nil { - return x.Module - } - return "" -} - -func (x *MsgSet) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MsgSet) GetValue() bool { - if x != nil { - return x.Value - } - return false -} - -type MsgSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetResponse) Reset() { - *x = MsgSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cardchain_featureflag_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetResponse.ProtoReflect.Descriptor instead. -func (*MsgSetResponse) Descriptor() ([]byte, []int) { - return file_cardchain_featureflag_tx_proto_rawDescGZIP(), []int{3} -} - -var File_cardchain_featureflag_tx_proto protoreflect.FileDescriptor - -var file_cardchain_featureflag_tx_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x15, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, - 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, - 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x3a, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x27, 0x63, 0x61, 0x72, 0x64, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, - 0x61, 0x67, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x01, - 0x0a, 0x06, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x22, 0x10, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc1, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x66, 0x0a, 0x0c, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x63, - 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2e, 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x1d, 0x2e, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, - 0x6c, 0x61, 0x67, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x61, 0x72, - 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, - 0x61, 0x67, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdb, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x43, 0x61, 0x72, 0x64, 0x47, 0x61, 0x6d, 0x65, 0x2f, - 0x63, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x61, - 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, - 0x6c, 0x61, 0x67, 0xa2, 0x02, 0x03, 0x43, 0x46, 0x58, 0xaa, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, - 0x67, 0xca, 0x02, 0x15, 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0xe2, 0x02, 0x21, 0x43, 0x61, 0x72, 0x64, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x66, 0x6c, 0x61, - 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, - 0x43, 0x61, 0x72, 0x64, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x46, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x66, 0x6c, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cardchain_featureflag_tx_proto_rawDescOnce sync.Once - file_cardchain_featureflag_tx_proto_rawDescData = file_cardchain_featureflag_tx_proto_rawDesc -) - -func file_cardchain_featureflag_tx_proto_rawDescGZIP() []byte { - file_cardchain_featureflag_tx_proto_rawDescOnce.Do(func() { - file_cardchain_featureflag_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardchain_featureflag_tx_proto_rawDescData) - }) - return file_cardchain_featureflag_tx_proto_rawDescData -} - -var file_cardchain_featureflag_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cardchain_featureflag_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: cardchain.featureflag.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: cardchain.featureflag.MsgUpdateParamsResponse - (*MsgSet)(nil), // 2: cardchain.featureflag.MsgSet - (*MsgSetResponse)(nil), // 3: cardchain.featureflag.MsgSetResponse - (*Params)(nil), // 4: cardchain.featureflag.Params -} -var file_cardchain_featureflag_tx_proto_depIdxs = []int32{ - 4, // 0: cardchain.featureflag.MsgUpdateParams.params:type_name -> cardchain.featureflag.Params - 0, // 1: cardchain.featureflag.Msg.UpdateParams:input_type -> cardchain.featureflag.MsgUpdateParams - 2, // 2: cardchain.featureflag.Msg.Set:input_type -> cardchain.featureflag.MsgSet - 1, // 3: cardchain.featureflag.Msg.UpdateParams:output_type -> cardchain.featureflag.MsgUpdateParamsResponse - 3, // 4: cardchain.featureflag.Msg.Set:output_type -> cardchain.featureflag.MsgSetResponse - 3, // [3:5] is the sub-list for method output_type - 1, // [1:3] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cardchain_featureflag_tx_proto_init() } -func file_cardchain_featureflag_tx_proto_init() { - if File_cardchain_featureflag_tx_proto != nil { - return - } - file_cardchain_featureflag_params_proto_init() - if !protoimpl.UnsafeEnabled { - file_cardchain_featureflag_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cardchain_featureflag_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cardchain_featureflag_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cardchain_featureflag_tx_proto_goTypes, - DependencyIndexes: file_cardchain_featureflag_tx_proto_depIdxs, - MessageInfos: file_cardchain_featureflag_tx_proto_msgTypes, - }.Build() - File_cardchain_featureflag_tx_proto = out.File - file_cardchain_featureflag_tx_proto_rawDesc = nil - file_cardchain_featureflag_tx_proto_goTypes = nil - file_cardchain_featureflag_tx_proto_depIdxs = nil -} diff --git a/api/cardchain/featureflag/tx_grpc.pb.go b/api/cardchain/featureflag/tx_grpc.pb.go deleted file mode 100644 index b0fc826f..00000000 --- a/api/cardchain/featureflag/tx_grpc.pb.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: cardchain/featureflag/tx.proto - -package featureflag - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - Msg_UpdateParams_FullMethodName = "/cardchain.featureflag.Msg/UpdateParams" - Msg_Set_FullMethodName = "/cardchain.featureflag.Msg/Set" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type MsgClient interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - Set(ctx context.Context, in *MsgSet, opts ...grpc.CallOption) (*MsgSetResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Set(ctx context.Context, in *MsgSet, opts ...grpc.CallOption) (*MsgSetResponse, error) { - out := new(MsgSetResponse) - err := c.cc.Invoke(ctx, Msg_Set_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility -type MsgServer interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - Set(context.Context, *MsgSet) (*MsgSetResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") -} -func (UnimplementedMsgServer) Set(context.Context, *MsgSet) (*MsgSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Set not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateParams_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Set(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_Set_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Set(ctx, req.(*MsgSet)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "cardchain.featureflag.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "Set", - Handler: _Msg_Set_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cardchain/featureflag/tx.proto", -} diff --git a/app/app_config.go b/app/app_config.go index d80bc0ec..0098fcad 100644 --- a/app/app_config.go +++ b/app/app_config.go @@ -53,8 +53,6 @@ import ( ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" "google.golang.org/protobuf/types/known/durationpb" - cardchainmodulev1 "github.com/DecentralCardGame/cardchain/api/cardchain/cardchain/module" - featureflagmodulev1 "github.com/DecentralCardGame/cardchain/api/cardchain/featureflag/module" _ "github.com/DecentralCardGame/cardchain/x/cardchain/module" // import for side-effects cardchainmoduletypes "github.com/DecentralCardGame/cardchain/x/cardchain/types" _ "github.com/DecentralCardGame/cardchain/x/featureflag/module" // import for side-effects @@ -304,11 +302,11 @@ var ( }, { Name: cardchainmoduletypes.ModuleName, - Config: appconfig.WrapAny(&cardchainmodulev1.Module{}), + Config: appconfig.WrapAny(&cardchainmoduletypes.Module{}), }, { Name: featureflagmoduletypes.ModuleName, - Config: appconfig.WrapAny(&featureflagmodulev1.Module{}), + Config: appconfig.WrapAny(&featureflagmoduletypes.Module{}), }, // this line is used by starport scaffolding # stargate/app/moduleConfig }, diff --git a/app/ibc.go b/app/ibc.go index 5766c2d2..97bf83b6 100644 --- a/app/ibc.go +++ b/app/ibc.go @@ -3,7 +3,7 @@ package app import ( "cosmossdk.io/core/appmodule" storetypes "cosmossdk.io/store/types" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/codec" servertypes "github.com/cosmos/cosmos-sdk/server/types" "github.com/cosmos/cosmos-sdk/types/module" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -188,7 +188,7 @@ func (app *App) registerIBCModules(appOpts servertypes.AppOptions) error { // RegisterIBC Since the IBC modules don't support dependency injection, // we need to manually register the modules on the client side. // This needs to be removed after IBC supports App Wiring. -func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule { +func RegisterIBC(cdc codec.Codec) map[string]appmodule.AppModule { modules := map[string]appmodule.AppModule{ ibcexported.ModuleName: ibc.AppModule{}, ibctransfertypes.ModuleName: ibctransfer.AppModule{}, @@ -199,8 +199,10 @@ func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppMo solomachine.ModuleName: solomachine.AppModule{}, } - for name, m := range modules { - module.CoreAppModuleBasicAdaptor(name, m).RegisterInterfaces(registry) + for _, m := range modules { + if mr, ok := m.(module.AppModuleBasic); ok { + mr.RegisterInterfaces(cdc.InterfaceRegistry()) + } } return modules diff --git a/buf.yaml b/buf.yaml index 7b932916..3097373c 100644 --- a/buf.yaml +++ b/buf.yaml @@ -8,6 +8,7 @@ deps: - buf.build/cosmos/ics23 - buf.build/googleapis/googleapis - buf.build/protocolbuffers/wellknowntypes + - buf.build/cosmos/ibc lint: use: - COMMENTS diff --git a/cmd/cardchaind/cmd/root.go b/cmd/cardchaind/cmd/root.go index 53dfa6fd..a2044302 100644 --- a/cmd/cardchaind/cmd/root.go +++ b/cmd/cardchaind/cmd/root.go @@ -81,7 +81,7 @@ func NewRootCmd() *cobra.Command { // Since the IBC modules don't support dependency injection, we need to // manually register the modules on the client side. // This needs to be removed after IBC supports App Wiring. - ibcModules := app.RegisterIBC(clientCtx.InterfaceRegistry) + ibcModules := app.RegisterIBC(clientCtx.Codec) for name, mod := range ibcModules { moduleBasicManager[name] = module.CoreAppModuleBasicAdaptor(name, mod) autoCliOpts.Modules[name] = mod diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 5d72d14a..bd04872c 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -1 +1 @@ -{"id":"github.com/DecentralCardGame/cardchain","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain github.com/DecentralCardGame/cardchain REST API","title":"HTTP API Console","contact":{"name":"github.com/DecentralCardGame/cardchain"},"version":"version not set"},"paths":{"/DecentralCardGame/cardchain/cardchain/account_from_zealy/{zealyId}":{"get":{"tags":["Query"],"summary":"Queries a list of AccountFromZealy items.","operationId":"GithubComDecentralCardGamecardchainQuery_AccountFromZealy","parameters":[{"type":"string","name":"zealyId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryAccountFromZealyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/card/{cardId}":{"get":{"tags":["Query"],"summary":"Queries a list of Card items.","operationId":"GithubComDecentralCardGamecardchainQuery_Card","parameters":[{"type":"string","format":"uint64","name":"cardId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/card_content/{cardId}":{"get":{"tags":["Query"],"summary":"Queries a list of CardContent items.","operationId":"GithubComDecentralCardGamecardchainQuery_CardContent","parameters":[{"type":"string","format":"uint64","name":"cardId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardContentResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/card_contents":{"get":{"tags":["Query"],"summary":"Queries a list of CardContents items.","operationId":"GithubComDecentralCardGamecardchainQuery_CardContents","parameters":[{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"cardIds","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardContentsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/cardchain_info":{"get":{"tags":["Query"],"summary":"Queries a list of CardchainInfo items.","operationId":"GithubComDecentralCardGamecardchainQuery_CardchainInfo","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardchainInfoResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/cards":{"get":{"tags":["Query"],"summary":"Queries a list of Cards items.","operationId":"GithubComDecentralCardGamecardchainQuery_Cards","parameters":[{"type":"string","name":"owner","in":"query"},{"type":"array","items":{"enum":["none","scheme","prototype","trial","permanent","suspended","banned","bannedSoon","bannedVerySoon","adventureItem"],"type":"string"},"collectionFormat":"multi","name":"status","in":"query"},{"type":"array","items":{"enum":["place","action","entity","headquarter"],"type":"string"},"collectionFormat":"multi","name":"cardType","in":"query"},{"type":"array","items":{"enum":["nature","culture","mysticism","technology"],"type":"string"},"collectionFormat":"multi","name":"class","in":"query"},{"type":"string","name":"sortBy","in":"query"},{"type":"string","name":"nameContains","in":"query"},{"type":"string","name":"keywordsContains","in":"query"},{"type":"string","name":"notesContains","in":"query"},{"type":"boolean","name":"onlyStarterCard","in":"query"},{"type":"boolean","name":"onlyBalanceAnchors","in":"query"},{"type":"array","items":{"enum":["common","uncommon","rare","exceptional","unique"],"type":"string"},"collectionFormat":"multi","name":"rarities","in":"query"},{"type":"boolean","name":"multiClassOnly","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/council/{councilId}":{"get":{"tags":["Query"],"summary":"Queries a list of Council items.","operationId":"GithubComDecentralCardGamecardchainQuery_Council","parameters":[{"type":"string","format":"uint64","name":"councilId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCouncilResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounter/{encounterId}":{"get":{"tags":["Query"],"summary":"Queries a list of Encounter items.","operationId":"GithubComDecentralCardGamecardchainQuery_Encounter","parameters":[{"type":"string","format":"uint64","name":"encounterId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncounterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounter_with_image/{encounterId}":{"get":{"tags":["Query"],"summary":"Queries a list of EncounterWithImage items.","operationId":"GithubComDecentralCardGamecardchainQuery_EncounterWithImage","parameters":[{"type":"string","format":"uint64","name":"encounterId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncounterWithImageResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounters":{"get":{"tags":["Query"],"summary":"Queries a list of Encounters items.","operationId":"GithubComDecentralCardGamecardchainQuery_Encounters","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncountersResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounters_with_image":{"get":{"tags":["Query"],"summary":"Queries a list of EncountersWithImage items.","operationId":"GithubComDecentralCardGamecardchainQuery_EncountersWithImage","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncountersWithImageResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/match/{matchId}":{"get":{"tags":["Query"],"summary":"Queries a list of Match items.","operationId":"GithubComDecentralCardGamecardchainQuery_Match","parameters":[{"type":"string","format":"uint64","name":"matchId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryMatchResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/matches":{"get":{"tags":["Query"],"summary":"Queries a list of Matches items.","operationId":"GithubComDecentralCardGamecardchainQuery_Matches","parameters":[{"type":"string","format":"uint64","name":"timestampDown","in":"query"},{"type":"string","format":"uint64","name":"timestampUp","in":"query"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"containsUsers","in":"query"},{"type":"string","name":"reporter","in":"query"},{"enum":["Undefined","AWon","BWon","Draw","Aborted"],"type":"string","default":"Undefined","name":"outcome","in":"query"},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"cardsPlayed","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryMatchesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubComDecentralCardGamecardchainQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/sell_offer/{sellOfferId}":{"get":{"tags":["Query"],"summary":"Queries a list of SellOffer items.","operationId":"GithubComDecentralCardGamecardchainQuery_SellOffer","parameters":[{"type":"string","format":"uint64","name":"sellOfferId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySellOfferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/sell_offers":{"get":{"tags":["Query"],"summary":"Queries a list of SellOffers items.","operationId":"GithubComDecentralCardGamecardchainQuery_SellOffers","parameters":[{"type":"string","name":"priceDown.denom","in":"query"},{"type":"string","name":"priceDown.amount","in":"query"},{"type":"string","name":"priceUp.denom","in":"query"},{"type":"string","name":"priceUp.amount","in":"query"},{"type":"string","name":"seller","in":"query"},{"type":"string","name":"buyer","in":"query"},{"type":"string","format":"uint64","name":"card","in":"query"},{"enum":["empty","open","sold","removed"],"type":"string","default":"empty","name":"status","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySellOffersResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/server/{serverId}":{"get":{"tags":["Query"],"summary":"Queries a list of Server items.","operationId":"GithubComDecentralCardGamecardchainQuery_Server","parameters":[{"type":"string","format":"uint64","name":"serverId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryServerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/set/{setId}":{"get":{"tags":["Query"],"summary":"Queries a list of Set items.","operationId":"GithubComDecentralCardGamecardchainQuery_Set","parameters":[{"type":"string","format":"uint64","name":"setId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/set_rarity_distribution/{setId}":{"get":{"tags":["Query"],"summary":"Queries a list of SetRarityDistribution items.","operationId":"GithubComDecentralCardGamecardchainQuery_SetRarityDistribution","parameters":[{"type":"string","format":"uint64","name":"setId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySetRarityDistributionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/sets/{status}":{"get":{"tags":["Query"],"summary":"Queries a list of Sets items.","operationId":"GithubComDecentralCardGamecardchainQuery_Sets","parameters":[{"enum":["undefined","design","finalized","active","archived"],"type":"string","name":"status","in":"path","required":true},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"contributors","in":"query"},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"containsCards","in":"query"},{"type":"string","name":"owner","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySetsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/user/{address}":{"get":{"tags":["Query"],"summary":"Queries a list of User items.","operationId":"GithubComDecentralCardGamecardchainQuery_User","parameters":[{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryUserResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/voting_results":{"get":{"tags":["Query"],"summary":"Queries a list of VotingResults items.","operationId":"GithubComDecentralCardGamecardchainQuery_VotingResults","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryVotingResultsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/featureflag/flag/{module}/{name}":{"get":{"tags":["Query"],"summary":"Queries a list of Flag items.","operationId":"GithubComDecentralCardGamecardchainQuery_Flag","parameters":[{"type":"string","name":"module","in":"path","required":true},{"type":"string","name":"name","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.QueryFlagResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/featureflag/flags":{"get":{"tags":["Query"],"summary":"Queries a list of Flags items.","operationId":"GithubComDecentralCardGamecardchainQuery_Flags","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.QueryFlagsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/featureflag/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubComDecentralCardGamecardchainQuery_ParamsMixin24","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/BoosterPackBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_BoosterPackBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/BoosterPackOpen":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_BoosterPackOpen","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackOpen"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackOpenResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/BoosterPackTransfer":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_BoosterPackTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtistChange":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtistChange","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChange"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChangeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtworkAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtworkAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardBan":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardBan","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardBan"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardBanResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardCopyrightClaim":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardCopyrightClaim","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardCopyrightClaim"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardCopyrightClaimResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardDonate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardDonate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardRaritySet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardRaritySet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardRaritySet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardRaritySetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSaveContent":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSaveContent","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContent"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContentResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSchemeBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSchemeBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardTransfer":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardVote":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardVote","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardVoteMulti":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardVoteMulti","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteMulti"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteMultiResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilDeregister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilDeregister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilRegister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilRegister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilResponseCommit":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilResponseCommit","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseCommit"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseCommitResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilResponseReveal":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilResponseReveal","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseReveal"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseRevealResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilRestart":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilRestart","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRestart"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRestartResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EarlyAccessDisinvite":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EarlyAccessDisinvite","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessDisinvite"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessDisinviteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EarlyAccessGrant":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EarlyAccessGrant","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessGrant"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessGrantResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EarlyAccessInvite":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EarlyAccessInvite","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessInvite"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessInviteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EncounterClose":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EncounterClose","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterClose"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterCloseResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EncounterCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EncounterCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EncounterDo":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EncounterDo","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterDo"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterDoResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchConfirm":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchConfirm","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchConfirm"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchConfirmResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchOpen":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchOpen","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchOpen"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchOpenResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchReport":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchReport","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReport"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReportResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchReporterAppoint":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchReporterAppoint","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReporterAppoint"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReporterAppointResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileAliasSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileAliasSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileAliasSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileAliasSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileBioSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileBioSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileBioSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileBioSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileCardSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileCardSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileCardSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileCardSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileWebsiteSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileWebsiteSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileWebsiteSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileWebsiteSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetActivate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetActivate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetActivate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetActivateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetArtistSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetArtistSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtistSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtistSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetArtworkAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetArtworkAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtworkAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtworkAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCardAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCardAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCardRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCardRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetContributorAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetContributorAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetContributorRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetContributorRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetFinalize":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetFinalize","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetFinalize"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetFinalizeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetNameSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetNameSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetNameSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetNameSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetStoryAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetStoryAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetStoryWriterSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetStoryWriterSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryWriterSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryWriterSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubComDecentralCardGamecardchainMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UserCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_UserCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ZealyConnect":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ZealyConnect","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgZealyConnect"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgZealyConnectResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.featureflag.Msg/Set":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_Set","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.featureflag.MsgSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.MsgSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.featureflag.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubComDecentralCardGamecardchainMsg_UpdateParamsMixin25","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.featureflag.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"cardchain.cardchain.AddrWithQuantity":{"type":"object","properties":{"addr":{"type":"string"},"payment":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"q":{"type":"integer","format":"int64"}}},"cardchain.cardchain.AirDrops":{"type":"object","properties":{"buy":{"type":"boolean"},"create":{"type":"boolean"},"play":{"type":"boolean"},"user":{"type":"boolean"},"vote":{"type":"boolean"}}},"cardchain.cardchain.BoosterPack":{"type":"object","properties":{"dropRatiosPerPack":{"type":"array","title":"The chances of the rare beeing a normal rare, an exceptional or a unique","items":{"type":"string","format":"uint64"}},"raritiesPerPack":{"type":"array","title":"How often the different rarities will appear in a BoosterPack","items":{"type":"string","format":"uint64"}},"setId":{"type":"string","format":"uint64"},"timeStamp":{"type":"string","format":"int64"}}},"cardchain.cardchain.Card":{"type":"object","properties":{"artist":{"type":"string"},"balanceAnchor":{"type":"boolean"},"content":{"type":"string","format":"byte"},"fairEnoughVotes":{"type":"string","format":"uint64"},"fullArt":{"type":"boolean"},"image_id":{"type":"string","format":"uint64"},"inappropriateVotes":{"type":"string","format":"uint64"},"nerflevel":{"type":"string","format":"int64"},"notes":{"type":"string"},"overpoweredVotes":{"type":"string","format":"uint64"},"owner":{"type":"string"},"rarity":{"$ref":"#/definitions/cardchain.cardchain.CardRarity"},"starterCard":{"type":"boolean"},"status":{"$ref":"#/definitions/cardchain.cardchain.CardStatus"},"underpoweredVotes":{"type":"string","format":"uint64"},"votePool":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"voters":{"type":"array","items":{"type":"string"}}}},"cardchain.cardchain.CardClass":{"type":"string","default":"nature","enum":["nature","culture","mysticism","technology"]},"cardchain.cardchain.CardContent":{"type":"object","properties":{"content":{"type":"string"},"hash":{"type":"string"}}},"cardchain.cardchain.CardRarity":{"type":"string","default":"common","enum":["common","uncommon","rare","exceptional","unique"]},"cardchain.cardchain.CardStatus":{"type":"string","default":"none","enum":["none","scheme","prototype","trial","permanent","suspended","banned","bannedSoon","bannedVerySoon","adventureItem"]},"cardchain.cardchain.CardType":{"type":"string","default":"place","enum":["place","action","entity","headquarter"]},"cardchain.cardchain.CardWithImage":{"type":"object","properties":{"card":{"$ref":"#/definitions/cardchain.cardchain.Card"},"hash":{"type":"string"},"image":{"type":"string"}}},"cardchain.cardchain.CouncelingStatus":{"type":"string","default":"councilOpen","enum":["councilOpen","councilCreated","councilClosed","commited","revealed","suggestionsMade"]},"cardchain.cardchain.Council":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"clearResponses":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.WrapClearResponse"}},"hashResponses":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.WrapHashResponse"}},"status":{"$ref":"#/definitions/cardchain.cardchain.CouncelingStatus"},"treasury":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"trialStart":{"type":"string","format":"uint64"},"voters":{"type":"array","items":{"type":"string"}}}},"cardchain.cardchain.CouncilStatus":{"type":"string","default":"available","enum":["available","unavailable","openCouncil","startedCouncil"]},"cardchain.cardchain.EarlyAccess":{"type":"object","properties":{"active":{"type":"boolean"},"invitedByUser":{"type":"string"},"invitedUser":{"type":"string"}}},"cardchain.cardchain.Encounter":{"type":"object","properties":{"drawlist":{"type":"array","items":{"type":"string","format":"uint64"}},"id":{"type":"string","format":"uint64"},"imageId":{"type":"string","format":"uint64"},"name":{"type":"string"},"owner":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Parameter"}},"proven":{"type":"boolean"}}},"cardchain.cardchain.EncounterWithImage":{"type":"object","properties":{"encounter":{"$ref":"#/definitions/cardchain.cardchain.Encounter"},"image":{"type":"string"}}},"cardchain.cardchain.InnerRarities":{"type":"object","properties":{"R":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.Match":{"type":"object","properties":{"coinsDistributed":{"type":"boolean"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playerA":{"$ref":"#/definitions/cardchain.cardchain.MatchPlayer"},"playerB":{"$ref":"#/definitions/cardchain.cardchain.MatchPlayer"},"reporter":{"type":"string"},"serverConfirmed":{"type":"boolean"},"timestamp":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MatchPlayer":{"type":"object","properties":{"addr":{"type":"string"},"confirmed":{"type":"boolean"},"deck":{"type":"array","items":{"type":"string","format":"uint64"}},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playedCards":{"type":"array","items":{"type":"string","format":"uint64"}},"votedCards":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SingleVote"}}}},"cardchain.cardchain.MsgBoosterPackBuy":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgBoosterPackBuyResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgBoosterPackOpen":{"type":"object","properties":{"boosterPackId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgBoosterPackOpenResponse":{"type":"object","properties":{"cardIds":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgBoosterPackTransfer":{"type":"object","properties":{"boosterPackId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"receiver":{"type":"string"}}},"cardchain.cardchain.MsgBoosterPackTransferResponse":{"type":"object"},"cardchain.cardchain.MsgCardArtistChange":{"type":"object","properties":{"artist":{"type":"string"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardArtistChangeResponse":{"type":"object"},"cardchain.cardchain.MsgCardArtworkAdd":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"fullArt":{"type":"boolean"},"image":{"type":"string","format":"byte"}}},"cardchain.cardchain.MsgCardArtworkAddResponse":{"type":"object"},"cardchain.cardchain.MsgCardBan":{"type":"object","properties":{"authority":{"type":"string"},"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardBanResponse":{"type":"object"},"cardchain.cardchain.MsgCardCopyrightClaim":{"type":"object","properties":{"authority":{"type":"string"},"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardCopyrightClaimResponse":{"type":"object"},"cardchain.cardchain.MsgCardDonate":{"type":"object","properties":{"amount":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardDonateResponse":{"type":"object"},"cardchain.cardchain.MsgCardRaritySet":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"rarity":{"$ref":"#/definitions/cardchain.cardchain.CardRarity"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardRaritySetResponse":{"type":"object"},"cardchain.cardchain.MsgCardSaveContent":{"type":"object","properties":{"artist":{"type":"string"},"balanceAnchor":{"type":"boolean"},"cardId":{"type":"string","format":"uint64"},"content":{"type":"string","format":"byte"},"creator":{"type":"string"},"notes":{"type":"string"}}},"cardchain.cardchain.MsgCardSaveContentResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCardSchemeBuy":{"type":"object","properties":{"bid":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardSchemeBuyResponse":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardTransfer":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"receiver":{"type":"string"}}},"cardchain.cardchain.MsgCardTransferResponse":{"type":"object"},"cardchain.cardchain.MsgCardVote":{"type":"object","properties":{"creator":{"type":"string"},"vote":{"$ref":"#/definitions/cardchain.cardchain.SingleVote"}}},"cardchain.cardchain.MsgCardVoteMulti":{"type":"object","properties":{"creator":{"type":"string"},"votes":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SingleVote"}}}},"cardchain.cardchain.MsgCardVoteMultiResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCardVoteResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCouncilCreate":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilCreateResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilDeregister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilDeregisterResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilRegister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilRegisterResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilResponseCommit":{"type":"object","properties":{"councilId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"response":{"type":"string"},"suggestion":{"type":"string"}}},"cardchain.cardchain.MsgCouncilResponseCommitResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilResponseReveal":{"type":"object","properties":{"councilId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"response":{"$ref":"#/definitions/cardchain.cardchain.Response"},"secret":{"type":"string"}}},"cardchain.cardchain.MsgCouncilResponseRevealResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilRestart":{"type":"object","properties":{"councilId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilRestartResponse":{"type":"object"},"cardchain.cardchain.MsgEarlyAccessDisinvite":{"type":"object","properties":{"creator":{"type":"string"},"user":{"type":"string"}}},"cardchain.cardchain.MsgEarlyAccessDisinviteResponse":{"type":"object"},"cardchain.cardchain.MsgEarlyAccessGrant":{"type":"object","properties":{"authority":{"type":"string"},"users":{"type":"array","items":{"type":"string"}}}},"cardchain.cardchain.MsgEarlyAccessGrantResponse":{"type":"object"},"cardchain.cardchain.MsgEarlyAccessInvite":{"type":"object","properties":{"creator":{"type":"string"},"user":{"type":"string"}}},"cardchain.cardchain.MsgEarlyAccessInviteResponse":{"type":"object"},"cardchain.cardchain.MsgEncounterClose":{"type":"object","properties":{"creator":{"type":"string"},"encounterId":{"type":"string","format":"uint64"},"user":{"type":"string"},"won":{"type":"boolean"}}},"cardchain.cardchain.MsgEncounterCloseResponse":{"type":"object"},"cardchain.cardchain.MsgEncounterCreate":{"type":"object","properties":{"creator":{"type":"string"},"drawlist":{"type":"array","items":{"type":"string","format":"uint64"}},"image":{"type":"string","format":"byte"},"name":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Parameter"}}}},"cardchain.cardchain.MsgEncounterCreateResponse":{"type":"object"},"cardchain.cardchain.MsgEncounterDo":{"type":"object","properties":{"creator":{"type":"string"},"encounterId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgEncounterDoResponse":{"type":"object"},"cardchain.cardchain.MsgMatchConfirm":{"type":"object","properties":{"creator":{"type":"string"},"matchId":{"type":"string","format":"uint64"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"votedCards":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SingleVote"}}}},"cardchain.cardchain.MsgMatchConfirmResponse":{"type":"object"},"cardchain.cardchain.MsgMatchOpen":{"type":"object","properties":{"creator":{"type":"string"},"playerA":{"type":"string"},"playerADeck":{"type":"array","items":{"type":"string","format":"uint64"}},"playerB":{"type":"string"},"playerBDeck":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgMatchOpenResponse":{"type":"object","properties":{"matchId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgMatchReport":{"type":"object","properties":{"creator":{"type":"string"},"matchId":{"type":"string","format":"uint64"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playedCardsA":{"type":"array","items":{"type":"string","format":"uint64"}},"playedCardsB":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgMatchReportResponse":{"type":"object"},"cardchain.cardchain.MsgMatchReporterAppoint":{"type":"object","properties":{"authority":{"type":"string"},"reporter":{"type":"string"}}},"cardchain.cardchain.MsgMatchReporterAppointResponse":{"type":"object"},"cardchain.cardchain.MsgProfileAliasSet":{"type":"object","properties":{"alias":{"type":"string"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgProfileAliasSetResponse":{"type":"object"},"cardchain.cardchain.MsgProfileBioSet":{"type":"object","properties":{"bio":{"type":"string"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgProfileBioSetResponse":{"type":"object"},"cardchain.cardchain.MsgProfileCardSet":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgProfileCardSetResponse":{"type":"object"},"cardchain.cardchain.MsgProfileWebsiteSet":{"type":"object","properties":{"creator":{"type":"string"},"website":{"type":"string"}}},"cardchain.cardchain.MsgProfileWebsiteSetResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferBuy":{"type":"object","properties":{"creator":{"type":"string"},"sellOfferId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSellOfferBuyResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferCreate":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"price":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"cardchain.cardchain.MsgSellOfferCreateResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferRemove":{"type":"object","properties":{"creator":{"type":"string"},"sellOfferId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSellOfferRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetActivate":{"type":"object","properties":{"authority":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetActivateResponse":{"type":"object"},"cardchain.cardchain.MsgSetArtistSet":{"type":"object","properties":{"artist":{"type":"string"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetArtistSetResponse":{"type":"object"},"cardchain.cardchain.MsgSetArtworkAdd":{"type":"object","properties":{"creator":{"type":"string"},"image":{"type":"string","format":"byte"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetArtworkAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetCardAdd":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetCardAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetCardRemove":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetCardRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetContributorAdd":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgSetContributorAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetContributorRemove":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgSetContributorRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetCreate":{"type":"object","properties":{"artist":{"type":"string"},"contributors":{"type":"array","items":{"type":"string"}},"creator":{"type":"string"},"name":{"type":"string"},"storyWriter":{"type":"string"}}},"cardchain.cardchain.MsgSetCreateResponse":{"type":"object"},"cardchain.cardchain.MsgSetFinalize":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetFinalizeResponse":{"type":"object"},"cardchain.cardchain.MsgSetNameSet":{"type":"object","properties":{"creator":{"type":"string"},"name":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetNameSetResponse":{"type":"object"},"cardchain.cardchain.MsgSetStoryAdd":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"story":{"type":"string"}}},"cardchain.cardchain.MsgSetStoryAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetStoryWriterSet":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"storyWriter":{"type":"string"}}},"cardchain.cardchain.MsgSetStoryWriterSetResponse":{"type":"object"},"cardchain.cardchain.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless\noverwritten).","type":"string"},"params":{"description":"NOTE: All parameters must be supplied.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cardchain.cardchain.MsgUserCreate":{"type":"object","properties":{"alias":{"type":"string"},"creator":{"type":"string"},"newUser":{"type":"string"}}},"cardchain.cardchain.MsgUserCreateResponse":{"type":"object"},"cardchain.cardchain.MsgZealyConnect":{"type":"object","properties":{"creator":{"type":"string"},"zealyId":{"type":"string"}}},"cardchain.cardchain.MsgZealyConnectResponse":{"type":"object"},"cardchain.cardchain.Outcome":{"type":"string","default":"Undefined","enum":["Undefined","AWon","BWon","Draw","Aborted"]},"cardchain.cardchain.Parameter":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"cardchain.cardchain.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"activeSetsAmount":{"type":"string","format":"uint64"},"airDropMaxBlockHeight":{"type":"string","format":"int64"},"airDropValue":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardAuctionPriceReductionPeriod":{"type":"string","format":"int64"},"collateralDeposit":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"commonsPerPack":{"type":"string","format":"uint64"},"exceptionalDropRatio":{"type":"string","format":"uint64"},"gameVoteRatio":{"type":"string","format":"int64"},"hourlyFaucet":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"inflationRate":{"type":"string"},"matchWorkerDelay":{"type":"string","format":"uint64"},"rareDropRatio":{"type":"string","format":"uint64"},"raresPerPack":{"type":"string","format":"uint64"},"setCreationFee":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"setPrice":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"setSize":{"type":"string","format":"uint64"},"trialPeriod":{"type":"string","format":"uint64"},"trialVoteReward":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"unCommonsPerPack":{"type":"string","format":"uint64"},"uniqueDropRatio":{"type":"string","format":"uint64"},"votePoolFraction":{"type":"string","format":"int64"},"votingRewardCap":{"type":"string","format":"int64"},"votingRightsExpirationTime":{"type":"string","format":"int64"},"winnerReward":{"type":"string","format":"int64"}}},"cardchain.cardchain.QueryAccountFromZealyResponse":{"type":"object","properties":{"address":{"type":"string"}}},"cardchain.cardchain.QueryCardContentResponse":{"type":"object","properties":{"cardContent":{"$ref":"#/definitions/cardchain.cardchain.CardContent"}}},"cardchain.cardchain.QueryCardContentsResponse":{"type":"object","properties":{"cardContents":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.CardContent"}}}},"cardchain.cardchain.QueryCardResponse":{"type":"object","properties":{"card":{"$ref":"#/definitions/cardchain.cardchain.CardWithImage"}}},"cardchain.cardchain.QueryCardchainInfoResponse":{"type":"object","properties":{"activeSets":{"type":"array","items":{"type":"string","format":"uint64"}},"cardAuctionPrice":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardsNumber":{"type":"string","format":"uint64"},"councilsNumber":{"type":"string","format":"uint64"},"lastCardModified":{"type":"string","format":"uint64"},"matchesNumber":{"type":"string","format":"uint64"},"sellOffersNumber":{"type":"string","format":"uint64"}}},"cardchain.cardchain.QueryCardsResponse":{"type":"object","properties":{"cardIds":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.QueryCouncilResponse":{"type":"object","properties":{"council":{"$ref":"#/definitions/cardchain.cardchain.Council"}}},"cardchain.cardchain.QueryEncounterResponse":{"type":"object","properties":{"encounter":{"$ref":"#/definitions/cardchain.cardchain.Encounter"}}},"cardchain.cardchain.QueryEncounterWithImageResponse":{"type":"object","properties":{"encounter":{"$ref":"#/definitions/cardchain.cardchain.EncounterWithImage"}}},"cardchain.cardchain.QueryEncountersResponse":{"type":"object","properties":{"encounters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Encounter"}}}},"cardchain.cardchain.QueryEncountersWithImageResponse":{"type":"object","properties":{"encounters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.EncounterWithImage"}}}},"cardchain.cardchain.QueryMatchResponse":{"type":"object","properties":{"match":{"$ref":"#/definitions/cardchain.cardchain.Match"}}},"cardchain.cardchain.QueryMatchesResponse":{"type":"object","properties":{"matchIds":{"type":"array","items":{"type":"string","format":"uint64"}},"matches":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Match"}}}},"cardchain.cardchain.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.QuerySellOfferResponse":{"type":"object","properties":{"sellOffer":{"$ref":"#/definitions/cardchain.cardchain.SellOffer"}}},"cardchain.cardchain.QuerySellOffersResponse":{"type":"object","properties":{"sellOfferIds":{"type":"array","items":{"type":"string","format":"uint64"}},"sellOffers":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SellOffer"}}}},"cardchain.cardchain.QueryServerResponse":{"type":"object","properties":{"server":{"$ref":"#/definitions/cardchain.cardchain.Server"}}},"cardchain.cardchain.QuerySetRarityDistributionResponse":{"type":"object","properties":{"current":{"type":"array","items":{"type":"string","format":"uint64"}},"wanted":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.QuerySetResponse":{"type":"object","properties":{"set":{"$ref":"#/definitions/cardchain.cardchain.SetWithArtwork"}}},"cardchain.cardchain.QuerySetsResponse":{"type":"object","properties":{"setIds":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.QueryUserResponse":{"type":"object","properties":{"user":{"$ref":"#/definitions/cardchain.cardchain.User"}}},"cardchain.cardchain.QueryVotingResultsResponse":{"type":"object","properties":{"lastVotingResults":{"$ref":"#/definitions/cardchain.cardchain.VotingResults"}}},"cardchain.cardchain.Response":{"type":"string","default":"Yes","enum":["Yes","No","Suggestion"]},"cardchain.cardchain.SellOffer":{"type":"object","properties":{"buyer":{"type":"string"},"card":{"type":"string","format":"uint64"},"price":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"seller":{"type":"string"},"status":{"$ref":"#/definitions/cardchain.cardchain.SellOfferStatus"}}},"cardchain.cardchain.SellOfferStatus":{"type":"string","default":"empty","enum":["empty","open","sold","removed"]},"cardchain.cardchain.Server":{"type":"object","properties":{"invalidReports":{"type":"string","format":"uint64"},"reporter":{"type":"string"},"validReports":{"type":"string","format":"uint64"}}},"cardchain.cardchain.Set":{"type":"object","properties":{"artist":{"type":"string"},"artworkId":{"type":"string","format":"uint64"},"cards":{"type":"array","items":{"type":"string","format":"uint64"}},"contributors":{"type":"array","items":{"type":"string"}},"contributorsDistribution":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.AddrWithQuantity"}},"name":{"type":"string"},"rarities":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.InnerRarities"}},"status":{"$ref":"#/definitions/cardchain.cardchain.SetStatus"},"story":{"type":"string"},"storyWriter":{"type":"string"},"timeStamp":{"type":"string","format":"int64"}}},"cardchain.cardchain.SetStatus":{"type":"string","default":"undefined","enum":["undefined","design","finalized","active","archived"]},"cardchain.cardchain.SetWithArtwork":{"type":"object","properties":{"artwork":{"type":"string","format":"byte"},"set":{"$ref":"#/definitions/cardchain.cardchain.Set"}}},"cardchain.cardchain.SingleVote":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"voteType":{"$ref":"#/definitions/cardchain.cardchain.VoteType"}}},"cardchain.cardchain.User":{"type":"object","properties":{"airDrops":{"$ref":"#/definitions/cardchain.cardchain.AirDrops"},"alias":{"type":"string"},"biography":{"type":"string"},"boosterPacks":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.BoosterPack"}},"cards":{"type":"array","items":{"type":"string","format":"uint64"}},"councilStatus":{"$ref":"#/definitions/cardchain.cardchain.CouncilStatus"},"earlyAccess":{"$ref":"#/definitions/cardchain.cardchain.EarlyAccess"},"openEncounters":{"type":"array","items":{"type":"string","format":"uint64"}},"ownedCardSchemes":{"type":"array","items":{"type":"string","format":"uint64"}},"ownedPrototypes":{"type":"array","items":{"type":"string","format":"uint64"}},"profileCard":{"type":"string","format":"uint64"},"reportMatches":{"type":"boolean"},"votableCards":{"type":"array","items":{"type":"string","format":"uint64"}},"votedCards":{"type":"array","items":{"type":"string","format":"uint64"}},"website":{"type":"string"},"wonEncounters":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.VoteType":{"type":"string","default":"fairEnough","enum":["fairEnough","inappropriate","overpowered","underpowered"]},"cardchain.cardchain.VotingResult":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"fairEnoughVotes":{"type":"string","format":"uint64"},"inappropriateVotes":{"type":"string","format":"uint64"},"overpoweredVotes":{"type":"string","format":"uint64"},"result":{"type":"string"},"underpoweredVotes":{"type":"string","format":"uint64"}}},"cardchain.cardchain.VotingResults":{"type":"object","properties":{"cardResults":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.VotingResult"}},"notes":{"type":"string"},"totalFairEnoughVotes":{"type":"string","format":"uint64"},"totalInappropriateVotes":{"type":"string","format":"uint64"},"totalOverpoweredVotes":{"type":"string","format":"uint64"},"totalUnderpoweredVotes":{"type":"string","format":"uint64"},"totalVotes":{"type":"string","format":"uint64"}}},"cardchain.cardchain.WrapClearResponse":{"type":"object","properties":{"response":{"$ref":"#/definitions/cardchain.cardchain.Response"},"suggestion":{"type":"string"},"user":{"type":"string"}}},"cardchain.cardchain.WrapHashResponse":{"type":"object","properties":{"hash":{"type":"string"},"user":{"type":"string"}}},"cardchain.featureflag.Flag":{"type":"object","properties":{"Module":{"type":"string"},"Name":{"type":"string"},"Set":{"type":"boolean"}}},"cardchain.featureflag.MsgSet":{"type":"object","properties":{"authority":{"type":"string"},"module":{"type":"string"},"name":{"type":"string"},"value":{"type":"boolean"}}},"cardchain.featureflag.MsgSetResponse":{"type":"object"},"cardchain.featureflag.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless\noverwritten).","type":"string"},"params":{"description":"NOTE: All parameters must be supplied.","$ref":"#/definitions/cardchain.featureflag.Params"}}},"cardchain.featureflag.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cardchain.featureflag.Params":{"description":"Params defines the parameters for the module.","type":"object"},"cardchain.featureflag.QueryFlagResponse":{"type":"object","properties":{"flag":{"$ref":"#/definitions/cardchain.featureflag.Flag"}}},"cardchain.featureflag.QueryFlagsResponse":{"type":"object","properties":{"flags":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.featureflag.Flag"}}}},"cardchain.featureflag.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/cardchain.featureflag.Params"}}},"cosmos.base.v1beta1.Coin":{"description":"Coin defines a token with a denomination and an amount.\n\nNOTE: The amount field is an Int which implements the custom method\nsignatures required by gogoproto.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"}}},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}}},"tags":[{"name":"Query"},{"name":"Msg"}]} \ No newline at end of file +{"id":"github.com/DecentralCardGame/cardchain","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain github.com/DecentralCardGame/cardchain REST API","title":"HTTP API Console","contact":{"name":"github.com/DecentralCardGame/cardchain"},"version":"version not set"},"paths":{"/DecentralCardGame/cardchain/cardchain/account_from_zealy/{zealyId}":{"get":{"tags":["Query"],"summary":"Queries a list of AccountFromZealy items.","operationId":"GithubComDecentralCardGamecardchainQuery_AccountFromZealy","parameters":[{"type":"string","name":"zealyId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryAccountFromZealyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/card/{cardId}":{"get":{"tags":["Query"],"summary":"Queries a list of Card items.","operationId":"GithubComDecentralCardGamecardchainQuery_Card","parameters":[{"type":"string","format":"uint64","name":"cardId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/card_content/{cardId}":{"get":{"tags":["Query"],"summary":"Queries a list of CardContent items.","operationId":"GithubComDecentralCardGamecardchainQuery_CardContent","parameters":[{"type":"string","format":"uint64","name":"cardId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardContentResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/card_contents":{"get":{"tags":["Query"],"summary":"Queries a list of CardContents items.","operationId":"GithubComDecentralCardGamecardchainQuery_CardContents","parameters":[{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"cardIds","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardContentsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/cardchain_info":{"get":{"tags":["Query"],"summary":"Queries a list of CardchainInfo items.","operationId":"GithubComDecentralCardGamecardchainQuery_CardchainInfo","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardchainInfoResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/cards":{"get":{"tags":["Query"],"summary":"Queries a list of Cards items.","operationId":"GithubComDecentralCardGamecardchainQuery_Cards","parameters":[{"type":"string","name":"owner","in":"query"},{"type":"array","items":{"enum":["none","scheme","prototype","trial","permanent","suspended","banned","bannedSoon","bannedVerySoon","adventureItem"],"type":"string"},"collectionFormat":"multi","name":"status","in":"query"},{"type":"array","items":{"enum":["place","action","entity","headquarter"],"type":"string"},"collectionFormat":"multi","name":"cardType","in":"query"},{"type":"array","items":{"enum":["nature","culture","mysticism","technology"],"type":"string"},"collectionFormat":"multi","name":"class","in":"query"},{"type":"string","name":"sortBy","in":"query"},{"type":"string","name":"nameContains","in":"query"},{"type":"string","name":"keywordsContains","in":"query"},{"type":"string","name":"notesContains","in":"query"},{"type":"boolean","name":"onlyStarterCard","in":"query"},{"type":"boolean","name":"onlyBalanceAnchors","in":"query"},{"type":"array","items":{"enum":["common","uncommon","rare","exceptional","unique"],"type":"string"},"collectionFormat":"multi","name":"rarities","in":"query"},{"type":"boolean","name":"multiClassOnly","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/council/{councilId}":{"get":{"tags":["Query"],"summary":"Queries a list of Council items.","operationId":"GithubComDecentralCardGamecardchainQuery_Council","parameters":[{"type":"string","format":"uint64","name":"councilId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryCouncilResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounter/{encounterId}":{"get":{"tags":["Query"],"summary":"Queries a list of Encounter items.","operationId":"GithubComDecentralCardGamecardchainQuery_Encounter","parameters":[{"type":"string","format":"uint64","name":"encounterId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncounterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounter_with_image/{encounterId}":{"get":{"tags":["Query"],"summary":"Queries a list of EncounterWithImage items.","operationId":"GithubComDecentralCardGamecardchainQuery_EncounterWithImage","parameters":[{"type":"string","format":"uint64","name":"encounterId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncounterWithImageResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounters":{"get":{"tags":["Query"],"summary":"Queries a list of Encounters items.","operationId":"GithubComDecentralCardGamecardchainQuery_Encounters","parameters":[{"type":"string","name":"owner","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncountersResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/encounters_with_image":{"get":{"tags":["Query"],"summary":"Queries a list of EncountersWithImage items.","operationId":"GithubComDecentralCardGamecardchainQuery_EncountersWithImage","parameters":[{"type":"string","name":"owner","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryEncountersWithImageResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/match/{matchId}":{"get":{"tags":["Query"],"summary":"Queries a list of Match items.","operationId":"GithubComDecentralCardGamecardchainQuery_Match","parameters":[{"type":"string","format":"uint64","name":"matchId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryMatchResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/matches":{"get":{"tags":["Query"],"summary":"Queries a list of Matches items.","operationId":"GithubComDecentralCardGamecardchainQuery_Matches","parameters":[{"type":"string","format":"uint64","name":"timestampDown","in":"query"},{"type":"string","format":"uint64","name":"timestampUp","in":"query"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"containsUsers","in":"query"},{"type":"string","name":"reporter","in":"query"},{"enum":["Undefined","AWon","BWon","Draw","Aborted"],"type":"string","default":"Undefined","name":"outcome","in":"query"},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"cardsPlayed","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryMatchesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubComDecentralCardGamecardchainQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/sell_offer/{sellOfferId}":{"get":{"tags":["Query"],"summary":"Queries a list of SellOffer items.","operationId":"GithubComDecentralCardGamecardchainQuery_SellOffer","parameters":[{"type":"string","format":"uint64","name":"sellOfferId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySellOfferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/sell_offers":{"get":{"tags":["Query"],"summary":"Queries a list of SellOffers items.","operationId":"GithubComDecentralCardGamecardchainQuery_SellOffers","parameters":[{"type":"string","name":"priceDown.denom","in":"query"},{"type":"string","name":"priceDown.amount","in":"query"},{"type":"string","name":"priceUp.denom","in":"query"},{"type":"string","name":"priceUp.amount","in":"query"},{"type":"string","name":"seller","in":"query"},{"type":"string","name":"buyer","in":"query"},{"type":"string","format":"uint64","name":"card","in":"query"},{"enum":["empty","open","sold","removed"],"type":"string","default":"empty","name":"status","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySellOffersResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/server/{serverId}":{"get":{"tags":["Query"],"summary":"Queries a list of Server items.","operationId":"GithubComDecentralCardGamecardchainQuery_Server","parameters":[{"type":"string","format":"uint64","name":"serverId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryServerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/set/{setId}":{"get":{"tags":["Query"],"summary":"Queries a list of Set items.","operationId":"GithubComDecentralCardGamecardchainQuery_Set","parameters":[{"type":"string","format":"uint64","name":"setId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/set_rarity_distribution/{setId}":{"get":{"tags":["Query"],"summary":"Queries a list of SetRarityDistribution items.","operationId":"GithubComDecentralCardGamecardchainQuery_SetRarityDistribution","parameters":[{"type":"string","format":"uint64","name":"setId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySetRarityDistributionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/sets/{status}":{"get":{"tags":["Query"],"summary":"Queries a list of Sets items.","operationId":"GithubComDecentralCardGamecardchainQuery_Sets","parameters":[{"enum":["undefined","design","finalized","active","archived"],"type":"string","name":"status","in":"path","required":true},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"contributors","in":"query"},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"containsCards","in":"query"},{"type":"string","name":"owner","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QuerySetsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/user/{address}":{"get":{"tags":["Query"],"summary":"Queries a list of User items.","operationId":"GithubComDecentralCardGamecardchainQuery_User","parameters":[{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryUserResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/cardchain/voting_results":{"get":{"tags":["Query"],"summary":"Queries a list of VotingResults items.","operationId":"GithubComDecentralCardGamecardchainQuery_VotingResults","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.QueryVotingResultsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/featureflag/flag/{module}/{name}":{"get":{"tags":["Query"],"summary":"Queries a list of Flag items.","operationId":"GithubComDecentralCardGamecardchainQuery_Flag","parameters":[{"type":"string","name":"module","in":"path","required":true},{"type":"string","name":"name","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.QueryFlagResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/featureflag/flags":{"get":{"tags":["Query"],"summary":"Queries a list of Flags items.","operationId":"GithubComDecentralCardGamecardchainQuery_Flags","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.QueryFlagsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/DecentralCardGame/cardchain/featureflag/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubComDecentralCardGamecardchainQuery_ParamsMixin25","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/BoosterPackBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_BoosterPackBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/BoosterPackOpen":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_BoosterPackOpen","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackOpen"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackOpenResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/BoosterPackTransfer":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_BoosterPackTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgBoosterPackTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtistChange":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtistChange","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChange"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtistChangeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardArtworkAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardArtworkAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardArtworkAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardBan":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardBan","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardBan"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardBanResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardCopyrightClaim":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardCopyrightClaim","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardCopyrightClaim"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardCopyrightClaimResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardDonate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardDonate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardDonateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardRaritySet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardRaritySet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardRaritySet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardRaritySetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSaveContent":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSaveContent","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContent"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSaveContentResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardSchemeBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardSchemeBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardSchemeBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardTransfer":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardVote":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardVote","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CardVoteMulti":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CardVoteMulti","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteMulti"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCardVoteMultiResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilDeregister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilDeregister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilDeregisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilRegister":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilRegister","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegister"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRegisterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilResponseCommit":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilResponseCommit","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseCommit"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseCommitResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilResponseReveal":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilResponseReveal","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseReveal"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilResponseRevealResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/CouncilRestart":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_CouncilRestart","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRestart"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgCouncilRestartResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EarlyAccessDisinvite":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EarlyAccessDisinvite","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessDisinvite"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessDisinviteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EarlyAccessGrant":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EarlyAccessGrant","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessGrant"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessGrantResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EarlyAccessInvite":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EarlyAccessInvite","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessInvite"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEarlyAccessInviteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EncounterClose":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EncounterClose","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterClose"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterCloseResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EncounterCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EncounterCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EncounterDo":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EncounterDo","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterDo"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterDoResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/EncounterEdit":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_EncounterEdit","parameters":[{"description":"MsgEncounterEdit defines the MsgEncounterEdit message.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterEdit"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgEncounterEditResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchConfirm":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchConfirm","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchConfirm"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchConfirmResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchOpen":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchOpen","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchOpen"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchOpenResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchReport":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchReport","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReport"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReportResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/MatchReporterAppoint":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_MatchReporterAppoint","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReporterAppoint"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgMatchReporterAppointResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileAliasSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileAliasSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileAliasSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileAliasSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileBioSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileBioSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileBioSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileBioSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileCardSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileCardSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileCardSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileCardSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ProfileWebsiteSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ProfileWebsiteSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileWebsiteSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgProfileWebsiteSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferBuy":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferBuy","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferBuy"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferBuyResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SellOfferRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SellOfferRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSellOfferRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetActivate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetActivate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetActivate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetActivateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetArtistSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetArtistSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtistSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtistSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetArtworkAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetArtworkAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtworkAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetArtworkAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCardAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCardAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCardRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCardRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCardRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetContributorAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetContributorAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetContributorRemove":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetContributorRemove","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorRemove"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetContributorRemoveResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetFinalize":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetFinalize","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetFinalize"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetFinalizeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetNameSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetNameSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetNameSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetNameSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetStoryAdd":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetStoryAdd","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryAdd"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryAddResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/SetStoryWriterSet":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_SetStoryWriterSet","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryWriterSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgSetStoryWriterSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubComDecentralCardGamecardchainMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/UserCreate":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_UserCreate","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreate"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgUserCreateResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.cardchain.Msg/ZealyConnect":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_ZealyConnect","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.cardchain.MsgZealyConnect"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.cardchain.MsgZealyConnectResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.featureflag.Msg/Set":{"post":{"tags":["Msg"],"operationId":"GithubComDecentralCardGamecardchainMsg_Set","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.featureflag.MsgSet"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.MsgSetResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cardchain.featureflag.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubComDecentralCardGamecardchainMsg_UpdateParamsMixin26","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cardchain.featureflag.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cardchain.featureflag.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"cardchain.cardchain.AddrWithQuantity":{"type":"object","properties":{"addr":{"type":"string"},"payment":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"q":{"type":"integer","format":"int64"}}},"cardchain.cardchain.AirDrops":{"type":"object","properties":{"buy":{"type":"boolean"},"create":{"type":"boolean"},"play":{"type":"boolean"},"user":{"type":"boolean"},"vote":{"type":"boolean"}}},"cardchain.cardchain.BoosterPack":{"type":"object","properties":{"dropRatiosPerPack":{"type":"array","title":"The chances of the rare beeing a normal rare, an exceptional or a unique","items":{"type":"string","format":"uint64"}},"raritiesPerPack":{"type":"array","title":"How often the different rarities will appear in a BoosterPack","items":{"type":"string","format":"uint64"}},"setId":{"type":"string","format":"uint64"},"timeStamp":{"type":"string","format":"int64"}}},"cardchain.cardchain.Card":{"type":"object","properties":{"artist":{"type":"string"},"balanceAnchor":{"type":"boolean"},"content":{"type":"string","format":"byte"},"fairEnoughVotes":{"type":"string","format":"uint64"},"fullArt":{"type":"boolean"},"image_id":{"type":"string","format":"uint64"},"inappropriateVotes":{"type":"string","format":"uint64"},"nerflevel":{"type":"string","format":"int64"},"notes":{"type":"string"},"overpoweredVotes":{"type":"string","format":"uint64"},"owner":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Parameter"}},"rarity":{"$ref":"#/definitions/cardchain.cardchain.CardRarity"},"starterCard":{"type":"boolean"},"status":{"$ref":"#/definitions/cardchain.cardchain.CardStatus"},"underpoweredVotes":{"type":"string","format":"uint64"},"votePool":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"voters":{"type":"array","items":{"type":"string"}}}},"cardchain.cardchain.CardClass":{"type":"string","default":"nature","enum":["nature","culture","mysticism","technology"]},"cardchain.cardchain.CardContent":{"type":"object","properties":{"content":{"type":"string"},"hash":{"type":"string"}}},"cardchain.cardchain.CardRarity":{"type":"string","default":"common","enum":["common","uncommon","rare","exceptional","unique"]},"cardchain.cardchain.CardStatus":{"type":"string","default":"none","enum":["none","scheme","prototype","trial","permanent","suspended","banned","bannedSoon","bannedVerySoon","adventureItem"]},"cardchain.cardchain.CardType":{"type":"string","default":"place","enum":["place","action","entity","headquarter"]},"cardchain.cardchain.CardWithImage":{"type":"object","properties":{"card":{"$ref":"#/definitions/cardchain.cardchain.Card"},"hash":{"type":"string"},"image":{"type":"string"}}},"cardchain.cardchain.CouncelingStatus":{"type":"string","default":"councilOpen","enum":["councilOpen","councilCreated","councilClosed","commited","revealed","suggestionsMade"]},"cardchain.cardchain.Council":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"clearResponses":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.WrapClearResponse"}},"hashResponses":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.WrapHashResponse"}},"status":{"$ref":"#/definitions/cardchain.cardchain.CouncelingStatus"},"treasury":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"trialStart":{"type":"string","format":"uint64"},"voters":{"type":"array","items":{"type":"string"}}}},"cardchain.cardchain.CouncilStatus":{"type":"string","default":"available","enum":["available","unavailable","openCouncil","startedCouncil"]},"cardchain.cardchain.EarlyAccess":{"type":"object","properties":{"active":{"type":"boolean"},"invitedByUser":{"type":"string"},"invitedUser":{"type":"string"}}},"cardchain.cardchain.Encounter":{"type":"object","properties":{"drawlist":{"type":"array","items":{"type":"string","format":"uint64"}},"id":{"type":"string","format":"uint64"},"imageId":{"type":"string","format":"uint64"},"name":{"type":"string"},"owner":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Parameter"}},"proven":{"type":"boolean"}}},"cardchain.cardchain.EncounterWithImage":{"type":"object","properties":{"encounter":{"$ref":"#/definitions/cardchain.cardchain.Encounter"},"image":{"type":"string"}}},"cardchain.cardchain.InnerRarities":{"type":"object","properties":{"R":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.Match":{"type":"object","properties":{"coinsDistributed":{"type":"boolean"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playerA":{"$ref":"#/definitions/cardchain.cardchain.MatchPlayer"},"playerB":{"$ref":"#/definitions/cardchain.cardchain.MatchPlayer"},"reporter":{"type":"string"},"serverConfirmed":{"type":"boolean"},"timestamp":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MatchPlayer":{"type":"object","properties":{"addr":{"type":"string"},"confirmed":{"type":"boolean"},"deck":{"type":"array","items":{"type":"string","format":"uint64"}},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playedCards":{"type":"array","items":{"type":"string","format":"uint64"}},"votedCards":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SingleVote"}}}},"cardchain.cardchain.MsgBoosterPackBuy":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgBoosterPackBuyResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgBoosterPackOpen":{"type":"object","properties":{"boosterPackId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgBoosterPackOpenResponse":{"type":"object","properties":{"cardIds":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgBoosterPackTransfer":{"type":"object","properties":{"boosterPackId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"receiver":{"type":"string"}}},"cardchain.cardchain.MsgBoosterPackTransferResponse":{"type":"object"},"cardchain.cardchain.MsgCardArtistChange":{"type":"object","properties":{"artist":{"type":"string"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardArtistChangeResponse":{"type":"object"},"cardchain.cardchain.MsgCardArtworkAdd":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"fullArt":{"type":"boolean"},"image":{"type":"string","format":"byte"}}},"cardchain.cardchain.MsgCardArtworkAddResponse":{"type":"object"},"cardchain.cardchain.MsgCardBan":{"type":"object","properties":{"authority":{"type":"string"},"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardBanResponse":{"type":"object"},"cardchain.cardchain.MsgCardCopyrightClaim":{"type":"object","properties":{"authority":{"type":"string"},"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardCopyrightClaimResponse":{"type":"object"},"cardchain.cardchain.MsgCardDonate":{"type":"object","properties":{"amount":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardDonateResponse":{"type":"object"},"cardchain.cardchain.MsgCardRaritySet":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"rarity":{"$ref":"#/definitions/cardchain.cardchain.CardRarity"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardRaritySetResponse":{"type":"object"},"cardchain.cardchain.MsgCardSaveContent":{"type":"object","properties":{"artist":{"type":"string"},"balanceAnchor":{"type":"boolean"},"cardId":{"type":"string","format":"uint64"},"content":{"type":"string","format":"byte"},"creator":{"type":"string"},"notes":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Parameter"}}}},"cardchain.cardchain.MsgCardSaveContentResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCardSchemeBuy":{"type":"object","properties":{"bid":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCardSchemeBuyResponse":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgCardTransfer":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"receiver":{"type":"string"}}},"cardchain.cardchain.MsgCardTransferResponse":{"type":"object"},"cardchain.cardchain.MsgCardVote":{"type":"object","properties":{"creator":{"type":"string"},"vote":{"$ref":"#/definitions/cardchain.cardchain.SingleVote"}}},"cardchain.cardchain.MsgCardVoteMulti":{"type":"object","properties":{"creator":{"type":"string"},"votes":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SingleVote"}}}},"cardchain.cardchain.MsgCardVoteMultiResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCardVoteResponse":{"type":"object","properties":{"airdropClaimed":{"type":"boolean"}}},"cardchain.cardchain.MsgCouncilCreate":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilCreateResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilDeregister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilDeregisterResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilRegister":{"type":"object","properties":{"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilRegisterResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilResponseCommit":{"type":"object","properties":{"councilId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"response":{"type":"string"},"suggestion":{"type":"string"}}},"cardchain.cardchain.MsgCouncilResponseCommitResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilResponseReveal":{"type":"object","properties":{"councilId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"response":{"$ref":"#/definitions/cardchain.cardchain.Response"},"secret":{"type":"string"}}},"cardchain.cardchain.MsgCouncilResponseRevealResponse":{"type":"object"},"cardchain.cardchain.MsgCouncilRestart":{"type":"object","properties":{"councilId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgCouncilRestartResponse":{"type":"object"},"cardchain.cardchain.MsgEarlyAccessDisinvite":{"type":"object","properties":{"creator":{"type":"string"},"user":{"type":"string"}}},"cardchain.cardchain.MsgEarlyAccessDisinviteResponse":{"type":"object"},"cardchain.cardchain.MsgEarlyAccessGrant":{"type":"object","properties":{"authority":{"type":"string"},"users":{"type":"array","items":{"type":"string"}}}},"cardchain.cardchain.MsgEarlyAccessGrantResponse":{"type":"object"},"cardchain.cardchain.MsgEarlyAccessInvite":{"type":"object","properties":{"creator":{"type":"string"},"user":{"type":"string"}}},"cardchain.cardchain.MsgEarlyAccessInviteResponse":{"type":"object"},"cardchain.cardchain.MsgEncounterClose":{"type":"object","properties":{"creator":{"type":"string"},"encounterId":{"type":"string","format":"uint64"},"user":{"type":"string"},"won":{"type":"boolean"}}},"cardchain.cardchain.MsgEncounterCloseResponse":{"type":"object"},"cardchain.cardchain.MsgEncounterCreate":{"type":"object","properties":{"creator":{"type":"string"},"drawlist":{"type":"array","items":{"type":"string","format":"uint64"}},"image":{"type":"string","format":"byte"},"name":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Parameter"}}}},"cardchain.cardchain.MsgEncounterCreateResponse":{"type":"object"},"cardchain.cardchain.MsgEncounterDo":{"type":"object","properties":{"creator":{"type":"string"},"encounterId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgEncounterDoResponse":{"type":"object"},"cardchain.cardchain.MsgEncounterEdit":{"description":"MsgEncounterEdit defines the MsgEncounterEdit message.","type":"object","properties":{"creator":{"type":"string"},"drawlist":{"type":"array","items":{"type":"string","format":"uint64"}},"id":{"type":"string","format":"uint64"},"image":{"type":"string","format":"byte"},"name":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Parameter"}}}},"cardchain.cardchain.MsgEncounterEditResponse":{"description":"MsgEncounterEditResponse defines the MsgEncounterEditResponse message.","type":"object"},"cardchain.cardchain.MsgMatchConfirm":{"type":"object","properties":{"creator":{"type":"string"},"matchId":{"type":"string","format":"uint64"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"votedCards":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SingleVote"}}}},"cardchain.cardchain.MsgMatchConfirmResponse":{"type":"object"},"cardchain.cardchain.MsgMatchOpen":{"type":"object","properties":{"creator":{"type":"string"},"playerA":{"type":"string"},"playerADeck":{"type":"array","items":{"type":"string","format":"uint64"}},"playerB":{"type":"string"},"playerBDeck":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgMatchOpenResponse":{"type":"object","properties":{"matchId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgMatchReport":{"type":"object","properties":{"creator":{"type":"string"},"matchId":{"type":"string","format":"uint64"},"outcome":{"$ref":"#/definitions/cardchain.cardchain.Outcome"},"playedCardsA":{"type":"array","items":{"type":"string","format":"uint64"}},"playedCardsB":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.MsgMatchReportResponse":{"type":"object"},"cardchain.cardchain.MsgMatchReporterAppoint":{"type":"object","properties":{"authority":{"type":"string"},"reporter":{"type":"string"}}},"cardchain.cardchain.MsgMatchReporterAppointResponse":{"type":"object"},"cardchain.cardchain.MsgProfileAliasSet":{"type":"object","properties":{"alias":{"type":"string"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgProfileAliasSetResponse":{"type":"object"},"cardchain.cardchain.MsgProfileBioSet":{"type":"object","properties":{"bio":{"type":"string"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgProfileBioSetResponse":{"type":"object"},"cardchain.cardchain.MsgProfileCardSet":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"}}},"cardchain.cardchain.MsgProfileCardSetResponse":{"type":"object"},"cardchain.cardchain.MsgProfileWebsiteSet":{"type":"object","properties":{"creator":{"type":"string"},"website":{"type":"string"}}},"cardchain.cardchain.MsgProfileWebsiteSetResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferBuy":{"type":"object","properties":{"creator":{"type":"string"},"sellOfferId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSellOfferBuyResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferCreate":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"price":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"cardchain.cardchain.MsgSellOfferCreateResponse":{"type":"object"},"cardchain.cardchain.MsgSellOfferRemove":{"type":"object","properties":{"creator":{"type":"string"},"sellOfferId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSellOfferRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetActivate":{"type":"object","properties":{"authority":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetActivateResponse":{"type":"object"},"cardchain.cardchain.MsgSetArtistSet":{"type":"object","properties":{"artist":{"type":"string"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetArtistSetResponse":{"type":"object"},"cardchain.cardchain.MsgSetArtworkAdd":{"type":"object","properties":{"creator":{"type":"string"},"image":{"type":"string","format":"byte"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetArtworkAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetCardAdd":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetCardAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetCardRemove":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetCardRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetContributorAdd":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgSetContributorAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetContributorRemove":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"user":{"type":"string"}}},"cardchain.cardchain.MsgSetContributorRemoveResponse":{"type":"object"},"cardchain.cardchain.MsgSetCreate":{"type":"object","properties":{"artist":{"type":"string"},"contributors":{"type":"array","items":{"type":"string"}},"creator":{"type":"string"},"name":{"type":"string"},"storyWriter":{"type":"string"}}},"cardchain.cardchain.MsgSetCreateResponse":{"type":"object"},"cardchain.cardchain.MsgSetFinalize":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetFinalizeResponse":{"type":"object"},"cardchain.cardchain.MsgSetNameSet":{"type":"object","properties":{"creator":{"type":"string"},"name":{"type":"string"},"setId":{"type":"string","format":"uint64"}}},"cardchain.cardchain.MsgSetNameSetResponse":{"type":"object"},"cardchain.cardchain.MsgSetStoryAdd":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"story":{"type":"string"}}},"cardchain.cardchain.MsgSetStoryAddResponse":{"type":"object"},"cardchain.cardchain.MsgSetStoryWriterSet":{"type":"object","properties":{"creator":{"type":"string"},"setId":{"type":"string","format":"uint64"},"storyWriter":{"type":"string"}}},"cardchain.cardchain.MsgSetStoryWriterSetResponse":{"type":"object"},"cardchain.cardchain.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless\noverwritten).","type":"string"},"params":{"description":"NOTE: All parameters must be supplied.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cardchain.cardchain.MsgUserCreate":{"type":"object","properties":{"alias":{"type":"string"},"creator":{"type":"string"},"newUser":{"type":"string"}}},"cardchain.cardchain.MsgUserCreateResponse":{"type":"object"},"cardchain.cardchain.MsgZealyConnect":{"type":"object","properties":{"creator":{"type":"string"},"zealyId":{"type":"string"}}},"cardchain.cardchain.MsgZealyConnectResponse":{"type":"object"},"cardchain.cardchain.Outcome":{"type":"string","default":"Undefined","enum":["Undefined","AWon","BWon","Draw","Aborted"]},"cardchain.cardchain.Parameter":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"cardchain.cardchain.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"activeSetsAmount":{"type":"string","format":"uint64"},"airDropMaxBlockHeight":{"type":"string","format":"int64"},"airDropValue":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardAuctionPriceReductionPeriod":{"type":"string","format":"int64"},"collateralDeposit":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"commonsPerPack":{"type":"string","format":"uint64"},"exceptionalDropRatio":{"type":"string","format":"uint64"},"gameVoteRatio":{"type":"string","format":"int64"},"hourlyFaucet":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"inflationRate":{"type":"string"},"matchWorkerDelay":{"type":"string","format":"uint64"},"rareDropRatio":{"type":"string","format":"uint64"},"raresPerPack":{"type":"string","format":"uint64"},"setCreationFee":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"setPrice":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"setSize":{"type":"string","format":"uint64"},"trialPeriod":{"type":"string","format":"uint64"},"trialVoteReward":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"unCommonsPerPack":{"type":"string","format":"uint64"},"uniqueDropRatio":{"type":"string","format":"uint64"},"votePoolFraction":{"type":"string","format":"int64"},"votingRewardCap":{"type":"string","format":"int64"},"votingRightsExpirationTime":{"type":"string","format":"int64"},"winnerReward":{"type":"string","format":"int64"}}},"cardchain.cardchain.QueryAccountFromZealyResponse":{"type":"object","properties":{"address":{"type":"string"}}},"cardchain.cardchain.QueryCardContentResponse":{"type":"object","properties":{"cardContent":{"$ref":"#/definitions/cardchain.cardchain.CardContent"}}},"cardchain.cardchain.QueryCardContentsResponse":{"type":"object","properties":{"cardContents":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.CardContent"}}}},"cardchain.cardchain.QueryCardResponse":{"type":"object","properties":{"card":{"$ref":"#/definitions/cardchain.cardchain.CardWithImage"}}},"cardchain.cardchain.QueryCardchainInfoResponse":{"type":"object","properties":{"activeSets":{"type":"array","items":{"type":"string","format":"uint64"}},"cardAuctionPrice":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"cardsNumber":{"type":"string","format":"uint64"},"councilsNumber":{"type":"string","format":"uint64"},"lastCardModified":{"type":"string","format":"uint64"},"matchesNumber":{"type":"string","format":"uint64"},"sellOffersNumber":{"type":"string","format":"uint64"}}},"cardchain.cardchain.QueryCardsResponse":{"type":"object","properties":{"cardIds":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.QueryCouncilResponse":{"type":"object","properties":{"council":{"$ref":"#/definitions/cardchain.cardchain.Council"}}},"cardchain.cardchain.QueryEncounterResponse":{"type":"object","properties":{"encounter":{"$ref":"#/definitions/cardchain.cardchain.Encounter"}}},"cardchain.cardchain.QueryEncounterWithImageResponse":{"type":"object","properties":{"encounter":{"$ref":"#/definitions/cardchain.cardchain.EncounterWithImage"}}},"cardchain.cardchain.QueryEncountersResponse":{"type":"object","properties":{"encounters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Encounter"}}}},"cardchain.cardchain.QueryEncountersWithImageResponse":{"type":"object","properties":{"encounters":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.EncounterWithImage"}}}},"cardchain.cardchain.QueryMatchResponse":{"type":"object","properties":{"match":{"$ref":"#/definitions/cardchain.cardchain.Match"}}},"cardchain.cardchain.QueryMatchesResponse":{"type":"object","properties":{"matchIds":{"type":"array","items":{"type":"string","format":"uint64"}},"matches":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.Match"}}}},"cardchain.cardchain.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/cardchain.cardchain.Params"}}},"cardchain.cardchain.QuerySellOfferResponse":{"type":"object","properties":{"sellOffer":{"$ref":"#/definitions/cardchain.cardchain.SellOffer"}}},"cardchain.cardchain.QuerySellOffersResponse":{"type":"object","properties":{"sellOfferIds":{"type":"array","items":{"type":"string","format":"uint64"}},"sellOffers":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.SellOffer"}}}},"cardchain.cardchain.QueryServerResponse":{"type":"object","properties":{"server":{"$ref":"#/definitions/cardchain.cardchain.Server"}}},"cardchain.cardchain.QuerySetRarityDistributionResponse":{"type":"object","properties":{"current":{"type":"array","items":{"type":"string","format":"uint64"}},"wanted":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.QuerySetResponse":{"type":"object","properties":{"set":{"$ref":"#/definitions/cardchain.cardchain.SetWithArtwork"}}},"cardchain.cardchain.QuerySetsResponse":{"type":"object","properties":{"setIds":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.QueryUserResponse":{"type":"object","properties":{"user":{"$ref":"#/definitions/cardchain.cardchain.User"}}},"cardchain.cardchain.QueryVotingResultsResponse":{"type":"object","properties":{"lastVotingResults":{"$ref":"#/definitions/cardchain.cardchain.VotingResults"}}},"cardchain.cardchain.Response":{"type":"string","default":"Yes","enum":["Yes","No","Suggestion"]},"cardchain.cardchain.SellOffer":{"type":"object","properties":{"buyer":{"type":"string"},"card":{"type":"string","format":"uint64"},"price":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"seller":{"type":"string"},"status":{"$ref":"#/definitions/cardchain.cardchain.SellOfferStatus"}}},"cardchain.cardchain.SellOfferStatus":{"type":"string","default":"empty","enum":["empty","open","sold","removed"]},"cardchain.cardchain.Server":{"type":"object","properties":{"invalidReports":{"type":"string","format":"uint64"},"reporter":{"type":"string"},"validReports":{"type":"string","format":"uint64"}}},"cardchain.cardchain.Set":{"type":"object","properties":{"artist":{"type":"string"},"artworkId":{"type":"string","format":"uint64"},"cards":{"type":"array","items":{"type":"string","format":"uint64"}},"contributors":{"type":"array","items":{"type":"string"}},"contributorsDistribution":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.AddrWithQuantity"}},"name":{"type":"string"},"rarities":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.InnerRarities"}},"status":{"$ref":"#/definitions/cardchain.cardchain.SetStatus"},"story":{"type":"string"},"storyWriter":{"type":"string"},"timeStamp":{"type":"string","format":"int64"}}},"cardchain.cardchain.SetStatus":{"type":"string","default":"undefined","enum":["undefined","design","finalized","active","archived"]},"cardchain.cardchain.SetWithArtwork":{"type":"object","properties":{"artwork":{"type":"string","format":"byte"},"set":{"$ref":"#/definitions/cardchain.cardchain.Set"}}},"cardchain.cardchain.SingleVote":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"voteType":{"$ref":"#/definitions/cardchain.cardchain.VoteType"}}},"cardchain.cardchain.User":{"type":"object","properties":{"airDrops":{"$ref":"#/definitions/cardchain.cardchain.AirDrops"},"alias":{"type":"string"},"biography":{"type":"string"},"boosterPacks":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.BoosterPack"}},"cards":{"type":"array","items":{"type":"string","format":"uint64"}},"councilStatus":{"$ref":"#/definitions/cardchain.cardchain.CouncilStatus"},"earlyAccess":{"$ref":"#/definitions/cardchain.cardchain.EarlyAccess"},"openEncounters":{"type":"array","items":{"type":"string","format":"uint64"}},"ownedCardSchemes":{"type":"array","items":{"type":"string","format":"uint64"}},"ownedPrototypes":{"type":"array","items":{"type":"string","format":"uint64"}},"profileCard":{"type":"string","format":"uint64"},"reportMatches":{"type":"boolean"},"votableCards":{"type":"array","items":{"type":"string","format":"uint64"}},"votedCards":{"type":"array","items":{"type":"string","format":"uint64"}},"website":{"type":"string"},"wonEncounters":{"type":"array","items":{"type":"string","format":"uint64"}}}},"cardchain.cardchain.VoteType":{"type":"string","default":"fairEnough","enum":["fairEnough","inappropriate","overpowered","underpowered"]},"cardchain.cardchain.VotingResult":{"type":"object","properties":{"cardId":{"type":"string","format":"uint64"},"fairEnoughVotes":{"type":"string","format":"uint64"},"inappropriateVotes":{"type":"string","format":"uint64"},"overpoweredVotes":{"type":"string","format":"uint64"},"result":{"type":"string"},"underpoweredVotes":{"type":"string","format":"uint64"}}},"cardchain.cardchain.VotingResults":{"type":"object","properties":{"cardResults":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.cardchain.VotingResult"}},"notes":{"type":"string"},"totalFairEnoughVotes":{"type":"string","format":"uint64"},"totalInappropriateVotes":{"type":"string","format":"uint64"},"totalOverpoweredVotes":{"type":"string","format":"uint64"},"totalUnderpoweredVotes":{"type":"string","format":"uint64"},"totalVotes":{"type":"string","format":"uint64"}}},"cardchain.cardchain.WrapClearResponse":{"type":"object","properties":{"response":{"$ref":"#/definitions/cardchain.cardchain.Response"},"suggestion":{"type":"string"},"user":{"type":"string"}}},"cardchain.cardchain.WrapHashResponse":{"type":"object","properties":{"hash":{"type":"string"},"user":{"type":"string"}}},"cardchain.featureflag.Flag":{"type":"object","properties":{"Module":{"type":"string"},"Name":{"type":"string"},"Set":{"type":"boolean"}}},"cardchain.featureflag.MsgSet":{"type":"object","properties":{"authority":{"type":"string"},"module":{"type":"string"},"name":{"type":"string"},"value":{"type":"boolean"}}},"cardchain.featureflag.MsgSetResponse":{"type":"object"},"cardchain.featureflag.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless\noverwritten).","type":"string"},"params":{"description":"NOTE: All parameters must be supplied.","$ref":"#/definitions/cardchain.featureflag.Params"}}},"cardchain.featureflag.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cardchain.featureflag.Params":{"description":"Params defines the parameters for the module.","type":"object"},"cardchain.featureflag.QueryFlagResponse":{"type":"object","properties":{"flag":{"$ref":"#/definitions/cardchain.featureflag.Flag"}}},"cardchain.featureflag.QueryFlagsResponse":{"type":"object","properties":{"flags":{"type":"array","items":{"type":"object","$ref":"#/definitions/cardchain.featureflag.Flag"}}}},"cardchain.featureflag.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/cardchain.featureflag.Params"}}},"cosmos.base.v1beta1.Coin":{"description":"Coin defines a token with a denomination and an amount.\n\nNOTE: The amount field is an Int which implements the custom method\nsignatures required by gogoproto.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"}}},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}}},"tags":[{"name":"Query"},{"name":"Msg"}]} \ No newline at end of file diff --git a/go.mod b/go.mod index e1eef871..b7b6f60c 100644 --- a/go.mod +++ b/go.mod @@ -6,9 +6,11 @@ toolchain go1.24.5 replace ( // fix upstream GHSA-h395-qcrw-5vmq vulnerability. - github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 + github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1 // replace broken goleveldb github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 + // replace broken vanity url + nhooyr.io/websocket => github.com/coder/websocket v1.8.7 ) require ( diff --git a/go.sum b/go.sum index 787a9474..58e31d79 100644 --- a/go.sum +++ b/go.sum @@ -367,6 +367,8 @@ github.com/butuzov/ireturn v0.1.1 h1:QvrO2QF2+/Cx1WA/vETCIYBKtRjc30vesdoPUNo1EbY github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= github.com/bytedance/gopkg v0.1.3 h1:TPBSwH8RsouGCBcMBktLt1AymVo2TVsBVCY4b6TnZ/M= github.com/bytedance/gopkg v0.1.3/go.mod h1:576VvJ+eJgyCzdjS+c4+77QF3p7ubbtiKARP3TxducM= +github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= +github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= github.com/bytedance/sonic v1.14.2 h1:k1twIoe97C1DtYUo+fZQy865IuHia4PR5RPiuGPPIIE= github.com/bytedance/sonic v1.14.2/go.mod h1:T80iDELeHiHKSc0C9tubFygiuXoGzrkjKzX2quAx980= github.com/bytedance/sonic/loader v0.4.0 h1:olZ7lEqcxtZygCK9EKYKADnpQoYkRQxaeY2NYzevs+o= @@ -388,6 +390,8 @@ github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoG github.com/chavacava/garif v0.0.0-20230227094218-b8c73b2037b8 h1:W9o46d2kbNL06lq7UNDPV0zYLzkrde/bjIqO02eoll0= github.com/chavacava/garif v0.0.0-20230227094218-b8c73b2037b8/go.mod h1:gakxgyXaaPkxvLw1XQxNGK4I37ys9iBRzNUx/B7pUCo= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= +github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= +github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs= github.com/chromedp/chromedp v0.9.2/go.mod h1:LkSXJKONWTCHAfQasKFUZI+mxqS4tZqhmtGzzhLsnLs= github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww= @@ -435,6 +439,8 @@ github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/coder/websocket v1.8.7 h1:jiep6gmlfP/yq2w1gBoubJEXL9gf8x3bp6lzzX8nJxE= +github.com/coder/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= github.com/cometbft/cometbft v0.38.20 h1:i9v9rvh3Z4CZvGSWrByAOpiqNq5WLkat3r/tE/B49RU= github.com/cometbft/cometbft v0.38.20/go.mod h1:UCu8dlHqvkAsmAFmWDRWNZJPlu6ya2fTWZlDrWsivwo= github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= @@ -585,14 +591,16 @@ github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= +github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= +github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= github.com/getsentry/sentry-go v0.35.0 h1:+FJNlnjJsZMG3g0/rmmP7GiKjQoUF5EXfEtBwtPtkzY= github.com/getsentry/sentry-go v0.35.0/go.mod h1:C55omcY9ChRQIUcVcGcs+Zdy4ZpQGvNJ7JYHIoSWOtE= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.7.0 h1:jGB9xAJQ12AIGNB4HguylppmDK1Am9ppF7XnGXXJuoU= -github.com/gin-gonic/gin v1.7.0/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= +github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= +github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= github.com/go-chi/chi/v5 v5.2.2 h1:CMwsvRVTbXVytCk1Wd72Zy1LAsAh9GxMmSNWLHCG618= github.com/go-chi/chi/v5 v5.2.2/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops= github.com/go-critic/go-critic v0.7.0 h1:tqbKzB8pqi0NsRZ+1pyU4aweAF7A7QN0Pi4Q02+rYnQ= @@ -622,13 +630,13 @@ github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= -github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= -github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= -github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= -github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= +github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= +github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= +github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= +github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= +github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= +github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8= @@ -664,6 +672,8 @@ github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6Wezm github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/gobwas/ws v1.2.1 h1:F2aeBZrm2NDsc7vbovKrWSogd4wvfAxg0FQ89/iqOTk= github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY= +github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= +github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -993,6 +1003,8 @@ github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYs github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo= github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE= github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU= @@ -1020,8 +1032,8 @@ github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdB github.com/ldez/tagliatelle v0.4.0 h1:sylp7d9kh6AdXN2DpVGHBRb5guTVAgOxqNGhbqc4b1c= github.com/ldez/tagliatelle v0.4.0/go.mod h1:mNtTfrHy2haaBAw+VT7IBV6VXBThS7TCreYWbBcJ87I= github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs= -github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= -github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= +github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= github.com/leonklingele/grouper v1.1.1 h1:suWXRU57D4/Enn6pXR0QVqqWWrnJ9Osrz+5rjt8ivzU= github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= @@ -1180,6 +1192,7 @@ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FI github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= @@ -1362,6 +1375,7 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= @@ -1396,9 +1410,6 @@ github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= -github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= -github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= @@ -1504,6 +1515,8 @@ go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= golang.org/x/arch v0.17.0 h1:4O3dfLzd+lQewptAHqjewQZQDyEdejz3VwgeYwkZneU= golang.org/x/arch v0.17.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1517,6 +1530,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1634,6 +1649,8 @@ golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1773,6 +1790,7 @@ golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1783,6 +1801,7 @@ golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= @@ -1794,6 +1813,8 @@ golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4= golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1805,10 +1826,13 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -2146,6 +2170,7 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE= google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= @@ -2198,11 +2223,10 @@ mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphD mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d h1:3rvTIIM22r9pvXk+q3swxUQAQOxksVMGK7sml4nG57w= mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RFiZMMsLVL+A96Nvptar8Fj71is= -nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= -nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/qr v0.2.0 h1:6vBLea5/NRMVTz8V66gipeLycZMl/+UlFmk8DvqQ6WY= rsc.io/qr v0.2.0/go.mod h1:IF+uZjkb9fqyeF/4tlBoynqmQxUoPfWEKh921coOuXs= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= diff --git a/proto/cardchain/cardchain/card.proto b/proto/cardchain/cardchain/card.proto index ea5c4ee6..97087eb7 100644 --- a/proto/cardchain/cardchain/card.proto +++ b/proto/cardchain/cardchain/card.proto @@ -3,6 +3,7 @@ package cardchain.cardchain; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cardchain/cardchain/parameter.proto"; option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; @@ -14,7 +15,7 @@ message Card { bool fullArt = 5; string notes = 6; CardStatus status = 7; - cosmos.base.v1beta1.Coin votePool = 8 [ (gogoproto.nullable) = false ]; + cosmos.base.v1beta1.Coin votePool = 8 [(gogoproto.nullable) = false]; repeated string voters = 14; uint64 fairEnoughVotes = 9; uint64 overpoweredVotes = 10; @@ -24,6 +25,7 @@ message Card { bool balanceAnchor = 15; bool starterCard = 16; CardRarity rarity = 17; + repeated Parameter parameters = 18; } enum CardStatus { @@ -61,4 +63,4 @@ enum CardType { headquarter = 3; } -message TimeStamp { uint64 timeStamp = 1; } +message TimeStamp {uint64 timeStamp = 1;} diff --git a/proto/cardchain/cardchain/encounter.proto b/proto/cardchain/cardchain/encounter.proto index 29481afb..5045d7bf 100644 --- a/proto/cardchain/cardchain/encounter.proto +++ b/proto/cardchain/cardchain/encounter.proto @@ -2,13 +2,10 @@ syntax = "proto3"; package cardchain.cardchain; import "gogoproto/gogo.proto"; +import "cardchain/cardchain/parameter.proto"; option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; -message Parameter { - string key = 1; - string value = 2; -} message Encounter { uint64 id = 1; diff --git a/proto/cardchain/cardchain/module/module.proto b/proto/cardchain/cardchain/module/module.proto index f46f1d6f..120c4bb6 100644 --- a/proto/cardchain/cardchain/module/module.proto +++ b/proto/cardchain/cardchain/module/module.proto @@ -3,6 +3,8 @@ package cardchain.cardchain.module; import "cosmos/app/v1alpha1/module.proto"; +option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; + // Module is the config object for the module. message Module { option (cosmos.app.v1alpha1.module) = { diff --git a/proto/cardchain/cardchain/parameter.proto b/proto/cardchain/cardchain/parameter.proto new file mode 100644 index 00000000..535c8ea6 --- /dev/null +++ b/proto/cardchain/cardchain/parameter.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package cardchain.cardchain; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; + +message Parameter { + string key = 1; + string value = 2; +} \ No newline at end of file diff --git a/proto/cardchain/cardchain/query.proto b/proto/cardchain/cardchain/query.proto index bfcfc1a1..7de55c0a 100644 --- a/proto/cardchain/cardchain/query.proto +++ b/proto/cardchain/cardchain/query.proto @@ -30,140 +30,140 @@ service Query { // Parameters queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/params"; + "/DecentralCardGame/cardchain/cardchain/params"; } // Queries a list of Card items. rpc Card(QueryCardRequest) returns (QueryCardResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/card/{cardId}"; + "/DecentralCardGame/cardchain/cardchain/card/{cardId}"; } // Queries a list of User items. rpc User(QueryUserRequest) returns (QueryUserResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/user/{address}"; + "/DecentralCardGame/cardchain/cardchain/user/{address}"; } // Queries a list of Cards items. rpc Cards(QueryCardsRequest) returns (QueryCardsResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/cards"; + "/DecentralCardGame/cardchain/cardchain/cards"; } // Queries a list of Match items. rpc Match(QueryMatchRequest) returns (QueryMatchResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/match/{matchId}"; + "/DecentralCardGame/cardchain/cardchain/match/{matchId}"; } // Queries a list of Set items. rpc Set(QuerySetRequest) returns (QuerySetResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/set/{setId}"; + "/DecentralCardGame/cardchain/cardchain/set/{setId}"; } // Queries a list of SellOffer items. rpc SellOffer(QuerySellOfferRequest) returns (QuerySellOfferResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/sell_offer/{sellOfferId}"; + "/DecentralCardGame/cardchain/cardchain/sell_offer/{sellOfferId}"; } // Queries a list of Council items. rpc Council(QueryCouncilRequest) returns (QueryCouncilResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/council/{councilId}"; + "/DecentralCardGame/cardchain/cardchain/council/{councilId}"; } // Queries a list of Server items. rpc Server(QueryServerRequest) returns (QueryServerResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/server/{serverId}"; + "/DecentralCardGame/cardchain/cardchain/server/{serverId}"; } // Queries a list of Encounter items. rpc Encounter(QueryEncounterRequest) returns (QueryEncounterResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/encounter/{encounterId}"; + "/DecentralCardGame/cardchain/cardchain/encounter/{encounterId}"; } // Queries a list of Encounters items. rpc Encounters(QueryEncountersRequest) returns (QueryEncountersResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/encounters"; + "/DecentralCardGame/cardchain/cardchain/encounters"; } // Queries a list of EncounterWithImage items. rpc EncounterWithImage(QueryEncounterWithImageRequest) - returns (QueryEncounterWithImageResponse) { + returns (QueryEncounterWithImageResponse) { option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/" - "encounter_with_image/{encounterId}"; + "encounter_with_image/{encounterId}"; } // Queries a list of EncountersWithImage items. rpc EncountersWithImage(QueryEncountersWithImageRequest) - returns (QueryEncountersWithImageResponse) { + returns (QueryEncountersWithImageResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/encounters_with_image"; + "/DecentralCardGame/cardchain/cardchain/encounters_with_image"; } // Queries a list of CardchainInfo items. rpc CardchainInfo(QueryCardchainInfoRequest) - returns (QueryCardchainInfoResponse) { + returns (QueryCardchainInfoResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/cardchain_info"; + "/DecentralCardGame/cardchain/cardchain/cardchain_info"; } // Queries a list of SetRarityDistribution items. rpc SetRarityDistribution(QuerySetRarityDistributionRequest) - returns (QuerySetRarityDistributionResponse) { + returns (QuerySetRarityDistributionResponse) { option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/" - "set_rarity_distribution/{setId}"; + "set_rarity_distribution/{setId}"; } // Queries a list of AccountFromZealy items. rpc AccountFromZealy(QueryAccountFromZealyRequest) - returns (QueryAccountFromZealyResponse) { + returns (QueryAccountFromZealyResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/account_from_zealy/{zealyId}"; + "/DecentralCardGame/cardchain/cardchain/account_from_zealy/{zealyId}"; } // Queries a list of VotingResults items. rpc VotingResults(QueryVotingResultsRequest) - returns (QueryVotingResultsResponse) { + returns (QueryVotingResultsResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/voting_results"; + "/DecentralCardGame/cardchain/cardchain/voting_results"; } // Queries a list of Matches items. rpc Matches(QueryMatchesRequest) returns (QueryMatchesResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/matches"; + "/DecentralCardGame/cardchain/cardchain/matches"; } // Queries a list of Sets items. rpc Sets(QuerySetsRequest) returns (QuerySetsResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/sets/{status}"; + "/DecentralCardGame/cardchain/cardchain/sets/{status}"; } // Queries a list of CardContent items. rpc CardContent(QueryCardContentRequest) returns (QueryCardContentResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/card_content/{cardId}"; + "/DecentralCardGame/cardchain/cardchain/card_content/{cardId}"; } // Queries a list of CardContents items. rpc CardContents(QueryCardContentsRequest) - returns (QueryCardContentsResponse) { + returns (QueryCardContentsResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/card_contents"; + "/DecentralCardGame/cardchain/cardchain/card_contents"; } // Queries a list of SellOffers items. rpc SellOffers(QuerySellOffersRequest) returns (QuerySellOffersResponse) { option (google.api.http).get = - "/DecentralCardGame/cardchain/cardchain/sell_offers"; + "/DecentralCardGame/cardchain/cardchain/sell_offers"; } } // QueryParamsRequest is request type for the Query/Params RPC method. @@ -174,16 +174,16 @@ message QueryParamsResponse { // params holds all the parameters of this module. Params params = 1 - [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } -message QueryCardRequest { uint64 cardId = 1; } +message QueryCardRequest {uint64 cardId = 1;} -message QueryCardResponse { CardWithImage card = 1; } +message QueryCardResponse {CardWithImage card = 1;} -message QueryUserRequest { string address = 1; } +message QueryUserRequest {string address = 1;} -message QueryUserResponse { User user = 1; } +message QueryUserResponse {User user = 1;} message QueryCardsRequest { string owner = 1; @@ -200,41 +200,41 @@ message QueryCardsRequest { bool multiClassOnly = 12; } -message QueryCardsResponse { repeated uint64 cardIds = 1; } +message QueryCardsResponse {repeated uint64 cardIds = 1;} -message QueryMatchRequest { uint64 matchId = 1; } +message QueryMatchRequest {uint64 matchId = 1;} -message QueryMatchResponse { Match match = 1; } +message QueryMatchResponse {Match match = 1;} -message QuerySetRequest { uint64 setId = 1; } +message QuerySetRequest {uint64 setId = 1;} -message QuerySetResponse { SetWithArtwork set = 1; } +message QuerySetResponse {SetWithArtwork set = 1;} -message QuerySellOfferRequest { uint64 sellOfferId = 1; } +message QuerySellOfferRequest {uint64 sellOfferId = 1;} -message QuerySellOfferResponse { SellOffer sellOffer = 1; } +message QuerySellOfferResponse {SellOffer sellOffer = 1;} -message QueryCouncilRequest { uint64 councilId = 1; } +message QueryCouncilRequest {uint64 councilId = 1;} -message QueryCouncilResponse { Council council = 1; } +message QueryCouncilResponse {Council council = 1;} -message QueryServerRequest { uint64 serverId = 1; } +message QueryServerRequest {uint64 serverId = 1;} -message QueryServerResponse { Server server = 1; } +message QueryServerResponse {Server server = 1;} -message QueryEncounterRequest { uint64 encounterId = 1; } +message QueryEncounterRequest {uint64 encounterId = 1;} -message QueryEncounterResponse { Encounter encounter = 1; } +message QueryEncounterResponse {Encounter encounter = 1;} -message QueryEncountersRequest {} +message QueryEncountersRequest {string owner = 1;} -message QueryEncountersResponse { repeated Encounter encounters = 1; } +message QueryEncountersResponse {repeated Encounter encounters = 1;} -message QueryEncounterWithImageRequest { uint64 encounterId = 1; } +message QueryEncounterWithImageRequest {uint64 encounterId = 1;} -message QueryEncounterWithImageResponse { EncounterWithImage encounter = 1; } +message QueryEncounterWithImageResponse {EncounterWithImage encounter = 1;} -message QueryEncountersWithImageRequest {} +message QueryEncountersWithImageRequest {string owner = 1;} message QueryEncountersWithImageResponse { repeated EncounterWithImage encounters = 1; @@ -244,7 +244,7 @@ message QueryCardchainInfoRequest {} message QueryCardchainInfoResponse { cosmos.base.v1beta1.Coin cardAuctionPrice = 1 - [ (gogoproto.nullable) = false ]; + [(gogoproto.nullable) = false]; repeated uint64 activeSets = 2; uint64 cardsNumber = 3; uint64 matchesNumber = 4; @@ -253,20 +253,20 @@ message QueryCardchainInfoResponse { uint64 lastCardModified = 7; } -message QuerySetRarityDistributionRequest { uint64 setId = 1; } +message QuerySetRarityDistributionRequest {uint64 setId = 1;} message QuerySetRarityDistributionResponse { repeated uint64 current = 1; repeated uint64 wanted = 2; } -message QueryAccountFromZealyRequest { string zealyId = 1; } +message QueryAccountFromZealyRequest {string zealyId = 1;} -message QueryAccountFromZealyResponse { string address = 1; } +message QueryAccountFromZealyResponse {string address = 1;} message QueryVotingResultsRequest {} -message QueryVotingResultsResponse { VotingResults lastVotingResults = 1; } +message QueryVotingResultsResponse {VotingResults lastVotingResults = 1;} message QueryMatchesRequest { uint64 timestampDown = 1; @@ -289,19 +289,19 @@ message QuerySetsRequest { string owner = 4; } -message QuerySetsResponse { repeated uint64 setIds = 1; } +message QuerySetsResponse {repeated uint64 setIds = 1;} -message QueryCardContentRequest { uint64 cardId = 1; } +message QueryCardContentRequest {uint64 cardId = 1;} -message QueryCardContentResponse { CardContent cardContent = 1; } +message QueryCardContentResponse {CardContent cardContent = 1;} -message QueryCardContentsRequest { repeated uint64 cardIds = 1; } +message QueryCardContentsRequest {repeated uint64 cardIds = 1;} -message QueryCardContentsResponse { repeated CardContent cardContents = 1; } +message QueryCardContentsResponse {repeated CardContent cardContents = 1;} message QuerySellOffersRequest { - cosmos.base.v1beta1.Coin priceDown = 1 [ (gogoproto.nullable) = false ]; - cosmos.base.v1beta1.Coin priceUp = 2 [ (gogoproto.nullable) = false ]; + cosmos.base.v1beta1.Coin priceDown = 1 [(gogoproto.nullable) = false]; + cosmos.base.v1beta1.Coin priceUp = 2 [(gogoproto.nullable) = false]; string seller = 3; string buyer = 4; uint64 card = 5; diff --git a/proto/cardchain/cardchain/tx.proto b/proto/cardchain/cardchain/tx.proto index 647e0305..428dc3df 100644 --- a/proto/cardchain/cardchain/tx.proto +++ b/proto/cardchain/cardchain/tx.proto @@ -13,6 +13,7 @@ import "cardchain/cardchain/match.proto"; import "cardchain/cardchain/council.proto"; import "cardchain/cardchain/encounter.proto"; import "cardchain/cardchain/card.proto"; +import "cardchain/cardchain/parameter.proto"; option go_package = "github.com/DecentralCardGame/cardchain/x/cardchain/types"; @@ -22,87 +23,75 @@ service Msg { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. - rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); - rpc UserCreate(MsgUserCreate) returns (MsgUserCreateResponse); - rpc CardSchemeBuy(MsgCardSchemeBuy) returns (MsgCardSchemeBuyResponse); - rpc CardSaveContent(MsgCardSaveContent) returns (MsgCardSaveContentResponse); - rpc CardVote(MsgCardVote) returns (MsgCardVoteResponse); - rpc CardTransfer(MsgCardTransfer) returns (MsgCardTransferResponse); - rpc CardDonate(MsgCardDonate) returns (MsgCardDonateResponse); - rpc CardArtworkAdd(MsgCardArtworkAdd) returns (MsgCardArtworkAddResponse); - rpc CardArtistChange(MsgCardArtistChange) - returns (MsgCardArtistChangeResponse); - rpc CouncilRegister(MsgCouncilRegister) returns (MsgCouncilRegisterResponse); - rpc CouncilDeregister(MsgCouncilDeregister) - returns (MsgCouncilDeregisterResponse); - rpc MatchReport(MsgMatchReport) returns (MsgMatchReportResponse); - rpc CouncilCreate(MsgCouncilCreate) returns (MsgCouncilCreateResponse); - rpc MatchReporterAppoint(MsgMatchReporterAppoint) - returns (MsgMatchReporterAppointResponse); - rpc SetCreate(MsgSetCreate) returns (MsgSetCreateResponse); - rpc SetCardAdd(MsgSetCardAdd) returns (MsgSetCardAddResponse); - rpc SetCardRemove(MsgSetCardRemove) returns (MsgSetCardRemoveResponse); - rpc SetContributorAdd(MsgSetContributorAdd) - returns (MsgSetContributorAddResponse); - rpc SetContributorRemove(MsgSetContributorRemove) - returns (MsgSetContributorRemoveResponse); - rpc SetFinalize(MsgSetFinalize) returns (MsgSetFinalizeResponse); - rpc SetArtworkAdd(MsgSetArtworkAdd) returns (MsgSetArtworkAddResponse); - rpc SetStoryAdd(MsgSetStoryAdd) returns (MsgSetStoryAddResponse); - rpc BoosterPackBuy(MsgBoosterPackBuy) returns (MsgBoosterPackBuyResponse); - rpc SellOfferCreate(MsgSellOfferCreate) returns (MsgSellOfferCreateResponse); - rpc SellOfferBuy(MsgSellOfferBuy) returns (MsgSellOfferBuyResponse); - rpc SellOfferRemove(MsgSellOfferRemove) returns (MsgSellOfferRemoveResponse); - rpc CardRaritySet(MsgCardRaritySet) returns (MsgCardRaritySetResponse); - rpc CouncilResponseCommit(MsgCouncilResponseCommit) - returns (MsgCouncilResponseCommitResponse); - rpc CouncilResponseReveal(MsgCouncilResponseReveal) - returns (MsgCouncilResponseRevealResponse); - rpc CouncilRestart(MsgCouncilRestart) returns (MsgCouncilRestartResponse); - rpc MatchConfirm(MsgMatchConfirm) returns (MsgMatchConfirmResponse); - rpc ProfileCardSet(MsgProfileCardSet) returns (MsgProfileCardSetResponse); - rpc ProfileWebsiteSet(MsgProfileWebsiteSet) - returns (MsgProfileWebsiteSetResponse); - rpc ProfileBioSet(MsgProfileBioSet) returns (MsgProfileBioSetResponse); - rpc BoosterPackOpen(MsgBoosterPackOpen) returns (MsgBoosterPackOpenResponse); - rpc BoosterPackTransfer(MsgBoosterPackTransfer) - returns (MsgBoosterPackTransferResponse); - rpc SetStoryWriterSet(MsgSetStoryWriterSet) - returns (MsgSetStoryWriterSetResponse); - rpc SetArtistSet(MsgSetArtistSet) returns (MsgSetArtistSetResponse); - rpc CardVoteMulti(MsgCardVoteMulti) returns (MsgCardVoteMultiResponse); - rpc MatchOpen(MsgMatchOpen) returns (MsgMatchOpenResponse); - rpc SetNameSet(MsgSetNameSet) returns (MsgSetNameSetResponse); - rpc ProfileAliasSet(MsgProfileAliasSet) returns (MsgProfileAliasSetResponse); - rpc EarlyAccessInvite(MsgEarlyAccessInvite) - returns (MsgEarlyAccessInviteResponse); - rpc ZealyConnect(MsgZealyConnect) returns (MsgZealyConnectResponse); - rpc EncounterCreate(MsgEncounterCreate) returns (MsgEncounterCreateResponse); - rpc EncounterDo(MsgEncounterDo) returns (MsgEncounterDoResponse); - rpc EncounterClose(MsgEncounterClose) returns (MsgEncounterCloseResponse); - rpc EarlyAccessDisinvite(MsgEarlyAccessDisinvite) - returns (MsgEarlyAccessDisinviteResponse); - rpc CardBan(MsgCardBan) returns (MsgCardBanResponse); - rpc EarlyAccessGrant(MsgEarlyAccessGrant) - returns (MsgEarlyAccessGrantResponse); - rpc SetActivate(MsgSetActivate) returns (MsgSetActivateResponse); - rpc CardCopyrightClaim(MsgCardCopyrightClaim) - returns (MsgCardCopyrightClaimResponse); + rpc UpdateParams (MsgUpdateParams) returns (MsgUpdateParamsResponse); + rpc UserCreate (MsgUserCreate) returns (MsgUserCreateResponse); + rpc CardSchemeBuy (MsgCardSchemeBuy) returns (MsgCardSchemeBuyResponse); + rpc CardSaveContent (MsgCardSaveContent) returns (MsgCardSaveContentResponse); + rpc CardVote (MsgCardVote) returns (MsgCardVoteResponse); + rpc CardTransfer (MsgCardTransfer) returns (MsgCardTransferResponse); + rpc CardDonate (MsgCardDonate) returns (MsgCardDonateResponse); + rpc CardArtworkAdd (MsgCardArtworkAdd) returns (MsgCardArtworkAddResponse); + rpc CardArtistChange (MsgCardArtistChange) returns (MsgCardArtistChangeResponse); + rpc CouncilRegister (MsgCouncilRegister) returns (MsgCouncilRegisterResponse); + rpc CouncilDeregister (MsgCouncilDeregister) returns (MsgCouncilDeregisterResponse); + rpc MatchReport (MsgMatchReport) returns (MsgMatchReportResponse); + rpc CouncilCreate (MsgCouncilCreate) returns (MsgCouncilCreateResponse); + rpc MatchReporterAppoint (MsgMatchReporterAppoint) returns (MsgMatchReporterAppointResponse); + rpc SetCreate (MsgSetCreate) returns (MsgSetCreateResponse); + rpc SetCardAdd (MsgSetCardAdd) returns (MsgSetCardAddResponse); + rpc SetCardRemove (MsgSetCardRemove) returns (MsgSetCardRemoveResponse); + rpc SetContributorAdd (MsgSetContributorAdd) returns (MsgSetContributorAddResponse); + rpc SetContributorRemove (MsgSetContributorRemove) returns (MsgSetContributorRemoveResponse); + rpc SetFinalize (MsgSetFinalize) returns (MsgSetFinalizeResponse); + rpc SetArtworkAdd (MsgSetArtworkAdd) returns (MsgSetArtworkAddResponse); + rpc SetStoryAdd (MsgSetStoryAdd) returns (MsgSetStoryAddResponse); + rpc BoosterPackBuy (MsgBoosterPackBuy) returns (MsgBoosterPackBuyResponse); + rpc SellOfferCreate (MsgSellOfferCreate) returns (MsgSellOfferCreateResponse); + rpc SellOfferBuy (MsgSellOfferBuy) returns (MsgSellOfferBuyResponse); + rpc SellOfferRemove (MsgSellOfferRemove) returns (MsgSellOfferRemoveResponse); + rpc CardRaritySet (MsgCardRaritySet) returns (MsgCardRaritySetResponse); + rpc CouncilResponseCommit (MsgCouncilResponseCommit) returns (MsgCouncilResponseCommitResponse); + rpc CouncilResponseReveal (MsgCouncilResponseReveal) returns (MsgCouncilResponseRevealResponse); + rpc CouncilRestart (MsgCouncilRestart) returns (MsgCouncilRestartResponse); + rpc MatchConfirm (MsgMatchConfirm) returns (MsgMatchConfirmResponse); + rpc ProfileCardSet (MsgProfileCardSet) returns (MsgProfileCardSetResponse); + rpc ProfileWebsiteSet (MsgProfileWebsiteSet) returns (MsgProfileWebsiteSetResponse); + rpc ProfileBioSet (MsgProfileBioSet) returns (MsgProfileBioSetResponse); + rpc BoosterPackOpen (MsgBoosterPackOpen) returns (MsgBoosterPackOpenResponse); + rpc BoosterPackTransfer (MsgBoosterPackTransfer) returns (MsgBoosterPackTransferResponse); + rpc SetStoryWriterSet (MsgSetStoryWriterSet) returns (MsgSetStoryWriterSetResponse); + rpc SetArtistSet (MsgSetArtistSet) returns (MsgSetArtistSetResponse); + rpc CardVoteMulti (MsgCardVoteMulti) returns (MsgCardVoteMultiResponse); + rpc MatchOpen (MsgMatchOpen) returns (MsgMatchOpenResponse); + rpc SetNameSet (MsgSetNameSet) returns (MsgSetNameSetResponse); + rpc ProfileAliasSet (MsgProfileAliasSet) returns (MsgProfileAliasSetResponse); + rpc EarlyAccessInvite (MsgEarlyAccessInvite) returns (MsgEarlyAccessInviteResponse); + rpc ZealyConnect (MsgZealyConnect) returns (MsgZealyConnectResponse); + rpc EncounterCreate (MsgEncounterCreate) returns (MsgEncounterCreateResponse); + rpc EncounterEdit (MsgEncounterEdit) returns (MsgEncounterEditResponse); + rpc EncounterDo (MsgEncounterDo) returns (MsgEncounterDoResponse); + rpc EncounterClose (MsgEncounterClose) returns (MsgEncounterCloseResponse); + rpc EarlyAccessDisinvite (MsgEarlyAccessDisinvite) returns (MsgEarlyAccessDisinviteResponse); + rpc CardBan (MsgCardBan) returns (MsgCardBanResponse); + rpc EarlyAccessGrant (MsgEarlyAccessGrant) returns (MsgEarlyAccessGrantResponse); + rpc SetActivate (MsgSetActivate) returns (MsgSetActivateResponse); + rpc CardCopyrightClaim (MsgCardCopyrightClaim) returns (MsgCardCopyrightClaimResponse); + + // EncounterEdit defines the EncounterEdit RPC. } // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "cardchain/x/cardchain/MsgUpdateParams"; + option (amino.name) = "cardchain/x/cardchain/MsgUpdateParams"; // authority is the address that controls the module (defaults to x/gov unless // overwritten). - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the module parameters to update. // NOTE: All parameters must be supplied. - Params params = 2 - [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } // MsgUpdateParamsResponse defines the response structure for executing a @@ -120,31 +109,38 @@ message MsgUserCreateResponse {} message MsgCardSchemeBuy { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - cosmos.base.v1beta1.Coin bid = 2 [ (gogoproto.nullable) = false ]; + string creator = 1; + cosmos.base.v1beta1.Coin bid = 2 [(gogoproto.nullable) = false]; } -message MsgCardSchemeBuyResponse { uint64 cardId = 1; } +message MsgCardSchemeBuyResponse { + uint64 cardId = 1; +} message MsgCardSaveContent { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; uint64 cardId = 2; - bytes content = 3; + bytes content = 3; string notes = 4; string artist = 5; - bool balanceAnchor = 6; + bool balanceAnchor = 6; + repeated Parameter parameters = 7; } -message MsgCardSaveContentResponse { bool airdropClaimed = 1; } +message MsgCardSaveContentResponse { + bool airdropClaimed = 1; +} message MsgCardVote { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; + string creator = 1; SingleVote vote = 2; } -message MsgCardVoteResponse { bool airdropClaimed = 1; } +message MsgCardVoteResponse { + bool airdropClaimed = 1; +} message MsgCardTransfer { option (cosmos.msg.v1.signer) = "creator"; @@ -157,9 +153,9 @@ message MsgCardTransferResponse {} message MsgCardDonate { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 cardId = 2; - cosmos.base.v1beta1.Coin amount = 3 [ (gogoproto.nullable) = false ]; + string creator = 1; + uint64 cardId = 2; + cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; } message MsgCardDonateResponse {} @@ -168,8 +164,8 @@ message MsgCardArtworkAdd { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; uint64 cardId = 2; - bytes image = 3; - bool fullArt = 4; + bytes image = 3; + bool fullArt = 4; } message MsgCardArtworkAddResponse {} @@ -199,10 +195,10 @@ message MsgCouncilDeregisterResponse {} message MsgMatchReport { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 matchId = 2; - repeated uint64 playedCardsA = 3; - repeated uint64 playedCardsB = 4; + string creator = 1; + uint64 matchId = 2; + repeated uint64 playedCardsA = 3; + repeated uint64 playedCardsB = 4; Outcome outcome = 5; } @@ -218,7 +214,7 @@ message MsgCouncilCreateResponse {} message MsgMatchReporterAppoint { option (cosmos.msg.v1.signer) = "authority"; - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string reporter = 2; } @@ -283,7 +279,7 @@ message MsgSetArtworkAdd { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; uint64 setId = 2; - bytes image = 3; + bytes image = 3; } message MsgSetArtworkAddResponse {} @@ -303,13 +299,15 @@ message MsgBoosterPackBuy { uint64 setId = 2; } -message MsgBoosterPackBuyResponse { bool airdropClaimed = 1; } +message MsgBoosterPackBuyResponse { + bool airdropClaimed = 1; +} message MsgSellOfferCreate { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 cardId = 2; - cosmos.base.v1beta1.Coin price = 3 [ (gogoproto.nullable) = false ]; + string creator = 1; + uint64 cardId = 2; + cosmos.base.v1beta1.Coin price = 3 [(gogoproto.nullable) = false]; } message MsgSellOfferCreateResponse {} @@ -332,9 +330,9 @@ message MsgSellOfferRemoveResponse {} message MsgCardRaritySet { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 cardId = 2; - uint64 setId = 3; + string creator = 1; + uint64 cardId = 2; + uint64 setId = 3; CardRarity rarity = 4; } @@ -352,10 +350,10 @@ message MsgCouncilResponseCommitResponse {} message MsgCouncilResponseReveal { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 councilId = 2; + string creator = 1; + uint64 councilId = 2; Response response = 3; - string secret = 4; + string secret = 4; } message MsgCouncilResponseRevealResponse {} @@ -370,9 +368,9 @@ message MsgCouncilRestartResponse {} message MsgMatchConfirm { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - uint64 matchId = 2; - Outcome outcome = 3; + string creator = 1; + uint64 matchId = 2; + Outcome outcome = 3; repeated SingleVote votedCards = 4; } @@ -408,7 +406,9 @@ message MsgBoosterPackOpen { uint64 boosterPackId = 2; } -message MsgBoosterPackOpenResponse { repeated uint64 cardIds = 1; } +message MsgBoosterPackOpenResponse { + repeated uint64 cardIds = 1; +} message MsgBoosterPackTransfer { option (cosmos.msg.v1.signer) = "creator"; @@ -439,11 +439,13 @@ message MsgSetArtistSetResponse {} message MsgCardVoteMulti { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; + string creator = 1; repeated SingleVote votes = 2; } -message MsgCardVoteMultiResponse { bool airdropClaimed = 1; } +message MsgCardVoteMultiResponse { + bool airdropClaimed = 1; +} message MsgMatchOpen { option (cosmos.msg.v1.signer) = "creator"; @@ -454,7 +456,9 @@ message MsgMatchOpen { repeated uint64 playerBDeck = 5; } -message MsgMatchOpenResponse { uint64 matchId = 1; } +message MsgMatchOpenResponse { + uint64 matchId = 1; +} message MsgSetNameSet { option (cosmos.msg.v1.signer) = "creator"; @@ -491,15 +495,30 @@ message MsgZealyConnectResponse {} message MsgEncounterCreate { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string name = 2; - repeated uint64 drawlist = 3; + string creator = 1; + string name = 2; + repeated uint64 drawlist = 3; repeated Parameter parameters = 4; - bytes image = 5; + bytes image = 5; } message MsgEncounterCreateResponse {} +// MsgEncounterEdit defines the MsgEncounterEdit message. +message MsgEncounterEdit { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + uint64 id = 2; + string name = 3; + repeated uint64 drawlist = 4; + repeated Parameter parameters = 5; + bytes image = 6; +} + +// MsgEncounterEditResponse defines the MsgEncounterEditResponse message. +message MsgEncounterEditResponse {} + + message MsgEncounterDo { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -514,7 +533,7 @@ message MsgEncounterClose { string creator = 1; uint64 encounterId = 2; string user = 3; - bool won = 4; + bool won = 4; } message MsgEncounterCloseResponse {} @@ -529,7 +548,7 @@ message MsgEarlyAccessDisinviteResponse {} message MsgCardBan { option (cosmos.msg.v1.signer) = "authority"; - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint64 cardId = 2; } @@ -537,7 +556,7 @@ message MsgCardBanResponse {} message MsgEarlyAccessGrant { option (cosmos.msg.v1.signer) = "authority"; - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; repeated string users = 2; } @@ -545,7 +564,7 @@ message MsgEarlyAccessGrantResponse {} message MsgSetActivate { option (cosmos.msg.v1.signer) = "authority"; - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint64 setId = 2; } @@ -553,7 +572,7 @@ message MsgSetActivateResponse {} message MsgCardCopyrightClaim { option (cosmos.msg.v1.signer) = "authority"; - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint64 cardId = 2; } diff --git a/proto/cardchain/featureflag/module/module.proto b/proto/cardchain/featureflag/module/module.proto index 6bdb6088..4b89a649 100644 --- a/proto/cardchain/featureflag/module/module.proto +++ b/proto/cardchain/featureflag/module/module.proto @@ -3,6 +3,9 @@ package cardchain.featureflag.module; import "cosmos/app/v1alpha1/module.proto"; +option go_package = "github.com/DecentralCardGame/cardchain/x/featureflag/types"; + + // Module is the config object for the module. message Module { option (cosmos.app.v1alpha1.module) = { diff --git a/testutil/keeper/cardchain.go b/testutil/keeper/cardchain.go index e6a33c93..97a3c3c2 100644 --- a/testutil/keeper/cardchain.go +++ b/testutil/keeper/cardchain.go @@ -10,6 +10,7 @@ import ( cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/cosmos-sdk/codec" + addresscodec "github.com/cosmos/cosmos-sdk/codec/address" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" @@ -29,6 +30,8 @@ func CardchainKeeper(t testing.TB) (keeper.Keeper, sdk.Context) { stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) require.NoError(t, stateStore.LoadLatestVersion()) + addressCodec := addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()) + registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) authority := authtypes.NewModuleAddress(govtypes.ModuleName) @@ -36,6 +39,7 @@ func CardchainKeeper(t testing.TB) (keeper.Keeper, sdk.Context) { k := keeper.NewKeeper( cdc, runtime.NewKVStoreService(storeKey), + addressCodec, log.NewNopLogger(), authority.String(), ) diff --git a/x/cardchain/client/cli/tx_encounter_create.go b/x/cardchain/client/cli/tx_encounter_create.go deleted file mode 100644 index 8974054b..00000000 --- a/x/cardchain/client/cli/tx_encounter_create.go +++ /dev/null @@ -1,56 +0,0 @@ -package cli - -import ( - "encoding/json" - "strconv" - - "github.com/DecentralCardGame/cardchain/x/cardchain/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" -) - -var _ = strconv.Itoa(0) - -func CmdEncounterCreate() *cobra.Command { - cmd := &cobra.Command{ - Use: "encounter-create [name] [drawlist] [parameters] [image]", - Short: "Broadcast message EncounterCreate", - Args: cobra.ExactArgs(4), - RunE: func(cmd *cobra.Command, args []string) (err error) { - var reqDrawlist []uint64 - err = json.Unmarshal([]byte(args[1]), &reqDrawlist) - if err != nil { - return err - } - - var reqParameters []*types.Parameter - err = json.Unmarshal([]byte(args[2]), &reqParameters) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgEncounterCreate( - clientCtx.GetFromAddress().String(), - args[0], - reqDrawlist, - reqParameters, - []byte(args[3]), - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/cardchain/keeper/keeper.go b/x/cardchain/keeper/keeper.go index 9d5e5cb9..99d2a884 100644 --- a/x/cardchain/keeper/keeper.go +++ b/x/cardchain/keeper/keeper.go @@ -3,6 +3,7 @@ package keeper import ( "fmt" + "cosmossdk.io/core/address" "cosmossdk.io/core/store" "cosmossdk.io/log" "github.com/cosmos/cosmos-sdk/codec" @@ -16,6 +17,7 @@ import ( type Keeper struct { cdc codec.BinaryCodec storeService store.KVStoreService + addressCodec address.Codec logger log.Logger CardK gtk.GenericUint64TypeKeeper[*types.Card] @@ -45,6 +47,7 @@ type Keeper struct { func NewKeeper( cdc codec.BinaryCodec, storeService store.KVStoreService, + addressCodec address.Codec, logger log.Logger, authority string, bankKeeper types.BankKeeper, @@ -57,6 +60,7 @@ func NewKeeper( return Keeper{ cdc: cdc, storeService: storeService, + addressCodec: addressCodec, authority: authority, logger: logger, diff --git a/x/cardchain/keeper/msg_server_card_artwork_add.go b/x/cardchain/keeper/msg_server_card_artwork_add.go index 0a733e31..37a71493 100644 --- a/x/cardchain/keeper/msg_server_card_artwork_add.go +++ b/x/cardchain/keeper/msg_server_card_artwork_add.go @@ -12,6 +12,11 @@ import ( func (k msgServer) CardArtworkAdd(goCtx context.Context, msg *types.MsgCardArtworkAdd) (*types.MsgCardArtworkAddResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + err := types.ValidateImage(msg) + if err != nil { + return nil, err + } + card := k.CardK.Get(ctx, msg.CardId) image := k.Images.Get(ctx, card.ImageId) diff --git a/x/cardchain/keeper/msg_server_card_save_content.go b/x/cardchain/keeper/msg_server_card_save_content.go index f2d92483..6357a6bc 100644 --- a/x/cardchain/keeper/msg_server_card_save_content.go +++ b/x/cardchain/keeper/msg_server_card_save_content.go @@ -49,6 +49,7 @@ func (k msgServer) CardSaveContent(goCtx context.Context, msg *types.MsgCardSave card.Notes = msg.Notes card.Artist = msg.Artist + card.Parameters = msg.Parameters card.BalanceAnchor = msg.BalanceAnchor if card.Status == types.CardStatus_scheme { err = msgOwner.SchemeToCard(msg.CardId) diff --git a/x/cardchain/keeper/msg_server_encounter_create.go b/x/cardchain/keeper/msg_server_encounter_create.go index e00befba..42cfacc0 100644 --- a/x/cardchain/keeper/msg_server_encounter_create.go +++ b/x/cardchain/keeper/msg_server_encounter_create.go @@ -2,7 +2,6 @@ package keeper import ( "context" - "slices" errorsmod "cosmossdk.io/errors" "github.com/DecentralCardGame/cardchain/x/cardchain/types" @@ -15,44 +14,18 @@ import ( func (k msgServer) EncounterCreate(goCtx context.Context, msg *types.MsgEncounterCreate) (*types.MsgEncounterCreateResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - creator, err := k.GetUserFromString(ctx, msg.Creator) - if err != nil { - return nil, err - } - - var ( - id, imageId uint64 - override bool = false - ) - - iter := k.Encounterk.GetItemIterator(ctx) - for ; iter.Valid(); iter.Next() { - encounterId, encounter := iter.Value() - - if encounter.Name == msg.Name { - if encounter.Owner != msg.Creator { - return nil, errorsmod.Wrapf( - errors.ErrUnauthorized, - "encounter with same name already exists and is owned by '%s'", - encounter.Owner, - ) - } - id = encounterId - imageId = encounter.ImageId - override = true - } + if _, err := k.addressCodec.StringToBytes(msg.Creator); err != nil { + return nil, errorsmod.Wrap(err, "invalid authority address") } - if !override { - id = k.Encounterk.GetNum(ctx) - imageId = k.Images.GetNum(ctx) - } - - err = k.validateDrawlist(ctx, msg, &creator) + err := types.ValidateImage(msg) if err != nil { return nil, err } + id := k.Encounterk.GetNum(ctx) + imageId := k.Images.GetNum(ctx) + encounter := types.Encounter{ Id: id, Drawlist: msg.Drawlist, @@ -63,26 +36,57 @@ func (k msgServer) EncounterCreate(goCtx context.Context, msg *types.MsgEncounte ImageId: imageId, } + err = k.validateEncounter(ctx, &encounter, msg.Creator) + if err != nil { + return nil, err + } + k.Images.Set(ctx, imageId, &types.Image{Image: msg.Image}) k.Encounterk.Set(ctx, id, &encounter) - k.SetUserFromUser(ctx, creator) return &types.MsgEncounterCreateResponse{}, nil } -func (k Keeper) validateDrawlist(ctx sdk.Context, msg *types.MsgEncounterCreate, creator *User) error { - for idx, cardId := range msg.Drawlist { +func (k Keeper) validateEncounter(ctx sdk.Context, encounter *types.Encounter, creator string) error { + if len(encounter.Drawlist) > 40 || len(encounter.Drawlist) < 1 { + return errorsmod.Wrapf( + types.ErrInvalidData, "invalid drawlist length, max 40 is '%d'", len(encounter.Drawlist), + ) + } + + if encounter.Name == "" { + return errorsmod.Wrap(types.ErrInvalidData, "encounter needs a name") + } + + iter := k.Encounterk.GetItemIterator(ctx) + for ; iter.Valid(); iter.Next() { + _, e := iter.Value() + + if e.Name == encounter.Name && e.Id != encounter.Id { + return errorsmod.Wrapf( + errors.ErrUnauthorized, + "encounter with same name already exists and is owned by '%s'", + e.Owner, + ) + } + } + + err := k.validateDrawlist(ctx, encounter, creator) + if err != nil { + return err + } + + return nil +} + +func (k Keeper) validateDrawlist(ctx sdk.Context, encounter *types.Encounter, creator string) error { + for idx, cardId := range encounter.Drawlist { card := k.CardK.Get(ctx, cardId) - if card.Owner != msg.Creator { - index := slices.Index(creator.Cards, cardId) - if index != -1 { - creator.Cards = append(creator.Cards[:index], creator.Cards[index+1:]...) - } else { - return errorsmod.Wrapf( - sdkerrors.ErrUnauthorized, - "creator has to own all cards, doesnt own '%d'", cardId, - ) - } + if card.Owner != creator { + return errorsmod.Wrapf( + sdkerrors.ErrUnauthorized, + "creator has to own all cards, doesnt own '%d'", cardId, + ) } cardObj, err := card.GetCardObj() diff --git a/x/cardchain/keeper/msg_server_encounter_edit.go b/x/cardchain/keeper/msg_server_encounter_edit.go new file mode 100644 index 00000000..6efe307f --- /dev/null +++ b/x/cardchain/keeper/msg_server_encounter_edit.go @@ -0,0 +1,43 @@ +package keeper + +import ( + "context" + + errorsmod "cosmossdk.io/errors" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +func (k msgServer) EncounterEdit(goCtx context.Context, msg *types.MsgEncounterEdit) (*types.MsgEncounterEditResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if _, err := k.addressCodec.StringToBytes(msg.Creator); err != nil { + return nil, errorsmod.Wrap(err, "invalid authority address") + } + + encounter := k.Encounterk.Get(ctx, msg.Id) + + if encounter.Owner != msg.Creator { + return nil, errorsmod.Wrapf(sdkerrors.ErrUnauthorized, "Invalid Owner, owned by '%s'", encounter.Owner) + } + + newEncounter := types.Encounter{ + Id: msg.Id, + Drawlist: msg.Drawlist, + Name: msg.Name, + Proven: false, + Owner: msg.Creator, + Parameters: msg.Parameters, + ImageId: encounter.ImageId, + } + + err := k.validateEncounter(ctx, &newEncounter, msg.Creator) + if err != nil { + return nil, err + } + + k.Images.Set(ctx, encounter.ImageId, &types.Image{Image: msg.Image}) + k.Encounterk.Set(ctx, msg.Id, &newEncounter) + + return &types.MsgEncounterEditResponse{}, nil +} diff --git a/x/cardchain/keeper/msg_server_profile_alias_set.go b/x/cardchain/keeper/msg_server_profile_alias_set.go index 7171a048..3649a974 100644 --- a/x/cardchain/keeper/msg_server_profile_alias_set.go +++ b/x/cardchain/keeper/msg_server_profile_alias_set.go @@ -10,6 +10,10 @@ import ( func (k msgServer) ProfileAliasSet(goCtx context.Context, msg *types.MsgProfileAliasSet) (*types.MsgProfileAliasSetResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + if err := types.CheckAliasLimit(msg.Alias); err != nil { + return nil, err + } + user, err := k.GetUserFromString(ctx, msg.Creator) if err != nil { return nil, err diff --git a/x/cardchain/keeper/msg_server_profile_bio_set.go b/x/cardchain/keeper/msg_server_profile_bio_set.go index bff54e19..6fa201e5 100644 --- a/x/cardchain/keeper/msg_server_profile_bio_set.go +++ b/x/cardchain/keeper/msg_server_profile_bio_set.go @@ -3,13 +3,20 @@ package keeper import ( "context" + errorsmod "cosmossdk.io/errors" "github.com/DecentralCardGame/cardchain/x/cardchain/types" sdk "github.com/cosmos/cosmos-sdk/types" ) +const BIO_MAX_LENGTH = 400 + func (k msgServer) ProfileBioSet(goCtx context.Context, msg *types.MsgProfileBioSet) (*types.MsgProfileBioSetResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + if len(msg.Bio) > BIO_MAX_LENGTH { + return nil, errorsmod.Wrapf(types.ErrInvalidData, "Website length exceded %d chars", BIO_MAX_LENGTH) + } + user, err := k.GetUserFromString(ctx, msg.Creator) if err != nil { return nil, err diff --git a/x/cardchain/keeper/msg_server_profile_website_set.go b/x/cardchain/keeper/msg_server_profile_website_set.go index ebcdc207..9a9892bc 100644 --- a/x/cardchain/keeper/msg_server_profile_website_set.go +++ b/x/cardchain/keeper/msg_server_profile_website_set.go @@ -3,13 +3,20 @@ package keeper import ( "context" + errorsmod "cosmossdk.io/errors" "github.com/DecentralCardGame/cardchain/x/cardchain/types" sdk "github.com/cosmos/cosmos-sdk/types" ) +const WEBSITE_MAX_LENGTH = 50 + func (k msgServer) ProfileWebsiteSet(goCtx context.Context, msg *types.MsgProfileWebsiteSet) (*types.MsgProfileWebsiteSetResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + if len(msg.Website) > WEBSITE_MAX_LENGTH { + return nil, errorsmod.Wrapf(types.ErrInvalidData, "Website length exceded %d chars", WEBSITE_MAX_LENGTH) + } + user, err := k.GetUserFromString(ctx, msg.Creator) if err != nil { return nil, err diff --git a/x/cardchain/keeper/msg_server_user_create.go b/x/cardchain/keeper/msg_server_user_create.go index 911d3084..c931a42e 100644 --- a/x/cardchain/keeper/msg_server_user_create.go +++ b/x/cardchain/keeper/msg_server_user_create.go @@ -12,6 +12,10 @@ import ( func (k msgServer) UserCreate(goCtx context.Context, msg *types.MsgUserCreate) (*types.MsgUserCreateResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + if err := types.CheckAliasLimit(msg.Alias); err != nil { + return nil, err + } + user, err := k.GetUserFromString(ctx, msg.NewUser) if err != nil { return nil, errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/cardchain/keeper/msg_update_params.go b/x/cardchain/keeper/msg_update_params.go index 9e234063..8a36e555 100644 --- a/x/cardchain/keeper/msg_update_params.go +++ b/x/cardchain/keeper/msg_update_params.go @@ -15,6 +15,11 @@ func (k msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParam } ctx := sdk.UnwrapSDKContext(goCtx) + + if err := req.Params.Validate(); err != nil { + return nil, err + } + if err := k.SetParams(ctx, req.Params); err != nil { return nil, err } diff --git a/x/cardchain/keeper/query_encounters.go b/x/cardchain/keeper/query_encounters.go index b7718757..5c3cd953 100644 --- a/x/cardchain/keeper/query_encounters.go +++ b/x/cardchain/keeper/query_encounters.go @@ -16,7 +16,12 @@ func (k Keeper) Encounters(goCtx context.Context, req *types.QueryEncountersRequ ctx := sdk.UnwrapSDKContext(goCtx) - encounters := k.Encounterk.GetAll(ctx) + var encounters []*types.Encounter + for _, encounter := range k.Encounterk.GetAll(ctx) { + if req.Owner == "" || encounter.Owner == req.Owner { + encounters = append(encounters, encounter) + } + } return &types.QueryEncountersResponse{Encounters: encounters}, nil } diff --git a/x/cardchain/keeper/query_encounters_with_image.go b/x/cardchain/keeper/query_encounters_with_image.go index 486a21dc..77f644d2 100644 --- a/x/cardchain/keeper/query_encounters_with_image.go +++ b/x/cardchain/keeper/query_encounters_with_image.go @@ -18,13 +18,13 @@ func (k Keeper) EncountersWithImage(goCtx context.Context, req *types.QueryEncou var encountersWithImage []*types.EncounterWithImage - encounters := k.Encounterk.GetAll(ctx) - - for _, encounter := range encounters { - encountersWithImage = append(encountersWithImage, &types.EncounterWithImage{ - Encounter: *encounter, - Image: string(k.Images.Get(ctx, encounter.ImageId).Image), - }) + for _, encounter := range k.Encounterk.GetAll(ctx) { + if req.Owner == "" || encounter.Owner == req.Owner { + encountersWithImage = append(encountersWithImage, &types.EncounterWithImage{ + Encounter: *encounter, + Image: string(k.Images.Get(ctx, encounter.ImageId).Image), + }) + } } return &types.QueryEncountersWithImageResponse{Encounters: encountersWithImage}, nil diff --git a/x/cardchain/keeper/user.go b/x/cardchain/keeper/user.go index 00d98aa7..9353171c 100644 --- a/x/cardchain/keeper/user.go +++ b/x/cardchain/keeper/user.go @@ -47,9 +47,6 @@ func (k Keeper) GetUserFromString(ctx sdk.Context, addr string) (user User, err return user, sdkerrors.Wrap(errors.ErrInvalidAddress, "Unable to convert to AccAddress") } user.User = k.Users.Get(ctx, user.Addr) - if err != nil { - return - } return } diff --git a/x/cardchain/module/autocli.go b/x/cardchain/module/autocli.go index 360402ad..cbccf450 100644 --- a/x/cardchain/module/autocli.go +++ b/x/cardchain/module/autocli.go @@ -3,14 +3,14 @@ package cardchain import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" - modulev1 "github.com/DecentralCardGame/cardchain/api/cardchain/cardchain" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" ) // AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { return &autocliv1.ModuleOptions{ Query: &autocliv1.ServiceCommandDescriptor{ - Service: modulev1.Query_ServiceDesc.ServiceName, + Service: types.Query_serviceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "Params", @@ -169,7 +169,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, Tx: &autocliv1.ServiceCommandDescriptor{ - Service: modulev1.Msg_ServiceDesc.ServiceName, + Service: types.Msg_serviceDesc.ServiceName, EnhanceCustomCommand: true, // only required if you want to use the custom command RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { @@ -440,6 +440,12 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "Send a EncounterCreate tx", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "name"}, {ProtoField: "drawlist"}, {ProtoField: "parameters"}, {ProtoField: "image"}}, }, + { + RpcMethod: "EncounterEdit", + Use: "encounter-edit [id] [name] [drawlist] [parameters] [image]", + Short: "Send a EncounterEdit tx", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "id"}, {ProtoField: "name"}, {ProtoField: "drawlist"}, {ProtoField: "parameters"}, {ProtoField: "image", Varargs: true}}, + }, { RpcMethod: "EncounterDo", Use: "encounter-do [encounter-id] [user]", @@ -483,6 +489,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "Send a CardCopyrightClaim tx", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "cardId"}}, }, + // this line is used by ignite scaffolding # autocli/tx }, }, diff --git a/x/cardchain/module/depinject.go b/x/cardchain/module/depinject.go new file mode 100644 index 00000000..3a74f9fd --- /dev/null +++ b/x/cardchain/module/depinject.go @@ -0,0 +1,73 @@ +package cardchain + +import ( + "cosmossdk.io/core/address" + "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + "cosmossdk.io/depinject/appconfig" + "cosmossdk.io/log" + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" + "github.com/cosmos/cosmos-sdk/codec" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" +) + +var _ depinject.OnePerModuleType = AppModule{} + +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (AppModule) IsOnePerModuleType() {} + +func init() { + appconfig.Register( + &types.Module{}, + appconfig.Provide(ProvideModule), + ) +} + +type ModuleInputs struct { + depinject.In + + StoreService store.KVStoreService + AddressCodec address.Codec + Cdc codec.Codec + Config *types.Module + Logger log.Logger + + AccountKeeper types.AccountKeeper + BankKeeper types.BankKeeper + FeatureFlagKeeper types.FeatureFlagKeeper +} + +type ModuleOutputs struct { + depinject.Out + + CardchainKeeper keeper.Keeper + Module appmodule.AppModule +} + +func ProvideModule(in ModuleInputs) ModuleOutputs { + // default to governance authority if not provided + authority := authtypes.NewModuleAddress(types.GovModuleName) + if in.Config.Authority != "" { + authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority) + } + k := keeper.NewKeeper( + in.Cdc, + in.StoreService, + in.AddressCodec, + in.Logger, + authority.String(), + in.BankKeeper, + in.FeatureFlagKeeper, + ) + + m := NewAppModule( + in.Cdc, + k, + in.AccountKeeper, + in.BankKeeper, + ) + + return ModuleOutputs{CardchainKeeper: k, Module: m} +} diff --git a/x/cardchain/module/module.go b/x/cardchain/module/module.go index ef9455a6..62ef4f05 100644 --- a/x/cardchain/module/module.go +++ b/x/cardchain/module/module.go @@ -6,21 +6,15 @@ import ( "fmt" "cosmossdk.io/core/appmodule" - "cosmossdk.io/core/store" - "cosmossdk.io/depinject" - "cosmossdk.io/log" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/grpc-ecosystem/grpc-gateway/runtime" // this line is used by starport scaffolding # 1 - modulev1 "github.com/DecentralCardGame/cardchain/api/cardchain/cardchain/module" "github.com/DecentralCardGame/cardchain/util" "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" "github.com/DecentralCardGame/cardchain/x/cardchain/types" @@ -217,63 +211,9 @@ func (am AppModule) EndBlock(goCtx context.Context) error { return nil } -// IsOnePerModuleType implements the depinject.OnePerModuleType interface. -func (am AppModule) IsOnePerModuleType() {} - // IsAppModule implements the appmodule.AppModule interface. func (am AppModule) IsAppModule() {} // ---------------------------------------------------------------------------- // App Wiring Setup // ---------------------------------------------------------------------------- - -func init() { - appmodule.Register( - &modulev1.Module{}, - appmodule.Provide(ProvideModule), - ) -} - -type ModuleInputs struct { - depinject.In - - StoreService store.KVStoreService - Cdc codec.Codec - Config *modulev1.Module - Logger log.Logger - - AccountKeeper types.AccountKeeper - BankKeeper types.BankKeeper - FeatureFlagKeeper types.FeatureFlagKeeper -} - -type ModuleOutputs struct { - depinject.Out - - CardchainKeeper keeper.Keeper - Module appmodule.AppModule -} - -func ProvideModule(in ModuleInputs) ModuleOutputs { - // default to governance authority if not provided - authority := authtypes.NewModuleAddress(govtypes.ModuleName) - if in.Config.Authority != "" { - authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority) - } - k := keeper.NewKeeper( - in.Cdc, - in.StoreService, - in.Logger, - authority.String(), - in.BankKeeper, - in.FeatureFlagKeeper, - ) - m := NewAppModule( - in.Cdc, - k, - in.AccountKeeper, - in.BankKeeper, - ) - - return ModuleOutputs{CardchainKeeper: k, Module: m} -} diff --git a/x/cardchain/module/simulation.go b/x/cardchain/module/simulation.go index 1611f7f6..8e2add48 100644 --- a/x/cardchain/module/simulation.go +++ b/x/cardchain/module/simulation.go @@ -810,6 +810,21 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp weightMsgCardCopyrightClaim, cardchainsimulation.SimulateMsgCardCopyrightClaim(am.accountKeeper, am.bankKeeper, am.keeper), )) + const ( + opWeightMsgEncounterEdit = "op_weight_msg_cardchain" + defaultWeightMsgEncounterEdit int = 100 + ) + + var weightMsgEncounterEdit int + simState.AppParams.GetOrGenerate(opWeightMsgEncounterEdit, &weightMsgEncounterEdit, nil, + func(_ *rand.Rand) { + weightMsgEncounterEdit = defaultWeightMsgEncounterEdit + }, + ) + operations = append(operations, simulation.NewWeightedOperation( + weightMsgEncounterEdit, + cardchainsimulation.SimulateMsgEncounterEdit(am.accountKeeper, am.bankKeeper, am.keeper), + )) // this line is used by starport scaffolding # simapp/module/operation diff --git a/x/cardchain/simulation/encounter_edit.go b/x/cardchain/simulation/encounter_edit.go new file mode 100644 index 00000000..4194357a --- /dev/null +++ b/x/cardchain/simulation/encounter_edit.go @@ -0,0 +1,30 @@ +package simulation + +import ( + "math/rand" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + + "github.com/DecentralCardGame/cardchain/x/cardchain/keeper" + "github.com/DecentralCardGame/cardchain/x/cardchain/types" +) + +func SimulateMsgEncounterEdit( + ak types.AccountKeeper, + bk types.BankKeeper, + k keeper.Keeper, +) simtypes.Operation { + return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { + simAccount, _ := simtypes.RandomAcc(r, accs) + msg := &types.MsgEncounterEdit{ + Creator: simAccount.Address.String(), + } + + // TODO: Handle the EncounterEdit simulation + + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "EncounterEdit simulation not implemented"), nil, nil + } +} diff --git a/x/cardchain/types/card.pb.go b/x/cardchain/types/card.pb.go index b2a99aa3..a2dcef3f 100644 --- a/x/cardchain/types/card.pb.go +++ b/x/cardchain/types/card.pb.go @@ -170,23 +170,24 @@ func (CardType) EnumDescriptor() ([]byte, []int) { } type Card struct { - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - Artist string `protobuf:"bytes,2,opt,name=artist,proto3" json:"artist,omitempty"` - Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - ImageId uint64 `protobuf:"varint,4,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` - FullArt bool `protobuf:"varint,5,opt,name=fullArt,proto3" json:"fullArt,omitempty"` - Notes string `protobuf:"bytes,6,opt,name=notes,proto3" json:"notes,omitempty"` - Status CardStatus `protobuf:"varint,7,opt,name=status,proto3,enum=cardchain.cardchain.CardStatus" json:"status,omitempty"` - VotePool types.Coin `protobuf:"bytes,8,opt,name=votePool,proto3" json:"votePool"` - Voters []string `protobuf:"bytes,14,rep,name=voters,proto3" json:"voters,omitempty"` - FairEnoughVotes uint64 `protobuf:"varint,9,opt,name=fairEnoughVotes,proto3" json:"fairEnoughVotes,omitempty"` - OverpoweredVotes uint64 `protobuf:"varint,10,opt,name=overpoweredVotes,proto3" json:"overpoweredVotes,omitempty"` - UnderpoweredVotes uint64 `protobuf:"varint,11,opt,name=underpoweredVotes,proto3" json:"underpoweredVotes,omitempty"` - InappropriateVotes uint64 `protobuf:"varint,12,opt,name=inappropriateVotes,proto3" json:"inappropriateVotes,omitempty"` - Nerflevel int64 `protobuf:"varint,13,opt,name=nerflevel,proto3" json:"nerflevel,omitempty"` - BalanceAnchor bool `protobuf:"varint,15,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` - StarterCard bool `protobuf:"varint,16,opt,name=starterCard,proto3" json:"starterCard,omitempty"` - Rarity CardRarity `protobuf:"varint,17,opt,name=rarity,proto3,enum=cardchain.cardchain.CardRarity" json:"rarity,omitempty"` + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + Artist string `protobuf:"bytes,2,opt,name=artist,proto3" json:"artist,omitempty"` + Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` + ImageId uint64 `protobuf:"varint,4,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` + FullArt bool `protobuf:"varint,5,opt,name=fullArt,proto3" json:"fullArt,omitempty"` + Notes string `protobuf:"bytes,6,opt,name=notes,proto3" json:"notes,omitempty"` + Status CardStatus `protobuf:"varint,7,opt,name=status,proto3,enum=cardchain.cardchain.CardStatus" json:"status,omitempty"` + VotePool types.Coin `protobuf:"bytes,8,opt,name=votePool,proto3" json:"votePool"` + Voters []string `protobuf:"bytes,14,rep,name=voters,proto3" json:"voters,omitempty"` + FairEnoughVotes uint64 `protobuf:"varint,9,opt,name=fairEnoughVotes,proto3" json:"fairEnoughVotes,omitempty"` + OverpoweredVotes uint64 `protobuf:"varint,10,opt,name=overpoweredVotes,proto3" json:"overpoweredVotes,omitempty"` + UnderpoweredVotes uint64 `protobuf:"varint,11,opt,name=underpoweredVotes,proto3" json:"underpoweredVotes,omitempty"` + InappropriateVotes uint64 `protobuf:"varint,12,opt,name=inappropriateVotes,proto3" json:"inappropriateVotes,omitempty"` + Nerflevel int64 `protobuf:"varint,13,opt,name=nerflevel,proto3" json:"nerflevel,omitempty"` + BalanceAnchor bool `protobuf:"varint,15,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` + StarterCard bool `protobuf:"varint,16,opt,name=starterCard,proto3" json:"starterCard,omitempty"` + Rarity CardRarity `protobuf:"varint,17,opt,name=rarity,proto3,enum=cardchain.cardchain.CardRarity" json:"rarity,omitempty"` + Parameters []*Parameter `protobuf:"bytes,18,rep,name=parameters,proto3" json:"parameters,omitempty"` } func (m *Card) Reset() { *m = Card{} } @@ -341,6 +342,13 @@ func (m *Card) GetRarity() CardRarity { return CardRarity_common } +func (m *Card) GetParameters() []*Parameter { + if m != nil { + return m.Parameters + } + return nil +} + type TimeStamp struct { TimeStamp uint64 `protobuf:"varint,1,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"` } @@ -397,53 +405,56 @@ func init() { func init() { proto.RegisterFile("cardchain/cardchain/card.proto", fileDescriptor_a360ffd2377ddc30) } var fileDescriptor_a360ffd2377ddc30 = []byte{ - // 736 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcd, 0x8a, 0xdc, 0x46, - 0x10, 0x1e, 0xed, 0x68, 0x66, 0xa4, 0x9a, 0x9d, 0xd9, 0xde, 0x8e, 0x09, 0xb2, 0x09, 0xb2, 0x30, - 0x39, 0x28, 0x43, 0xd0, 0x60, 0xe7, 0x90, 0x40, 0x20, 0x60, 0x4f, 0x42, 0xf0, 0x21, 0x10, 0xb4, - 0xc6, 0x87, 0x5c, 0x42, 0x4f, 0xab, 0x76, 0xa6, 0x41, 0xea, 0x96, 0xbb, 0x5b, 0x63, 0xcf, 0x5b, - 0xe4, 0x05, 0xf2, 0x3e, 0x3e, 0xfa, 0x98, 0x53, 0x08, 0xbb, 0x6f, 0x91, 0x53, 0xe8, 0xd6, 0xec, - 0x8f, 0xbd, 0x0b, 0xb9, 0xd5, 0xf7, 0xd5, 0xa7, 0xaa, 0xaf, 0xaa, 0x1a, 0x41, 0xca, 0x99, 0xae, - 0xf8, 0x96, 0x09, 0xb9, 0xfc, 0x38, 0x2a, 0x5a, 0xad, 0xac, 0xa2, 0x9f, 0x5d, 0xb3, 0xc5, 0x75, - 0xf4, 0xe8, 0xc1, 0x46, 0x6d, 0x94, 0xcf, 0x2f, 0x5d, 0xd4, 0x4b, 0x1f, 0xa5, 0x5c, 0x99, 0x46, - 0x99, 0xe5, 0x9a, 0x19, 0x5c, 0xee, 0x9e, 0xae, 0xd1, 0xb2, 0xa7, 0x4b, 0xae, 0x84, 0xec, 0xf3, - 0x4f, 0xfe, 0x0d, 0x21, 0x5c, 0x31, 0x5d, 0xd1, 0x07, 0x30, 0x52, 0x6f, 0x25, 0xea, 0x24, 0xc8, - 0x82, 0x3c, 0x2e, 0x7b, 0x40, 0x3f, 0x87, 0x31, 0xd3, 0x56, 0x18, 0x9b, 0x1c, 0x79, 0xfa, 0x80, - 0x68, 0x02, 0x13, 0xae, 0xa4, 0x45, 0x69, 0x93, 0x61, 0x16, 0xe4, 0xc7, 0xe5, 0x15, 0xa4, 0x0f, - 0x21, 0x12, 0x0d, 0xdb, 0xe0, 0xef, 0xa2, 0x4a, 0xc2, 0x2c, 0xc8, 0xc3, 0x72, 0xe2, 0xf1, 0xcb, - 0xca, 0x7d, 0x74, 0xde, 0xd5, 0xf5, 0x73, 0x6d, 0x93, 0x51, 0x16, 0xe4, 0x51, 0x79, 0x05, 0x5d, - 0x73, 0xa9, 0x2c, 0x9a, 0x64, 0xdc, 0x37, 0xf7, 0x80, 0x7e, 0x0b, 0x63, 0x63, 0x99, 0xed, 0x4c, - 0x32, 0xc9, 0x82, 0x7c, 0xfe, 0xec, 0x71, 0x71, 0xcf, 0xdc, 0x85, 0x73, 0x7f, 0xe6, 0x65, 0xe5, - 0x41, 0x4e, 0xbf, 0x87, 0x68, 0xa7, 0x2c, 0xfe, 0xaa, 0x54, 0x9d, 0x44, 0x59, 0x90, 0x4f, 0x9f, - 0x3d, 0x2c, 0xfa, 0x3d, 0x14, 0x6e, 0x0f, 0xc5, 0x61, 0x0f, 0xc5, 0x4a, 0x09, 0xf9, 0x22, 0x7c, - 0xff, 0xf7, 0xe3, 0x41, 0x79, 0xfd, 0x81, 0x1b, 0xd9, 0xc5, 0xda, 0x24, 0xf3, 0x6c, 0xe8, 0x46, - 0xee, 0x11, 0xcd, 0xe1, 0xe4, 0x9c, 0x09, 0xfd, 0x93, 0x54, 0xdd, 0x66, 0xfb, 0xda, 0xbb, 0x8d, - 0xfd, 0x7c, 0x9f, 0xd2, 0x74, 0x01, 0x44, 0xed, 0x50, 0xb7, 0xea, 0x2d, 0x6a, 0xac, 0x7a, 0x29, - 0x78, 0xe9, 0x1d, 0x9e, 0x7e, 0x0d, 0xa7, 0x9d, 0xac, 0x3e, 0x11, 0x4f, 0xbd, 0xf8, 0x6e, 0x82, - 0x16, 0x40, 0x85, 0x64, 0x6d, 0xab, 0x55, 0xab, 0x05, 0xb3, 0xd8, 0xcb, 0x8f, 0xbd, 0xfc, 0x9e, - 0x0c, 0xfd, 0x02, 0x62, 0x89, 0xfa, 0xbc, 0xc6, 0x1d, 0xd6, 0xc9, 0x2c, 0x0b, 0xf2, 0x61, 0x79, - 0x43, 0xd0, 0x2f, 0x61, 0xb6, 0x66, 0x35, 0x93, 0x1c, 0x9f, 0x4b, 0xbe, 0x55, 0x3a, 0x39, 0xf1, - 0x57, 0xf9, 0x98, 0xa4, 0x19, 0x4c, 0x8d, 0x65, 0xda, 0xa2, 0x76, 0x9b, 0x4e, 0x88, 0xd7, 0xdc, - 0xa6, 0xdc, 0x9d, 0x34, 0xd3, 0xc2, 0xee, 0x93, 0xd3, 0xff, 0xb9, 0x53, 0xe9, 0x65, 0xe5, 0x41, - 0xfe, 0xe4, 0x2b, 0x88, 0x5f, 0x89, 0x06, 0xcf, 0x2c, 0x6b, 0x5a, 0xe7, 0xd5, 0x5e, 0x01, 0xff, - 0x08, 0xc3, 0xf2, 0x86, 0x58, 0xfc, 0x19, 0x00, 0xdc, 0x5c, 0x9a, 0x46, 0x10, 0x4a, 0x25, 0x91, - 0x0c, 0x28, 0xc0, 0xd8, 0xf0, 0x2d, 0x36, 0x48, 0x02, 0x3a, 0x83, 0xd8, 0xbf, 0x6a, 0xbb, 0x6f, - 0x91, 0x1c, 0xd1, 0x18, 0x46, 0x56, 0x0b, 0x56, 0x93, 0xa1, 0xcf, 0xa0, 0x6e, 0x98, 0x44, 0x69, - 0x49, 0xe8, 0xa0, 0xe9, 0x4c, 0x8b, 0xb2, 0xc2, 0x8a, 0x8c, 0x5c, 0x8d, 0x35, 0x93, 0x12, 0x2b, - 0x32, 0xa6, 0x73, 0x80, 0x3e, 0x3e, 0x53, 0x4a, 0x92, 0x09, 0xa5, 0x30, 0xef, 0xf1, 0x6b, 0xd4, - 0x7b, 0xcf, 0x45, 0xf4, 0x14, 0x66, 0xac, 0xda, 0xa1, 0xb4, 0x9d, 0xc6, 0x97, 0x16, 0x1b, 0x12, - 0x2f, 0x7e, 0xe9, 0xed, 0xf5, 0x03, 0xba, 0x82, 0x5c, 0x35, 0x8d, 0x92, 0x64, 0x40, 0x8f, 0x21, - 0xea, 0xe4, 0x01, 0x05, 0xce, 0xb8, 0x66, 0xda, 0xb9, 0x3b, 0x81, 0x29, 0xbe, 0xe3, 0xd8, 0x5a, - 0xa1, 0xa4, 0xf7, 0x08, 0x30, 0xee, 0xa4, 0x78, 0xd3, 0x21, 0x09, 0x17, 0x2b, 0x88, 0x5d, 0xb9, - 0x55, 0xcd, 0x8c, 0x71, 0x09, 0xc9, 0x5c, 0x2f, 0x32, 0xa0, 0x53, 0x98, 0xf0, 0xae, 0xf6, 0xc0, - 0xcf, 0xdb, 0xec, 0x8d, 0x15, 0x5c, 0x98, 0x86, 0x1c, 0x39, 0xeb, 0x16, 0xf9, 0x56, 0xaa, 0x5a, - 0x6d, 0xf6, 0x64, 0xb8, 0xf8, 0x01, 0x22, 0x57, 0xe4, 0xd5, 0xbe, 0x45, 0xb7, 0x8b, 0xb6, 0x66, - 0xfc, 0xb0, 0x31, 0xc6, 0x5d, 0x57, 0x12, 0xb8, 0x18, 0xa5, 0x15, 0x76, 0xdf, 0x1b, 0xda, 0x22, - 0xab, 0xde, 0x74, 0xfe, 0xb2, 0x64, 0xf8, 0xa2, 0x7c, 0x7f, 0x91, 0x06, 0x1f, 0x2e, 0xd2, 0xe0, - 0x9f, 0x8b, 0x34, 0xf8, 0xe3, 0x32, 0x1d, 0x7c, 0xb8, 0x4c, 0x07, 0x7f, 0x5d, 0xa6, 0x83, 0xdf, - 0xbe, 0xdb, 0x08, 0xbb, 0xed, 0xd6, 0x05, 0x57, 0xcd, 0xf2, 0x47, 0xe4, 0x28, 0xad, 0x66, 0xb5, - 0xeb, 0xf5, 0x33, 0x6b, 0xf0, 0xd6, 0x3f, 0xeb, 0xdd, 0xad, 0xd8, 0x1d, 0xc5, 0xac, 0xc7, 0xfe, - 0x40, 0xdf, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0x09, 0xea, 0xcb, 0x65, 0xe3, 0x04, 0x00, 0x00, + // 770 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcd, 0x8e, 0xdb, 0x36, + 0x10, 0xb6, 0xd6, 0xb2, 0x2d, 0x8d, 0xf7, 0x87, 0xcb, 0x06, 0x85, 0x12, 0x14, 0x8a, 0x90, 0xf6, + 0xa0, 0x1a, 0x85, 0x8c, 0x6c, 0x0f, 0x2d, 0x50, 0x20, 0x40, 0xb2, 0x2d, 0x8a, 0x1c, 0x0a, 0x04, + 0xda, 0x20, 0x87, 0x5e, 0x0a, 0x9a, 0x9a, 0xb5, 0x09, 0x48, 0xa4, 0x42, 0x52, 0x4e, 0xfc, 0x16, + 0x7d, 0x81, 0xbe, 0x48, 0x9f, 0x20, 0xc7, 0x1c, 0x7b, 0x2a, 0x8a, 0xdd, 0x17, 0x29, 0x48, 0x79, + 0x77, 0x9d, 0xc4, 0x40, 0x6e, 0xf3, 0x7d, 0xf3, 0x91, 0x33, 0xf3, 0x0d, 0x25, 0x48, 0x39, 0xd3, + 0x15, 0x5f, 0x31, 0x21, 0xe7, 0x1f, 0x46, 0x45, 0xab, 0x95, 0x55, 0xf4, 0x8b, 0x5b, 0xb6, 0xb8, + 0x8d, 0x1e, 0xdc, 0x5b, 0xaa, 0xa5, 0xf2, 0xf9, 0xb9, 0x8b, 0x7a, 0xe9, 0x83, 0x94, 0x2b, 0xd3, + 0x28, 0x33, 0x5f, 0x30, 0x83, 0xf3, 0xf5, 0xe3, 0x05, 0x5a, 0xf6, 0x78, 0xce, 0x95, 0x90, 0xdb, + 0xfc, 0xd7, 0xfb, 0x4a, 0xb5, 0x4c, 0xb3, 0x06, 0x2d, 0xea, 0x5e, 0xf4, 0xe8, 0xef, 0x11, 0x84, + 0xe7, 0x4c, 0x57, 0xf4, 0x1e, 0x8c, 0xd4, 0x1b, 0x89, 0x3a, 0x09, 0xb2, 0x20, 0x8f, 0xcb, 0x1e, + 0xd0, 0x2f, 0x61, 0xcc, 0xb4, 0x15, 0xc6, 0x26, 0x07, 0x9e, 0xde, 0x22, 0x9a, 0xc0, 0x84, 0x2b, + 0x69, 0x51, 0xda, 0x64, 0x98, 0x05, 0xf9, 0x61, 0x79, 0x03, 0xe9, 0x7d, 0x88, 0x44, 0xc3, 0x96, + 0xf8, 0x87, 0xa8, 0x92, 0x30, 0x0b, 0xf2, 0xb0, 0x9c, 0x78, 0xfc, 0xbc, 0x72, 0x87, 0x2e, 0xbb, + 0xba, 0x7e, 0xaa, 0x6d, 0x32, 0xca, 0x82, 0x3c, 0x2a, 0x6f, 0xa0, 0x2b, 0x2e, 0x95, 0x45, 0x93, + 0x8c, 0xfb, 0xe2, 0x1e, 0xd0, 0x1f, 0x60, 0x6c, 0x2c, 0xb3, 0x9d, 0x49, 0x26, 0x59, 0x90, 0x1f, + 0x9f, 0x3d, 0x2c, 0xf6, 0x98, 0x53, 0xb8, 0xee, 0x2f, 0xbc, 0xac, 0xdc, 0xca, 0xe9, 0x4f, 0x10, + 0xad, 0x95, 0xc5, 0x17, 0x4a, 0xd5, 0x49, 0x94, 0x05, 0xf9, 0xf4, 0xec, 0x7e, 0xd1, 0x9b, 0x55, + 0x38, 0xb3, 0x8a, 0xad, 0x59, 0xc5, 0xb9, 0x12, 0xf2, 0x59, 0xf8, 0xee, 0xdf, 0x87, 0x83, 0xf2, + 0xf6, 0x80, 0x1b, 0xd9, 0xc5, 0xda, 0x24, 0xc7, 0xd9, 0xd0, 0x8d, 0xdc, 0x23, 0x9a, 0xc3, 0xc9, + 0x25, 0x13, 0xfa, 0x17, 0xa9, 0xba, 0xe5, 0xea, 0x95, 0xef, 0x36, 0xf6, 0xf3, 0x7d, 0x4c, 0xd3, + 0x19, 0x10, 0xb5, 0x46, 0xdd, 0xaa, 0x37, 0xa8, 0xb1, 0xea, 0xa5, 0xe0, 0xa5, 0x9f, 0xf0, 0xf4, + 0x3b, 0x38, 0xed, 0x64, 0xf5, 0x91, 0x78, 0xea, 0xc5, 0x9f, 0x26, 0x68, 0x01, 0x54, 0x48, 0xd6, + 0xb6, 0x5a, 0xb5, 0x5a, 0x30, 0x8b, 0xbd, 0xfc, 0xd0, 0xcb, 0xf7, 0x64, 0xe8, 0x57, 0x10, 0x4b, + 0xd4, 0x97, 0x35, 0xae, 0xb1, 0x4e, 0x8e, 0xb2, 0x20, 0x1f, 0x96, 0x77, 0x04, 0xfd, 0x06, 0x8e, + 0x16, 0xac, 0x66, 0x92, 0xe3, 0x53, 0xc9, 0x57, 0x4a, 0x27, 0x27, 0x7e, 0x2b, 0x1f, 0x92, 0x34, + 0x83, 0xa9, 0xb1, 0x4c, 0x5b, 0xd4, 0xce, 0xe9, 0x84, 0x78, 0xcd, 0x2e, 0xe5, 0xf6, 0xa4, 0x99, + 0x16, 0x76, 0x93, 0x9c, 0x7e, 0x66, 0x4f, 0xa5, 0x97, 0x95, 0x5b, 0x39, 0x7d, 0x02, 0x70, 0xfb, + 0x1e, 0x4d, 0x42, 0xb3, 0x61, 0x3e, 0x3d, 0x4b, 0xf7, 0x1e, 0x7e, 0x71, 0x23, 0x2b, 0x77, 0x4e, + 0x3c, 0xfa, 0x16, 0xe2, 0x97, 0xa2, 0xc1, 0x0b, 0xcb, 0x9a, 0xd6, 0xcd, 0x6a, 0x6f, 0x80, 0x7f, + 0xc4, 0x61, 0x79, 0x47, 0xcc, 0xfe, 0x0a, 0x00, 0xee, 0x5e, 0x0a, 0x8d, 0x20, 0x94, 0x4a, 0x22, + 0x19, 0x50, 0x80, 0xb1, 0xe1, 0x2b, 0x6c, 0x90, 0x04, 0xf4, 0x08, 0x62, 0xff, 0x55, 0xd8, 0x4d, + 0x8b, 0xe4, 0x80, 0xc6, 0x30, 0xb2, 0x5a, 0xb0, 0x9a, 0x0c, 0x7d, 0x06, 0x75, 0xc3, 0x24, 0x4a, + 0x4b, 0x42, 0x07, 0x4d, 0x67, 0x5a, 0x94, 0x15, 0x56, 0x64, 0xe4, 0xee, 0x58, 0x30, 0x29, 0xb1, + 0x22, 0x63, 0x7a, 0x0c, 0xd0, 0xc7, 0x17, 0x4a, 0x49, 0x32, 0xa1, 0x14, 0x8e, 0x7b, 0xfc, 0x0a, + 0xf5, 0xc6, 0x73, 0x11, 0x3d, 0x85, 0x23, 0x56, 0xad, 0x51, 0xda, 0x4e, 0xe3, 0x73, 0x8b, 0x0d, + 0x89, 0x67, 0xbf, 0xf5, 0xed, 0xf5, 0x06, 0xb9, 0x0b, 0xb9, 0x6a, 0x1a, 0x25, 0xc9, 0x80, 0x1e, + 0x42, 0xd4, 0xc9, 0x2d, 0x0a, 0x5c, 0xe3, 0x9a, 0x69, 0xd7, 0xdd, 0x09, 0x4c, 0xf1, 0x2d, 0xc7, + 0xd6, 0x0a, 0x25, 0x7d, 0x8f, 0x00, 0xe3, 0x4e, 0x8a, 0xd7, 0x1d, 0x92, 0x70, 0x76, 0x0e, 0xb1, + 0xbb, 0xee, 0xbc, 0x66, 0xc6, 0xb8, 0x84, 0x64, 0xae, 0x16, 0x19, 0xd0, 0x29, 0x4c, 0x78, 0x57, + 0x7b, 0xe0, 0xe7, 0x6d, 0x36, 0xc6, 0x0a, 0x2e, 0x4c, 0x43, 0x0e, 0x5c, 0xeb, 0x16, 0xf9, 0x4a, + 0xaa, 0x5a, 0x2d, 0x37, 0x64, 0x38, 0x7b, 0x02, 0x91, 0xbb, 0xe4, 0xe5, 0xa6, 0x45, 0xe7, 0x45, + 0x5b, 0x33, 0xbe, 0x75, 0x8c, 0x71, 0x57, 0x95, 0x04, 0x2e, 0x46, 0x69, 0x85, 0xdd, 0xf4, 0x0d, + 0xad, 0x90, 0x55, 0xaf, 0x3b, 0xff, 0x32, 0xc8, 0xf0, 0x59, 0xf9, 0xee, 0x2a, 0x0d, 0xde, 0x5f, + 0xa5, 0xc1, 0x7f, 0x57, 0x69, 0xf0, 0xe7, 0x75, 0x3a, 0x78, 0x7f, 0x9d, 0x0e, 0xfe, 0xb9, 0x4e, + 0x07, 0xbf, 0xff, 0xb8, 0x14, 0x76, 0xd5, 0x2d, 0x0a, 0xae, 0x9a, 0xf9, 0xcf, 0xc8, 0x51, 0x5a, + 0xcd, 0x6a, 0x57, 0xeb, 0x57, 0xd6, 0xe0, 0xce, 0xdf, 0xea, 0xed, 0x4e, 0xec, 0x96, 0x62, 0x16, + 0x63, 0xbf, 0xa0, 0xef, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x95, 0x58, 0xa4, 0xd0, 0x48, 0x05, + 0x00, 0x00, } func (m *Card) Marshal() (dAtA []byte, err error) { @@ -466,6 +477,22 @@ func (m *Card) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Parameters) > 0 { + for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCard(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } if m.Rarity != 0 { i = encodeVarintCard(dAtA, i, uint64(m.Rarity)) i-- @@ -692,6 +719,12 @@ func (m *Card) Size() (n int) { if m.Rarity != 0 { n += 2 + sovCard(uint64(m.Rarity)) } + if len(m.Parameters) > 0 { + for _, e := range m.Parameters { + l = e.Size() + n += 2 + l + sovCard(uint64(l)) + } + } return n } @@ -1149,6 +1182,40 @@ func (m *Card) Unmarshal(dAtA []byte) error { break } } + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCard + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCard + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCard + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameters = append(m.Parameters, &Parameter{}) + if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCard(dAtA[iNdEx:]) diff --git a/x/cardchain/types/codec.go b/x/cardchain/types/codec.go index d71ade5f..c5085fd5 100644 --- a/x/cardchain/types/codec.go +++ b/x/cardchain/types/codec.go @@ -7,164 +7,167 @@ import ( // this line is used by starport scaffolding # 1 ) -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - registry.RegisterImplementations((*sdk.Msg)(nil), +func RegisterInterfaces(registrar cdctypes.InterfaceRegistry) { + registrar.RegisterImplementations((*sdk.Msg)(nil), + &MsgEncounterEdit{}, + ) + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgUserCreate{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardSchemeBuy{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardSaveContent{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardVote{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardTransfer{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardDonate{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardArtworkAdd{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardArtistChange{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCouncilRegister{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCouncilDeregister{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgMatchReport{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCouncilCreate{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgMatchReporterAppoint{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetCreate{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetCardAdd{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetCardRemove{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetContributorAdd{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetContributorRemove{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetFinalize{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetArtworkAdd{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetStoryAdd{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgBoosterPackBuy{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSellOfferCreate{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSellOfferBuy{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSellOfferRemove{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardRaritySet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCouncilResponseCommit{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCouncilResponseReveal{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCouncilRestart{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgMatchConfirm{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgProfileCardSet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgProfileWebsiteSet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgProfileBioSet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgBoosterPackOpen{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgBoosterPackTransfer{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetStoryWriterSet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetArtistSet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardVoteMulti{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgMatchOpen{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetNameSet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgProfileAliasSet{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgEarlyAccessInvite{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgZealyConnect{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgEncounterCreate{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgEncounterDo{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgEncounterClose{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgEarlyAccessDisinvite{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardBan{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgEarlyAccessGrant{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgSetActivate{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgCardCopyrightClaim{}, ) // this line is used by starport scaffolding # 3 - registry.RegisterImplementations((*sdk.Msg)(nil), + registrar.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdateParams{}, ) - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) + msgservice.RegisterMsgServiceDesc(registrar, &_Msg_serviceDesc) } diff --git a/x/cardchain/types/encounter.pb.go b/x/cardchain/types/encounter.pb.go index 826f18fc..c486b840 100644 --- a/x/cardchain/types/encounter.pb.go +++ b/x/cardchain/types/encounter.pb.go @@ -23,58 +23,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type Parameter struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *Parameter) Reset() { *m = Parameter{} } -func (m *Parameter) String() string { return proto.CompactTextString(m) } -func (*Parameter) ProtoMessage() {} -func (*Parameter) Descriptor() ([]byte, []int) { - return fileDescriptor_d1555abf6f7ee418, []int{0} -} -func (m *Parameter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Parameter.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 *Parameter) XXX_Merge(src proto.Message) { - xxx_messageInfo_Parameter.Merge(m, src) -} -func (m *Parameter) XXX_Size() int { - return m.Size() -} -func (m *Parameter) XXX_DiscardUnknown() { - xxx_messageInfo_Parameter.DiscardUnknown(m) -} - -var xxx_messageInfo_Parameter proto.InternalMessageInfo - -func (m *Parameter) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *Parameter) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - type Encounter struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Drawlist []uint64 `protobuf:"varint,2,rep,packed,name=drawlist,proto3" json:"drawlist,omitempty"` @@ -89,7 +37,7 @@ func (m *Encounter) Reset() { *m = Encounter{} } func (m *Encounter) String() string { return proto.CompactTextString(m) } func (*Encounter) ProtoMessage() {} func (*Encounter) Descriptor() ([]byte, []int) { - return fileDescriptor_d1555abf6f7ee418, []int{1} + return fileDescriptor_d1555abf6f7ee418, []int{0} } func (m *Encounter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,7 +116,6 @@ func (m *Encounter) GetName() string { } func init() { - proto.RegisterType((*Parameter)(nil), "cardchain.cardchain.Parameter") proto.RegisterType((*Encounter)(nil), "cardchain.cardchain.Encounter") } @@ -177,64 +124,26 @@ func init() { } var fileDescriptor_d1555abf6f7ee418 = []byte{ - // 308 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xbd, 0x4e, 0xc3, 0x30, - 0x10, 0xc7, 0xeb, 0x24, 0xfd, 0x3a, 0x24, 0x84, 0x4c, 0x85, 0xac, 0x0e, 0x56, 0x54, 0x96, 0x4c, - 0xa9, 0x44, 0x17, 0x26, 0x06, 0x3e, 0x84, 0xd8, 0x50, 0x46, 0x36, 0x37, 0x3e, 0xa5, 0x16, 0x8d, - 0x1d, 0xb9, 0x6e, 0x4b, 0xdf, 0x82, 0xc7, 0x62, 0xac, 0xc4, 0xc2, 0x88, 0xda, 0x17, 0x41, 0x75, - 0x69, 0xe8, 0xc0, 0xf6, 0xfb, 0xf9, 0x7c, 0xfa, 0xdf, 0xd9, 0x70, 0x99, 0x0b, 0x2b, 0xf3, 0x89, - 0x50, 0x7a, 0xf8, 0x47, 0xa8, 0x73, 0x33, 0xd7, 0x0e, 0x6d, 0x5a, 0x59, 0xe3, 0x0c, 0x3d, 0xaf, - 0x4b, 0x69, 0x4d, 0xfd, 0x5e, 0x61, 0x0a, 0xe3, 0xeb, 0xc3, 0x1d, 0xed, 0xaf, 0x0e, 0x46, 0xd0, - 0x7d, 0x16, 0x56, 0x94, 0xe8, 0xd0, 0xd2, 0x33, 0x08, 0x5f, 0x71, 0xc5, 0x48, 0x4c, 0x92, 0x6e, - 0xb6, 0x43, 0xda, 0x83, 0xe6, 0x42, 0x4c, 0xe7, 0xc8, 0x02, 0x7f, 0xb6, 0x97, 0xc1, 0x27, 0x81, - 0xee, 0xc3, 0x21, 0x93, 0x9e, 0x42, 0xa0, 0xa4, 0x6f, 0x8a, 0xb2, 0x40, 0x49, 0xda, 0x87, 0x8e, - 0xb4, 0x62, 0x39, 0x55, 0x33, 0xc7, 0x82, 0x38, 0x4c, 0xa2, 0xac, 0x76, 0x7a, 0x01, 0xad, 0xca, - 0x9a, 0x05, 0x6a, 0x16, 0xc6, 0x24, 0xe9, 0x64, 0xbf, 0xb6, 0xcb, 0x31, 0x4b, 0x8d, 0x96, 0x45, - 0xfb, 0x1c, 0x2f, 0xf4, 0x06, 0xa0, 0x3a, 0x0c, 0x37, 0x63, 0xcd, 0x38, 0x4c, 0x4e, 0xae, 0x78, - 0xfa, 0xcf, 0x72, 0x69, 0xbd, 0x43, 0x76, 0xd4, 0x41, 0x19, 0xb4, 0x55, 0x29, 0x0a, 0x7c, 0x92, - 0xac, 0xe5, 0xc7, 0x3b, 0x28, 0xa5, 0x10, 0x69, 0x51, 0x22, 0x6b, 0xfb, 0x38, 0xcf, 0xb7, 0xd9, - 0xc7, 0x86, 0x93, 0xf5, 0x86, 0x93, 0xef, 0x0d, 0x27, 0xef, 0x5b, 0xde, 0x58, 0x6f, 0x79, 0xe3, - 0x6b, 0xcb, 0x1b, 0x2f, 0xd7, 0x85, 0x72, 0x93, 0xf9, 0x38, 0xcd, 0x4d, 0x39, 0xbc, 0xc7, 0x1c, - 0xb5, 0xb3, 0x62, 0x7a, 0x27, 0xac, 0x7c, 0x14, 0x25, 0x1e, 0xfd, 0xc3, 0xdb, 0x11, 0xbb, 0x55, - 0x85, 0xb3, 0x71, 0xcb, 0xbf, 0xf2, 0xe8, 0x27, 0x00, 0x00, 0xff, 0xff, 0x93, 0x87, 0x03, 0x8b, - 0xb7, 0x01, 0x00, 0x00, -} - -func (m *Parameter) 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 *Parameter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Parameter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintEncounter(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintEncounter(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + // 289 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xbf, 0x4e, 0xc3, 0x30, + 0x10, 0x87, 0xeb, 0x26, 0x4d, 0x5b, 0x23, 0x31, 0x98, 0x0a, 0x59, 0x19, 0xac, 0x08, 0x96, 0x4c, + 0x89, 0x04, 0x0b, 0x13, 0x03, 0x7f, 0x84, 0xd8, 0x90, 0x47, 0x36, 0x37, 0x3e, 0xa5, 0x96, 0x1a, + 0x3b, 0x72, 0x5c, 0x0a, 0x6f, 0xc1, 0x63, 0x31, 0x56, 0x62, 0x61, 0x44, 0xc9, 0x8b, 0x20, 0x52, + 0x12, 0x32, 0x74, 0xfb, 0x3e, 0xdd, 0xf9, 0x7e, 0xbe, 0xc3, 0xe7, 0x99, 0xb0, 0x32, 0x5b, 0x09, + 0xa5, 0xd3, 0x7f, 0x02, 0x9d, 0x99, 0x8d, 0x76, 0x60, 0x93, 0xd2, 0x1a, 0x67, 0xc8, 0x49, 0x5f, + 0x4a, 0x7a, 0x0a, 0x17, 0xb9, 0xc9, 0x4d, 0x5b, 0x4f, 0x7f, 0x69, 0xdf, 0x1a, 0x1e, 0x9c, 0x57, + 0x0a, 0x2b, 0x0a, 0xe8, 0xe7, 0x9d, 0x7d, 0x22, 0x3c, 0xbf, 0xef, 0x32, 0xc8, 0x31, 0x1e, 0x2b, + 0x49, 0x51, 0x84, 0x62, 0x9f, 0x8f, 0x95, 0x24, 0x21, 0x9e, 0x49, 0x2b, 0xb6, 0x6b, 0x55, 0x39, + 0x3a, 0x8e, 0xbc, 0xd8, 0xe7, 0xbd, 0x93, 0x53, 0x1c, 0x94, 0xd6, 0xbc, 0x80, 0xa6, 0x5e, 0x84, + 0xe2, 0x19, 0xff, 0x33, 0xb2, 0xc0, 0x13, 0xb3, 0xd5, 0x60, 0xa9, 0x1f, 0xa1, 0x78, 0xce, 0xf7, + 0x42, 0xae, 0x31, 0xee, 0xa3, 0x2b, 0x3a, 0x89, 0xbc, 0xf8, 0xe8, 0x82, 0x25, 0x07, 0x96, 0x49, + 0x9e, 0xba, 0x36, 0x3e, 0x78, 0x41, 0x28, 0x9e, 0xaa, 0x42, 0xe4, 0xf0, 0x28, 0x69, 0xd0, 0x7e, + 0xaf, 0x53, 0x42, 0xb0, 0xaf, 0x45, 0x01, 0x74, 0xda, 0xc6, 0xb5, 0x7c, 0xc3, 0x3f, 0x6a, 0x86, + 0x76, 0x35, 0x43, 0xdf, 0x35, 0x43, 0xef, 0x0d, 0x1b, 0xed, 0x1a, 0x36, 0xfa, 0x6a, 0xd8, 0xe8, + 0xf9, 0x2a, 0x57, 0x6e, 0xb5, 0x59, 0x26, 0x99, 0x29, 0xd2, 0x3b, 0xc8, 0x40, 0x3b, 0x2b, 0xd6, + 0xb7, 0xc2, 0xca, 0x07, 0x51, 0xc0, 0xe0, 0x4e, 0xaf, 0x03, 0x76, 0x6f, 0x25, 0x54, 0xcb, 0xa0, + 0x3d, 0xd8, 0xe5, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x4c, 0xd3, 0x12, 0xa7, 0x01, 0x00, + 0x00, } func (m *Encounter) Marshal() (dAtA []byte, err error) { @@ -337,23 +246,6 @@ func encodeVarintEncounter(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *Parameter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovEncounter(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovEncounter(uint64(l)) - } - return n -} - func (m *Encounter) Size() (n int) { if m == nil { return 0 @@ -399,120 +291,6 @@ func sovEncounter(x uint64) (n int) { func sozEncounter(x uint64) (n int) { return sovEncounter(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Parameter) 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 ErrIntOverflowEncounter - } - 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: Parameter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Parameter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEncounter - } - 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 ErrInvalidLengthEncounter - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncounter - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEncounter - } - 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 ErrInvalidLengthEncounter - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncounter - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEncounter(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEncounter - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *Encounter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/cardchain/types/image.go b/x/cardchain/types/image.go index eb58a1c0..d5d6722e 100644 --- a/x/cardchain/types/image.go +++ b/x/cardchain/types/image.go @@ -3,9 +3,27 @@ package types import ( "crypto/md5" "encoding/hex" + "fmt" + + errorsmod "cosmossdk.io/errors" ) +const ArtworkMaxSize = 500000 + func (i Image) GetHash() string { sum := md5.Sum(i.Image) return hex.EncodeToString(sum[:]) } + +type HasImage interface { + GetImage() []byte +} + +func ValidateImage(msg HasImage) error { + imageLen := len(msg.GetImage()) + + if imageLen > ArtworkMaxSize { + return errorsmod.Wrap(ErrImageSizeExceeded, fmt.Sprint(imageLen)) + } + return nil +} diff --git a/x/cardchain/types/keys.go b/x/cardchain/types/keys.go index d0af59ea..3a18fd90 100644 --- a/x/cardchain/types/keys.go +++ b/x/cardchain/types/keys.go @@ -9,6 +9,11 @@ const ( // MemStoreKey defines the in-memory store key MemStoreKey = "mem_cardchain" + + // GovModuleName duplicates the gov module's name to avoid a dependency with x/gov. + // It should be synced with the gov module's name if it is ever changed. + // See: https://github.com/cosmos/cosmos-sdk/blob/v0.52.0-beta.2/x/gov/types/keys.go#L9 + GovModuleName = "gov" ) var ( diff --git a/x/cardchain/types/message_booster_pack_buy.go b/x/cardchain/types/message_booster_pack_buy.go deleted file mode 100644 index d4f6ded1..00000000 --- a/x/cardchain/types/message_booster_pack_buy.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgBoosterPackBuy{} - -func NewMsgBoosterPackBuy(creator string, setId uint64) *MsgBoosterPackBuy { - return &MsgBoosterPackBuy{ - Creator: creator, - SetId: setId, - } -} - -func (msg *MsgBoosterPackBuy) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_booster_pack_buy_test.go b/x/cardchain/types/message_booster_pack_buy_test.go deleted file mode 100644 index fed6181a..00000000 --- a/x/cardchain/types/message_booster_pack_buy_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgBoosterPackBuy_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgBoosterPackBuy - err error - }{ - { - name: "invalid address", - msg: MsgBoosterPackBuy{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgBoosterPackBuy{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_booster_pack_open.go b/x/cardchain/types/message_booster_pack_open.go deleted file mode 100644 index e5567a2e..00000000 --- a/x/cardchain/types/message_booster_pack_open.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgBoosterPackOpen{} - -func NewMsgBoosterPackOpen(creator string, boosterPackId uint64) *MsgBoosterPackOpen { - return &MsgBoosterPackOpen{ - Creator: creator, - BoosterPackId: boosterPackId, - } -} - -func (msg *MsgBoosterPackOpen) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_booster_pack_open_test.go b/x/cardchain/types/message_booster_pack_open_test.go deleted file mode 100644 index a00734a8..00000000 --- a/x/cardchain/types/message_booster_pack_open_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgBoosterPackOpen_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgBoosterPackOpen - err error - }{ - { - name: "invalid address", - msg: MsgBoosterPackOpen{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgBoosterPackOpen{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_booster_pack_transfer.go b/x/cardchain/types/message_booster_pack_transfer.go deleted file mode 100644 index f4dfd6e5..00000000 --- a/x/cardchain/types/message_booster_pack_transfer.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgBoosterPackTransfer{} - -func NewMsgBoosterPackTransfer(creator string, boosterPackId uint64, receiver string) *MsgBoosterPackTransfer { - return &MsgBoosterPackTransfer{ - Creator: creator, - BoosterPackId: boosterPackId, - Receiver: receiver, - } -} - -func (msg *MsgBoosterPackTransfer) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_booster_pack_transfer_test.go b/x/cardchain/types/message_booster_pack_transfer_test.go deleted file mode 100644 index badd5976..00000000 --- a/x/cardchain/types/message_booster_pack_transfer_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgBoosterPackTransfer_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgBoosterPackTransfer - err error - }{ - { - name: "invalid address", - msg: MsgBoosterPackTransfer{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgBoosterPackTransfer{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_artist_change.go b/x/cardchain/types/message_card_artist_change.go deleted file mode 100644 index 5df708d4..00000000 --- a/x/cardchain/types/message_card_artist_change.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardArtistChange{} - -func NewMsgCardArtistChange(creator string, cardId uint64, artist string) *MsgCardArtistChange { - return &MsgCardArtistChange{ - Creator: creator, - CardId: cardId, - Artist: artist, - } -} - -func (msg *MsgCardArtistChange) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_artist_change_test.go b/x/cardchain/types/message_card_artist_change_test.go deleted file mode 100644 index 4679a3cc..00000000 --- a/x/cardchain/types/message_card_artist_change_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardArtistChange_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardArtistChange - err error - }{ - { - name: "invalid address", - msg: MsgCardArtistChange{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardArtistChange{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_artwork_add.go b/x/cardchain/types/message_card_artwork_add.go deleted file mode 100644 index b2aa974a..00000000 --- a/x/cardchain/types/message_card_artwork_add.go +++ /dev/null @@ -1,35 +0,0 @@ -package types - -import ( - fmt "fmt" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const ArtworkMaxSize = 500000 - -var _ sdk.Msg = &MsgCardArtworkAdd{} - -func NewMsgCardArtworkAdd(creator string, cardId uint64, image []byte, fullArt bool) *MsgCardArtworkAdd { - return &MsgCardArtworkAdd{ - Creator: creator, - CardId: cardId, - Image: image, - FullArt: fullArt, - } -} - -func (msg *MsgCardArtworkAdd) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.Image) > ArtworkMaxSize { - return errorsmod.Wrap(ErrImageSizeExceeded, fmt.Sprint(len(msg.Image))) - } - - return nil -} diff --git a/x/cardchain/types/message_card_artwork_add_test.go b/x/cardchain/types/message_card_artwork_add_test.go deleted file mode 100644 index c9bdff99..00000000 --- a/x/cardchain/types/message_card_artwork_add_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardArtworkAdd_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardArtworkAdd - err error - }{ - { - name: "invalid address", - msg: MsgCardArtworkAdd{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardArtworkAdd{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_ban.go b/x/cardchain/types/message_card_ban.go deleted file mode 100644 index b288d5f1..00000000 --- a/x/cardchain/types/message_card_ban.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardBan{} - -func NewMsgCardBan(authority string, cardId uint64) *MsgCardBan { - return &MsgCardBan{ - Authority: authority, - CardId: cardId, - } -} - -func (msg *MsgCardBan) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Authority) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_ban_test.go b/x/cardchain/types/message_card_ban_test.go deleted file mode 100644 index 98d3e121..00000000 --- a/x/cardchain/types/message_card_ban_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardBan_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardBan - err error - }{ - { - name: "invalid address", - msg: MsgCardBan{ - Authority: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardBan{ - Authority: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_copyright_claim.go b/x/cardchain/types/message_card_copyright_claim.go deleted file mode 100644 index 7e32506b..00000000 --- a/x/cardchain/types/message_card_copyright_claim.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardCopyrightClaim{} - -func NewMsgCardCopyrightClaim(authority string, cardId uint64) *MsgCardCopyrightClaim { - return &MsgCardCopyrightClaim{ - Authority: authority, - CardId: cardId, - } -} - -func (msg *MsgCardCopyrightClaim) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Authority) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_copyright_claim_test.go b/x/cardchain/types/message_card_copyright_claim_test.go deleted file mode 100644 index c1014d67..00000000 --- a/x/cardchain/types/message_card_copyright_claim_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardCopyrightClaim_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardCopyrightClaim - err error - }{ - { - name: "invalid address", - msg: MsgCardCopyrightClaim{ - Authority: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardCopyrightClaim{ - Authority: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_donate.go b/x/cardchain/types/message_card_donate.go deleted file mode 100644 index eee048c4..00000000 --- a/x/cardchain/types/message_card_donate.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardDonate{} - -func NewMsgCardDonate(creator string, cardId uint64, amount sdk.Coin) *MsgCardDonate { - return &MsgCardDonate{ - Creator: creator, - CardId: cardId, - Amount: amount, - } -} - -func (msg *MsgCardDonate) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_donate_test.go b/x/cardchain/types/message_card_donate_test.go deleted file mode 100644 index ee5b9ff3..00000000 --- a/x/cardchain/types/message_card_donate_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardDonate_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardDonate - err error - }{ - { - name: "invalid address", - msg: MsgCardDonate{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardDonate{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_rarity_set.go b/x/cardchain/types/message_card_rarity_set.go deleted file mode 100644 index 82e2ffed..00000000 --- a/x/cardchain/types/message_card_rarity_set.go +++ /dev/null @@ -1,26 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardRaritySet{} - -func NewMsgCardRaritySet(creator string, cardId uint64, setId uint64, rarity CardRarity) *MsgCardRaritySet { - return &MsgCardRaritySet{ - Creator: creator, - CardId: cardId, - SetId: setId, - Rarity: rarity, - } -} - -func (msg *MsgCardRaritySet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_rarity_set_test.go b/x/cardchain/types/message_card_rarity_set_test.go deleted file mode 100644 index 30f3976f..00000000 --- a/x/cardchain/types/message_card_rarity_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardRaritySet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardRaritySet - err error - }{ - { - name: "invalid address", - msg: MsgCardRaritySet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardRaritySet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_save_content.go b/x/cardchain/types/message_card_save_content.go deleted file mode 100644 index 2c6d3283..00000000 --- a/x/cardchain/types/message_card_save_content.go +++ /dev/null @@ -1,28 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardSaveContent{} - -func NewMsgCardSaveContent(creator string, cardId uint64, content []byte, notes string, artist string, balanceAnchor bool) *MsgCardSaveContent { - return &MsgCardSaveContent{ - Creator: creator, - CardId: cardId, - Content: content, - Notes: notes, - Artist: artist, - BalanceAnchor: balanceAnchor, - } -} - -func (msg *MsgCardSaveContent) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_save_content_test.go b/x/cardchain/types/message_card_save_content_test.go deleted file mode 100644 index 35bd8c19..00000000 --- a/x/cardchain/types/message_card_save_content_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardSaveContent_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardSaveContent - err error - }{ - { - name: "invalid address", - msg: MsgCardSaveContent{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardSaveContent{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_scheme_buy.go b/x/cardchain/types/message_card_scheme_buy.go deleted file mode 100644 index 77765a7d..00000000 --- a/x/cardchain/types/message_card_scheme_buy.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardSchemeBuy{} - -func NewMsgCardSchemeBuy(creator string, bid sdk.Coin) *MsgCardSchemeBuy { - return &MsgCardSchemeBuy{ - Creator: creator, - Bid: bid, - } -} - -func (msg *MsgCardSchemeBuy) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_scheme_buy_test.go b/x/cardchain/types/message_card_scheme_buy_test.go deleted file mode 100644 index cdf8a8f2..00000000 --- a/x/cardchain/types/message_card_scheme_buy_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardSchemeBuy_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardSchemeBuy - err error - }{ - { - name: "invalid address", - msg: MsgCardSchemeBuy{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardSchemeBuy{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_transfer.go b/x/cardchain/types/message_card_transfer.go deleted file mode 100644 index e23d626f..00000000 --- a/x/cardchain/types/message_card_transfer.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardTransfer{} - -func NewMsgCardTransfer(creator string, cardId uint64, receiver string) *MsgCardTransfer { - return &MsgCardTransfer{ - Creator: creator, - CardId: cardId, - Receiver: receiver, - } -} - -func (msg *MsgCardTransfer) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_transfer_test.go b/x/cardchain/types/message_card_transfer_test.go deleted file mode 100644 index 890dcd32..00000000 --- a/x/cardchain/types/message_card_transfer_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardTransfer_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardTransfer - err error - }{ - { - name: "invalid address", - msg: MsgCardTransfer{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardTransfer{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_vote.go b/x/cardchain/types/message_card_vote.go deleted file mode 100644 index 11662737..00000000 --- a/x/cardchain/types/message_card_vote.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardVote{} - -func NewMsgCardVote(creator string, vote *SingleVote) *MsgCardVote { - return &MsgCardVote{ - Creator: creator, - Vote: vote, - } -} - -func (msg *MsgCardVote) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_vote_multi.go b/x/cardchain/types/message_card_vote_multi.go deleted file mode 100644 index 5aa16193..00000000 --- a/x/cardchain/types/message_card_vote_multi.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCardVoteMulti{} - -func NewMsgCardVoteMulti(creator string, votes []*SingleVote) *MsgCardVoteMulti { - return &MsgCardVoteMulti{ - Creator: creator, - Votes: votes, - } -} - -func (msg *MsgCardVoteMulti) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_card_vote_multi_test.go b/x/cardchain/types/message_card_vote_multi_test.go deleted file mode 100644 index 06c2e5a4..00000000 --- a/x/cardchain/types/message_card_vote_multi_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardVoteMulti_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardVoteMulti - err error - }{ - { - name: "invalid address", - msg: MsgCardVoteMulti{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardVoteMulti{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_card_vote_test.go b/x/cardchain/types/message_card_vote_test.go deleted file mode 100644 index 01688375..00000000 --- a/x/cardchain/types/message_card_vote_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCardVote_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCardVote - err error - }{ - { - name: "invalid address", - msg: MsgCardVote{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCardVote{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_council_create.go b/x/cardchain/types/message_council_create.go deleted file mode 100644 index 7760b271..00000000 --- a/x/cardchain/types/message_council_create.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCouncilCreate{} - -func NewMsgCouncilCreate(creator string, cardId uint64) *MsgCouncilCreate { - return &MsgCouncilCreate{ - Creator: creator, - CardId: cardId, - } -} - -func (msg *MsgCouncilCreate) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_council_create_test.go b/x/cardchain/types/message_council_create_test.go deleted file mode 100644 index a3c44f5a..00000000 --- a/x/cardchain/types/message_council_create_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCouncilCreate_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCouncilCreate - err error - }{ - { - name: "invalid address", - msg: MsgCouncilCreate{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCouncilCreate{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_council_deregister.go b/x/cardchain/types/message_council_deregister.go deleted file mode 100644 index ffd4b54b..00000000 --- a/x/cardchain/types/message_council_deregister.go +++ /dev/null @@ -1,23 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCouncilDeregister{} - -func NewMsgCouncilDeregister(creator string) *MsgCouncilDeregister { - return &MsgCouncilDeregister{ - Creator: creator, - } -} - -func (msg *MsgCouncilDeregister) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_council_deregister_test.go b/x/cardchain/types/message_council_deregister_test.go deleted file mode 100644 index d23cf4de..00000000 --- a/x/cardchain/types/message_council_deregister_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCouncilDeregister_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCouncilDeregister - err error - }{ - { - name: "invalid address", - msg: MsgCouncilDeregister{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCouncilDeregister{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_council_register.go b/x/cardchain/types/message_council_register.go deleted file mode 100644 index 181b9937..00000000 --- a/x/cardchain/types/message_council_register.go +++ /dev/null @@ -1,23 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCouncilRegister{} - -func NewMsgCouncilRegister(creator string) *MsgCouncilRegister { - return &MsgCouncilRegister{ - Creator: creator, - } -} - -func (msg *MsgCouncilRegister) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_council_register_test.go b/x/cardchain/types/message_council_register_test.go deleted file mode 100644 index fabc50f3..00000000 --- a/x/cardchain/types/message_council_register_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCouncilRegister_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCouncilRegister - err error - }{ - { - name: "invalid address", - msg: MsgCouncilRegister{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCouncilRegister{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_council_response_commit.go b/x/cardchain/types/message_council_response_commit.go deleted file mode 100644 index 005eeb08..00000000 --- a/x/cardchain/types/message_council_response_commit.go +++ /dev/null @@ -1,26 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCouncilResponseCommit{} - -func NewMsgCouncilResponseCommit(creator string, councilId uint64, reponse string, suggestion string) *MsgCouncilResponseCommit { - return &MsgCouncilResponseCommit{ - Creator: creator, - CouncilId: councilId, - Response: reponse, - Suggestion: suggestion, - } -} - -func (msg *MsgCouncilResponseCommit) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_council_response_commit_test.go b/x/cardchain/types/message_council_response_commit_test.go deleted file mode 100644 index 9fd34350..00000000 --- a/x/cardchain/types/message_council_response_commit_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCouncilResponseCommit_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCouncilResponseCommit - err error - }{ - { - name: "invalid address", - msg: MsgCouncilResponseCommit{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCouncilResponseCommit{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_council_response_reveal.go b/x/cardchain/types/message_council_response_reveal.go deleted file mode 100644 index 9d210bb1..00000000 --- a/x/cardchain/types/message_council_response_reveal.go +++ /dev/null @@ -1,26 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCouncilResponseReveal{} - -func NewMsgCouncilResponseReveal(creator string, councilId uint64, reponse Response, secret string) *MsgCouncilResponseReveal { - return &MsgCouncilResponseReveal{ - Creator: creator, - CouncilId: councilId, - Response: reponse, - Secret: secret, - } -} - -func (msg *MsgCouncilResponseReveal) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_council_response_reveal_test.go b/x/cardchain/types/message_council_response_reveal_test.go deleted file mode 100644 index e66a5903..00000000 --- a/x/cardchain/types/message_council_response_reveal_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCouncilResponseReveal_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCouncilResponseReveal - err error - }{ - { - name: "invalid address", - msg: MsgCouncilResponseReveal{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCouncilResponseReveal{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_council_restart.go b/x/cardchain/types/message_council_restart.go deleted file mode 100644 index fd9ee2c0..00000000 --- a/x/cardchain/types/message_council_restart.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgCouncilRestart{} - -func NewMsgCouncilRestart(creator string, councilId uint64) *MsgCouncilRestart { - return &MsgCouncilRestart{ - Creator: creator, - CouncilId: councilId, - } -} - -func (msg *MsgCouncilRestart) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_council_restart_test.go b/x/cardchain/types/message_council_restart_test.go deleted file mode 100644 index 338b61f7..00000000 --- a/x/cardchain/types/message_council_restart_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgCouncilRestart_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCouncilRestart - err error - }{ - { - name: "invalid address", - msg: MsgCouncilRestart{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgCouncilRestart{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_early_access_disinvite.go b/x/cardchain/types/message_early_access_disinvite.go deleted file mode 100644 index 1ab12c28..00000000 --- a/x/cardchain/types/message_early_access_disinvite.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgEarlyAccessDisinvite{} - -func NewMsgEarlyAccessDisinvite(creator string, user string) *MsgEarlyAccessDisinvite { - return &MsgEarlyAccessDisinvite{ - Creator: creator, - User: user, - } -} - -func (msg *MsgEarlyAccessDisinvite) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_early_access_disinvite_test.go b/x/cardchain/types/message_early_access_disinvite_test.go deleted file mode 100644 index b2192599..00000000 --- a/x/cardchain/types/message_early_access_disinvite_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgEarlyAccessDisinvite_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgEarlyAccessDisinvite - err error - }{ - { - name: "invalid address", - msg: MsgEarlyAccessDisinvite{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgEarlyAccessDisinvite{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_early_access_grant.go b/x/cardchain/types/message_early_access_grant.go deleted file mode 100644 index 44224be2..00000000 --- a/x/cardchain/types/message_early_access_grant.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgEarlyAccessGrant{} - -func NewMsgEarlyAccessGrant(authority string, users []string) *MsgEarlyAccessGrant { - return &MsgEarlyAccessGrant{ - Authority: authority, - Users: users, - } -} - -func (msg *MsgEarlyAccessGrant) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Authority) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_early_access_grant_test.go b/x/cardchain/types/message_early_access_grant_test.go deleted file mode 100644 index 089cabbd..00000000 --- a/x/cardchain/types/message_early_access_grant_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgEarlyAccessGrant_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgEarlyAccessGrant - err error - }{ - { - name: "invalid address", - msg: MsgEarlyAccessGrant{ - Authority: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgEarlyAccessGrant{ - Authority: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_early_access_invite.go b/x/cardchain/types/message_early_access_invite.go deleted file mode 100644 index a983d45c..00000000 --- a/x/cardchain/types/message_early_access_invite.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgEarlyAccessInvite{} - -func NewMsgEarlyAccessInvite(creator string, user string) *MsgEarlyAccessInvite { - return &MsgEarlyAccessInvite{ - Creator: creator, - User: user, - } -} - -func (msg *MsgEarlyAccessInvite) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_early_access_invite_test.go b/x/cardchain/types/message_early_access_invite_test.go deleted file mode 100644 index 9696f091..00000000 --- a/x/cardchain/types/message_early_access_invite_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgEarlyAccessInvite_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgEarlyAccessInvite - err error - }{ - { - name: "invalid address", - msg: MsgEarlyAccessInvite{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgEarlyAccessInvite{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_encounter_close.go b/x/cardchain/types/message_encounter_close.go deleted file mode 100644 index f5197633..00000000 --- a/x/cardchain/types/message_encounter_close.go +++ /dev/null @@ -1,26 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgEncounterClose{} - -func NewMsgEncounterClose(creator string, encounterId uint64, user string, won bool) *MsgEncounterClose { - return &MsgEncounterClose{ - Creator: creator, - EncounterId: encounterId, - User: user, - Won: won, - } -} - -func (msg *MsgEncounterClose) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_encounter_close_test.go b/x/cardchain/types/message_encounter_close_test.go deleted file mode 100644 index 234926c2..00000000 --- a/x/cardchain/types/message_encounter_close_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgEncounterClose_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgEncounterClose - err error - }{ - { - name: "invalid address", - msg: MsgEncounterClose{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgEncounterClose{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_encounter_create.go b/x/cardchain/types/message_encounter_create.go deleted file mode 100644 index ddd18f1d..00000000 --- a/x/cardchain/types/message_encounter_create.go +++ /dev/null @@ -1,42 +0,0 @@ -package types - -import ( - fmt "fmt" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgEncounterCreate{} - -func NewMsgEncounterCreate(creator string, name string, drawlist []uint64, parameters []*Parameter, image []byte) *MsgEncounterCreate { - return &MsgEncounterCreate{ - Creator: creator, - Name: name, - Drawlist: drawlist, - Parameters: parameters, - Image: image, - } -} - -func (msg *MsgEncounterCreate) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.Drawlist) > 40 || len(msg.Drawlist) < 1 { - return errorsmod.Wrapf(ErrInvalidData, "invalid drawlist length, max 40 is '%d'", len(msg.Drawlist)) - } - - if msg.Name == "" { - return errorsmod.Wrap(ErrInvalidData, "encounter needs a name") - } - - if len(msg.Image) > ArtworkMaxSize { - return errorsmod.Wrap(ErrImageSizeExceeded, fmt.Sprint(len(msg.Image))) - } - - return nil -} diff --git a/x/cardchain/types/message_encounter_create_test.go b/x/cardchain/types/message_encounter_create_test.go deleted file mode 100644 index 8a300470..00000000 --- a/x/cardchain/types/message_encounter_create_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgEncounterCreate_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgEncounterCreate - err error - }{ - { - name: "invalid address", - msg: MsgEncounterCreate{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgEncounterCreate{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_encounter_do.go b/x/cardchain/types/message_encounter_do.go deleted file mode 100644 index 4c78b0c5..00000000 --- a/x/cardchain/types/message_encounter_do.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgEncounterDo{} - -func NewMsgEncounterDo(creator string, encounterId uint64, user string) *MsgEncounterDo { - return &MsgEncounterDo{ - Creator: creator, - EncounterId: encounterId, - User: user, - } -} - -func (msg *MsgEncounterDo) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_encounter_do_test.go b/x/cardchain/types/message_encounter_do_test.go deleted file mode 100644 index 3bfa43c3..00000000 --- a/x/cardchain/types/message_encounter_do_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgEncounterDo_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgEncounterDo - err error - }{ - { - name: "invalid address", - msg: MsgEncounterDo{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgEncounterDo{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_match_confirm.go b/x/cardchain/types/message_match_confirm.go deleted file mode 100644 index 2d0ddb74..00000000 --- a/x/cardchain/types/message_match_confirm.go +++ /dev/null @@ -1,26 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgMatchConfirm{} - -func NewMsgMatchConfirm(creator string, matchId uint64, outcome Outcome, votedCards []*SingleVote) *MsgMatchConfirm { - return &MsgMatchConfirm{ - Creator: creator, - MatchId: matchId, - Outcome: outcome, - VotedCards: votedCards, - } -} - -func (msg *MsgMatchConfirm) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_match_confirm_test.go b/x/cardchain/types/message_match_confirm_test.go deleted file mode 100644 index 53fa86f8..00000000 --- a/x/cardchain/types/message_match_confirm_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgMatchConfirm_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgMatchConfirm - err error - }{ - { - name: "invalid address", - msg: MsgMatchConfirm{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgMatchConfirm{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_match_open.go b/x/cardchain/types/message_match_open.go deleted file mode 100644 index 547d3590..00000000 --- a/x/cardchain/types/message_match_open.go +++ /dev/null @@ -1,27 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgMatchOpen{} - -func NewMsgMatchOpen(creator string, playerA string, playerB string, playerADeck []uint64, playerBDeck []uint64) *MsgMatchOpen { - return &MsgMatchOpen{ - Creator: creator, - PlayerA: playerA, - PlayerB: playerB, - PlayerADeck: playerADeck, - PlayerBDeck: playerBDeck, - } -} - -func (msg *MsgMatchOpen) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_match_open_test.go b/x/cardchain/types/message_match_open_test.go deleted file mode 100644 index d383cac8..00000000 --- a/x/cardchain/types/message_match_open_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgMatchOpen_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgMatchOpen - err error - }{ - { - name: "invalid address", - msg: MsgMatchOpen{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgMatchOpen{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_match_report.go b/x/cardchain/types/message_match_report.go deleted file mode 100644 index fe32c05b..00000000 --- a/x/cardchain/types/message_match_report.go +++ /dev/null @@ -1,27 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgMatchReport{} - -func NewMsgMatchReport(creator string, matchId uint64, playedCardsA []uint64, playedCardsB []uint64, outcome Outcome) *MsgMatchReport { - return &MsgMatchReport{ - Creator: creator, - MatchId: matchId, - PlayedCardsA: playedCardsA, - PlayedCardsB: playedCardsB, - Outcome: outcome, - } -} - -func (msg *MsgMatchReport) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_match_report_test.go b/x/cardchain/types/message_match_report_test.go deleted file mode 100644 index ba105ae8..00000000 --- a/x/cardchain/types/message_match_report_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgMatchReport_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgMatchReport - err error - }{ - { - name: "invalid address", - msg: MsgMatchReport{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgMatchReport{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_match_reporter_appoint.go b/x/cardchain/types/message_match_reporter_appoint.go deleted file mode 100644 index 0b770a4a..00000000 --- a/x/cardchain/types/message_match_reporter_appoint.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgMatchReporterAppoint{} - -func NewMsgMatchReporterAppoint(authority string, reporter string) *MsgMatchReporterAppoint { - return &MsgMatchReporterAppoint{ - Authority: authority, - Reporter: reporter, - } -} - -func (msg *MsgMatchReporterAppoint) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Authority) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_match_reporter_appoint_test.go b/x/cardchain/types/message_match_reporter_appoint_test.go deleted file mode 100644 index 518a61c0..00000000 --- a/x/cardchain/types/message_match_reporter_appoint_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgMatchReporterAppoint_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgMatchReporterAppoint - err error - }{ - { - name: "invalid address", - msg: MsgMatchReporterAppoint{ - Authority: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgMatchReporterAppoint{ - Authority: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_profile_alias_set.go b/x/cardchain/types/message_profile_alias_set.go deleted file mode 100644 index 5c546815..00000000 --- a/x/cardchain/types/message_profile_alias_set.go +++ /dev/null @@ -1,29 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgProfileAliasSet{} - -func NewMsgProfileAliasSet(creator string, alias string) *MsgProfileAliasSet { - return &MsgProfileAliasSet{ - Creator: creator, - Alias: alias, - } -} - -func (msg *MsgProfileAliasSet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if err = checkAliasLimit(msg.Alias); err != nil { - return err - } - - return nil -} diff --git a/x/cardchain/types/message_profile_alias_set_test.go b/x/cardchain/types/message_profile_alias_set_test.go deleted file mode 100644 index b721d4d2..00000000 --- a/x/cardchain/types/message_profile_alias_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgProfileAliasSet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgProfileAliasSet - err error - }{ - { - name: "invalid address", - msg: MsgProfileAliasSet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgProfileAliasSet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_profile_bio_set.go b/x/cardchain/types/message_profile_bio_set.go deleted file mode 100644 index 4bb751ac..00000000 --- a/x/cardchain/types/message_profile_bio_set.go +++ /dev/null @@ -1,31 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const BIO_MAX_LENGTH = 400 - -var _ sdk.Msg = &MsgProfileBioSet{} - -func NewMsgProfileBioSet(creator string, bio string) *MsgProfileBioSet { - return &MsgProfileBioSet{ - Creator: creator, - Bio: bio, - } -} - -func (msg *MsgProfileBioSet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.Bio) > BIO_MAX_LENGTH { - return errorsmod.Wrapf(ErrInvalidData, "Website length exceded %d chars", BIO_MAX_LENGTH) - } - - return nil -} diff --git a/x/cardchain/types/message_profile_bio_set_test.go b/x/cardchain/types/message_profile_bio_set_test.go deleted file mode 100644 index 3c38afaa..00000000 --- a/x/cardchain/types/message_profile_bio_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgProfileBioSet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgProfileBioSet - err error - }{ - { - name: "invalid address", - msg: MsgProfileBioSet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgProfileBioSet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_profile_card_set.go b/x/cardchain/types/message_profile_card_set.go deleted file mode 100644 index ddf1bfc1..00000000 --- a/x/cardchain/types/message_profile_card_set.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgProfileCardSet{} - -func NewMsgProfileCardSet(creator string, cardId uint64) *MsgProfileCardSet { - return &MsgProfileCardSet{ - Creator: creator, - CardId: cardId, - } -} - -func (msg *MsgProfileCardSet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_profile_card_set_test.go b/x/cardchain/types/message_profile_card_set_test.go deleted file mode 100644 index 7b6c33b4..00000000 --- a/x/cardchain/types/message_profile_card_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgProfileCardSet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgProfileCardSet - err error - }{ - { - name: "invalid address", - msg: MsgProfileCardSet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgProfileCardSet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_profile_website_set.go b/x/cardchain/types/message_profile_website_set.go deleted file mode 100644 index 0469b4b3..00000000 --- a/x/cardchain/types/message_profile_website_set.go +++ /dev/null @@ -1,31 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const WEBSITE_MAX_LENGTH = 50 - -var _ sdk.Msg = &MsgProfileWebsiteSet{} - -func NewMsgProfileWebsiteSet(creator string, website string) *MsgProfileWebsiteSet { - return &MsgProfileWebsiteSet{ - Creator: creator, - Website: website, - } -} - -func (msg *MsgProfileWebsiteSet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.Website) > WEBSITE_MAX_LENGTH { - return errorsmod.Wrapf(ErrInvalidData, "Website length exceded %d chars", WEBSITE_MAX_LENGTH) - } - - return nil -} diff --git a/x/cardchain/types/message_profile_website_set_test.go b/x/cardchain/types/message_profile_website_set_test.go deleted file mode 100644 index c4c968ec..00000000 --- a/x/cardchain/types/message_profile_website_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgProfileWebsiteSet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgProfileWebsiteSet - err error - }{ - { - name: "invalid address", - msg: MsgProfileWebsiteSet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgProfileWebsiteSet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_sell_offer_buy.go b/x/cardchain/types/message_sell_offer_buy.go deleted file mode 100644 index 5de4634b..00000000 --- a/x/cardchain/types/message_sell_offer_buy.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSellOfferBuy{} - -func NewMsgSellOfferBuy(creator string, sellOfferId uint64) *MsgSellOfferBuy { - return &MsgSellOfferBuy{ - Creator: creator, - SellOfferId: sellOfferId, - } -} - -func (msg *MsgSellOfferBuy) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_sell_offer_buy_test.go b/x/cardchain/types/message_sell_offer_buy_test.go deleted file mode 100644 index 95cad61f..00000000 --- a/x/cardchain/types/message_sell_offer_buy_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSellOfferBuy_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSellOfferBuy - err error - }{ - { - name: "invalid address", - msg: MsgSellOfferBuy{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSellOfferBuy{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_sell_offer_create.go b/x/cardchain/types/message_sell_offer_create.go deleted file mode 100644 index 877e75d9..00000000 --- a/x/cardchain/types/message_sell_offer_create.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSellOfferCreate{} - -func NewMsgSellOfferCreate(creator string, cardId uint64, price sdk.Coin) *MsgSellOfferCreate { - return &MsgSellOfferCreate{ - Creator: creator, - CardId: cardId, - Price: price, - } -} - -func (msg *MsgSellOfferCreate) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_sell_offer_create_test.go b/x/cardchain/types/message_sell_offer_create_test.go deleted file mode 100644 index e83cd847..00000000 --- a/x/cardchain/types/message_sell_offer_create_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSellOfferCreate_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSellOfferCreate - err error - }{ - { - name: "invalid address", - msg: MsgSellOfferCreate{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSellOfferCreate{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_sell_offer_remove.go b/x/cardchain/types/message_sell_offer_remove.go deleted file mode 100644 index 4328aeb9..00000000 --- a/x/cardchain/types/message_sell_offer_remove.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSellOfferRemove{} - -func NewMsgSellOfferRemove(creator string, sellOfferId uint64) *MsgSellOfferRemove { - return &MsgSellOfferRemove{ - Creator: creator, - SellOfferId: sellOfferId, - } -} - -func (msg *MsgSellOfferRemove) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_sell_offer_remove_test.go b/x/cardchain/types/message_sell_offer_remove_test.go deleted file mode 100644 index 5923dfcd..00000000 --- a/x/cardchain/types/message_sell_offer_remove_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSellOfferRemove_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSellOfferRemove - err error - }{ - { - name: "invalid address", - msg: MsgSellOfferRemove{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSellOfferRemove{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_activate.go b/x/cardchain/types/message_set_activate.go deleted file mode 100644 index 764783e8..00000000 --- a/x/cardchain/types/message_set_activate.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetActivate{} - -func NewMsgSetActivate(authority string, setId uint64) *MsgSetActivate { - return &MsgSetActivate{ - Authority: authority, - SetId: setId, - } -} - -func (msg *MsgSetActivate) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Authority) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_activate_test.go b/x/cardchain/types/message_set_activate_test.go deleted file mode 100644 index cbcded52..00000000 --- a/x/cardchain/types/message_set_activate_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetActivate_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetActivate - err error - }{ - { - name: "invalid address", - msg: MsgSetActivate{ - Authority: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetActivate{ - Authority: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_artist_set.go b/x/cardchain/types/message_set_artist_set.go deleted file mode 100644 index 0f272785..00000000 --- a/x/cardchain/types/message_set_artist_set.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetArtistSet{} - -func NewMsgSetArtistSet(creator string, setId uint64, artist string) *MsgSetArtistSet { - return &MsgSetArtistSet{ - Creator: creator, - SetId: setId, - Artist: artist, - } -} - -func (msg *MsgSetArtistSet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_artist_set_test.go b/x/cardchain/types/message_set_artist_set_test.go deleted file mode 100644 index 37a76192..00000000 --- a/x/cardchain/types/message_set_artist_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetArtistSet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetArtistSet - err error - }{ - { - name: "invalid address", - msg: MsgSetArtistSet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetArtistSet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_artwork_add.go b/x/cardchain/types/message_set_artwork_add.go deleted file mode 100644 index 917bfed0..00000000 --- a/x/cardchain/types/message_set_artwork_add.go +++ /dev/null @@ -1,32 +0,0 @@ -package types - -import ( - fmt "fmt" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetArtworkAdd{} - -func NewMsgSetArtworkAdd(creator string, setId uint64, image []byte) *MsgSetArtworkAdd { - return &MsgSetArtworkAdd{ - Creator: creator, - SetId: setId, - Image: image, - } -} - -func (msg *MsgSetArtworkAdd) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.Image) > ArtworkMaxSize { - return errorsmod.Wrap(ErrImageSizeExceeded, fmt.Sprint(len(msg.Image))) - } - - return nil -} diff --git a/x/cardchain/types/message_set_artwork_add_test.go b/x/cardchain/types/message_set_artwork_add_test.go deleted file mode 100644 index e7828c0e..00000000 --- a/x/cardchain/types/message_set_artwork_add_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetArtworkAdd_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetArtworkAdd - err error - }{ - { - name: "invalid address", - msg: MsgSetArtworkAdd{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetArtworkAdd{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_card_add.go b/x/cardchain/types/message_set_card_add.go deleted file mode 100644 index 4fcd275c..00000000 --- a/x/cardchain/types/message_set_card_add.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetCardAdd{} - -func NewMsgSetCardAdd(creator string, setId uint64, cardId uint64) *MsgSetCardAdd { - return &MsgSetCardAdd{ - Creator: creator, - SetId: setId, - CardId: cardId, - } -} - -func (msg *MsgSetCardAdd) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_card_add_test.go b/x/cardchain/types/message_set_card_add_test.go deleted file mode 100644 index a9b12ebc..00000000 --- a/x/cardchain/types/message_set_card_add_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetCardAdd_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetCardAdd - err error - }{ - { - name: "invalid address", - msg: MsgSetCardAdd{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetCardAdd{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_card_remove.go b/x/cardchain/types/message_set_card_remove.go deleted file mode 100644 index 16a05633..00000000 --- a/x/cardchain/types/message_set_card_remove.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetCardRemove{} - -func NewMsgSetCardRemove(creator string, setId uint64, cardId uint64) *MsgSetCardRemove { - return &MsgSetCardRemove{ - Creator: creator, - SetId: setId, - CardId: cardId, - } -} - -func (msg *MsgSetCardRemove) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_card_remove_test.go b/x/cardchain/types/message_set_card_remove_test.go deleted file mode 100644 index a2908fda..00000000 --- a/x/cardchain/types/message_set_card_remove_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetCardRemove_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetCardRemove - err error - }{ - { - name: "invalid address", - msg: MsgSetCardRemove{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetCardRemove{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_contributor_add.go b/x/cardchain/types/message_set_contributor_add.go deleted file mode 100644 index f0d5339c..00000000 --- a/x/cardchain/types/message_set_contributor_add.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetContributorAdd{} - -func NewMsgSetContributorAdd(creator string, setId uint64, user string) *MsgSetContributorAdd { - return &MsgSetContributorAdd{ - Creator: creator, - SetId: setId, - User: user, - } -} - -func (msg *MsgSetContributorAdd) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_contributor_add_test.go b/x/cardchain/types/message_set_contributor_add_test.go deleted file mode 100644 index 48b4e665..00000000 --- a/x/cardchain/types/message_set_contributor_add_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetContributorAdd_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetContributorAdd - err error - }{ - { - name: "invalid address", - msg: MsgSetContributorAdd{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetContributorAdd{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_contributor_remove.go b/x/cardchain/types/message_set_contributor_remove.go deleted file mode 100644 index e408b0ae..00000000 --- a/x/cardchain/types/message_set_contributor_remove.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetContributorRemove{} - -func NewMsgSetContributorRemove(creator string, setId uint64, user string) *MsgSetContributorRemove { - return &MsgSetContributorRemove{ - Creator: creator, - SetId: setId, - User: user, - } -} - -func (msg *MsgSetContributorRemove) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_contributor_remove_test.go b/x/cardchain/types/message_set_contributor_remove_test.go deleted file mode 100644 index a14238a1..00000000 --- a/x/cardchain/types/message_set_contributor_remove_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetContributorRemove_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetContributorRemove - err error - }{ - { - name: "invalid address", - msg: MsgSetContributorRemove{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetContributorRemove{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_create.go b/x/cardchain/types/message_set_create.go deleted file mode 100644 index c140d67c..00000000 --- a/x/cardchain/types/message_set_create.go +++ /dev/null @@ -1,27 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetCreate{} - -func NewMsgSetCreate(creator string, name string, artist string, storyWriter string, contributors []string) *MsgSetCreate { - return &MsgSetCreate{ - Creator: creator, - Name: name, - Artist: artist, - StoryWriter: storyWriter, - Contributors: contributors, - } -} - -func (msg *MsgSetCreate) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_create_test.go b/x/cardchain/types/message_set_create_test.go deleted file mode 100644 index 1a545cd9..00000000 --- a/x/cardchain/types/message_set_create_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetCreate_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetCreate - err error - }{ - { - name: "invalid address", - msg: MsgSetCreate{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetCreate{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_finalize.go b/x/cardchain/types/message_set_finalize.go deleted file mode 100644 index 3ee359f0..00000000 --- a/x/cardchain/types/message_set_finalize.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetFinalize{} - -func NewMsgSetFinalize(creator string, setId uint64) *MsgSetFinalize { - return &MsgSetFinalize{ - Creator: creator, - SetId: setId, - } -} - -func (msg *MsgSetFinalize) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_finalize_test.go b/x/cardchain/types/message_set_finalize_test.go deleted file mode 100644 index 8daa6f6c..00000000 --- a/x/cardchain/types/message_set_finalize_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetFinalize_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetFinalize - err error - }{ - { - name: "invalid address", - msg: MsgSetFinalize{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetFinalize{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_name_set.go b/x/cardchain/types/message_set_name_set.go deleted file mode 100644 index 1072f4b0..00000000 --- a/x/cardchain/types/message_set_name_set.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetNameSet{} - -func NewMsgSetNameSet(creator string, setId uint64, name string) *MsgSetNameSet { - return &MsgSetNameSet{ - Creator: creator, - SetId: setId, - Name: name, - } -} - -func (msg *MsgSetNameSet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_name_set_test.go b/x/cardchain/types/message_set_name_set_test.go deleted file mode 100644 index 53b40dfe..00000000 --- a/x/cardchain/types/message_set_name_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetNameSet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetNameSet - err error - }{ - { - name: "invalid address", - msg: MsgSetNameSet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetNameSet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_story_add.go b/x/cardchain/types/message_set_story_add.go deleted file mode 100644 index 78519259..00000000 --- a/x/cardchain/types/message_set_story_add.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetStoryAdd{} - -func NewMsgSetStoryAdd(creator string, setId uint64, story string) *MsgSetStoryAdd { - return &MsgSetStoryAdd{ - Creator: creator, - SetId: setId, - Story: story, - } -} - -func (msg *MsgSetStoryAdd) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_story_add_test.go b/x/cardchain/types/message_set_story_add_test.go deleted file mode 100644 index e5625170..00000000 --- a/x/cardchain/types/message_set_story_add_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetStoryAdd_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetStoryAdd - err error - }{ - { - name: "invalid address", - msg: MsgSetStoryAdd{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetStoryAdd{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_set_story_writer_set.go b/x/cardchain/types/message_set_story_writer_set.go deleted file mode 100644 index 43546c8b..00000000 --- a/x/cardchain/types/message_set_story_writer_set.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgSetStoryWriterSet{} - -func NewMsgSetStoryWriterSet(creator string, setId uint64, storyWriter string) *MsgSetStoryWriterSet { - return &MsgSetStoryWriterSet{ - Creator: creator, - SetId: setId, - StoryWriter: storyWriter, - } -} - -func (msg *MsgSetStoryWriterSet) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_set_story_writer_set_test.go b/x/cardchain/types/message_set_story_writer_set_test.go deleted file mode 100644 index 8850cbba..00000000 --- a/x/cardchain/types/message_set_story_writer_set_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetStoryWriterSet_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetStoryWriterSet - err error - }{ - { - name: "invalid address", - msg: MsgSetStoryWriterSet{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgSetStoryWriterSet{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_user_create.go b/x/cardchain/types/message_user_create.go deleted file mode 100644 index e6ac763b..00000000 --- a/x/cardchain/types/message_user_create.go +++ /dev/null @@ -1,30 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgUserCreate{} - -func NewMsgUserCreate(creator string, newUser string, alias string) *MsgUserCreate { - return &MsgUserCreate{ - Creator: creator, - NewUser: newUser, - Alias: alias, - } -} - -func (msg *MsgUserCreate) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if err = checkAliasLimit(msg.Alias); err != nil { - return err - } - - return nil -} diff --git a/x/cardchain/types/message_user_create_test.go b/x/cardchain/types/message_user_create_test.go deleted file mode 100644 index 1b8695e7..00000000 --- a/x/cardchain/types/message_user_create_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUserCreate_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUserCreate - err error - }{ - { - name: "invalid address", - msg: MsgUserCreate{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgUserCreate{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/message_zealy_connect.go b/x/cardchain/types/message_zealy_connect.go deleted file mode 100644 index 24f8f55b..00000000 --- a/x/cardchain/types/message_zealy_connect.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgZealyConnect{} - -func NewMsgZealyConnect(creator string, zealyId string) *MsgZealyConnect { - return &MsgZealyConnect{ - Creator: creator, - ZealyId: zealyId, - } -} - -func (msg *MsgZealyConnect) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - return nil -} diff --git a/x/cardchain/types/message_zealy_connect_test.go b/x/cardchain/types/message_zealy_connect_test.go deleted file mode 100644 index 429f2a32..00000000 --- a/x/cardchain/types/message_zealy_connect_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - "github.com/DecentralCardGame/cardchain/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgZealyConnect_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgZealyConnect - err error - }{ - { - name: "invalid address", - msg: MsgZealyConnect{ - Creator: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgZealyConnect{ - Creator: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cardchain/types/module.pb.go b/x/cardchain/types/module.pb.go new file mode 100644 index 00000000..0c621b83 --- /dev/null +++ b/x/cardchain/types/module.pb.go @@ -0,0 +1,322 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: cardchain/cardchain/module/module.proto + +package types + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Module is the config object for the module. +type Module struct { + // authority defines the custom module authority. If not set, defaults to the governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (m *Module) Reset() { *m = Module{} } +func (m *Module) String() string { return proto.CompactTextString(m) } +func (*Module) ProtoMessage() {} +func (*Module) Descriptor() ([]byte, []int) { + return fileDescriptor_30044899fe024263, []int{0} +} +func (m *Module) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Module.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 *Module) XXX_Merge(src proto.Message) { + xxx_messageInfo_Module.Merge(m, src) +} +func (m *Module) XXX_Size() int { + return m.Size() +} +func (m *Module) XXX_DiscardUnknown() { + xxx_messageInfo_Module.DiscardUnknown(m) +} + +var xxx_messageInfo_Module proto.InternalMessageInfo + +func (m *Module) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func init() { + proto.RegisterType((*Module)(nil), "cardchain.cardchain.module.Module") +} + +func init() { + proto.RegisterFile("cardchain/cardchain/module/module.proto", fileDescriptor_30044899fe024263) +} + +var fileDescriptor_30044899fe024263 = []byte{ + // 199 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0x4e, 0x2c, 0x4a, + 0x49, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x47, 0xb0, 0x72, 0xf3, 0x53, 0x4a, 0x73, 0x52, 0xa1, 0x94, + 0x5e, 0x41, 0x51, 0x7e, 0x49, 0xbe, 0x90, 0x14, 0x5c, 0x5a, 0x0f, 0xc1, 0x82, 0xa8, 0x90, 0x52, + 0x48, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0xd6, 0x4f, 0x2c, 0x28, 0xd0, 0x2f, 0x33, 0x4c, 0xcc, 0x29, + 0xc8, 0x48, 0x34, 0x44, 0xd1, 0xad, 0x94, 0xc4, 0xc5, 0xe6, 0x0b, 0xe6, 0x0b, 0xc9, 0x70, 0x71, + 0x26, 0x96, 0x96, 0x64, 0xe4, 0x17, 0x65, 0x96, 0x54, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, + 0x21, 0x04, 0xac, 0xac, 0x76, 0x1d, 0x98, 0x76, 0x8b, 0xd1, 0x84, 0xcb, 0x28, 0x3d, 0xb3, 0x24, + 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xdf, 0x25, 0x35, 0x39, 0x35, 0xaf, 0xa4, 0x28, 0x31, + 0xc7, 0x39, 0xb1, 0x28, 0xc5, 0x3d, 0x31, 0x37, 0x15, 0xc9, 0xa5, 0x15, 0x08, 0xb6, 0x53, 0xd0, + 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, + 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x59, 0x90, 0x6e, 0x9a, 0x7e, 0x49, + 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xf9, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf1, + 0x77, 0xe4, 0xa6, 0x27, 0x01, 0x00, 0x00, +} + +func (m *Module) 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 *Module) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintModule(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintModule(dAtA []byte, offset int, v uint64) int { + offset -= sovModule(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Module) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovModule(uint64(l)) + } + return n +} + +func sovModule(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozModule(x uint64) (n int) { + return sovModule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Module) 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 ErrIntOverflowModule + } + 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: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModule + } + 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 ErrInvalidLengthModule + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModule + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModule(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthModule + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipModule(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModule + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModule + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModule + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthModule + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupModule + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthModule + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/cardchain/types/msg_update_params.go b/x/cardchain/types/msg_update_params.go deleted file mode 100644 index e36d023d..00000000 --- a/x/cardchain/types/msg_update_params.go +++ /dev/null @@ -1,21 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ sdk.Msg = &MsgUpdateParams{} - -// ValidateBasic does a sanity check on the provided data. -func (m *MsgUpdateParams) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { - return errorsmod.Wrap(err, "invalid authority address") - } - - if err := m.Params.Validate(); err != nil { - return err - } - - return nil -} diff --git a/x/cardchain/types/profile.go b/x/cardchain/types/profile.go index fa0ddac2..f9933a7e 100644 --- a/x/cardchain/types/profile.go +++ b/x/cardchain/types/profile.go @@ -4,7 +4,7 @@ import errorsmod "cosmossdk.io/errors" const MAX_ALIAS_LEN = 25 -func checkAliasLimit(alias string) error { +func CheckAliasLimit(alias string) error { if len(alias) > MAX_ALIAS_LEN { return errorsmod.Wrapf(ErrInvalidData, "alias is too long (%d) maximum is %d", len(alias), MAX_ALIAS_LEN) } diff --git a/x/cardchain/types/query.pb.go b/x/cardchain/types/query.pb.go index 885a2761..5914bda2 100644 --- a/x/cardchain/types/query.pb.go +++ b/x/cardchain/types/query.pb.go @@ -996,6 +996,7 @@ func (m *QueryEncounterResponse) GetEncounter() *Encounter { } type QueryEncountersRequest struct { + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` } func (m *QueryEncountersRequest) Reset() { *m = QueryEncountersRequest{} } @@ -1031,6 +1032,13 @@ func (m *QueryEncountersRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryEncountersRequest proto.InternalMessageInfo +func (m *QueryEncountersRequest) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + type QueryEncountersResponse struct { Encounters []*Encounter `protobuf:"bytes,1,rep,name=encounters,proto3" json:"encounters,omitempty"` } @@ -1164,6 +1172,7 @@ func (m *QueryEncounterWithImageResponse) GetEncounter() *EncounterWithImage { } type QueryEncountersWithImageRequest struct { + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` } func (m *QueryEncountersWithImageRequest) Reset() { *m = QueryEncountersWithImageRequest{} } @@ -1199,6 +1208,13 @@ func (m *QueryEncountersWithImageRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryEncountersWithImageRequest proto.InternalMessageInfo +func (m *QueryEncountersWithImageRequest) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + type QueryEncountersWithImageResponse struct { Encounters []*EncounterWithImage `protobuf:"bytes,1,rep,name=encounters,proto3" json:"encounters,omitempty"` } @@ -2245,155 +2261,155 @@ func init() { func init() { proto.RegisterFile("cardchain/cardchain/query.proto", fileDescriptor_e1bdbfeb9d7f6cfd) } var fileDescriptor_e1bdbfeb9d7f6cfd = []byte{ - // 2354 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x59, 0x5d, 0x6f, 0x1b, 0xc7, - 0xd5, 0xf6, 0x4a, 0x14, 0x65, 0x8e, 0x65, 0xc7, 0x1e, 0x3b, 0x79, 0x19, 0xc6, 0xa6, 0xe5, 0x89, - 0x62, 0x2b, 0x8a, 0xcd, 0xb5, 0x3e, 0x2c, 0x5b, 0x7e, 0x15, 0x37, 0xfa, 0xb0, 0x5d, 0xd5, 0xf0, - 0x47, 0x56, 0xb5, 0x8b, 0xe6, 0xa2, 0xc2, 0x8a, 0x1c, 0x49, 0x0b, 0x93, 0xbb, 0xcc, 0xce, 0xd0, - 0x2a, 0x2b, 0xe8, 0xa6, 0x3f, 0xa0, 0x28, 0x92, 0xa2, 0xe8, 0x4d, 0x81, 0xa2, 0xbd, 0x29, 0xda, - 0x06, 0xcd, 0xaf, 0x28, 0x7c, 0x99, 0xb6, 0x37, 0xb9, 0x2a, 0x0a, 0xbb, 0x40, 0x7f, 0x43, 0xef, - 0x8a, 0x99, 0x39, 0x3b, 0x3b, 0x4b, 0x2e, 0x57, 0x4b, 0xf7, 0x46, 0xe0, 0x9c, 0x7d, 0xce, 0x9c, - 0x67, 0xce, 0x9c, 0x99, 0x73, 0xce, 0x08, 0x5d, 0xac, 0xbb, 0x61, 0xa3, 0xbe, 0xe7, 0x7a, 0xbe, - 0x1d, 0xff, 0xfa, 0xbc, 0x43, 0xc3, 0x6e, 0xad, 0x1d, 0x06, 0x3c, 0xc0, 0x67, 0xb5, 0xb8, 0xa6, - 0x7f, 0x55, 0xce, 0xb8, 0x2d, 0xcf, 0x0f, 0x6c, 0xf9, 0x57, 0xe1, 0x2a, 0xe7, 0x76, 0x83, 0xdd, - 0x40, 0xfe, 0xb4, 0xc5, 0x2f, 0x90, 0x9e, 0xdf, 0x0d, 0x82, 0xdd, 0x26, 0xb5, 0xdd, 0xb6, 0x67, - 0xbb, 0xbe, 0x1f, 0x70, 0x97, 0x7b, 0x81, 0xcf, 0xe0, 0xeb, 0x4c, 0x3d, 0x60, 0xad, 0x80, 0xd9, - 0xdb, 0x2e, 0xa3, 0xca, 0xa8, 0xfd, 0x62, 0x76, 0x9b, 0x72, 0x77, 0xd6, 0x6e, 0xbb, 0xbb, 0x9e, - 0x2f, 0xc1, 0x80, 0x9d, 0x4c, 0x23, 0xda, 0x76, 0x43, 0xb7, 0x15, 0xcd, 0xf6, 0x61, 0x1a, 0x42, - 0xfc, 0xda, 0xda, 0xf7, 0xf8, 0xde, 0x96, 0xd7, 0x72, 0x77, 0x29, 0x40, 0xab, 0x69, 0xd0, 0x0e, - 0xa3, 0x61, 0xd6, 0x77, 0xf1, 0x0b, 0xbe, 0xa7, 0x7a, 0xad, 0xe5, 0xf2, 0xfa, 0x1e, 0x00, 0x2e, - 0xa4, 0x01, 0x18, 0xe5, 0x7a, 0xe1, 0xe9, 0x9f, 0x15, 0x53, 0x37, 0xe4, 0xfb, 0x41, 0xf8, 0x1c, - 0xb0, 0x53, 0xe9, 0xd8, 0x66, 0x73, 0x2b, 0xd8, 0xd9, 0xd1, 0x8c, 0x2f, 0xa5, 0x32, 0x0e, 0x3a, - 0x7e, 0xdd, 0x6b, 0x66, 0x79, 0x90, 0xd1, 0xf0, 0x85, 0x9e, 0xe4, 0xfd, 0x34, 0x04, 0xf5, 0xc5, - 0x34, 0x5c, 0x83, 0x6a, 0x99, 0xa0, 0x34, 0x5f, 0x1b, 0x9b, 0x1c, 0x6d, 0x6f, 0x3d, 0xf0, 0xa2, - 0x8d, 0x9d, 0x4e, 0x9b, 0xef, 0x45, 0xc0, 0x3d, 0x7f, 0x77, 0x2b, 0xa4, 0xac, 0xd3, 0xe4, 0xd1, - 0x06, 0x5f, 0x1e, 0xb8, 0xc1, 0xf5, 0xc0, 0xe7, 0xd4, 0x07, 0xef, 0x92, 0x73, 0x08, 0x7f, 0x2a, - 0x82, 0xe9, 0x89, 0x8c, 0x0e, 0x87, 0x7e, 0xde, 0xa1, 0x8c, 0x93, 0xa7, 0xe8, 0x6c, 0x42, 0xca, - 0xda, 0x81, 0xcf, 0x28, 0xbe, 0x83, 0x8a, 0x2a, 0x8a, 0xca, 0xd6, 0xa4, 0x35, 0x7d, 0x62, 0xee, - 0xbd, 0x5a, 0x4a, 0xc0, 0xd7, 0x94, 0xd2, 0x6a, 0xe9, 0xe5, 0x3f, 0x2e, 0x1e, 0xfb, 0xfd, 0xbf, - 0xbf, 0x9e, 0xb1, 0x1c, 0xd0, 0x22, 0x33, 0xe8, 0xb4, 0x9c, 0x76, 0xcd, 0x0d, 0x1b, 0x60, 0x0a, - 0xbf, 0x83, 0x8a, 0x42, 0x75, 0xa3, 0x21, 0xe7, 0x2c, 0x38, 0x30, 0x22, 0x0f, 0xd0, 0x19, 0x03, - 0x0b, 0x04, 0x16, 0x51, 0x41, 0x7c, 0x06, 0xf3, 0x24, 0xd5, 0xbc, 0x50, 0xf8, 0x81, 0xc7, 0xf7, - 0x36, 0x84, 0x5f, 0x1d, 0x89, 0x27, 0x57, 0xc1, 0xf0, 0x53, 0x46, 0xc3, 0xc8, 0x70, 0x19, 0x8d, - 0xbb, 0x8d, 0x46, 0x48, 0x99, 0x5a, 0x4d, 0xc9, 0x89, 0x86, 0x64, 0x15, 0x4c, 0x2b, 0x34, 0x98, - 0xbe, 0x86, 0x0a, 0x22, 0xe8, 0xc1, 0xf4, 0xbb, 0xa9, 0xa6, 0xa5, 0x82, 0x84, 0x91, 0xdf, 0x14, - 0x0c, 0xfe, 0x91, 0x5f, 0xf1, 0x39, 0x34, 0x16, 0xec, 0xfb, 0x30, 0x4b, 0xc9, 0x51, 0x03, 0x7c, - 0x13, 0x15, 0x19, 0x77, 0x79, 0x87, 0x95, 0x47, 0x26, 0x47, 0xa7, 0x4f, 0xcd, 0x5d, 0x1c, 0xb8, - 0xae, 0x4d, 0x09, 0x73, 0x00, 0x8e, 0x97, 0xd0, 0x71, 0xf1, 0xfd, 0xfb, 0xdd, 0x36, 0x2d, 0x8f, - 0x4a, 0xd5, 0x0b, 0x03, 0x55, 0x05, 0xc8, 0xd1, 0x70, 0xbc, 0x80, 0xc6, 0xea, 0x4d, 0x97, 0xb1, - 0x72, 0x41, 0xea, 0x55, 0x07, 0xea, 0xad, 0x09, 0x94, 0xa3, 0xc0, 0x62, 0xb3, 0x58, 0x10, 0xf2, - 0xd5, 0x6e, 0x79, 0x4c, 0x2e, 0x00, 0x46, 0x98, 0xa0, 0x09, 0xdf, 0x6d, 0xd1, 0xb5, 0xc0, 0xe7, - 0xae, 0xe7, 0xb3, 0x72, 0x51, 0x7e, 0x4d, 0xc8, 0xf0, 0x0c, 0x3a, 0xfd, 0x9c, 0x76, 0xf7, 0x83, - 0xb0, 0xc1, 0x34, 0x6e, 0x5c, 0xe2, 0xfa, 0xe4, 0x78, 0x0a, 0x9d, 0xf4, 0x03, 0x4e, 0x63, 0xe0, - 0x71, 0x09, 0x4c, 0x0a, 0xf1, 0x34, 0x7a, 0x2b, 0xf0, 0x9b, 0xdd, 0x4d, 0xee, 0x86, 0x9c, 0x86, - 0x82, 0x6c, 0xb9, 0x34, 0x69, 0x4d, 0x1f, 0x77, 0x7a, 0xc5, 0xb8, 0x86, 0xb0, 0x10, 0xad, 0xba, - 0x4d, 0xd7, 0xaf, 0xd3, 0x15, 0xbf, 0xbe, 0x17, 0x84, 0xac, 0x8c, 0x24, 0x38, 0xe5, 0x0b, 0xfe, - 0x7f, 0x74, 0x3c, 0x74, 0x43, 0x8f, 0x7b, 0x94, 0x95, 0x4f, 0x1c, 0xb1, 0x27, 0x8e, 0x00, 0x76, - 0x1d, 0xad, 0x80, 0x2f, 0xa3, 0x53, 0xad, 0x4e, 0x93, 0x7b, 0xd2, 0x73, 0x8f, 0xfd, 0x66, 0xb7, - 0x3c, 0x21, 0x0d, 0xf5, 0x48, 0x49, 0x0d, 0x8e, 0x1e, 0x44, 0x08, 0xc4, 0x59, 0x19, 0x8d, 0xab, - 0x13, 0x20, 0xc2, 0x72, 0x74, 0xba, 0xe0, 0x44, 0x43, 0x72, 0x0d, 0x22, 0xea, 0xa1, 0xb8, 0x3b, - 0x8d, 0x28, 0x96, 0x77, 0xa9, 0x3e, 0x3f, 0xd1, 0x90, 0xdc, 0x83, 0xe9, 0x01, 0x0e, 0xd3, 0x5f, - 0x47, 0x63, 0x12, 0x00, 0x71, 0x5c, 0x49, 0x5d, 0x96, 0x52, 0x51, 0x40, 0x72, 0x05, 0xbd, 0x25, - 0xe7, 0xd9, 0xa4, 0xdc, 0x08, 0x63, 0x46, 0xb9, 0x36, 0xa9, 0x06, 0x64, 0x03, 0x0e, 0x99, 0x04, - 0x82, 0xb9, 0x1b, 0x68, 0x94, 0x51, 0x0e, 0xc6, 0xde, 0x4f, 0x35, 0xb6, 0x49, 0xb9, 0x38, 0xae, - 0x2b, 0xea, 0x22, 0x77, 0x04, 0x9e, 0x2c, 0xa1, 0xb7, 0x61, 0xaa, 0x66, 0xf3, 0xb1, 0xb8, 0xb9, - 0x23, 0xcb, 0x93, 0xe8, 0x04, 0x8b, 0x64, 0xda, 0xbe, 0x29, 0x22, 0xcf, 0xd0, 0x3b, 0xbd, 0xaa, - 0xc0, 0x65, 0x19, 0x95, 0x34, 0x10, 0x18, 0x55, 0x07, 0x30, 0x8a, 0x54, 0x63, 0x05, 0x32, 0x0f, - 0x57, 0xe2, 0x9a, 0xca, 0x13, 0x11, 0xa1, 0xf3, 0xa8, 0x04, 0x99, 0x43, 0xd3, 0x89, 0x05, 0xe4, - 0x11, 0x3a, 0x97, 0x54, 0xd2, 0xf7, 0xd8, 0x38, 0x80, 0x80, 0xc8, 0xf9, 0xf4, 0xf0, 0x02, 0xb5, - 0x08, 0x4c, 0xae, 0xc3, 0x9e, 0x6e, 0xca, 0x4c, 0x14, 0x71, 0xa8, 0xa0, 0xe3, 0x2a, 0x35, 0x69, - 0x0a, 0x7a, 0x4c, 0xbe, 0x07, 0xb4, 0x23, 0x0d, 0x20, 0x30, 0x8f, 0x8a, 0x0a, 0x92, 0x79, 0x93, - 0x83, 0x12, 0x40, 0xf5, 0xae, 0xdc, 0x8d, 0x12, 0x98, 0xb1, 0x2b, 0x3a, 0xa9, 0xc5, 0xbb, 0x62, - 0x88, 0xf4, 0xae, 0x18, 0xaa, 0xf1, 0xae, 0x68, 0x60, 0xe6, 0xae, 0xc4, 0xaa, 0xb1, 0x02, 0x29, - 0xf7, 0xce, 0xab, 0x53, 0xd8, 0x0f, 0xd1, 0xff, 0xf5, 0x7d, 0xd1, 0x69, 0x0c, 0xe9, 0x19, 0xd4, - 0x29, 0x3b, 0xda, 0xa6, 0xa1, 0x41, 0x56, 0x51, 0x35, 0x39, 0x75, 0x9c, 0x6e, 0x72, 0x3b, 0x64, - 0x0f, 0x5d, 0x1c, 0x38, 0x07, 0xd0, 0xbc, 0xdb, 0xef, 0x99, 0x2b, 0xd9, 0x2c, 0xe3, 0x39, 0x0c, - 0x17, 0x5d, 0xea, 0xb5, 0xc4, 0x7a, 0xe9, 0x92, 0xe7, 0x68, 0x72, 0x30, 0x04, 0xd8, 0xdc, 0x4f, - 0x71, 0x5a, 0x6e, 0x3a, 0xa6, 0xf7, 0xde, 0x43, 0xef, 0xea, 0x6b, 0x4f, 0x2a, 0x6c, 0xf8, 0x3b, - 0x41, 0xc4, 0xe4, 0xaf, 0x23, 0xa8, 0x92, 0xf6, 0x15, 0x48, 0x3c, 0x40, 0xa7, 0x85, 0x9d, 0x95, - 0x4e, 0x5d, 0x54, 0xbb, 0x4f, 0x42, 0xaf, 0x4e, 0xe3, 0x84, 0x2c, 0x4b, 0xa7, 0x9a, 0x28, 0x9d, - 0x6a, 0x50, 0x3a, 0xd5, 0xd6, 0x02, 0xcf, 0x5f, 0x2d, 0x88, 0x42, 0xc4, 0xe9, 0x53, 0xc4, 0x55, - 0x84, 0xdc, 0x3a, 0xf7, 0x5e, 0xd0, 0x4d, 0xca, 0x55, 0xea, 0x2d, 0x38, 0x86, 0x44, 0x6c, 0xa2, - 0xd0, 0x61, 0x8f, 0x3a, 0xad, 0x6d, 0x1a, 0x96, 0x47, 0xd5, 0x26, 0x1a, 0x22, 0x91, 0xa6, 0xe4, - 0x1d, 0x49, 0x23, 0x4c, 0x41, 0x62, 0x92, 0x42, 0x91, 0xf8, 0xf4, 0x35, 0x12, 0x01, 0xc7, 0x24, - 0xb0, 0x4f, 0x2e, 0x72, 0x07, 0x9c, 0xf5, 0x08, 0x59, 0x94, 0xc8, 0x1e, 0xa9, 0x98, 0xb3, 0xe9, - 0x32, 0x2e, 0xbc, 0xf4, 0x30, 0x68, 0x78, 0x3b, 0x1e, 0x6d, 0xc8, 0x64, 0x5a, 0x70, 0xfa, 0xe4, - 0x64, 0x09, 0x5d, 0xd2, 0xf7, 0xb2, 0xcc, 0x55, 0xeb, 0x1e, 0xe3, 0xa1, 0xb7, 0xdd, 0x11, 0xae, - 0xc8, 0xbe, 0xd2, 0x9f, 0x21, 0x92, 0xa5, 0x6a, 0xa4, 0xac, 0x4e, 0x18, 0x52, 0x9f, 0xeb, 0x94, - 0xa5, 0x86, 0xa2, 0x5e, 0xd8, 0x77, 0x7d, 0x4e, 0x1b, 0xe0, 0x5e, 0x18, 0x91, 0x5b, 0xe8, 0xbc, - 0x9c, 0x77, 0xa5, 0x2e, 0xc3, 0xe2, 0x5e, 0x18, 0xb4, 0x3e, 0xa3, 0x6e, 0xb3, 0x6b, 0x64, 0xb5, - 0x9f, 0x88, 0x31, 0xf0, 0x29, 0x39, 0xd1, 0x90, 0x2c, 0xa1, 0x0b, 0x03, 0x34, 0x63, 0x32, 0x03, - 0xca, 0xba, 0x28, 0xf0, 0x9e, 0xc9, 0x7a, 0xd9, 0x51, 0xe5, 0x72, 0x14, 0x78, 0x3e, 0xc4, 0x5d, - 0xcf, 0x47, 0x98, 0xf4, 0x09, 0x3a, 0x23, 0xdc, 0x9a, 0xf8, 0x98, 0x59, 0x84, 0x26, 0xa7, 0xe9, - 0x57, 0x26, 0xff, 0xb1, 0xe0, 0x62, 0x7e, 0xa8, 0x62, 0x25, 0x5a, 0xf9, 0x14, 0x3a, 0xc9, 0xbd, - 0x16, 0x65, 0xdc, 0x6d, 0xb5, 0xd7, 0x83, 0x7d, 0x1f, 0xf6, 0x23, 0x29, 0x14, 0xa1, 0xa9, 0x05, - 0x4f, 0xdb, 0xe5, 0x11, 0x15, 0x9a, 0x86, 0x48, 0xcc, 0x53, 0x87, 0x3a, 0x49, 0x54, 0xa5, 0x4c, - 0xd6, 0x87, 0x25, 0x27, 0x29, 0x14, 0x99, 0x23, 0xa4, 0xed, 0x40, 0xd4, 0x49, 0x32, 0x76, 0x4b, - 0x8e, 0x1e, 0x8b, 0x1c, 0x15, 0x74, 0x78, 0x3d, 0x68, 0x51, 0x19, 0xad, 0xa7, 0x06, 0xe4, 0xa8, - 0xc7, 0x0a, 0xe3, 0x44, 0x60, 0x7d, 0x6c, 0x9e, 0x34, 0xdd, 0x2e, 0x6d, 0x94, 0x8b, 0x72, 0xe3, - 0x4d, 0x11, 0xd9, 0x83, 0xac, 0xa8, 0x97, 0x0e, 0x5e, 0x5e, 0x80, 0x5a, 0x86, 0x46, 0xf7, 0x4b, - 0x56, 0x75, 0x12, 0x41, 0xc5, 0x1a, 0xa0, 0xe4, 0x89, 0x0e, 0xb1, 0x1e, 0x93, 0x3f, 0x58, 0x71, - 0x4d, 0xa2, 0x5d, 0xbc, 0xa8, 0xcb, 0x6d, 0x4b, 0xae, 0x6b, 0x50, 0x11, 0xc0, 0x7b, 0xaa, 0x6d, - 0x82, 0x26, 0x84, 0xf7, 0x64, 0xf8, 0x8b, 0xf2, 0x71, 0x44, 0x7a, 0x34, 0x21, 0x33, 0xdd, 0x2e, - 0xcb, 0x3a, 0xe9, 0xf6, 0x82, 0x93, 0x14, 0xc6, 0x6d, 0x40, 0xc1, 0x68, 0x03, 0xc8, 0x47, 0x50, - 0xdf, 0x29, 0xae, 0xe0, 0x13, 0x51, 0x71, 0x8b, 0xa3, 0x18, 0x55, 0x83, 0x30, 0x22, 0xb3, 0x90, - 0xde, 0x64, 0x89, 0xae, 0x3a, 0xba, 0xa3, 0x3a, 0xaa, 0x1f, 0xa1, 0x72, 0xbf, 0x0a, 0x98, 0x59, - 0x55, 0x9b, 0x06, 0x62, 0x08, 0xed, 0xc9, 0xc1, 0x4d, 0x01, 0xa8, 0x9b, 0x4a, 0x64, 0xa1, 0x7f, - 0x7e, 0x66, 0x1c, 0xe8, 0x01, 0x55, 0xad, 0x6b, 0xa4, 0x83, 0x58, 0x0b, 0x68, 0xad, 0xa3, 0x09, - 0xc3, 0x42, 0x14, 0x16, 0x47, 0xf3, 0x4a, 0x68, 0x91, 0x2f, 0x46, 0x7a, 0x6b, 0x42, 0xcd, 0xeb, - 0x63, 0x54, 0x6a, 0x8b, 0x64, 0xa0, 0x8f, 0x5a, 0x8e, 0x4c, 0x12, 0x6b, 0xe0, 0x25, 0x34, 0x2e, - 0x07, 0x70, 0x06, 0x73, 0x28, 0x47, 0x78, 0xb5, 0xb1, 0xcd, 0x26, 0x24, 0x16, 0xd1, 0x4a, 0xc9, - 0x91, 0x88, 0x8d, 0xed, 0x4e, 0x37, 0x8e, 0x0d, 0x39, 0xc0, 0x18, 0x1a, 0x5f, 0x95, 0x37, 0xe4, - 0x6f, 0xbc, 0xac, 0xe3, 0xb8, 0x28, 0xe3, 0x78, 0x2a, 0xbb, 0x98, 0x4d, 0x46, 0x33, 0x39, 0x84, - 0x00, 0x32, 0x7d, 0x12, 0xd7, 0x47, 0x71, 0x62, 0xca, 0xac, 0x8f, 0xe2, 0x4a, 0xd9, 0xd0, 0x10, - 0x07, 0xc5, 0xa8, 0xc8, 0xa3, 0x53, 0x99, 0x90, 0xcd, 0x7d, 0x75, 0x01, 0x8d, 0x49, 0xfb, 0xf8, - 0x0b, 0x0b, 0x15, 0xd5, 0x93, 0x01, 0x4e, 0xaf, 0x27, 0xfa, 0xdf, 0x27, 0x2a, 0xd3, 0x47, 0x03, - 0xd5, 0x5a, 0xc8, 0x8d, 0x9f, 0xfe, 0xfd, 0x5f, 0x5f, 0x8e, 0xd8, 0xf8, 0x9a, 0xbd, 0x4e, 0xeb, - 0xd4, 0xe7, 0xa1, 0xdb, 0x14, 0x81, 0x72, 0xdf, 0x6d, 0x51, 0x7b, 0xf0, 0x2b, 0x19, 0xfe, 0xd2, - 0x42, 0x05, 0xd9, 0x39, 0x7e, 0x30, 0xd8, 0x92, 0xf1, 0x8a, 0x51, 0xb9, 0x7c, 0x14, 0x0c, 0xe8, - 0x2c, 0x4b, 0x3a, 0x8b, 0x78, 0x21, 0x27, 0x1d, 0xf1, 0xcb, 0x3e, 0x50, 0x67, 0xe5, 0x10, 0xff, - 0xc2, 0x42, 0x05, 0x71, 0x71, 0x67, 0xb1, 0x32, 0x9e, 0x38, 0xb2, 0x58, 0x99, 0x6f, 0x1b, 0xe4, - 0x63, 0xc9, 0xea, 0x26, 0xbe, 0x91, 0x93, 0x55, 0x87, 0xd1, 0xd0, 0x3e, 0x80, 0xbc, 0x7a, 0x88, - 0x7f, 0x66, 0xa1, 0x31, 0x75, 0xb1, 0x1d, 0xe1, 0x06, 0xbd, 0x7f, 0x57, 0x8e, 0xc4, 0x01, 0xb3, - 0x05, 0xc9, 0xac, 0x86, 0xaf, 0x0e, 0xe1, 0x2f, 0x86, 0x7f, 0x65, 0xa1, 0x31, 0x99, 0x25, 0xb2, - 0x08, 0x99, 0x6d, 0x74, 0x16, 0xa1, 0x44, 0xff, 0x4c, 0xee, 0x48, 0x42, 0xb7, 0xf0, 0x62, 0x4e, - 0x42, 0x32, 0x15, 0xd9, 0x07, 0x90, 0x91, 0xa4, 0xaf, 0x46, 0x37, 0x29, 0xc7, 0x53, 0x83, 0x0d, - 0xc6, 0x8d, 0x76, 0xe5, 0x83, 0x23, 0x50, 0x40, 0xea, 0xb6, 0x24, 0xb5, 0x80, 0xe7, 0x72, 0x92, - 0x62, 0x94, 0xdb, 0x07, 0x32, 0x91, 0x1c, 0xe2, 0xaf, 0x2c, 0x54, 0xd2, 0xc7, 0x18, 0xcf, 0x64, - 0x19, 0x4c, 0xf6, 0xe2, 0x95, 0x8f, 0x72, 0x61, 0x81, 0xe2, 0x7d, 0x49, 0x71, 0x05, 0x7f, 0x27, - 0x37, 0xc5, 0xe8, 0xd1, 0x56, 0x30, 0xd5, 0x17, 0xc7, 0x21, 0xfe, 0xad, 0x85, 0xc6, 0xa1, 0x2f, - 0xc6, 0x19, 0xd7, 0x40, 0xb2, 0x4d, 0xaf, 0x7c, 0x98, 0x03, 0x09, 0x4c, 0x57, 0x25, 0xd3, 0x65, - 0x7c, 0x3b, 0x6f, 0xc8, 0x29, 0x7d, 0xfb, 0x40, 0xb7, 0xfd, 0x87, 0xf8, 0xd7, 0x16, 0x2a, 0xaa, - 0xe6, 0x39, 0xeb, 0x4e, 0x4b, 0x74, 0xf1, 0x59, 0x77, 0x5a, 0xb2, 0x79, 0x27, 0x9f, 0x48, 0x86, - 0xb7, 0xf1, 0xad, 0xdc, 0xbe, 0x14, 0xea, 0xc2, 0x8f, 0xea, 0x51, 0xe0, 0x10, 0xff, 0xc9, 0x42, - 0x25, 0xdd, 0xa6, 0x65, 0x6d, 0x7a, 0x6f, 0xab, 0x9f, 0xb5, 0xe9, 0x7d, 0xbd, 0x3d, 0xb9, 0x27, - 0x89, 0x7e, 0x82, 0xef, 0xe4, 0x24, 0xaa, 0xbb, 0x44, 0xfb, 0xc0, 0xe8, 0x95, 0xe5, 0x9e, 0xa3, - 0xb8, 0x37, 0xc5, 0x79, 0x38, 0xe8, 0xab, 0xe6, 0x6a, 0x3e, 0x30, 0x30, 0x5e, 0x92, 0x8c, 0xe7, - 0xf1, 0xec, 0xb0, 0x8c, 0x19, 0xfe, 0x9b, 0x85, 0x70, 0x7f, 0xeb, 0x8b, 0xe7, 0x73, 0xd8, 0xef, - 0x6d, 0xc8, 0x2b, 0x0b, 0xc3, 0x29, 0x01, 0xf9, 0x4f, 0x25, 0xf9, 0x07, 0x78, 0x63, 0x58, 0xf2, - 0xc6, 0x3f, 0x22, 0x7a, 0x3c, 0xff, 0xd2, 0x42, 0x67, 0x53, 0x5e, 0x05, 0x70, 0x1e, 0x82, 0x7d, - 0xef, 0x0c, 0x95, 0x1b, 0x43, 0x6a, 0xc1, 0xba, 0xd6, 0xe5, 0xba, 0xee, 0xe0, 0xe5, 0xa1, 0x37, - 0xc5, 0x58, 0x18, 0xfe, 0xb3, 0x85, 0x4e, 0x26, 0x5e, 0x15, 0x70, 0x2d, 0x3b, 0x0b, 0xf5, 0x3e, - 0x4e, 0x54, 0xec, 0xdc, 0xf8, 0x37, 0xcc, 0xab, 0xfa, 0xd7, 0x96, 0x27, 0xf8, 0x7d, 0x6b, 0xa1, - 0xb7, 0x53, 0x3b, 0x6f, 0xbc, 0x98, 0x9d, 0x17, 0x06, 0x75, 0xf9, 0x95, 0x9b, 0x43, 0xeb, 0xc1, - 0x4a, 0x1e, 0xc9, 0x95, 0x7c, 0x17, 0xdf, 0xcb, 0x9f, 0x61, 0xb6, 0xe4, 0x83, 0x78, 0x77, 0xab, - 0x61, 0xcc, 0xa7, 0xb3, 0xce, 0x5f, 0x2c, 0x74, 0xba, 0xb7, 0x85, 0xc7, 0xb3, 0x83, 0xd9, 0x0d, - 0x78, 0x28, 0xa8, 0xcc, 0x0d, 0xa3, 0x02, 0x6b, 0x79, 0x20, 0xd7, 0x72, 0x17, 0xaf, 0xe5, 0x5c, - 0x8b, 0xab, 0x26, 0xda, 0xda, 0x09, 0x83, 0xd6, 0x96, 0x7c, 0x87, 0xb0, 0x0f, 0xe0, 0x39, 0xe2, - 0x50, 0x46, 0x55, 0xa2, 0xb3, 0xcf, 0x8a, 0xaa, 0xb4, 0x97, 0x87, 0xac, 0xa8, 0x4a, 0x7d, 0x8c, - 0x18, 0x3a, 0xaa, 0x92, 0xff, 0x1f, 0xc4, 0xbf, 0xb4, 0xd0, 0x38, 0x74, 0xde, 0x59, 0x09, 0x34, - 0xf9, 0x2e, 0x91, 0x95, 0x40, 0x7b, 0xda, 0x78, 0xb2, 0x28, 0xf9, 0x5d, 0xc7, 0xb5, 0x61, 0x4a, - 0x24, 0xaa, 0x6a, 0x6e, 0xf9, 0xf0, 0x96, 0x5d, 0xf5, 0xb0, 0x1c, 0xd5, 0xad, 0xd9, 0x42, 0x0f, - 0x5d, 0x73, 0x33, 0xca, 0x99, 0x7d, 0xa0, 0xda, 0xa4, 0x43, 0xfc, 0xb5, 0x85, 0x4e, 0x18, 0xad, - 0x25, 0xbe, 0x9a, 0x7d, 0x09, 0x24, 0x7b, 0xf1, 0xca, 0xb5, 0x9c, 0xe8, 0x37, 0xbc, 0xe9, 0xcc, - 0x7f, 0xe8, 0xc6, 0x6d, 0xc2, 0x1f, 0x2d, 0x34, 0x61, 0xb6, 0xd3, 0x38, 0x1f, 0x0b, 0xed, 0xd8, - 0x5a, 0x5e, 0xf8, 0xff, 0xd0, 0xd4, 0x44, 0xac, 0x19, 0xfe, 0x9d, 0x85, 0x50, 0xdc, 0x84, 0xe2, - 0x3c, 0x55, 0x65, 0x9e, 0xe4, 0xde, 0xdf, 0xd7, 0xbe, 0x41, 0x99, 0x1c, 0xd5, 0xa0, 0x6c, 0xd5, - 0x79, 0xf9, 0xaa, 0x6a, 0x7d, 0xf3, 0xaa, 0x6a, 0xfd, 0xf3, 0x55, 0xd5, 0xfa, 0xf9, 0xeb, 0xea, - 0xb1, 0x6f, 0x5e, 0x57, 0x8f, 0x7d, 0xfb, 0xba, 0x7a, 0xec, 0xb3, 0x5b, 0xbb, 0x1e, 0xdf, 0xeb, - 0x6c, 0xd7, 0xea, 0x41, 0x2b, 0x73, 0xde, 0x1f, 0x1b, 0xbf, 0x79, 0xb7, 0x4d, 0xd9, 0x76, 0x51, - 0xfe, 0x0b, 0x7e, 0xfe, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x18, 0x6f, 0x71, 0x83, 0x58, 0x22, - 0x00, 0x00, + // 2355 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x59, 0xcd, 0x6f, 0x1b, 0xc7, + 0x15, 0xf7, 0x4a, 0x14, 0x65, 0x8e, 0x65, 0xc7, 0x1e, 0x3b, 0x29, 0xc3, 0xd8, 0xb4, 0x32, 0x51, + 0x6c, 0x45, 0xb1, 0xb9, 0xd6, 0x87, 0x65, 0xcb, 0x55, 0xdc, 0xe8, 0xc3, 0x76, 0x55, 0xc3, 0x1f, + 0x59, 0xd5, 0x2e, 0x9a, 0x43, 0x85, 0x15, 0x39, 0x92, 0x16, 0x26, 0x77, 0x99, 0x9d, 0xa1, 0x55, + 0x56, 0xd0, 0xa5, 0x7f, 0x40, 0x51, 0x24, 0x45, 0xd1, 0x4b, 0x81, 0xa2, 0xbd, 0x14, 0x6d, 0x83, + 0xe6, 0xaf, 0x28, 0x7c, 0x4c, 0xdb, 0x4b, 0x4e, 0x45, 0x61, 0x17, 0xe8, 0xdf, 0xd0, 0x5b, 0x31, + 0x33, 0x6f, 0x67, 0x67, 0xc9, 0xe5, 0x6a, 0xe9, 0x5c, 0x04, 0xce, 0xdb, 0xdf, 0x9b, 0xf9, 0xcd, + 0x9b, 0x37, 0xef, 0x63, 0x84, 0x2e, 0xd6, 0xdd, 0xb0, 0x51, 0xdf, 0x73, 0x3d, 0xdf, 0x8e, 0x7f, + 0x7d, 0xd6, 0xa1, 0x61, 0xb7, 0xd6, 0x0e, 0x03, 0x1e, 0xe0, 0xb3, 0x5a, 0x5c, 0xd3, 0xbf, 0x2a, + 0x67, 0xdc, 0x96, 0xe7, 0x07, 0xb6, 0xfc, 0xab, 0x70, 0x95, 0x73, 0xbb, 0xc1, 0x6e, 0x20, 0x7f, + 0xda, 0xe2, 0x17, 0x48, 0xcf, 0xef, 0x06, 0xc1, 0x6e, 0x93, 0xda, 0x6e, 0xdb, 0xb3, 0x5d, 0xdf, + 0x0f, 0xb8, 0xcb, 0xbd, 0xc0, 0x67, 0xf0, 0x75, 0xa6, 0x1e, 0xb0, 0x56, 0xc0, 0xec, 0x6d, 0x97, + 0x51, 0xb5, 0xa8, 0xfd, 0x7c, 0x76, 0x9b, 0x72, 0x77, 0xd6, 0x6e, 0xbb, 0xbb, 0x9e, 0x2f, 0xc1, + 0x80, 0x9d, 0x4c, 0x23, 0xda, 0x76, 0x43, 0xb7, 0x15, 0xcd, 0xf6, 0x41, 0x1a, 0x42, 0xfc, 0xda, + 0xda, 0xf7, 0xf8, 0xde, 0x96, 0xd7, 0x72, 0x77, 0x29, 0x40, 0xab, 0x69, 0xd0, 0x0e, 0xa3, 0x61, + 0xd6, 0x77, 0xf1, 0x0b, 0xbe, 0xa7, 0x5a, 0xad, 0xe5, 0xf2, 0xfa, 0x1e, 0x00, 0x2e, 0xa4, 0x01, + 0x18, 0xe5, 0x7a, 0xe3, 0xe9, 0x9f, 0x15, 0x53, 0x37, 0xe4, 0xfb, 0x41, 0xf8, 0x0c, 0xb0, 0x53, + 0xe9, 0xd8, 0x66, 0x73, 0x2b, 0xd8, 0xd9, 0xd1, 0x8c, 0xdf, 0x4d, 0x65, 0x1c, 0x74, 0xfc, 0xba, + 0xd7, 0xcc, 0xb2, 0x20, 0xa3, 0xe1, 0x73, 0x3d, 0xc9, 0x7b, 0x69, 0x08, 0xea, 0x8b, 0x69, 0xb8, + 0x06, 0xd5, 0x32, 0x41, 0x69, 0xb6, 0x36, 0x0e, 0x39, 0x3a, 0xde, 0x7a, 0xe0, 0x45, 0x07, 0x3b, + 0x9d, 0x36, 0xdf, 0xf3, 0x80, 0x7b, 0xfe, 0xee, 0x56, 0x48, 0x59, 0xa7, 0xc9, 0xa3, 0x03, 0xbe, + 0x34, 0xf0, 0x80, 0xeb, 0x81, 0xcf, 0xa9, 0x0f, 0xd6, 0x25, 0xe7, 0x10, 0xfe, 0x44, 0x38, 0xd3, + 0x63, 0xe9, 0x1d, 0x0e, 0xfd, 0xac, 0x43, 0x19, 0x27, 0x4f, 0xd0, 0xd9, 0x84, 0x94, 0xb5, 0x03, + 0x9f, 0x51, 0x7c, 0x1b, 0x15, 0x95, 0x17, 0x95, 0xad, 0x49, 0x6b, 0xfa, 0xc4, 0xdc, 0x3b, 0xb5, + 0x14, 0x87, 0xaf, 0x29, 0xa5, 0xd5, 0xd2, 0x8b, 0x7f, 0x5d, 0x3c, 0xf6, 0xc7, 0xff, 0x7e, 0x35, + 0x63, 0x39, 0xa0, 0x45, 0x66, 0xd0, 0x69, 0x39, 0xed, 0x9a, 0x1b, 0x36, 0x60, 0x29, 0xfc, 0x16, + 0x2a, 0x0a, 0xd5, 0x8d, 0x86, 0x9c, 0xb3, 0xe0, 0xc0, 0x88, 0xdc, 0x47, 0x67, 0x0c, 0x2c, 0x10, + 0x58, 0x44, 0x05, 0xf1, 0x19, 0x96, 0x27, 0xa9, 0xcb, 0x0b, 0x85, 0x1f, 0x79, 0x7c, 0x6f, 0x43, + 0xd8, 0xd5, 0x91, 0x78, 0x72, 0x05, 0x16, 0x7e, 0xc2, 0x68, 0x18, 0x2d, 0x5c, 0x46, 0xe3, 0x6e, + 0xa3, 0x11, 0x52, 0xa6, 0x76, 0x53, 0x72, 0xa2, 0x21, 0x59, 0x85, 0xa5, 0x15, 0x1a, 0x96, 0xbe, + 0x8a, 0x0a, 0xc2, 0xe9, 0x61, 0xe9, 0xb7, 0x53, 0x97, 0x96, 0x0a, 0x12, 0x46, 0x7e, 0x57, 0x30, + 0xf8, 0x47, 0x76, 0xc5, 0xe7, 0xd0, 0x58, 0xb0, 0xef, 0xc3, 0x2c, 0x25, 0x47, 0x0d, 0xf0, 0x0d, + 0x54, 0x64, 0xdc, 0xe5, 0x1d, 0x56, 0x1e, 0x99, 0x1c, 0x9d, 0x3e, 0x35, 0x77, 0x71, 0xe0, 0xbe, + 0x36, 0x25, 0xcc, 0x01, 0x38, 0x5e, 0x42, 0xc7, 0xc5, 0xf7, 0x1f, 0x76, 0xdb, 0xb4, 0x3c, 0x2a, + 0x55, 0x2f, 0x0c, 0x54, 0x15, 0x20, 0x47, 0xc3, 0xf1, 0x02, 0x1a, 0xab, 0x37, 0x5d, 0xc6, 0xca, + 0x05, 0xa9, 0x57, 0x1d, 0xa8, 0xb7, 0x26, 0x50, 0x8e, 0x02, 0x8b, 0xc3, 0x62, 0x41, 0xc8, 0x57, + 0xbb, 0xe5, 0x31, 0xb9, 0x01, 0x18, 0x61, 0x82, 0x26, 0x7c, 0xb7, 0x45, 0xd7, 0x02, 0x9f, 0xbb, + 0x9e, 0xcf, 0xca, 0x45, 0xf9, 0x35, 0x21, 0xc3, 0x33, 0xe8, 0xf4, 0x33, 0xda, 0xdd, 0x0f, 0xc2, + 0x06, 0xd3, 0xb8, 0x71, 0x89, 0xeb, 0x93, 0xe3, 0x29, 0x74, 0xd2, 0x0f, 0x38, 0x8d, 0x81, 0xc7, + 0x25, 0x30, 0x29, 0xc4, 0xd3, 0xe8, 0x8d, 0xc0, 0x6f, 0x76, 0x37, 0xb9, 0x1b, 0x72, 0x1a, 0x0a, + 0xb2, 0xe5, 0xd2, 0xa4, 0x35, 0x7d, 0xdc, 0xe9, 0x15, 0xe3, 0x1a, 0xc2, 0x42, 0xb4, 0xea, 0x36, + 0x5d, 0xbf, 0x4e, 0x57, 0xfc, 0xfa, 0x5e, 0x10, 0xb2, 0x32, 0x92, 0xe0, 0x94, 0x2f, 0xf8, 0xbb, + 0xe8, 0x78, 0xe8, 0x86, 0x1e, 0xf7, 0x28, 0x2b, 0x9f, 0x38, 0xe2, 0x4c, 0x1c, 0x01, 0xec, 0x3a, + 0x5a, 0x01, 0x5f, 0x42, 0xa7, 0x5a, 0x9d, 0x26, 0xf7, 0xa4, 0xe5, 0x1e, 0xf9, 0xcd, 0x6e, 0x79, + 0x42, 0x2e, 0xd4, 0x23, 0x25, 0x35, 0xb8, 0x7a, 0xe0, 0x21, 0xe0, 0x67, 0x65, 0x34, 0xae, 0x6e, + 0x80, 0x70, 0xcb, 0xd1, 0xe9, 0x82, 0x13, 0x0d, 0xc9, 0x55, 0xf0, 0xa8, 0x07, 0x22, 0x76, 0x1a, + 0x5e, 0x2c, 0x63, 0xa9, 0xbe, 0x3f, 0xd1, 0x90, 0xdc, 0x85, 0xe9, 0x01, 0x0e, 0xd3, 0x5f, 0x43, + 0x63, 0x12, 0x00, 0x7e, 0x5c, 0x49, 0xdd, 0x96, 0x52, 0x51, 0x40, 0x72, 0x19, 0xbd, 0x21, 0xe7, + 0xd9, 0xa4, 0xdc, 0x70, 0x63, 0x46, 0xb9, 0x5e, 0x52, 0x0d, 0xc8, 0x06, 0x5c, 0x32, 0x09, 0x84, + 0xe5, 0xae, 0xa3, 0x51, 0x46, 0x39, 0x2c, 0xf6, 0x5e, 0xea, 0x62, 0x9b, 0x94, 0x8b, 0xeb, 0xba, + 0xa2, 0x02, 0xb9, 0x23, 0xf0, 0x64, 0x09, 0xbd, 0x09, 0x53, 0x35, 0x9b, 0x8f, 0x44, 0xe4, 0x8e, + 0x56, 0x9e, 0x44, 0x27, 0x58, 0x24, 0xd3, 0xeb, 0x9b, 0x22, 0xf2, 0x14, 0xbd, 0xd5, 0xab, 0x0a, + 0x5c, 0x96, 0x51, 0x49, 0x03, 0x81, 0x51, 0x75, 0x00, 0xa3, 0x48, 0x35, 0x56, 0x20, 0xf3, 0x10, + 0x12, 0xd7, 0x54, 0x9e, 0x88, 0x08, 0x9d, 0x47, 0x25, 0xc8, 0x1c, 0x9a, 0x4e, 0x2c, 0x20, 0x0f, + 0xd1, 0xb9, 0xa4, 0x92, 0x8e, 0x63, 0xe3, 0x00, 0x02, 0x22, 0xe7, 0xd3, 0xdd, 0x0b, 0xd4, 0x22, + 0x30, 0xb9, 0x06, 0x67, 0xba, 0x29, 0x33, 0x51, 0xc4, 0xa1, 0x82, 0x8e, 0xab, 0xd4, 0xa4, 0x29, + 0xe8, 0x31, 0xf9, 0x01, 0xd0, 0x8e, 0x34, 0x80, 0xc0, 0x3c, 0x2a, 0x2a, 0x48, 0x66, 0x24, 0x07, + 0x25, 0x80, 0xea, 0x53, 0xb9, 0x13, 0x25, 0x30, 0xe3, 0x54, 0x74, 0x52, 0x8b, 0x4f, 0xc5, 0x10, + 0xe9, 0x53, 0x31, 0x54, 0xe3, 0x53, 0xd1, 0xc0, 0xcc, 0x53, 0x89, 0x55, 0x63, 0x05, 0x52, 0xeb, + 0x9d, 0x37, 0x3b, 0xd4, 0x92, 0x1f, 0xa3, 0xef, 0xf4, 0xe1, 0x75, 0x72, 0x43, 0x7a, 0x5e, 0x75, + 0xf7, 0x8e, 0x66, 0x62, 0x68, 0x90, 0x55, 0x54, 0x4d, 0x4e, 0x1d, 0x27, 0xa1, 0xdc, 0x66, 0xda, + 0x43, 0x17, 0x07, 0xce, 0x01, 0x34, 0xef, 0xf4, 0xdb, 0xeb, 0x72, 0x36, 0xcb, 0x78, 0x0e, 0xc3, + 0x70, 0x37, 0x7a, 0x57, 0x62, 0x7d, 0x74, 0xd3, 0x2d, 0xf8, 0x0c, 0x4d, 0x0e, 0x56, 0x04, 0x8e, + 0xf7, 0x52, 0x4c, 0x99, 0x9b, 0xa4, 0x69, 0xd3, 0x77, 0xd0, 0xdb, 0x3a, 0x44, 0x4a, 0x85, 0x0d, + 0x7f, 0x27, 0x88, 0x8a, 0x94, 0xbf, 0x8f, 0xa0, 0x4a, 0xda, 0x57, 0x20, 0x71, 0x1f, 0x9d, 0x16, + 0xeb, 0xac, 0x74, 0xea, 0xa2, 0x32, 0x7e, 0x1c, 0x7a, 0x75, 0x1a, 0x27, 0x6f, 0x59, 0x66, 0xd5, + 0x44, 0x99, 0x55, 0x83, 0x32, 0xab, 0xb6, 0x16, 0x78, 0xfe, 0x6a, 0x41, 0x14, 0x2d, 0x4e, 0x9f, + 0x22, 0xae, 0x22, 0xe4, 0xd6, 0xb9, 0xf7, 0x9c, 0x6e, 0x52, 0xae, 0xd2, 0x74, 0xc1, 0x31, 0x24, + 0xe2, 0x68, 0x85, 0x0e, 0x7b, 0xd8, 0x69, 0x6d, 0xd3, 0xb0, 0x3c, 0xaa, 0x8e, 0xd6, 0x10, 0x89, + 0x94, 0x26, 0xe3, 0x29, 0x8d, 0x30, 0x05, 0x89, 0x49, 0x0a, 0x45, 0x92, 0xd4, 0x21, 0x27, 0x02, + 0x8e, 0x49, 0x60, 0x9f, 0x5c, 0xe4, 0x19, 0x88, 0x0b, 0x11, 0xb2, 0x28, 0x91, 0x3d, 0x52, 0x31, + 0x67, 0xd3, 0x65, 0x5c, 0x58, 0xe9, 0x41, 0xd0, 0xf0, 0x76, 0x3c, 0xda, 0x90, 0x89, 0xb7, 0xe0, + 0xf4, 0xc9, 0xc9, 0x12, 0x7a, 0x57, 0xc7, 0x70, 0x99, 0xd7, 0xd6, 0x3d, 0xc6, 0x43, 0x6f, 0xbb, + 0x23, 0x4c, 0x91, 0x1d, 0xfe, 0x9f, 0x22, 0x92, 0xa5, 0x6a, 0xa4, 0xb7, 0x4e, 0x18, 0x52, 0x9f, + 0xeb, 0xf4, 0xa6, 0x86, 0xa2, 0xb6, 0xd8, 0x77, 0x7d, 0x4e, 0x1b, 0x60, 0x5e, 0x18, 0x91, 0x9b, + 0xe8, 0xbc, 0x9c, 0x77, 0xa5, 0x2e, 0xdd, 0xe2, 0x6e, 0x18, 0xb4, 0x3e, 0xa5, 0x6e, 0xb3, 0x6b, + 0x64, 0xc0, 0x9f, 0x89, 0x31, 0xf0, 0x29, 0x39, 0xd1, 0x90, 0x2c, 0xa1, 0x0b, 0x03, 0x34, 0x63, + 0x32, 0x03, 0x4a, 0xc0, 0xc8, 0xf1, 0x9e, 0xca, 0xda, 0xda, 0x51, 0xa5, 0x75, 0xe4, 0x78, 0x3e, + 0xf8, 0x5d, 0xcf, 0x47, 0x98, 0xf4, 0x31, 0x3a, 0x23, 0xcc, 0x9a, 0xf8, 0x98, 0x59, 0xb0, 0x26, + 0xa7, 0xe9, 0x57, 0x26, 0xff, 0xb3, 0x20, 0x88, 0x3f, 0x50, 0xbe, 0x12, 0xed, 0x7c, 0x0a, 0x9d, + 0xe4, 0x5e, 0x8b, 0x32, 0xee, 0xb6, 0xda, 0xeb, 0xc1, 0xbe, 0x0f, 0xe7, 0x91, 0x14, 0x0a, 0xd7, + 0xd4, 0x82, 0x27, 0xed, 0xf2, 0x88, 0x72, 0x4d, 0x43, 0x24, 0xe6, 0xa9, 0x43, 0x4d, 0x25, 0x2a, + 0x58, 0x26, 0x6b, 0xc9, 0x92, 0x93, 0x14, 0x8a, 0x2c, 0x13, 0xd2, 0x76, 0x20, 0x6a, 0x2a, 0xe9, + 0xbb, 0x25, 0x47, 0x8f, 0x45, 0x3e, 0x0b, 0x3a, 0xbc, 0x1e, 0xb4, 0xa8, 0xf4, 0xd6, 0x53, 0x03, + 0xf2, 0xd9, 0x23, 0x85, 0x71, 0x22, 0xb0, 0xbe, 0x36, 0x8f, 0x9b, 0x6e, 0x97, 0x36, 0xca, 0x45, + 0x79, 0xf0, 0xa6, 0x88, 0xec, 0x41, 0x06, 0xd5, 0x5b, 0x07, 0x2b, 0x2f, 0x40, 0xdd, 0x43, 0xa3, + 0xf8, 0x92, 0x55, 0xc9, 0x44, 0x50, 0xb1, 0x07, 0x28, 0x8f, 0xa2, 0x4b, 0xac, 0xc7, 0xe4, 0x4f, + 0x56, 0x5c, 0xbf, 0x68, 0x13, 0x2f, 0xea, 0xd2, 0xdc, 0x92, 0xfb, 0x1a, 0x54, 0x30, 0xf0, 0x9e, + 0xca, 0x9c, 0xa0, 0x09, 0x61, 0x3d, 0xe9, 0xfe, 0xa2, 0xd4, 0x1c, 0x91, 0x16, 0x4d, 0xc8, 0x4c, + 0xb3, 0xcb, 0x12, 0x50, 0x9a, 0xbd, 0xe0, 0x24, 0x85, 0x71, 0x14, 0x2e, 0x98, 0x51, 0xf8, 0x43, + 0xa8, 0x05, 0x15, 0x57, 0xb0, 0x89, 0xa8, 0xce, 0xc5, 0x55, 0x8c, 0x2a, 0x47, 0x18, 0x91, 0x59, + 0x48, 0x7a, 0xb2, 0x9c, 0x57, 0xdd, 0xdf, 0x51, 0xdd, 0xd7, 0x4f, 0x50, 0xb9, 0x5f, 0x05, 0x96, + 0x59, 0x55, 0x87, 0x06, 0x62, 0x70, 0xed, 0xc9, 0xc1, 0x0d, 0x04, 0xa8, 0x9b, 0x4a, 0x64, 0xa1, + 0x7f, 0x7e, 0x66, 0x5c, 0xe8, 0x01, 0x15, 0xb0, 0x6b, 0xa4, 0x83, 0x58, 0x0b, 0x68, 0xad, 0xa3, + 0x09, 0x63, 0x85, 0xc8, 0x2d, 0x8e, 0xe6, 0x95, 0xd0, 0x22, 0x9f, 0x8f, 0xf4, 0xd6, 0x8f, 0x9a, + 0xd7, 0x47, 0xa8, 0xd4, 0x16, 0xc9, 0x40, 0x5f, 0xb5, 0x1c, 0x99, 0x24, 0xd6, 0xc0, 0x4b, 0x68, + 0x5c, 0x0e, 0xe0, 0x0e, 0xe6, 0x50, 0x8e, 0xf0, 0xea, 0x60, 0x9b, 0x4d, 0x48, 0x2c, 0xa2, 0xed, + 0x92, 0x23, 0xe1, 0x1b, 0xdb, 0x9d, 0x6e, 0xec, 0x1b, 0x72, 0x80, 0x31, 0x34, 0xc9, 0x2a, 0x6f, + 0xc8, 0xdf, 0x78, 0x59, 0xfb, 0x71, 0x51, 0xfa, 0xf1, 0x54, 0x76, 0xe1, 0x9b, 0xf4, 0x66, 0x72, + 0x08, 0x0e, 0x64, 0xda, 0x24, 0xae, 0x9a, 0xe2, 0xc4, 0x94, 0x59, 0x35, 0xc5, 0x55, 0xb5, 0xa1, + 0x21, 0x2e, 0x8a, 0x51, 0xbd, 0x47, 0xb7, 0x32, 0x21, 0x9b, 0xfb, 0xf2, 0x02, 0x1a, 0x93, 0xeb, + 0xe3, 0xcf, 0x2d, 0x54, 0x54, 0xcf, 0x0b, 0x38, 0xbd, 0x9e, 0xe8, 0x7f, 0xcb, 0xa8, 0x4c, 0x1f, + 0x0d, 0x54, 0x7b, 0x21, 0xd7, 0x7f, 0xfe, 0xcf, 0xff, 0x7c, 0x31, 0x62, 0xe3, 0xab, 0xf6, 0x3a, + 0xad, 0x53, 0x9f, 0x87, 0x6e, 0x53, 0x38, 0xca, 0x3d, 0xb7, 0x45, 0xed, 0xc1, 0x2f, 0x6a, 0xf8, + 0x0b, 0x0b, 0x15, 0x64, 0x97, 0xf9, 0xfe, 0xe0, 0x95, 0x8c, 0x17, 0x8f, 0xca, 0xa5, 0xa3, 0x60, + 0x40, 0x67, 0x59, 0xd2, 0x59, 0xc4, 0x0b, 0x39, 0xe9, 0x88, 0x5f, 0xf6, 0x81, 0xba, 0x2b, 0x87, + 0xf8, 0x57, 0x16, 0x2a, 0x88, 0xc0, 0x9d, 0xc5, 0xca, 0x78, 0x0e, 0xc9, 0x62, 0x65, 0xbe, 0x83, + 0x90, 0x8f, 0x24, 0xab, 0x1b, 0xf8, 0x7a, 0x4e, 0x56, 0x1d, 0x46, 0x43, 0xfb, 0x00, 0xf2, 0xea, + 0x21, 0xfe, 0x85, 0x85, 0xc6, 0x54, 0x60, 0x3b, 0xc2, 0x0c, 0xfa, 0xfc, 0x2e, 0x1f, 0x89, 0x03, + 0x66, 0x0b, 0x92, 0x59, 0x0d, 0x5f, 0x19, 0xc2, 0x5e, 0x0c, 0xff, 0xc6, 0x42, 0x63, 0x32, 0x4b, + 0x64, 0x11, 0x32, 0x5b, 0xee, 0x2c, 0x42, 0x89, 0x5e, 0x9b, 0xdc, 0x96, 0x84, 0x6e, 0xe2, 0xc5, + 0x9c, 0x84, 0x64, 0x2a, 0xb2, 0x0f, 0x20, 0x23, 0x49, 0x5b, 0x8d, 0x6e, 0x52, 0x8e, 0xa7, 0x06, + 0x2f, 0x18, 0x37, 0xe5, 0x95, 0xf7, 0x8f, 0x40, 0x01, 0xa9, 0x5b, 0x92, 0xd4, 0x02, 0x9e, 0xcb, + 0x49, 0x8a, 0x51, 0x6e, 0x1f, 0xc8, 0x44, 0x72, 0x88, 0xbf, 0xb4, 0x50, 0x49, 0x5f, 0x63, 0x3c, + 0x93, 0xb5, 0x60, 0xb2, 0x6f, 0xaf, 0x7c, 0x98, 0x0b, 0x0b, 0x14, 0xef, 0x49, 0x8a, 0x2b, 0xf8, + 0x7b, 0xb9, 0x29, 0x46, 0x0f, 0xbc, 0x82, 0xa9, 0x0e, 0x1c, 0x87, 0xf8, 0xf7, 0x16, 0x1a, 0x87, + 0x1e, 0x1a, 0x67, 0x84, 0x81, 0x64, 0x4b, 0x5f, 0xf9, 0x20, 0x07, 0x12, 0x98, 0xae, 0x4a, 0xa6, + 0xcb, 0xf8, 0x56, 0x5e, 0x97, 0x53, 0xfa, 0xf6, 0x81, 0x7e, 0x22, 0x38, 0xc4, 0xbf, 0xb5, 0x50, + 0x51, 0x35, 0xda, 0x59, 0x31, 0x2d, 0xd1, 0xf1, 0x67, 0xc5, 0xb4, 0x64, 0xa3, 0x4f, 0x3e, 0x96, + 0x0c, 0x6f, 0xe1, 0x9b, 0xb9, 0x6d, 0x29, 0xd4, 0x85, 0x1d, 0xd5, 0x03, 0xc2, 0x21, 0xfe, 0x8b, + 0x85, 0x4a, 0xba, 0x4d, 0xcb, 0x3a, 0xf4, 0xde, 0x67, 0x81, 0xac, 0x43, 0xef, 0x7b, 0x07, 0x20, + 0x77, 0x25, 0xd1, 0x8f, 0xf1, 0xed, 0x9c, 0x44, 0x75, 0x97, 0x68, 0x1f, 0x18, 0x1d, 0xb4, 0x3c, + 0x73, 0x14, 0xf7, 0xa6, 0x38, 0x0f, 0x07, 0x1d, 0x6a, 0xae, 0xe4, 0x03, 0x03, 0xe3, 0x25, 0xc9, + 0x78, 0x1e, 0xcf, 0x0e, 0xcb, 0x98, 0xe1, 0x7f, 0x58, 0x08, 0xf7, 0xb7, 0xbe, 0x78, 0x3e, 0xc7, + 0xfa, 0xbd, 0x6d, 0x7a, 0x65, 0x61, 0x38, 0x25, 0x20, 0xff, 0x89, 0x24, 0x7f, 0x1f, 0x6f, 0x0c, + 0x4b, 0xde, 0xf8, 0xa7, 0x45, 0x8f, 0xe5, 0x5f, 0x58, 0xe8, 0x6c, 0xca, 0xab, 0x00, 0xce, 0x43, + 0xb0, 0xef, 0xf5, 0xa1, 0x72, 0x7d, 0x48, 0x2d, 0xd8, 0xd7, 0xba, 0xdc, 0xd7, 0x6d, 0xbc, 0x3c, + 0xf4, 0xa1, 0x18, 0x1b, 0xc3, 0x7f, 0xb5, 0xd0, 0xc9, 0xc4, 0xab, 0x02, 0xae, 0x65, 0x67, 0xa1, + 0xde, 0xc7, 0x89, 0x8a, 0x9d, 0x1b, 0xff, 0x9a, 0x79, 0x55, 0xff, 0xda, 0xf2, 0x04, 0xbf, 0x6f, + 0x2c, 0xf4, 0x66, 0x6a, 0xe7, 0x8d, 0x17, 0xb3, 0xf3, 0xc2, 0xa0, 0x2e, 0xbf, 0x72, 0x63, 0x68, + 0x3d, 0xd8, 0xc9, 0x43, 0xb9, 0x93, 0xef, 0xe3, 0xbb, 0xf9, 0x33, 0xcc, 0x96, 0x7c, 0x3c, 0xef, + 0x6e, 0x35, 0x8c, 0xf9, 0x74, 0xd6, 0xf9, 0x9b, 0x85, 0x4e, 0xf7, 0xb6, 0xf0, 0x78, 0x76, 0x30, + 0xbb, 0x01, 0x0f, 0x05, 0x95, 0xb9, 0x61, 0x54, 0x60, 0x2f, 0xf7, 0xe5, 0x5e, 0xee, 0xe0, 0xb5, + 0x9c, 0x7b, 0x71, 0xd5, 0x44, 0x5b, 0x3b, 0x61, 0xd0, 0xda, 0x92, 0xef, 0x10, 0xf6, 0x01, 0x3c, + 0x47, 0x1c, 0x4a, 0xaf, 0x4a, 0x74, 0xf6, 0x59, 0x5e, 0x95, 0xf6, 0xf2, 0x90, 0xe5, 0x55, 0xa9, + 0x8f, 0x11, 0x43, 0x7b, 0x55, 0xf2, 0x7f, 0x89, 0xf8, 0xd7, 0x16, 0x1a, 0x87, 0xce, 0x3b, 0x2b, + 0x81, 0x26, 0xdf, 0x25, 0xb2, 0x12, 0x68, 0x4f, 0x1b, 0x4f, 0x16, 0x25, 0xbf, 0x6b, 0xb8, 0x36, + 0x4c, 0x89, 0x44, 0x55, 0xcd, 0x2d, 0x1f, 0xde, 0xb2, 0xab, 0x1e, 0x96, 0xa3, 0xba, 0x35, 0x5b, + 0xe8, 0xa1, 0x6b, 0x6e, 0x46, 0x39, 0xb3, 0x0f, 0x54, 0x9b, 0x74, 0x88, 0xbf, 0xb2, 0xd0, 0x09, + 0xa3, 0xb5, 0xc4, 0x57, 0xb2, 0x83, 0x40, 0xb2, 0x17, 0xaf, 0x5c, 0xcd, 0x89, 0x7e, 0xcd, 0x48, + 0x67, 0xfe, 0xf3, 0x37, 0x6e, 0x13, 0xfe, 0x6c, 0xa1, 0x09, 0xb3, 0x9d, 0xc6, 0xf9, 0x58, 0x68, + 0xc3, 0xd6, 0xf2, 0xc2, 0xbf, 0x45, 0x53, 0x13, 0xb1, 0x66, 0xf8, 0x0f, 0x16, 0x42, 0x71, 0x13, + 0x8a, 0xf3, 0x54, 0x95, 0x79, 0x92, 0x7b, 0x7f, 0x5f, 0xfb, 0x1a, 0x65, 0x72, 0x54, 0x83, 0xb2, + 0x55, 0xe7, 0xc5, 0xcb, 0xaa, 0xf5, 0xf5, 0xcb, 0xaa, 0xf5, 0xef, 0x97, 0x55, 0xeb, 0x97, 0xaf, + 0xaa, 0xc7, 0xbe, 0x7e, 0x55, 0x3d, 0xf6, 0xcd, 0xab, 0xea, 0xb1, 0x4f, 0x6f, 0xee, 0x7a, 0x7c, + 0xaf, 0xb3, 0x5d, 0xab, 0x07, 0xad, 0xcc, 0x79, 0x7f, 0x6a, 0xfc, 0xe6, 0xdd, 0x36, 0x65, 0xdb, + 0x45, 0xf9, 0xef, 0xfa, 0xf9, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x07, 0x05, 0x6b, 0xd2, 0x84, + 0x22, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4060,6 +4076,13 @@ func (m *QueryEncountersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -4183,6 +4206,13 @@ func (m *QueryEncountersWithImageRequest) MarshalToSizedBuffer(dAtA []byte) (int _ = i var l int _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -5340,6 +5370,10 @@ func (m *QueryEncountersRequest) Size() (n int) { } var l int _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -5389,6 +5423,10 @@ func (m *QueryEncountersWithImageRequest) Size() (n int) { } var l int _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -7832,6 +7870,38 @@ func (m *QueryEncountersRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: QueryEncountersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -8121,6 +8191,38 @@ func (m *QueryEncountersWithImageRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: QueryEncountersWithImageRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/cardchain/types/query.pb.gw.go b/x/cardchain/types/query.pb.gw.go index 0a3d33ae..d9e3cc99 100644 --- a/x/cardchain/types/query.pb.gw.go +++ b/x/cardchain/types/query.pb.gw.go @@ -519,10 +519,21 @@ func local_request_Query_Encounter_0(ctx context.Context, marshaler runtime.Mars } +var ( + filter_Query_Encounters_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_Encounters_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryEncountersRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Encounters_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.Encounters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -532,6 +543,13 @@ func local_request_Query_Encounters_0(ctx context.Context, marshaler runtime.Mar var protoReq QueryEncountersRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Encounters_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.Encounters(ctx, &protoReq) return msg, metadata, err @@ -591,10 +609,21 @@ func local_request_Query_EncounterWithImage_0(ctx context.Context, marshaler run } +var ( + filter_Query_EncountersWithImage_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + func request_Query_EncountersWithImage_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryEncountersWithImageRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EncountersWithImage_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.EncountersWithImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -604,6 +633,13 @@ func local_request_Query_EncountersWithImage_0(ctx context.Context, marshaler ru var protoReq QueryEncountersWithImageRequest var metadata runtime.ServerMetadata + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EncountersWithImage_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.EncountersWithImage(ctx, &protoReq) return msg, metadata, err diff --git a/x/cardchain/types/tx.pb.go b/x/cardchain/types/tx.pb.go index a8c547cf..6ff78421 100644 --- a/x/cardchain/types/tx.pb.go +++ b/x/cardchain/types/tx.pb.go @@ -319,12 +319,13 @@ func (m *MsgCardSchemeBuyResponse) GetCardId() uint64 { } type MsgCardSaveContent struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` - Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"` - Artist string `protobuf:"bytes,5,opt,name=artist,proto3" json:"artist,omitempty"` - BalanceAnchor bool `protobuf:"varint,6,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + CardId uint64 `protobuf:"varint,2,opt,name=cardId,proto3" json:"cardId,omitempty"` + Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` + Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"` + Artist string `protobuf:"bytes,5,opt,name=artist,proto3" json:"artist,omitempty"` + BalanceAnchor bool `protobuf:"varint,6,opt,name=balanceAnchor,proto3" json:"balanceAnchor,omitempty"` + Parameters []*Parameter `protobuf:"bytes,7,rep,name=parameters,proto3" json:"parameters,omitempty"` } func (m *MsgCardSaveContent) Reset() { *m = MsgCardSaveContent{} } @@ -402,6 +403,13 @@ func (m *MsgCardSaveContent) GetBalanceAnchor() bool { return false } +func (m *MsgCardSaveContent) GetParameters() []*Parameter { + if m != nil { + return m.Parameters + } + return nil +} + type MsgCardSaveContentResponse struct { AirdropClaimed bool `protobuf:"varint,1,opt,name=airdropClaimed,proto3" json:"airdropClaimed,omitempty"` } @@ -4366,6 +4374,128 @@ func (m *MsgEncounterCreateResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgEncounterCreateResponse proto.InternalMessageInfo +// MsgEncounterEdit defines the MsgEncounterEdit message. +type MsgEncounterEdit struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Drawlist []uint64 `protobuf:"varint,4,rep,packed,name=drawlist,proto3" json:"drawlist,omitempty"` + Parameters []*Parameter `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` + Image []byte `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` +} + +func (m *MsgEncounterEdit) Reset() { *m = MsgEncounterEdit{} } +func (m *MsgEncounterEdit) String() string { return proto.CompactTextString(m) } +func (*MsgEncounterEdit) ProtoMessage() {} +func (*MsgEncounterEdit) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{90} +} +func (m *MsgEncounterEdit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgEncounterEdit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgEncounterEdit.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 *MsgEncounterEdit) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgEncounterEdit.Merge(m, src) +} +func (m *MsgEncounterEdit) XXX_Size() int { + return m.Size() +} +func (m *MsgEncounterEdit) XXX_DiscardUnknown() { + xxx_messageInfo_MsgEncounterEdit.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgEncounterEdit proto.InternalMessageInfo + +func (m *MsgEncounterEdit) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgEncounterEdit) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *MsgEncounterEdit) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgEncounterEdit) GetDrawlist() []uint64 { + if m != nil { + return m.Drawlist + } + return nil +} + +func (m *MsgEncounterEdit) GetParameters() []*Parameter { + if m != nil { + return m.Parameters + } + return nil +} + +func (m *MsgEncounterEdit) GetImage() []byte { + if m != nil { + return m.Image + } + return nil +} + +// MsgEncounterEditResponse defines the MsgEncounterEditResponse message. +type MsgEncounterEditResponse struct { +} + +func (m *MsgEncounterEditResponse) Reset() { *m = MsgEncounterEditResponse{} } +func (m *MsgEncounterEditResponse) String() string { return proto.CompactTextString(m) } +func (*MsgEncounterEditResponse) ProtoMessage() {} +func (*MsgEncounterEditResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3b4a3aba0ac94bc8, []int{91} +} +func (m *MsgEncounterEditResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgEncounterEditResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgEncounterEditResponse.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 *MsgEncounterEditResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgEncounterEditResponse.Merge(m, src) +} +func (m *MsgEncounterEditResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgEncounterEditResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgEncounterEditResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgEncounterEditResponse proto.InternalMessageInfo + type MsgEncounterDo struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` EncounterId uint64 `protobuf:"varint,2,opt,name=encounterId,proto3" json:"encounterId,omitempty"` @@ -4376,7 +4506,7 @@ func (m *MsgEncounterDo) Reset() { *m = MsgEncounterDo{} } func (m *MsgEncounterDo) String() string { return proto.CompactTextString(m) } func (*MsgEncounterDo) ProtoMessage() {} func (*MsgEncounterDo) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{90} + return fileDescriptor_3b4a3aba0ac94bc8, []int{92} } func (m *MsgEncounterDo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4433,7 +4563,7 @@ func (m *MsgEncounterDoResponse) Reset() { *m = MsgEncounterDoResponse{} func (m *MsgEncounterDoResponse) String() string { return proto.CompactTextString(m) } func (*MsgEncounterDoResponse) ProtoMessage() {} func (*MsgEncounterDoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{91} + return fileDescriptor_3b4a3aba0ac94bc8, []int{93} } func (m *MsgEncounterDoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4473,7 +4603,7 @@ func (m *MsgEncounterClose) Reset() { *m = MsgEncounterClose{} } func (m *MsgEncounterClose) String() string { return proto.CompactTextString(m) } func (*MsgEncounterClose) ProtoMessage() {} func (*MsgEncounterClose) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{92} + return fileDescriptor_3b4a3aba0ac94bc8, []int{94} } func (m *MsgEncounterClose) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4537,7 +4667,7 @@ func (m *MsgEncounterCloseResponse) Reset() { *m = MsgEncounterCloseResp func (m *MsgEncounterCloseResponse) String() string { return proto.CompactTextString(m) } func (*MsgEncounterCloseResponse) ProtoMessage() {} func (*MsgEncounterCloseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{93} + return fileDescriptor_3b4a3aba0ac94bc8, []int{95} } func (m *MsgEncounterCloseResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4575,7 +4705,7 @@ func (m *MsgEarlyAccessDisinvite) Reset() { *m = MsgEarlyAccessDisinvite func (m *MsgEarlyAccessDisinvite) String() string { return proto.CompactTextString(m) } func (*MsgEarlyAccessDisinvite) ProtoMessage() {} func (*MsgEarlyAccessDisinvite) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{94} + return fileDescriptor_3b4a3aba0ac94bc8, []int{96} } func (m *MsgEarlyAccessDisinvite) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4625,7 +4755,7 @@ func (m *MsgEarlyAccessDisinviteResponse) Reset() { *m = MsgEarlyAccessD func (m *MsgEarlyAccessDisinviteResponse) String() string { return proto.CompactTextString(m) } func (*MsgEarlyAccessDisinviteResponse) ProtoMessage() {} func (*MsgEarlyAccessDisinviteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{95} + return fileDescriptor_3b4a3aba0ac94bc8, []int{97} } func (m *MsgEarlyAccessDisinviteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4663,7 +4793,7 @@ func (m *MsgCardBan) Reset() { *m = MsgCardBan{} } func (m *MsgCardBan) String() string { return proto.CompactTextString(m) } func (*MsgCardBan) ProtoMessage() {} func (*MsgCardBan) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{96} + return fileDescriptor_3b4a3aba0ac94bc8, []int{98} } func (m *MsgCardBan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4713,7 +4843,7 @@ func (m *MsgCardBanResponse) Reset() { *m = MsgCardBanResponse{} } func (m *MsgCardBanResponse) String() string { return proto.CompactTextString(m) } func (*MsgCardBanResponse) ProtoMessage() {} func (*MsgCardBanResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{97} + return fileDescriptor_3b4a3aba0ac94bc8, []int{99} } func (m *MsgCardBanResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4751,7 +4881,7 @@ func (m *MsgEarlyAccessGrant) Reset() { *m = MsgEarlyAccessGrant{} } func (m *MsgEarlyAccessGrant) String() string { return proto.CompactTextString(m) } func (*MsgEarlyAccessGrant) ProtoMessage() {} func (*MsgEarlyAccessGrant) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{98} + return fileDescriptor_3b4a3aba0ac94bc8, []int{100} } func (m *MsgEarlyAccessGrant) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4801,7 +4931,7 @@ func (m *MsgEarlyAccessGrantResponse) Reset() { *m = MsgEarlyAccessGrant func (m *MsgEarlyAccessGrantResponse) String() string { return proto.CompactTextString(m) } func (*MsgEarlyAccessGrantResponse) ProtoMessage() {} func (*MsgEarlyAccessGrantResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{99} + return fileDescriptor_3b4a3aba0ac94bc8, []int{101} } func (m *MsgEarlyAccessGrantResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4839,7 +4969,7 @@ func (m *MsgSetActivate) Reset() { *m = MsgSetActivate{} } func (m *MsgSetActivate) String() string { return proto.CompactTextString(m) } func (*MsgSetActivate) ProtoMessage() {} func (*MsgSetActivate) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{100} + return fileDescriptor_3b4a3aba0ac94bc8, []int{102} } func (m *MsgSetActivate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4889,7 +5019,7 @@ func (m *MsgSetActivateResponse) Reset() { *m = MsgSetActivateResponse{} func (m *MsgSetActivateResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetActivateResponse) ProtoMessage() {} func (*MsgSetActivateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{101} + return fileDescriptor_3b4a3aba0ac94bc8, []int{103} } func (m *MsgSetActivateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4927,7 +5057,7 @@ func (m *MsgCardCopyrightClaim) Reset() { *m = MsgCardCopyrightClaim{} } func (m *MsgCardCopyrightClaim) String() string { return proto.CompactTextString(m) } func (*MsgCardCopyrightClaim) ProtoMessage() {} func (*MsgCardCopyrightClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{102} + return fileDescriptor_3b4a3aba0ac94bc8, []int{104} } func (m *MsgCardCopyrightClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4977,7 +5107,7 @@ func (m *MsgCardCopyrightClaimResponse) Reset() { *m = MsgCardCopyrightC func (m *MsgCardCopyrightClaimResponse) String() string { return proto.CompactTextString(m) } func (*MsgCardCopyrightClaimResponse) ProtoMessage() {} func (*MsgCardCopyrightClaimResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b4a3aba0ac94bc8, []int{103} + return fileDescriptor_3b4a3aba0ac94bc8, []int{105} } func (m *MsgCardCopyrightClaimResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5097,6 +5227,8 @@ func init() { proto.RegisterType((*MsgZealyConnectResponse)(nil), "cardchain.cardchain.MsgZealyConnectResponse") proto.RegisterType((*MsgEncounterCreate)(nil), "cardchain.cardchain.MsgEncounterCreate") proto.RegisterType((*MsgEncounterCreateResponse)(nil), "cardchain.cardchain.MsgEncounterCreateResponse") + proto.RegisterType((*MsgEncounterEdit)(nil), "cardchain.cardchain.MsgEncounterEdit") + proto.RegisterType((*MsgEncounterEditResponse)(nil), "cardchain.cardchain.MsgEncounterEditResponse") proto.RegisterType((*MsgEncounterDo)(nil), "cardchain.cardchain.MsgEncounterDo") proto.RegisterType((*MsgEncounterDoResponse)(nil), "cardchain.cardchain.MsgEncounterDoResponse") proto.RegisterType((*MsgEncounterClose)(nil), "cardchain.cardchain.MsgEncounterClose") @@ -5116,189 +5248,194 @@ func init() { func init() { proto.RegisterFile("cardchain/cardchain/tx.proto", fileDescriptor_3b4a3aba0ac94bc8) } var fileDescriptor_3b4a3aba0ac94bc8 = []byte{ - // 2911 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5b, 0x4f, 0x73, 0x14, 0xc7, - 0x15, 0x67, 0x59, 0x49, 0x48, 0x8d, 0x10, 0x30, 0xc8, 0xb0, 0x0c, 0x20, 0x89, 0x45, 0x02, 0x01, - 0x42, 0x6b, 0x84, 0xc1, 0x0e, 0x95, 0x90, 0xd2, 0xae, 0x1c, 0x97, 0xab, 0x22, 0x43, 0x66, 0x63, - 0x3b, 0x38, 0xa9, 0xb8, 0x7a, 0x67, 0x5b, 0xab, 0x89, 0x76, 0x67, 0xd6, 0x33, 0xb3, 0x2b, 0x8b, - 0x2a, 0x57, 0xa5, 0xc8, 0x25, 0x95, 0x5c, 0xf2, 0x01, 0x72, 0xc9, 0xcd, 0xa7, 0x14, 0x55, 0xc9, - 0x27, 0x48, 0x2e, 0x3e, 0xe4, 0xe0, 0xf2, 0x29, 0xa7, 0x54, 0x0a, 0x0e, 0x7c, 0x8d, 0x54, 0xff, - 0x99, 0x9e, 0x9e, 0xde, 0xee, 0x9e, 0xd9, 0x25, 0xbe, 0xc0, 0x76, 0xcf, 0xaf, 0xdf, 0xbf, 0x7e, - 0xdd, 0xef, 0xf5, 0x7b, 0x25, 0x70, 0xd9, 0x85, 0x61, 0xdb, 0xdd, 0x87, 0x9e, 0x5f, 0x4b, 0x7f, - 0xc5, 0x5f, 0x6e, 0xf6, 0xc3, 0x20, 0x0e, 0xac, 0x73, 0x7c, 0x6e, 0x93, 0xff, 0xb2, 0xcf, 0xc2, - 0x9e, 0xe7, 0x07, 0x35, 0xf2, 0x2f, 0xc5, 0xd9, 0x17, 0xdc, 0x20, 0xea, 0x05, 0x51, 0xad, 0x17, - 0x75, 0x6a, 0xc3, 0xbb, 0xf8, 0x3f, 0xf6, 0xe1, 0x22, 0xfd, 0xf0, 0x39, 0x19, 0xd5, 0xe8, 0x80, - 0x7d, 0x5a, 0xec, 0x04, 0x9d, 0x80, 0xce, 0xe3, 0x5f, 0x6c, 0x76, 0x45, 0x25, 0x4f, 0x1f, 0x86, - 0xb0, 0x97, 0xac, 0x5b, 0x62, 0xbc, 0x5a, 0x30, 0x42, 0xb5, 0xe1, 0xdd, 0x16, 0x8a, 0xe1, 0xdd, - 0x9a, 0x1b, 0x78, 0xbe, 0x89, 0xc2, 0x30, 0x88, 0x3d, 0x3f, 0x11, 0x6a, 0x59, 0x85, 0xe8, 0xc1, - 0xd8, 0xdd, 0x67, 0x80, 0xab, 0x2a, 0x80, 0x1b, 0x0c, 0x7c, 0xd7, 0xeb, 0x32, 0xc8, 0x35, 0x15, - 0x04, 0xf9, 0x18, 0x14, 0xa3, 0x90, 0x8b, 0xaa, 0xa2, 0x03, 0xc3, 0x36, 0xfd, 0x5e, 0xfd, 0x67, - 0x09, 0x9c, 0xde, 0x8d, 0x3a, 0x1f, 0xf7, 0xdb, 0x30, 0x46, 0x4f, 0x88, 0x92, 0xd6, 0x03, 0x30, - 0x07, 0x07, 0xf1, 0x7e, 0x10, 0x7a, 0xf1, 0x51, 0xa5, 0xb4, 0x52, 0x5a, 0x9f, 0xab, 0x57, 0xbe, - 0xfb, 0xfb, 0x9d, 0x45, 0x66, 0xbb, 0xed, 0x76, 0x3b, 0x44, 0x51, 0xd4, 0x8c, 0x43, 0xcf, 0xef, - 0x38, 0x29, 0xd4, 0x7a, 0x04, 0x66, 0xa8, 0x99, 0x2a, 0xc7, 0x57, 0x4a, 0xeb, 0x27, 0xb7, 0x2e, - 0x6d, 0x2a, 0xf6, 0x6e, 0x93, 0x32, 0xa9, 0xcf, 0x7d, 0xf3, 0x9f, 0xe5, 0x63, 0x5f, 0xbf, 0x7e, - 0x71, 0xab, 0xe4, 0xb0, 0x55, 0x0f, 0xdf, 0x7b, 0xfe, 0xfa, 0xc5, 0xad, 0x94, 0xde, 0x1f, 0x5e, - 0xbf, 0xb8, 0xb5, 0x96, 0x0a, 0xfd, 0xa5, 0xa0, 0x80, 0x24, 0x71, 0xf5, 0x22, 0xb8, 0x20, 0x4d, - 0x39, 0x28, 0xea, 0x07, 0x7e, 0x84, 0xaa, 0x1d, 0x70, 0x0a, 0x7f, 0x8a, 0x50, 0xd8, 0x08, 0x11, - 0x8c, 0x91, 0x55, 0x01, 0x27, 0x5c, 0xfc, 0x2b, 0x08, 0xa9, 0x6e, 0x4e, 0x32, 0xc4, 0x5f, 0x7c, - 0x74, 0x88, 0xa1, 0x44, 0x81, 0x39, 0x27, 0x19, 0x5a, 0x8b, 0x60, 0x1a, 0x76, 0x3d, 0x18, 0x55, - 0xca, 0x64, 0x9e, 0x0e, 0x1e, 0xce, 0x63, 0x79, 0x93, 0xd5, 0xd5, 0x0b, 0xe0, 0xad, 0x0c, 0x23, - 0x2e, 0x41, 0x0f, 0x9c, 0xd9, 0x8d, 0x3a, 0x0d, 0x18, 0xb6, 0x9b, 0xee, 0x3e, 0xea, 0xa1, 0xfa, - 0xe0, 0xc8, 0x20, 0xc4, 0x5d, 0x50, 0x6e, 0x79, 0x6d, 0x66, 0xc1, 0x8b, 0x9b, 0xcc, 0xe6, 0xd8, - 0xd3, 0x36, 0x99, 0xa7, 0x6d, 0x36, 0x02, 0xcf, 0xaf, 0x4f, 0x61, 0xfb, 0x39, 0x18, 0x2b, 0xc9, - 0xb1, 0x05, 0x2a, 0x32, 0xbb, 0x44, 0x14, 0xeb, 0x3c, 0x98, 0xc1, 0x46, 0xfc, 0xb0, 0x4d, 0xb8, - 0x4e, 0x39, 0x6c, 0x54, 0xfd, 0x47, 0x09, 0x58, 0xc9, 0x22, 0x38, 0x44, 0x8d, 0xc0, 0x8f, 0x91, - 0x1f, 0x1b, 0xa4, 0x4c, 0x09, 0x1d, 0x17, 0x09, 0x91, 0x15, 0x74, 0x31, 0x31, 0xd5, 0xbc, 0x93, - 0x0c, 0xb1, 0x09, 0xfd, 0x20, 0x46, 0x51, 0x65, 0x8a, 0x9a, 0x90, 0x0c, 0x30, 0x1d, 0x18, 0xc6, - 0x5e, 0x14, 0x57, 0xa6, 0xc9, 0x34, 0x1b, 0x59, 0xab, 0xe0, 0x54, 0x0b, 0x76, 0xa1, 0xef, 0xa2, - 0x6d, 0xdf, 0xdd, 0x0f, 0xc2, 0xca, 0xcc, 0x4a, 0x69, 0x7d, 0xd6, 0xc9, 0x4e, 0x4a, 0x8a, 0xef, - 0x00, 0x7b, 0x54, 0x07, 0xae, 0xfa, 0x75, 0xb0, 0x00, 0xbd, 0xb0, 0x1d, 0x06, 0xfd, 0x46, 0x17, - 0x7a, 0x3d, 0x44, 0x4d, 0x30, 0xeb, 0x48, 0xb3, 0xd5, 0xdf, 0x80, 0x93, 0x8c, 0xca, 0x27, 0x81, - 0xd1, 0x5b, 0xee, 0x81, 0xa9, 0x61, 0x10, 0x23, 0xb6, 0x53, 0xcb, 0x4a, 0x5f, 0x6f, 0x7a, 0x7e, - 0xa7, 0x8b, 0x30, 0x21, 0x87, 0x80, 0x25, 0x89, 0x7f, 0x04, 0xce, 0x09, 0xbc, 0xc6, 0x16, 0xb5, - 0x47, 0x8e, 0x2e, 0x5e, 0xfe, 0xf3, 0x10, 0xfa, 0xd1, 0x1e, 0x0a, 0x27, 0xd8, 0x31, 0x1b, 0xcc, - 0x86, 0xc8, 0x45, 0xde, 0x10, 0x85, 0xcc, 0xbb, 0xf9, 0x58, 0x92, 0x96, 0x1e, 0x32, 0x91, 0x1d, - 0x77, 0xf1, 0xdf, 0x97, 0xc8, 0x29, 0xc3, 0xdf, 0x76, 0x02, 0xdf, 0x7c, 0xca, 0x74, 0x82, 0xbc, - 0x0b, 0x66, 0x60, 0x0f, 0xdf, 0x5d, 0x44, 0x8c, 0x02, 0xbe, 0xcf, 0xe0, 0xca, 0x63, 0x98, 0x4a, - 0xc2, 0x65, 0xfc, 0x5d, 0x09, 0x9c, 0x65, 0x5f, 0xb6, 0xc3, 0xf8, 0x30, 0x08, 0x0f, 0xb6, 0xdb, - 0xed, 0x09, 0xe4, 0x5c, 0x04, 0xd3, 0x5e, 0x0f, 0x76, 0x10, 0x73, 0x70, 0x3a, 0xc0, 0x74, 0xf6, - 0x06, 0xdd, 0xee, 0x76, 0x18, 0x13, 0x07, 0x9f, 0x75, 0x92, 0xa1, 0x24, 0xde, 0x25, 0x70, 0x71, - 0x44, 0x08, 0xe1, 0xa6, 0x38, 0x97, 0x7e, 0xf4, 0xa2, 0xb8, 0xb1, 0x0f, 0xfd, 0xce, 0x24, 0xb6, - 0x4c, 0x8f, 0x55, 0x59, 0x3c, 0x56, 0x92, 0x2c, 0x57, 0xc0, 0x25, 0x05, 0x3b, 0x2e, 0xcd, 0x0f, - 0xe9, 0x9d, 0x40, 0x63, 0x8e, 0x83, 0x3a, 0x5e, 0x14, 0x9b, 0x3c, 0x4c, 0x22, 0x7e, 0x99, 0x9e, - 0xc6, 0xec, 0x6a, 0x4e, 0xfb, 0x11, 0x58, 0x4c, 0xbf, 0xee, 0xa0, 0x70, 0x5c, 0xea, 0x4b, 0xe0, - 0xb2, 0x6a, 0x3d, 0xa7, 0xff, 0x5d, 0x09, 0x2c, 0xec, 0x46, 0x9d, 0x5d, 0x1c, 0x51, 0x1d, 0xd4, - 0x0f, 0xc2, 0xd8, 0x7c, 0xef, 0x93, 0xd0, 0xcb, 0xcd, 0x98, 0x0c, 0xad, 0x2a, 0x98, 0xef, 0x77, - 0xe1, 0x11, 0x6a, 0x63, 0x23, 0x45, 0xdb, 0x95, 0xf2, 0x4a, 0x79, 0x7d, 0xca, 0xc9, 0xcc, 0x49, - 0x98, 0x7a, 0x65, 0x6a, 0x04, 0x53, 0xb7, 0x1e, 0x80, 0x13, 0xc1, 0x20, 0x76, 0x83, 0x1e, 0x22, - 0xf7, 0xdc, 0xc2, 0xd6, 0x65, 0xe5, 0x75, 0xf1, 0x98, 0x62, 0x9c, 0x04, 0x2c, 0x29, 0x5d, 0x01, - 0xe7, 0xb3, 0x3a, 0x71, 0x75, 0x1d, 0x1a, 0x62, 0xa8, 0x39, 0x72, 0xe3, 0x9c, 0xc6, 0x6b, 0x24, - 0x6e, 0x36, 0x8d, 0x23, 0x22, 0x4d, 0xce, 0xef, 0x2b, 0x72, 0x15, 0x08, 0x92, 0xa0, 0x70, 0xbb, - 0xdf, 0x0f, 0x3c, 0x3f, 0x9e, 0x38, 0x79, 0x20, 0xf7, 0x10, 0x25, 0xc5, 0xa2, 0x2f, 0x1f, 0x3f, - 0x5c, 0xc8, 0x26, 0x06, 0xd5, 0xab, 0x60, 0x59, 0xc3, 0x9e, 0x4b, 0xf8, 0x75, 0x09, 0xcc, 0xef, - 0x46, 0x9d, 0x26, 0x8a, 0x73, 0xcd, 0x61, 0x81, 0x29, 0x1f, 0xf6, 0x10, 0xe3, 0x4a, 0x7e, 0xeb, - 0x0e, 0x90, 0xb5, 0x02, 0x4e, 0x46, 0x71, 0x10, 0x1e, 0x7d, 0x1a, 0x7a, 0x58, 0x50, 0x1a, 0xcb, - 0xc4, 0x29, 0xec, 0x0e, 0x38, 0xe4, 0x85, 0x5e, 0x6b, 0x10, 0x07, 0x61, 0x54, 0x99, 0x5e, 0x29, - 0xaf, 0xcf, 0x39, 0x99, 0x39, 0xc9, 0xd0, 0xe7, 0xc9, 0x59, 0xe0, 0x92, 0x72, 0x15, 0x10, 0xb9, - 0x53, 0xf1, 0x3c, 0x3e, 0xa1, 0xc6, 0xbb, 0x6a, 0x11, 0x4c, 0x47, 0x28, 0xe6, 0x1b, 0x4a, 0x07, - 0xc2, 0x3e, 0x97, 0x0d, 0xfb, 0x4c, 0x2f, 0xcc, 0x94, 0x0d, 0xe7, 0xbf, 0x4f, 0x9c, 0x8a, 0x7d, - 0x70, 0x50, 0x2f, 0x18, 0xa2, 0xef, 0x49, 0x04, 0xea, 0x6a, 0x19, 0x4e, 0x82, 0x14, 0x89, 0x75, - 0x52, 0x0b, 0x4e, 0x62, 0x0c, 0x0b, 0x4c, 0x0d, 0x22, 0x1e, 0xe3, 0xc8, 0x6f, 0xe5, 0x9d, 0x32, - 0xc2, 0x89, 0x4b, 0x72, 0x40, 0x9c, 0x3e, 0xfb, 0x7d, 0x42, 0xb3, 0xe4, 0x0b, 0x43, 0x5d, 0x5c, - 0xc5, 0x8c, 0xcb, 0xf3, 0x11, 0xb9, 0xe2, 0x9a, 0x28, 0xfe, 0x89, 0xe7, 0xc3, 0xae, 0xf7, 0x6c, - 0x6c, 0x31, 0x94, 0xd7, 0x8b, 0x40, 0x8f, 0x73, 0xda, 0x4b, 0x3c, 0xa1, 0x50, 0xe0, 0x54, 0xab, - 0xac, 0x0c, 0x9b, 0x3a, 0x3f, 0x50, 0xc4, 0xc6, 0x76, 0xa2, 0x6d, 0x13, 0x1f, 0xb6, 0x09, 0x25, - 0x20, 0x07, 0x35, 0x49, 0xe2, 0xc9, 0x40, 0x67, 0x83, 0x84, 0x0b, 0xe7, 0xff, 0x33, 0x92, 0x3d, - 0xd4, 0x83, 0x00, 0xc7, 0x99, 0x27, 0xd0, 0x3d, 0x30, 0xa7, 0xf1, 0x45, 0x0c, 0xde, 0x20, 0xb9, - 0x40, 0x96, 0xe4, 0xd8, 0x49, 0xe0, 0x1f, 0x69, 0xea, 0xde, 0x44, 0xdd, 0xee, 0xe3, 0xbd, 0xbd, - 0x02, 0xaf, 0x1c, 0x5d, 0xce, 0x70, 0x1f, 0x4c, 0xf7, 0x43, 0xcf, 0x45, 0x45, 0xd3, 0x2f, 0x8a, - 0x56, 0x46, 0x7d, 0x49, 0x18, 0x6e, 0xc3, 0x5f, 0x92, 0x84, 0x95, 0x7f, 0x35, 0x5b, 0x10, 0x5f, - 0xb5, 0x09, 0x92, 0x0b, 0x2b, 0x4e, 0x29, 0xd3, 0x53, 0x91, 0x38, 0xe7, 0xfb, 0xeb, 0xac, 0x89, - 0x72, 0x0f, 0xed, 0xb8, 0xac, 0x25, 0xad, 0xa5, 0x73, 0xfa, 0x97, 0x12, 0x7f, 0x00, 0x3a, 0x10, - 0xc7, 0xaf, 0x26, 0x8a, 0x27, 0xcb, 0x3b, 0xa9, 0x47, 0x95, 0x45, 0xa7, 0x7e, 0x17, 0xcc, 0x84, - 0x84, 0x28, 0x89, 0x45, 0x0b, 0x9a, 0x77, 0x48, 0xca, 0xdb, 0x61, 0x70, 0x75, 0xb0, 0x17, 0x45, - 0xe4, 0xf2, 0xff, 0xb9, 0x24, 0x66, 0x02, 0xc9, 0x74, 0x23, 0xe8, 0xf5, 0x3c, 0x93, 0x1e, 0x97, - 0xc1, 0x1c, 0xab, 0x57, 0x70, 0x55, 0xd2, 0x09, 0x1a, 0xee, 0x29, 0xa5, 0xf4, 0xd9, 0xc1, 0x5c, - 0x7f, 0x09, 0x80, 0x68, 0xd0, 0xe9, 0xa0, 0x28, 0xf6, 0x02, 0x9f, 0xc5, 0x58, 0x61, 0x46, 0x12, - 0xbd, 0x0a, 0x56, 0x74, 0xd2, 0x71, 0x15, 0xfe, 0xa6, 0x54, 0xc1, 0x41, 0x43, 0x04, 0xbb, 0x13, - 0xab, 0xf0, 0x03, 0x49, 0x85, 0x85, 0xad, 0x2b, 0x4a, 0xe3, 0x73, 0x76, 0xa9, 0x86, 0xe7, 0xc1, - 0x4c, 0x84, 0xdc, 0x10, 0xc5, 0x4c, 0x3b, 0x36, 0x2a, 0xa2, 0x19, 0x15, 0x9a, 0x6b, 0xf6, 0x94, - 0x3e, 0x6a, 0x38, 0x26, 0x86, 0xe1, 0xc4, 0x9b, 0xa2, 0x7e, 0xaa, 0x64, 0x48, 0x73, 0xbe, 0xff, - 0xa2, 0x75, 0x23, 0x92, 0x83, 0x35, 0x02, 0x7f, 0xcf, 0x0b, 0x7b, 0x13, 0x65, 0xd8, 0x42, 0x66, - 0x5c, 0x1e, 0x23, 0x33, 0xb6, 0x7e, 0x0c, 0x00, 0x7e, 0x50, 0xd3, 0x04, 0x9b, 0xe4, 0xdc, 0x05, - 0xde, 0xe0, 0xc2, 0x12, 0xe5, 0xe5, 0x21, 0x6a, 0xc3, 0x35, 0x6d, 0x12, 0x0b, 0x3f, 0x09, 0x83, - 0x3d, 0xaf, 0x8b, 0x48, 0x75, 0x61, 0x92, 0xe3, 0xab, 0xb4, 0x6d, 0x96, 0x28, 0xe7, 0xf8, 0x0b, - 0x92, 0xf2, 0xb0, 0x8f, 0x9f, 0xa2, 0x56, 0xe4, 0xc5, 0xc8, 0xcc, 0xb4, 0x02, 0x4e, 0x1c, 0x52, - 0x5c, 0x52, 0xb9, 0x62, 0x43, 0x65, 0x8a, 0x33, 0x42, 0x99, 0x73, 0xfe, 0x29, 0xb9, 0xa9, 0xd8, - 0xf7, 0xba, 0x17, 0x98, 0xb9, 0x9e, 0x01, 0xe5, 0x96, 0x17, 0x30, 0x8e, 0xf8, 0xa7, 0xf2, 0x52, - 0xc9, 0x50, 0xe3, 0x9c, 0x5a, 0xe4, 0x4a, 0x16, 0x62, 0xdf, 0xe3, 0x3e, 0xf2, 0x0d, 0xbc, 0x56, - 0xc1, 0xa9, 0x56, 0x0a, 0xe6, 0xd6, 0xcd, 0x4e, 0x4a, 0xfc, 0x1f, 0x90, 0x6b, 0x59, 0xe2, 0xc1, - 0x03, 0x2c, 0xe6, 0x45, 0xb6, 0x26, 0xaa, 0x94, 0xc8, 0x93, 0x2d, 0x19, 0x56, 0x9f, 0x97, 0x48, - 0x16, 0x20, 0x2c, 0x2c, 0x50, 0x5f, 0x29, 0x24, 0xe0, 0x18, 0xd5, 0x96, 0x15, 0xb0, 0xa4, 0x96, - 0x81, 0x9b, 0x70, 0x98, 0x64, 0xc6, 0xcd, 0xf4, 0xf9, 0x61, 0xde, 0x30, 0x75, 0x5e, 0x24, 0xbd, - 0x69, 0xca, 0x23, 0x6f, 0x1a, 0x5d, 0x9e, 0x9c, 0xe5, 0x2b, 0x54, 0x5c, 0x4f, 0xf3, 0x2c, 0xce, - 0x8b, 0xe2, 0x49, 0x44, 0x2a, 0x56, 0xbf, 0x48, 0x22, 0x7e, 0xca, 0x88, 0xcb, 0xf0, 0x05, 0x0f, - 0xb9, 0xf8, 0xe0, 0xef, 0x0e, 0xba, 0xb1, 0x67, 0x10, 0xe2, 0x3e, 0x98, 0x1e, 0x92, 0xda, 0xe4, - 0xf1, 0x62, 0xf7, 0x08, 0x45, 0x4b, 0xd2, 0xd4, 0x79, 0x08, 0xe5, 0x2c, 0xc7, 0x4e, 0xe6, 0xfe, - 0x4a, 0x5f, 0xad, 0xe4, 0x1e, 0xca, 0x39, 0x10, 0x15, 0x70, 0x82, 0x94, 0x18, 0xc2, 0xed, 0xe4, - 0xc8, 0xb3, 0x61, 0xfa, 0xa5, 0xce, 0xac, 0x97, 0x0c, 0xf1, 0x4e, 0x33, 0xd0, 0x0e, 0x72, 0x0f, - 0x58, 0xa5, 0x42, 0x9c, 0x4a, 0x11, 0x75, 0x82, 0x98, 0x16, 0x11, 0x64, 0x4a, 0x52, 0xfa, 0x6d, - 0xe2, 0x83, 0x5c, 0x5e, 0xf1, 0x70, 0x25, 0x17, 0x7e, 0x29, 0x73, 0xe1, 0x57, 0x61, 0xf2, 0xaa, - 0xfd, 0x08, 0xf6, 0xd0, 0x24, 0xbe, 0x91, 0x3c, 0xd7, 0xcb, 0xe9, 0x73, 0x5d, 0xf7, 0xa2, 0x65, - 0x2c, 0x84, 0x32, 0x89, 0x95, 0x5e, 0x48, 0xdb, 0x5d, 0x0f, 0x46, 0xb9, 0x02, 0xd0, 0xb2, 0xff, - 0x71, 0x7d, 0xd9, 0x9f, 0xe6, 0x7e, 0x12, 0x4d, 0x81, 0x23, 0xb6, 0xcf, 0xfb, 0x30, 0xec, 0x1e, - 0x6d, 0xbb, 0x2e, 0x8a, 0xa2, 0x0f, 0xfd, 0xa1, 0x97, 0x57, 0x8d, 0x18, 0xa4, 0x1d, 0x08, 0xfd, - 0x3b, 0x75, 0x84, 0xa6, 0x10, 0xb0, 0xf0, 0xf9, 0xfb, 0x0c, 0xc1, 0xee, 0x51, 0x23, 0xf0, 0x7d, - 0xe4, 0xe6, 0x44, 0x8e, 0x67, 0x18, 0xc9, 0xac, 0x3c, 0xe7, 0x24, 0x43, 0xe5, 0x59, 0x13, 0x89, - 0x72, 0x7e, 0xac, 0x79, 0xf0, 0x7e, 0xd2, 0x79, 0x9a, 0xa8, 0xe0, 0x62, 0x83, 0xd9, 0x76, 0x08, - 0x0f, 0xbb, 0xf4, 0xcc, 0x63, 0xaf, 0xe3, 0x63, 0xeb, 0x11, 0x00, 0xa4, 0x43, 0x84, 0x62, 0x14, - 0x26, 0xb1, 0x7e, 0x49, 0xdf, 0x5b, 0xc2, 0x30, 0x47, 0x58, 0x91, 0x3e, 0x3d, 0xa7, 0xf5, 0x4f, - 0x4f, 0xba, 0x8d, 0x92, 0x0e, 0x5c, 0x45, 0x9f, 0x3c, 0x3e, 0xf9, 0xd7, 0x9d, 0xc0, 0xfc, 0x78, - 0xe0, 0x4d, 0xb8, 0xf4, 0xf1, 0x20, 0x4c, 0x15, 0x78, 0xfd, 0xd3, 0x67, 0xa8, 0xc0, 0x4f, 0xae, - 0x62, 0xa7, 0x82, 0x76, 0x83, 0x08, 0xfd, 0xbf, 0xa5, 0xc1, 0x91, 0xfd, 0x90, 0xa5, 0xde, 0xb3, - 0x0e, 0xfe, 0xa9, 0x4c, 0x5f, 0xb2, 0x42, 0x70, 0x11, 0x3f, 0x26, 0xae, 0x22, 0xf8, 0xe7, 0x8e, - 0x17, 0x79, 0x6f, 0xee, 0xf6, 0xb4, 0x22, 0xa2, 0x22, 0xcb, 0x39, 0x77, 0x01, 0x60, 0x57, 0x70, - 0x1d, 0xfa, 0x13, 0x57, 0x22, 0x75, 0x19, 0x9c, 0x5c, 0x85, 0x5c, 0xe4, 0x3d, 0xb3, 0x3a, 0xe4, - 0x37, 0x5f, 0x35, 0x22, 0x35, 0x7c, 0x41, 0xcc, 0x0f, 0x42, 0xf8, 0x06, 0x65, 0xd1, 0x45, 0x30, - 0x8d, 0x6d, 0x41, 0x43, 0xd3, 0x9c, 0x43, 0x07, 0x23, 0xa2, 0xd0, 0x4a, 0xbe, 0xcc, 0x54, 0x72, - 0x5f, 0x1c, 0x28, 0xdd, 0xd8, 0x1b, 0xe2, 0xc3, 0xf9, 0x06, 0xe2, 0x28, 0xca, 0x1a, 0xb2, 0x38, - 0xbc, 0x8a, 0x92, 0xf0, 0xe3, 0x92, 0x1c, 0xf2, 0xee, 0x4c, 0x23, 0xe8, 0x1f, 0x85, 0x5e, 0x67, - 0x3f, 0x26, 0xb1, 0xef, 0x7b, 0xdf, 0xac, 0x65, 0x70, 0x45, 0xc9, 0x38, 0x91, 0x6c, 0xeb, 0xf9, - 0x6d, 0x50, 0xde, 0x8d, 0x3a, 0x56, 0x0b, 0xcc, 0x67, 0x9a, 0xe1, 0xab, 0xca, 0x8b, 0x46, 0xea, - 0x36, 0xdb, 0x1b, 0x45, 0x50, 0x3c, 0x3a, 0xfe, 0x0a, 0x00, 0xa1, 0x21, 0x5d, 0xd5, 0xae, 0xe5, - 0x18, 0xfb, 0x56, 0x3e, 0x86, 0x53, 0x47, 0xe0, 0x54, 0xb6, 0xd9, 0xbc, 0xa6, 0x5b, 0x9c, 0x81, - 0xd9, 0x77, 0x0a, 0xc1, 0x38, 0x9b, 0x03, 0x70, 0x5a, 0xee, 0x17, 0xdf, 0x30, 0x52, 0x48, 0x81, - 0x76, 0xad, 0x20, 0x90, 0x33, 0xfb, 0x04, 0xcc, 0xf2, 0x96, 0xec, 0x8a, 0x69, 0x31, 0x46, 0xd8, - 0xeb, 0x79, 0x08, 0x4e, 0xb7, 0x05, 0xe6, 0x33, 0xfd, 0xd3, 0x55, 0xd3, 0xca, 0x04, 0xa5, 0xdf, - 0x6d, 0x55, 0x73, 0x14, 0xef, 0xb6, 0xd0, 0x18, 0xad, 0x9a, 0xd6, 0x52, 0x8c, 0x7e, 0xb7, 0x47, - 0xdb, 0x9a, 0xd6, 0x3e, 0x58, 0x90, 0x5a, 0x9a, 0xd7, 0x4d, 0xab, 0x53, 0x9c, 0xbd, 0x59, 0x0c, - 0xc7, 0x39, 0xf9, 0xe0, 0xcc, 0x48, 0x6b, 0x72, 0x3d, 0x87, 0x06, 0x47, 0xda, 0x6f, 0x17, 0x45, - 0x66, 0x1c, 0x4c, 0x6a, 0x3e, 0xea, 0x1d, 0x2c, 0x0b, 0x34, 0x38, 0x98, 0xba, 0x21, 0x69, 0x7d, - 0x01, 0xce, 0x8e, 0x76, 0x23, 0x6f, 0xe6, 0x50, 0x49, 0xa1, 0xf6, 0xdd, 0xc2, 0x50, 0xce, 0xf2, - 0x73, 0x70, 0x52, 0xec, 0x4f, 0x5e, 0xd3, 0x51, 0x10, 0x40, 0xf6, 0xed, 0x02, 0xa0, 0xcc, 0x45, - 0x90, 0x69, 0x09, 0xae, 0xe5, 0x08, 0xc9, 0x2e, 0x9b, 0x3b, 0x85, 0x60, 0x9c, 0xcd, 0x33, 0xb0, - 0xa8, 0xec, 0x04, 0x6e, 0x14, 0x90, 0x95, 0xa3, 0xed, 0x77, 0xc6, 0x41, 0x73, 0xde, 0x4f, 0xc1, - 0x5c, 0xda, 0xe2, 0xbb, 0xaa, 0x23, 0xc1, 0x21, 0xf6, 0xcd, 0x5c, 0x88, 0x78, 0x6c, 0x85, 0xde, - 0x5b, 0xd5, 0xb4, 0x90, 0x62, 0xf4, 0xc7, 0x76, 0xb4, 0xb9, 0x86, 0xf7, 0x26, 0xdb, 0x59, 0x5b, - 0xcb, 0x59, 0x4c, 0x61, 0xfa, 0xbd, 0x51, 0x76, 0xcf, 0xb0, 0x5b, 0x8f, 0xb6, 0xce, 0x8c, 0x46, - 0xc8, 0x40, 0xf5, 0x6e, 0xad, 0x6d, 0x93, 0x61, 0x77, 0x50, 0xf6, 0xc8, 0x36, 0x8a, 0x91, 0x62, - 0x7a, 0xbe, 0x33, 0x0e, 0x5a, 0x3c, 0x52, 0x62, 0x3f, 0xec, 0x9a, 0x81, 0x48, 0x02, 0xd2, 0x1f, - 0x29, 0x45, 0x27, 0x8c, 0x6d, 0x9b, 0x70, 0xd9, 0x9a, 0xb6, 0x4d, 0xb8, 0x6b, 0xef, 0x14, 0x82, - 0x49, 0x7a, 0xf0, 0x4e, 0x97, 0x49, 0x8f, 0x04, 0x64, 0xd4, 0x43, 0xee, 0x66, 0xe1, 0xa8, 0x21, - 0xb5, 0xb2, 0xb4, 0x51, 0x23, 0x8b, 0xd3, 0x47, 0x0d, 0x4d, 0x1f, 0xeb, 0x00, 0x9c, 0x96, 0x7b, - 0x53, 0x37, 0xf4, 0x92, 0x66, 0x80, 0xfa, 0x5b, 0x5c, 0xd3, 0x60, 0xc2, 0xe1, 0x3c, 0xd3, 0x5d, - 0x5a, 0xcd, 0x25, 0x80, 0x55, 0xda, 0x28, 0x82, 0x52, 0x2a, 0xc4, 0x5c, 0x3b, 0x5f, 0x21, 0xe6, - 0xd5, 0xb5, 0x82, 0x40, 0x39, 0x97, 0x4b, 0xfb, 0x46, 0xc6, 0x5c, 0x8e, 0xc3, 0xcc, 0xb9, 0xdc, - 0x48, 0x8b, 0xc7, 0xfa, 0x0a, 0xbc, 0xa5, 0x6e, 0xef, 0xdc, 0xc9, 0x8d, 0xa3, 0x22, 0xdc, 0xbe, - 0x3f, 0x16, 0xdc, 0xc0, 0x9e, 0xb5, 0x66, 0x8a, 0xb2, 0xa7, 0xf0, 0xc2, 0xec, 0xb3, 0x3d, 0x14, - 0x92, 0x42, 0x65, 0x1b, 0x28, 0xd7, 0xf3, 0x09, 0x61, 0x9c, 0x21, 0x85, 0x52, 0x76, 0x4d, 0xb0, - 0x7f, 0x66, 0x3a, 0x26, 0xab, 0xc6, 0xa0, 0xc7, 0x50, 0xf6, 0x46, 0x11, 0x94, 0xa8, 0x8d, 0xd4, - 0xac, 0xd0, 0x6a, 0x93, 0xc5, 0xe9, 0xb5, 0x51, 0xf7, 0x29, 0x70, 0x70, 0x19, 0x6d, 0x52, 0xdc, - 0xcc, 0x21, 0x92, 0x42, 0xf5, 0xc1, 0x45, 0xdb, 0xa0, 0xc0, 0xe7, 0x21, 0xdb, 0x9d, 0x58, 0xcb, - 0xa1, 0x41, 0x61, 0xfa, 0xf3, 0xa0, 0xec, 0x4e, 0xe0, 0x33, 0x2e, 0xb7, 0x26, 0x6e, 0x14, 0xb8, - 0xf7, 0x30, 0x50, 0x7f, 0xc6, 0x75, 0x8d, 0x88, 0x43, 0x70, 0x4e, 0xd5, 0x6a, 0xb8, 0x5d, 0x80, - 0x0e, 0x7f, 0x91, 0xdc, 0x1b, 0x03, 0x2c, 0x25, 0x07, 0x52, 0xf7, 0xe0, 0x66, 0x5e, 0x18, 0xe1, - 0x50, 0x63, 0x72, 0xa0, 0xee, 0x0d, 0xd0, 0x0b, 0x5a, 0x68, 0x0c, 0xac, 0x9a, 0xe3, 0x22, 0x45, - 0x99, 0x2e, 0xe8, 0xd1, 0xda, 0x7f, 0x72, 0x67, 0xa6, 0x85, 0xff, 0xb5, 0xbc, 0xe7, 0x20, 0x81, - 0x99, 0xef, 0xcc, 0xd1, 0x9a, 0xfe, 0x53, 0x30, 0x97, 0xd6, 0xe9, 0xaf, 0x1a, 0x8f, 0x28, 0xf1, - 0x8b, 0x9b, 0xb9, 0x10, 0x29, 0xf5, 0x4c, 0x0a, 0xe4, 0xa6, 0xd4, 0x93, 0x61, 0x8c, 0xa9, 0xa7, - 0x54, 0x05, 0xc7, 0xce, 0x2d, 0x97, 0xc0, 0x6f, 0xe4, 0x1c, 0x8f, 0x04, 0xa8, 0x77, 0x6e, 0x4d, - 0x01, 0x1c, 0xfb, 0xd8, 0x68, 0xf5, 0x5b, 0x6b, 0x8a, 0x11, 0xa8, 0xde, 0xc7, 0xb4, 0xf5, 0x6f, - 0xec, 0x63, 0x99, 0xe2, 0xb7, 0xd6, 0xc7, 0x44, 0x94, 0xde, 0xc7, 0x54, 0x35, 0x6f, 0x6c, 0x43, - 0xb9, 0xde, 0xad, 0xb5, 0xa1, 0x04, 0xd4, 0xdb, 0x50, 0x53, 0x7d, 0xc6, 0xd9, 0xa0, 0x58, 0x7a, - 0xbe, 0x96, 0xbb, 0x7e, 0x27, 0xd0, 0x67, 0x83, 0x8a, 0xa2, 0x32, 0x0e, 0x19, 0x52, 0x41, 0xf9, - 0x7a, 0xbe, 0x8c, 0x18, 0xa7, 0x0f, 0x19, 0xea, 0xda, 0x30, 0x7e, 0x1c, 0x28, 0x0b, 0xc3, 0x1b, - 0x05, 0xb6, 0x99, 0xa3, 0xf5, 0x8f, 0x03, 0x53, 0x75, 0xd8, 0x6a, 0x82, 0x13, 0x49, 0x69, 0x78, - 0xd9, 0x74, 0xd4, 0xeb, 0xd0, 0xb7, 0x6f, 0xe4, 0x00, 0xc4, 0xa2, 0xc8, 0x48, 0xad, 0x77, 0xbd, - 0x80, 0x78, 0x04, 0xa9, 0x2f, 0x8a, 0xe8, 0x4a, 0xb9, 0xec, 0x65, 0xc0, 0xeb, 0xb8, 0xa6, 0x97, - 0x41, 0x02, 0x32, 0xbe, 0x0c, 0xe4, 0x0a, 0xad, 0x15, 0x03, 0x4b, 0x51, 0x9e, 0x35, 0x56, 0xa4, - 0xb2, 0x58, 0x7b, 0xab, 0x38, 0x36, 0xe1, 0x6a, 0x4f, 0xff, 0xf6, 0xf5, 0x8b, 0x5b, 0xa5, 0xba, - 0xf3, 0xcd, 0xcb, 0xa5, 0xd2, 0xb7, 0x2f, 0x97, 0x4a, 0xff, 0x7d, 0xb9, 0x54, 0xfa, 0xd3, 0xab, - 0xa5, 0x63, 0xdf, 0xbe, 0x5a, 0x3a, 0xf6, 0xef, 0x57, 0x4b, 0xc7, 0x3e, 0x7b, 0xaf, 0xe3, 0xc5, - 0xfb, 0x83, 0xd6, 0xa6, 0x1b, 0xf4, 0x6a, 0x3b, 0xc8, 0x45, 0x7e, 0x1c, 0xc2, 0x2e, 0x26, 0xf8, - 0x01, 0xec, 0xa1, 0x9a, 0xfa, 0xaf, 0x84, 0xe2, 0xa3, 0x3e, 0x8a, 0x5a, 0x33, 0xe4, 0x0f, 0x9d, - 0xee, 0xfd, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x2d, 0x94, 0xb8, 0x67, 0x36, 0x00, 0x00, + // 2992 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5b, 0x4f, 0x6f, 0x1b, 0xc7, + 0x15, 0x37, 0x45, 0x51, 0x7f, 0xc6, 0xb2, 0x9c, 0xac, 0x15, 0x9b, 0x5e, 0xdb, 0x92, 0x4c, 0x4b, + 0xb6, 0x6c, 0xcb, 0x52, 0x2c, 0xc7, 0x4e, 0x6a, 0xb4, 0x2e, 0x44, 0xc9, 0x0d, 0x02, 0x54, 0xb1, + 0xbb, 0x6c, 0x92, 0x3a, 0x2d, 0x1a, 0x0c, 0x97, 0x23, 0x6a, 0x2b, 0x72, 0x97, 0xd9, 0x5d, 0x52, + 0x91, 0x81, 0x00, 0x85, 0x7b, 0x29, 0xda, 0x4b, 0x3f, 0x40, 0x2f, 0xbd, 0xe5, 0x54, 0x18, 0x68, + 0x3f, 0x41, 0x7b, 0xc9, 0xa1, 0x87, 0x20, 0xa7, 0x9e, 0x8a, 0xc2, 0x3e, 0x18, 0xed, 0xa7, 0x28, + 0xe6, 0xcf, 0xce, 0xce, 0x0e, 0x67, 0x66, 0x97, 0x74, 0x73, 0x49, 0x38, 0xb3, 0xbf, 0x79, 0xef, + 0xcd, 0x9b, 0xf7, 0xe6, 0xbd, 0x79, 0xcf, 0x02, 0x17, 0x5d, 0x18, 0xb6, 0xdc, 0x03, 0xe8, 0xf9, + 0x9b, 0xe9, 0xaf, 0xf8, 0x8b, 0x8d, 0x5e, 0x18, 0xc4, 0x81, 0x75, 0x86, 0xcf, 0x6d, 0xf0, 0x5f, + 0xf6, 0x9b, 0xb0, 0xeb, 0xf9, 0xc1, 0x26, 0xf9, 0x2f, 0xc5, 0xd9, 0xe7, 0xdc, 0x20, 0xea, 0x06, + 0xd1, 0x66, 0x37, 0x6a, 0x6f, 0x0e, 0x6e, 0xe3, 0xff, 0xb1, 0x0f, 0xe7, 0xe9, 0x87, 0xcf, 0xc8, + 0x68, 0x93, 0x0e, 0xd8, 0xa7, 0x85, 0x76, 0xd0, 0x0e, 0xe8, 0x3c, 0xfe, 0xc5, 0x66, 0x97, 0x55, + 0xf2, 0xf4, 0x60, 0x08, 0xbb, 0xc9, 0xba, 0x45, 0xc6, 0xab, 0x09, 0x23, 0xb4, 0x39, 0xb8, 0xdd, + 0x44, 0x31, 0xbc, 0xbd, 0xe9, 0x06, 0x9e, 0x6f, 0xa2, 0x30, 0x08, 0x62, 0xcf, 0x4f, 0x84, 0x5a, + 0x52, 0x21, 0xba, 0x30, 0x76, 0x0f, 0x18, 0xe0, 0xb2, 0x0a, 0xe0, 0x06, 0x7d, 0xdf, 0xf5, 0x3a, + 0x0c, 0x72, 0x45, 0x05, 0x41, 0x3e, 0x06, 0xc5, 0x28, 0xe4, 0xa2, 0xaa, 0xe8, 0xc0, 0xb0, 0x65, + 0x22, 0x42, 0x36, 0x8b, 0x38, 0x91, 0xda, 0xdf, 0x4b, 0xe0, 0xf4, 0x5e, 0xd4, 0xfe, 0xa8, 0xd7, + 0x82, 0x31, 0x7a, 0x4c, 0x34, 0x61, 0xdd, 0x03, 0xb3, 0xb0, 0x1f, 0x1f, 0x04, 0xa1, 0x17, 0x1f, + 0x57, 0x4b, 0xcb, 0xa5, 0xb5, 0xd9, 0x7a, 0xf5, 0xdb, 0xbf, 0xde, 0x5a, 0x60, 0x0a, 0xde, 0x6e, + 0xb5, 0x42, 0x14, 0x45, 0x8d, 0x38, 0xf4, 0xfc, 0xb6, 0x93, 0x42, 0xad, 0x07, 0x60, 0x8a, 0xea, + 0xb2, 0x3a, 0xb1, 0x5c, 0x5a, 0x3b, 0xb9, 0x75, 0x61, 0x43, 0x71, 0xc0, 0x1b, 0x94, 0x49, 0x7d, + 0xf6, 0xeb, 0x7f, 0x2d, 0x9d, 0xf8, 0xea, 0xd5, 0xf3, 0x1b, 0x25, 0x87, 0xad, 0xba, 0xff, 0xde, + 0xb3, 0x57, 0xcf, 0x6f, 0xa4, 0xf4, 0x7e, 0xf7, 0xea, 0xf9, 0x8d, 0xd5, 0x54, 0xf2, 0x2f, 0x84, + 0x5d, 0x48, 0x12, 0xd7, 0xce, 0x83, 0x73, 0xd2, 0x94, 0x83, 0xa2, 0x5e, 0xe0, 0x47, 0xa8, 0xd6, + 0x06, 0xa7, 0xf0, 0xa7, 0x08, 0x85, 0x3b, 0x21, 0x82, 0x31, 0xb2, 0xaa, 0x60, 0xda, 0xc5, 0xbf, + 0x82, 0x90, 0xee, 0xcd, 0x49, 0x86, 0xf8, 0x8b, 0x8f, 0x8e, 0x30, 0x94, 0x6c, 0x60, 0xd6, 0x49, + 0x86, 0xd6, 0x02, 0xa8, 0xc0, 0x8e, 0x07, 0xa3, 0x6a, 0x99, 0xcc, 0xd3, 0xc1, 0xfd, 0x39, 0x2c, + 0x6f, 0xb2, 0xba, 0x76, 0x0e, 0xbc, 0x95, 0x61, 0xc4, 0x25, 0xe8, 0x82, 0x37, 0xf6, 0xa2, 0xf6, + 0x0e, 0x0c, 0x5b, 0x0d, 0xf7, 0x00, 0x75, 0x51, 0xbd, 0x7f, 0x6c, 0x10, 0xe2, 0x36, 0x28, 0x37, + 0xbd, 0x16, 0xd3, 0xe0, 0xf9, 0x0d, 0xa6, 0x73, 0x6c, 0x8e, 0x1b, 0xcc, 0x1c, 0x37, 0x76, 0x02, + 0xcf, 0xaf, 0x4f, 0x62, 0xfd, 0x39, 0x18, 0x2b, 0xc9, 0xb1, 0x05, 0xaa, 0x32, 0xbb, 0x44, 0x14, + 0xeb, 0x2c, 0x98, 0xc2, 0x4a, 0xfc, 0xa0, 0x45, 0xb8, 0x4e, 0x3a, 0x6c, 0x54, 0x7b, 0x36, 0x01, + 0xac, 0x64, 0x11, 0x1c, 0xa0, 0x9d, 0xc0, 0x8f, 0x91, 0x1f, 0x1b, 0xa4, 0x4c, 0x09, 0x4d, 0x88, + 0x84, 0xc8, 0x0a, 0xba, 0x98, 0xa8, 0x6a, 0xce, 0x49, 0x86, 0x58, 0x85, 0x7e, 0x10, 0xa3, 0xa8, + 0x3a, 0x49, 0x55, 0x48, 0x06, 0x98, 0x0e, 0x0c, 0x63, 0x2f, 0x8a, 0xab, 0x15, 0x32, 0xcd, 0x46, + 0xd6, 0x0a, 0x38, 0xd5, 0x84, 0x1d, 0xe8, 0xbb, 0x68, 0xdb, 0x77, 0x0f, 0x82, 0xb0, 0x3a, 0xb5, + 0x5c, 0x5a, 0x9b, 0x71, 0xb2, 0x93, 0xd6, 0x03, 0x00, 0xb8, 0x3d, 0x47, 0xd5, 0xe9, 0xe5, 0xf2, + 0xda, 0xc9, 0xad, 0x45, 0xbd, 0xd1, 0x61, 0x98, 0x23, 0xac, 0x90, 0x14, 0xb7, 0x0b, 0xec, 0x61, + 0x1d, 0x70, 0xd5, 0x5d, 0x05, 0xf3, 0xd0, 0x0b, 0x5b, 0x61, 0xd0, 0xdb, 0xe9, 0x40, 0xaf, 0x8b, + 0xa8, 0x0a, 0x67, 0x1c, 0x69, 0xb6, 0xf6, 0x2b, 0x70, 0x92, 0x51, 0xf9, 0x38, 0x30, 0x5a, 0xdb, + 0x1d, 0x30, 0x39, 0x08, 0x62, 0xc4, 0x4e, 0x7a, 0x49, 0x29, 0x76, 0xc3, 0xf3, 0xdb, 0x1d, 0x84, + 0x09, 0x39, 0x04, 0x2c, 0x49, 0xfc, 0x03, 0x70, 0x46, 0xe0, 0x35, 0xb2, 0xa8, 0x5d, 0xe2, 0xfa, + 0x78, 0xf9, 0x4f, 0x43, 0xe8, 0x47, 0xfb, 0x28, 0x1c, 0xe3, 0xc4, 0x6d, 0x30, 0x13, 0x22, 0x17, + 0x79, 0x03, 0x14, 0x32, 0xef, 0xe0, 0x63, 0x49, 0x5a, 0xea, 0xa4, 0x22, 0x3b, 0xee, 0x22, 0xbf, + 0x2d, 0x11, 0x2f, 0xc5, 0xdf, 0x76, 0x03, 0xdf, 0xec, 0xa5, 0x3a, 0x41, 0xde, 0x05, 0x53, 0xb0, + 0x8b, 0x2f, 0x48, 0x22, 0x46, 0x01, 0xdf, 0x61, 0x70, 0xa5, 0x1b, 0xa7, 0x92, 0x70, 0x19, 0x7f, + 0x53, 0x02, 0x6f, 0xb2, 0x2f, 0xdb, 0x61, 0x7c, 0x14, 0x84, 0x87, 0xdb, 0xad, 0xd6, 0x18, 0x72, + 0x2e, 0x80, 0x8a, 0xd7, 0x85, 0x6d, 0xc4, 0x1c, 0x84, 0x0e, 0x30, 0x9d, 0xfd, 0x7e, 0xa7, 0xb3, + 0x1d, 0xc6, 0xc4, 0x41, 0x66, 0x9c, 0x64, 0x28, 0x89, 0x77, 0x01, 0x9c, 0x1f, 0x12, 0x42, 0xb8, + 0x69, 0xce, 0xa4, 0x1f, 0xbd, 0x28, 0xde, 0x39, 0x80, 0x7e, 0x7b, 0x1c, 0x5d, 0xa6, 0x6e, 0x59, + 0x16, 0xdd, 0x52, 0x92, 0xe5, 0x12, 0xb8, 0xa0, 0x60, 0xc7, 0xa5, 0xf9, 0x3e, 0xbd, 0x53, 0x68, + 0x60, 0x73, 0x50, 0xdb, 0x8b, 0x62, 0x93, 0x85, 0x49, 0xc4, 0x2f, 0x52, 0x6f, 0xcc, 0xae, 0xe6, + 0xb4, 0x1f, 0x80, 0x85, 0xf4, 0xeb, 0x2e, 0x0a, 0x47, 0xa5, 0xbe, 0x08, 0x2e, 0xaa, 0xd6, 0x73, + 0xfa, 0xdf, 0x96, 0xc0, 0xfc, 0x5e, 0xd4, 0xde, 0xc3, 0x61, 0xdb, 0x41, 0xbd, 0x20, 0x8c, 0xcd, + 0x71, 0x83, 0xc4, 0x77, 0xae, 0xc6, 0x64, 0x68, 0xd5, 0xc0, 0x5c, 0xaf, 0x03, 0x8f, 0x51, 0x0b, + 0x2b, 0x29, 0xda, 0xae, 0x96, 0x97, 0xcb, 0x6b, 0x93, 0x4e, 0x66, 0x4e, 0xc2, 0xd4, 0xab, 0x93, + 0x43, 0x98, 0xba, 0x75, 0x0f, 0x4c, 0x07, 0xfd, 0xd8, 0x0d, 0xba, 0x88, 0xdc, 0x93, 0xf3, 0x5b, + 0x17, 0x95, 0xd7, 0xc5, 0x23, 0x8a, 0x71, 0x12, 0xb0, 0xb4, 0xe9, 0x2a, 0x38, 0x9b, 0xdd, 0x13, + 0xdf, 0xae, 0x43, 0x43, 0x14, 0x55, 0x47, 0x6e, 0x9c, 0xd4, 0x58, 0x8d, 0xc4, 0xcd, 0xa6, 0x71, + 0x48, 0xa4, 0xc9, 0xf9, 0x7d, 0x49, 0xae, 0x02, 0x41, 0x12, 0x14, 0x6e, 0xf7, 0x7a, 0x81, 0xe7, + 0xc7, 0x63, 0x27, 0x1f, 0xe4, 0x1e, 0xa2, 0xa4, 0x58, 0xf4, 0xe6, 0xe3, 0xfb, 0xf3, 0xd9, 0xc4, + 0xa2, 0x76, 0x19, 0x2c, 0x69, 0xd8, 0x73, 0x09, 0xbf, 0x2a, 0x81, 0xb9, 0xbd, 0xa8, 0xdd, 0x40, + 0x71, 0xae, 0x3a, 0x2c, 0x30, 0xe9, 0xc3, 0x2e, 0x62, 0x5c, 0xc9, 0x6f, 0x9d, 0x03, 0x59, 0xcb, + 0xe0, 0x64, 0x14, 0x07, 0xe1, 0xf1, 0x27, 0xa1, 0x87, 0x05, 0xa5, 0xb1, 0x50, 0x9c, 0xc2, 0xe6, + 0x80, 0x43, 0x66, 0xe8, 0x35, 0xfb, 0x71, 0x10, 0x46, 0xd5, 0xca, 0x72, 0x79, 0x6d, 0xd6, 0xc9, + 0xcc, 0x49, 0x8a, 0x3e, 0x4b, 0x7c, 0x81, 0x4b, 0xca, 0xb7, 0x80, 0xc8, 0x9d, 0x8a, 0xe7, 0xb1, + 0x87, 0x1a, 0xef, 0xaa, 0x05, 0x50, 0x89, 0x50, 0xcc, 0x0f, 0x94, 0x0e, 0x84, 0x73, 0x2e, 0x1b, + 0xce, 0x99, 0x5e, 0x98, 0x29, 0x1b, 0xce, 0xff, 0x80, 0x18, 0x15, 0xfb, 0xe0, 0xa0, 0x6e, 0x30, + 0x40, 0xdf, 0x91, 0x08, 0xd4, 0xd4, 0x32, 0x9c, 0x04, 0x29, 0x12, 0xed, 0xa4, 0x1a, 0x1c, 0x47, + 0x19, 0x16, 0x98, 0xec, 0x47, 0x3c, 0xc6, 0x91, 0xdf, 0xca, 0x3b, 0x65, 0x88, 0x13, 0x97, 0xe4, + 0x90, 0x18, 0x7d, 0xf6, 0xfb, 0x98, 0x6a, 0xc9, 0x17, 0x86, 0x9a, 0xb8, 0x8a, 0x19, 0x97, 0xe7, + 0x43, 0x72, 0xc5, 0x35, 0x50, 0xfc, 0x23, 0xcf, 0x87, 0x1d, 0xef, 0xe9, 0xc8, 0x62, 0x28, 0xaf, + 0x17, 0x81, 0x1e, 0xe7, 0xb4, 0x9f, 0x58, 0x42, 0xa1, 0xc0, 0xa9, 0xde, 0xb2, 0x32, 0x6c, 0xea, + 0xec, 0x40, 0x11, 0x1b, 0x5b, 0xc9, 0x6e, 0x1b, 0xd8, 0xd9, 0xc6, 0x94, 0x80, 0x38, 0x6a, 0xf2, + 0x08, 0x20, 0x03, 0x9d, 0x0e, 0x12, 0x2e, 0x9c, 0xff, 0x4f, 0x48, 0xf6, 0x50, 0x0f, 0x02, 0x1c, + 0x67, 0x1e, 0x43, 0xf7, 0xd0, 0xfc, 0x0c, 0x28, 0xa2, 0xf0, 0x1d, 0x92, 0x0b, 0x64, 0x49, 0x8e, + 0x9c, 0x04, 0xfe, 0xbe, 0x44, 0xc2, 0x74, 0x03, 0x75, 0x3a, 0x8f, 0xf6, 0xf7, 0x0b, 0xbc, 0x92, + 0x74, 0x39, 0xc3, 0x5d, 0x50, 0xe9, 0x85, 0x9e, 0x8b, 0x8a, 0xa6, 0x5f, 0x14, 0xad, 0x8c, 0xfa, + 0x92, 0x30, 0x5c, 0x87, 0x3f, 0x27, 0x09, 0x2b, 0xff, 0x6a, 0xd6, 0x20, 0xbe, 0x6a, 0x13, 0x24, + 0x17, 0x56, 0x9c, 0x52, 0xa6, 0xa7, 0x22, 0x71, 0xce, 0xf7, 0x97, 0x59, 0x15, 0xe5, 0x3a, 0xed, + 0xa8, 0xac, 0xa5, 0x5d, 0x4b, 0x7e, 0xfa, 0xa7, 0x12, 0x7f, 0x40, 0x3a, 0x10, 0xc7, 0xaf, 0x06, + 0x8a, 0xc7, 0xcb, 0x3b, 0xa9, 0x45, 0x95, 0x45, 0xa3, 0x7e, 0x17, 0x4c, 0x85, 0x84, 0x28, 0x89, + 0x45, 0xf3, 0x9a, 0x77, 0x48, 0xca, 0xdb, 0x61, 0x70, 0x75, 0xb0, 0x17, 0x45, 0xe4, 0xf2, 0xff, + 0xb1, 0x24, 0x66, 0x02, 0xc9, 0xf4, 0x4e, 0xd0, 0xed, 0x7a, 0xa6, 0x7d, 0x5c, 0x04, 0xb3, 0xac, + 0x28, 0xc2, 0xb7, 0x92, 0x4e, 0xd0, 0x70, 0x4f, 0x29, 0xa5, 0xcf, 0x0e, 0x66, 0xfa, 0x8b, 0x00, + 0x44, 0xfd, 0x76, 0x1b, 0x45, 0xb1, 0x17, 0xf8, 0x2c, 0xc6, 0x0a, 0x33, 0x92, 0xe8, 0x35, 0xb0, + 0xac, 0x93, 0x8e, 0x6f, 0xe1, 0x2f, 0xca, 0x2d, 0x38, 0x68, 0x80, 0x60, 0x67, 0xec, 0x2d, 0x7c, + 0x4f, 0xda, 0xc2, 0xfc, 0xd6, 0x25, 0xa5, 0xf2, 0x39, 0xbb, 0x74, 0x87, 0x67, 0xc1, 0x54, 0x84, + 0xdc, 0x10, 0xc5, 0x6c, 0x77, 0x6c, 0x54, 0x64, 0x67, 0x54, 0x68, 0xbe, 0xb3, 0x27, 0xf4, 0x51, + 0xc3, 0x31, 0x31, 0x0c, 0xc7, 0x3e, 0x14, 0xf5, 0x53, 0x25, 0x43, 0x9a, 0xf3, 0xfd, 0x07, 0xad, + 0x3b, 0x91, 0x1c, 0x6c, 0x27, 0xf0, 0xf7, 0xbd, 0xb0, 0x3b, 0x56, 0x86, 0x2d, 0x64, 0xc6, 0xe5, + 0x11, 0x32, 0x63, 0xeb, 0x87, 0x00, 0xe0, 0x07, 0x35, 0x4d, 0xb0, 0x49, 0xce, 0x5d, 0xe0, 0x0d, + 0x2e, 0x2c, 0x51, 0x5e, 0x1e, 0xe2, 0x6e, 0xf8, 0x4e, 0x1b, 0x44, 0xc3, 0x8f, 0xc3, 0x60, 0xdf, + 0xeb, 0x20, 0x52, 0x5d, 0x18, 0xc7, 0x7d, 0x95, 0xba, 0xcd, 0x12, 0xe5, 0x1c, 0x7f, 0x46, 0x52, + 0x1e, 0xf6, 0xf1, 0x13, 0xd4, 0x8c, 0xbc, 0x18, 0x99, 0x99, 0x56, 0xc1, 0xf4, 0x11, 0xc5, 0x25, + 0x95, 0x2f, 0x36, 0x54, 0xa6, 0x38, 0x43, 0x94, 0x39, 0xe7, 0x1f, 0x93, 0x9b, 0x8a, 0x7d, 0xaf, + 0x7b, 0x81, 0x99, 0xeb, 0x1b, 0xa0, 0xdc, 0xf4, 0x02, 0xc6, 0x11, 0xff, 0x54, 0x5e, 0x2a, 0x19, + 0x6a, 0x9c, 0x53, 0x93, 0x5c, 0xc9, 0x42, 0xec, 0x7b, 0xd4, 0x43, 0xbe, 0x81, 0xd7, 0x0a, 0x38, + 0xd5, 0x4c, 0xc1, 0x5c, 0xbb, 0xd9, 0x49, 0x89, 0xff, 0x3d, 0x72, 0x2d, 0x4b, 0x3c, 0x78, 0x80, + 0xc5, 0xbc, 0xc8, 0xd1, 0x44, 0xd5, 0x12, 0x79, 0xb2, 0x25, 0xc3, 0xda, 0xb3, 0x12, 0xc9, 0x02, + 0x84, 0x85, 0x05, 0xea, 0x2b, 0x85, 0x04, 0x1c, 0xa1, 0xda, 0xb2, 0x0c, 0x16, 0xd5, 0x32, 0x70, + 0x15, 0x0e, 0x92, 0xcc, 0xb8, 0x91, 0x3e, 0x3f, 0xcc, 0x07, 0xa6, 0xce, 0x8b, 0xa4, 0x37, 0x4d, + 0x79, 0xe8, 0x4d, 0xa3, 0xcb, 0x93, 0xb3, 0x7c, 0x85, 0x8a, 0xed, 0x69, 0x9e, 0xc5, 0x79, 0x51, + 0x3c, 0x8e, 0x48, 0xc5, 0xea, 0x17, 0x49, 0xc4, 0x4f, 0x19, 0x71, 0x19, 0x3e, 0xe7, 0x21, 0x17, + 0x3b, 0xfe, 0x5e, 0xbf, 0x13, 0x7b, 0x06, 0x21, 0xee, 0x82, 0xca, 0x80, 0xd4, 0x36, 0x27, 0x8a, + 0xdd, 0x23, 0x14, 0x2d, 0x49, 0x53, 0xe7, 0x21, 0x94, 0xb3, 0x1c, 0x39, 0x99, 0xfb, 0x33, 0x7d, + 0xb5, 0x92, 0x7b, 0x28, 0xc7, 0x21, 0xaa, 0x60, 0x9a, 0x94, 0x18, 0xc2, 0xed, 0xc4, 0xe5, 0xd9, + 0x30, 0xfd, 0x52, 0x67, 0xda, 0x4b, 0x86, 0xf8, 0xa4, 0x19, 0x68, 0x17, 0xb9, 0x87, 0xac, 0x52, + 0x21, 0x4e, 0xa5, 0x88, 0x3a, 0x41, 0x54, 0x44, 0x04, 0x99, 0x92, 0x36, 0xfd, 0x36, 0xb1, 0x41, + 0x2e, 0xaf, 0xe8, 0x5c, 0xc9, 0x85, 0x5f, 0xca, 0x5c, 0xf8, 0x35, 0x98, 0xbc, 0x6a, 0x3f, 0x84, + 0x5d, 0x34, 0x8e, 0x6d, 0x24, 0xcf, 0xf5, 0x72, 0xfa, 0x5c, 0xd7, 0xbd, 0x68, 0x19, 0x0b, 0xa1, + 0x4c, 0x62, 0xa5, 0x17, 0xd2, 0x76, 0xc7, 0x83, 0x51, 0xae, 0x00, 0xb4, 0x6d, 0x30, 0xa1, 0x6f, + 0x1b, 0xd0, 0xdc, 0x4f, 0xa2, 0x29, 0x70, 0xc4, 0xfa, 0x79, 0x08, 0xc3, 0xce, 0xf1, 0xb6, 0xeb, + 0xa2, 0x28, 0xfa, 0xc0, 0x1f, 0x78, 0x79, 0xd5, 0x88, 0x7e, 0xda, 0xc1, 0xd0, 0xbf, 0x53, 0x87, + 0x68, 0x0a, 0x01, 0x0b, 0xfb, 0xdf, 0xa7, 0x08, 0x76, 0x8e, 0x77, 0x02, 0xdf, 0x47, 0x6e, 0x4e, + 0xe4, 0x78, 0x8a, 0x91, 0x4c, 0xcb, 0xb3, 0x4e, 0x32, 0x54, 0xfa, 0x9a, 0x48, 0x94, 0xf3, 0xfb, + 0x1b, 0x7d, 0x81, 0x3c, 0x4c, 0xda, 0x5b, 0x63, 0x15, 0x5c, 0x6c, 0x30, 0xd3, 0x0a, 0xe1, 0x51, + 0x87, 0xfa, 0x3c, 0xb6, 0x3a, 0x3e, 0x96, 0xda, 0x04, 0x93, 0xa3, 0xb6, 0x09, 0xd2, 0xa7, 0x67, + 0x45, 0xff, 0xf4, 0xa4, 0xc7, 0x28, 0xed, 0x81, 0x6f, 0xf1, 0xbf, 0x34, 0x85, 0xe7, 0x9f, 0x1f, + 0xb6, 0xbc, 0xd8, 0xda, 0x92, 0x36, 0x68, 0xa8, 0x73, 0xf1, 0xad, 0xcf, 0x83, 0x09, 0x2f, 0xb1, + 0xe7, 0x09, 0x4f, 0x69, 0xcc, 0x19, 0x55, 0x4c, 0x1a, 0x55, 0x51, 0x19, 0x5f, 0x15, 0x53, 0x79, + 0xaf, 0xf0, 0xcc, 0x5e, 0xb9, 0x22, 0x7c, 0xf2, 0x0a, 0xe7, 0xdf, 0x76, 0x03, 0xf3, 0x2b, 0x8a, + 0xb7, 0x3c, 0xd3, 0x57, 0x94, 0x30, 0x55, 0xa0, 0x0c, 0x42, 0xdf, 0xe3, 0x02, 0x3f, 0xb9, 0x9c, + 0x9f, 0x9e, 0x58, 0x27, 0x88, 0xd0, 0xff, 0x5b, 0x1a, 0x9c, 0xe2, 0x1c, 0xb1, 0x37, 0xc8, 0x8c, + 0x83, 0x7f, 0x2a, 0xf3, 0xb8, 0xac, 0x10, 0x5c, 0xc4, 0x8f, 0x88, 0xcf, 0x08, 0x8e, 0xba, 0xeb, + 0x45, 0xde, 0xeb, 0xfb, 0x3f, 0x2d, 0x0d, 0xa9, 0xc8, 0x72, 0xce, 0x1d, 0x00, 0x58, 0x2c, 0xaa, + 0x43, 0x7f, 0xec, 0x92, 0xac, 0x2e, 0x95, 0x95, 0xcb, 0xb1, 0x0b, 0xbc, 0xf9, 0x58, 0x87, 0x3c, + 0x04, 0xd4, 0x22, 0xd2, 0xcc, 0x10, 0xc4, 0x7c, 0x3f, 0x84, 0xaf, 0x51, 0x1f, 0x5e, 0x00, 0x15, + 0xac, 0x0b, 0x1a, 0xa3, 0x67, 0x1d, 0x3a, 0x18, 0x12, 0x85, 0xb6, 0x34, 0x64, 0xa6, 0x92, 0xf9, + 0xe2, 0x8c, 0xc1, 0x8d, 0xbd, 0x01, 0xbe, 0xa5, 0x5e, 0x43, 0x1c, 0x45, 0x7d, 0x47, 0x16, 0x87, + 0x97, 0x93, 0x12, 0x7e, 0x5c, 0x92, 0x23, 0xde, 0xa6, 0xda, 0x09, 0x7a, 0xc7, 0xa1, 0xd7, 0x3e, + 0x88, 0x49, 0x12, 0xf0, 0x9d, 0x1f, 0xd6, 0x12, 0xb8, 0xa4, 0x64, 0x9c, 0x48, 0xb6, 0xf5, 0x9f, + 0x9b, 0xa0, 0xbc, 0x17, 0xb5, 0xad, 0x26, 0x98, 0xcb, 0xfc, 0xab, 0x82, 0x15, 0xe5, 0x35, 0x23, + 0xb5, 0xed, 0xed, 0xf5, 0x22, 0x28, 0x9e, 0x26, 0xfc, 0x02, 0x00, 0xa1, 0xb3, 0x5f, 0xd3, 0xae, + 0xe5, 0x18, 0xfb, 0x46, 0x3e, 0x86, 0x53, 0x47, 0xe0, 0x54, 0xb6, 0x6b, 0xbf, 0xaa, 0x5b, 0x9c, + 0x81, 0xd9, 0xb7, 0x0a, 0xc1, 0x38, 0x9b, 0x43, 0x70, 0x5a, 0x6e, 0xbc, 0x5f, 0x33, 0x52, 0x48, + 0x81, 0xf6, 0x66, 0x41, 0x20, 0x67, 0xf6, 0x31, 0x98, 0xe1, 0xbd, 0xe9, 0x65, 0xd3, 0x62, 0x8c, + 0xb0, 0xd7, 0xf2, 0x10, 0x9c, 0x6e, 0x13, 0xcc, 0x65, 0x1a, 0xc9, 0x2b, 0xa6, 0x95, 0x09, 0x4a, + 0x7f, 0xda, 0xaa, 0x2e, 0x31, 0x3e, 0x6d, 0xa1, 0x43, 0x5c, 0x33, 0xad, 0xa5, 0x18, 0xfd, 0x69, + 0x0f, 0xf7, 0x77, 0xad, 0x03, 0x30, 0x2f, 0xf5, 0x76, 0xaf, 0x9a, 0x56, 0xa7, 0x38, 0x7b, 0xa3, + 0x18, 0x8e, 0x73, 0xf2, 0xc1, 0x1b, 0x43, 0x3d, 0xda, 0xb5, 0x1c, 0x1a, 0x1c, 0x69, 0xbf, 0x5d, + 0x14, 0x99, 0x31, 0x30, 0xa9, 0x0b, 0xab, 0x37, 0xb0, 0x2c, 0xd0, 0x60, 0x60, 0xea, 0xce, 0xac, + 0xf5, 0x39, 0x78, 0x73, 0xb8, 0x2d, 0x7b, 0x3d, 0x87, 0x4a, 0x0a, 0xb5, 0x6f, 0x17, 0x86, 0x72, + 0x96, 0x9f, 0x81, 0x93, 0x62, 0xa3, 0xf6, 0x8a, 0x8e, 0x82, 0x00, 0xb2, 0x6f, 0x16, 0x00, 0x65, + 0x2e, 0x82, 0x4c, 0x6f, 0x74, 0x35, 0x47, 0x48, 0x76, 0xd9, 0xdc, 0x2a, 0x04, 0xe3, 0x6c, 0x9e, + 0x82, 0x05, 0x65, 0x4b, 0x74, 0xbd, 0x80, 0xac, 0x1c, 0x6d, 0xbf, 0x33, 0x0a, 0x9a, 0xf3, 0x7e, + 0x02, 0x66, 0xd3, 0x5e, 0xe7, 0x65, 0x1d, 0x09, 0x0e, 0xb1, 0xaf, 0xe7, 0x42, 0x44, 0xb7, 0x15, + 0x9a, 0x90, 0x35, 0xd3, 0x42, 0x8a, 0xd1, 0xbb, 0xed, 0x70, 0x97, 0x11, 0x9f, 0x4d, 0xb6, 0xc5, + 0xb8, 0x9a, 0xb3, 0x98, 0xc2, 0xf4, 0x67, 0xa3, 0x6c, 0x23, 0x62, 0xb3, 0x1e, 0xee, 0x21, 0x1a, + 0x95, 0x90, 0x81, 0xea, 0xcd, 0x5a, 0xdb, 0x2f, 0xc4, 0xe6, 0xa0, 0x6c, 0x16, 0xae, 0x17, 0x23, + 0xc5, 0xf6, 0xf9, 0xce, 0x28, 0x68, 0xd1, 0xa5, 0xc4, 0xc6, 0xe0, 0x15, 0x03, 0x91, 0x04, 0xa4, + 0x77, 0x29, 0x45, 0x4b, 0x90, 0x1d, 0x9b, 0x70, 0xd9, 0x9a, 0x8e, 0x4d, 0xb8, 0x6b, 0x6f, 0x15, + 0x82, 0x49, 0xfb, 0xe0, 0x2d, 0x3f, 0xd3, 0x3e, 0x12, 0x90, 0x71, 0x1f, 0x72, 0x5b, 0x0f, 0x47, + 0x0d, 0xa9, 0xa7, 0xa7, 0x8d, 0x1a, 0x59, 0x9c, 0x3e, 0x6a, 0x68, 0x1a, 0x7a, 0x87, 0xe0, 0xb4, + 0xdc, 0xa4, 0xbb, 0xa6, 0x97, 0x34, 0x03, 0xd4, 0xdf, 0xe2, 0x9a, 0x4e, 0x1b, 0x0e, 0xe7, 0x99, + 0x36, 0xdb, 0x4a, 0x2e, 0x01, 0xbc, 0xa5, 0xf5, 0x22, 0x28, 0xe5, 0x86, 0x98, 0x69, 0xe7, 0x6f, + 0x88, 0x59, 0xf5, 0x66, 0x41, 0xa0, 0x9c, 0xcb, 0xa5, 0x0d, 0x34, 0x63, 0x2e, 0xc7, 0x61, 0xe6, + 0x5c, 0x6e, 0xa8, 0xd7, 0x65, 0x7d, 0x09, 0xde, 0x52, 0xf7, 0xb9, 0x6e, 0xe5, 0xc6, 0x51, 0x11, + 0x6e, 0xdf, 0x1d, 0x09, 0x6e, 0x60, 0xcf, 0x7a, 0x54, 0x45, 0xd9, 0x53, 0x78, 0x61, 0xf6, 0xd9, + 0x66, 0x12, 0x49, 0xa1, 0xb2, 0x9d, 0xa4, 0xab, 0xf9, 0x84, 0x30, 0xce, 0x90, 0x42, 0x29, 0xdb, + 0x47, 0xd8, 0x3e, 0x33, 0xad, 0xa3, 0x15, 0x63, 0xd0, 0x63, 0x28, 0x7b, 0xbd, 0x08, 0x4a, 0xdc, + 0x8d, 0xd4, 0xb5, 0xd1, 0xee, 0x26, 0x8b, 0xd3, 0xef, 0x46, 0xdd, 0xb0, 0xc1, 0xc1, 0x65, 0xb8, + 0x5b, 0x73, 0x3d, 0x87, 0x48, 0x0a, 0xd5, 0x07, 0x17, 0x6d, 0xa7, 0x06, 0xfb, 0x43, 0xb6, 0x4d, + 0xb3, 0x9a, 0x43, 0x83, 0xc2, 0xf4, 0xfe, 0xa0, 0x6c, 0xd3, 0x60, 0x1f, 0x97, 0x7b, 0x34, 0xd7, + 0x0a, 0xdc, 0x7b, 0x18, 0xa8, 0xf7, 0x71, 0x5d, 0x47, 0xe6, 0x08, 0x9c, 0x51, 0xf5, 0x5c, 0x6e, + 0x16, 0xa0, 0xc3, 0x5f, 0x24, 0x77, 0x46, 0x00, 0x4b, 0xc9, 0x81, 0xd4, 0x46, 0xb9, 0x9e, 0x17, + 0x46, 0x38, 0xd4, 0x98, 0x1c, 0xa8, 0x9b, 0x24, 0xf4, 0x82, 0x16, 0x3a, 0x24, 0x2b, 0xe6, 0xb8, + 0x48, 0x51, 0xa6, 0x0b, 0x7a, 0xb8, 0x09, 0x92, 0xdc, 0x99, 0x69, 0x07, 0x64, 0x35, 0xef, 0x39, + 0x48, 0x60, 0xe6, 0x3b, 0x73, 0xb8, 0xb9, 0xf1, 0x04, 0xcc, 0xa6, 0x0d, 0x8b, 0xcb, 0x46, 0x17, + 0x25, 0x76, 0x71, 0x3d, 0x17, 0x22, 0xa5, 0x9e, 0x49, 0xa7, 0xc0, 0x94, 0x7a, 0x32, 0x8c, 0x31, + 0xf5, 0x94, 0xda, 0x01, 0xd8, 0xb8, 0xe5, 0x5e, 0xc0, 0xb5, 0x1c, 0xf7, 0x48, 0x80, 0x7a, 0xe3, + 0xd6, 0x74, 0x02, 0xb0, 0x8d, 0x0d, 0xb7, 0x01, 0xb4, 0xaa, 0x18, 0x82, 0xea, 0x6d, 0x4c, 0xdb, + 0x08, 0xc0, 0x36, 0x96, 0xe9, 0x02, 0x68, 0x6d, 0x4c, 0x44, 0xe9, 0x6d, 0x4c, 0x55, 0xfc, 0xc7, + 0x3a, 0x94, 0x0b, 0xff, 0x5a, 0x1d, 0x4a, 0x40, 0xbd, 0x0e, 0x35, 0x65, 0x78, 0x6c, 0xd0, 0xd9, + 0x12, 0xfc, 0x6a, 0x2e, 0x05, 0x0c, 0xd3, 0x1b, 0xb4, 0xb2, 0xc8, 0x8d, 0x93, 0x4e, 0xb1, 0xc2, + 0x7d, 0x25, 0x77, 0xf5, 0x6e, 0xa0, 0x4f, 0x3a, 0x15, 0xb5, 0x6b, 0x1c, 0x99, 0xa4, 0xba, 0xf5, + 0xd5, 0x7c, 0x55, 0x60, 0x9c, 0x3e, 0x32, 0xa9, 0x4b, 0xd0, 0xf8, 0x0d, 0xa2, 0xac, 0x3f, 0xaf, + 0x17, 0xb0, 0x26, 0x8e, 0xd6, 0xbf, 0x41, 0x4c, 0x45, 0x68, 0xab, 0x01, 0xa6, 0x93, 0x0a, 0xf4, + 0x92, 0xe9, 0x46, 0xa9, 0x43, 0xdf, 0xbe, 0x96, 0x03, 0x10, 0x6b, 0x2f, 0x43, 0x25, 0xe5, 0xb5, + 0x02, 0xe2, 0x11, 0xa4, 0xbe, 0xf6, 0xa2, 0xab, 0x18, 0xb3, 0x07, 0x08, 0x2f, 0x17, 0x9b, 0x1e, + 0x20, 0x09, 0xc8, 0xf8, 0x00, 0x91, 0x0b, 0xc1, 0x56, 0x0c, 0x2c, 0x45, 0x15, 0xd8, 0x58, 0xf8, + 0xca, 0x62, 0xed, 0xad, 0xe2, 0xd8, 0x84, 0xab, 0x5d, 0xf9, 0xf5, 0xab, 0xe7, 0x37, 0x4a, 0x75, + 0xe7, 0xeb, 0x17, 0x8b, 0xa5, 0x6f, 0x5e, 0x2c, 0x96, 0xfe, 0xfd, 0x62, 0xb1, 0xf4, 0x87, 0x97, + 0x8b, 0x27, 0xbe, 0x79, 0xb9, 0x78, 0xe2, 0x9f, 0x2f, 0x17, 0x4f, 0x7c, 0xfa, 0x5e, 0xdb, 0x8b, + 0x0f, 0xfa, 0xcd, 0x0d, 0x37, 0xe8, 0x6e, 0xee, 0x22, 0x17, 0xf9, 0x71, 0x08, 0x3b, 0x98, 0xe0, + 0xfb, 0xb0, 0x8b, 0x36, 0xd5, 0x7f, 0xd5, 0x15, 0x1f, 0xf7, 0x50, 0xd4, 0x9c, 0x22, 0x7f, 0x98, + 0x76, 0xe7, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x2f, 0x64, 0x10, 0x3c, 0x38, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -5360,6 +5497,7 @@ type MsgClient interface { EarlyAccessInvite(ctx context.Context, in *MsgEarlyAccessInvite, opts ...grpc.CallOption) (*MsgEarlyAccessInviteResponse, error) ZealyConnect(ctx context.Context, in *MsgZealyConnect, opts ...grpc.CallOption) (*MsgZealyConnectResponse, error) EncounterCreate(ctx context.Context, in *MsgEncounterCreate, opts ...grpc.CallOption) (*MsgEncounterCreateResponse, error) + EncounterEdit(ctx context.Context, in *MsgEncounterEdit, opts ...grpc.CallOption) (*MsgEncounterEditResponse, error) EncounterDo(ctx context.Context, in *MsgEncounterDo, opts ...grpc.CallOption) (*MsgEncounterDoResponse, error) EncounterClose(ctx context.Context, in *MsgEncounterClose, opts ...grpc.CallOption) (*MsgEncounterCloseResponse, error) EarlyAccessDisinvite(ctx context.Context, in *MsgEarlyAccessDisinvite, opts ...grpc.CallOption) (*MsgEarlyAccessDisinviteResponse, error) @@ -5782,6 +5920,15 @@ func (c *msgClient) EncounterCreate(ctx context.Context, in *MsgEncounterCreate, return out, nil } +func (c *msgClient) EncounterEdit(ctx context.Context, in *MsgEncounterEdit, opts ...grpc.CallOption) (*MsgEncounterEditResponse, error) { + out := new(MsgEncounterEditResponse) + err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/EncounterEdit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) EncounterDo(ctx context.Context, in *MsgEncounterDo, opts ...grpc.CallOption) (*MsgEncounterDoResponse, error) { out := new(MsgEncounterDoResponse) err := c.cc.Invoke(ctx, "/cardchain.cardchain.Msg/EncounterDo", in, out, opts...) @@ -5894,6 +6041,7 @@ type MsgServer interface { EarlyAccessInvite(context.Context, *MsgEarlyAccessInvite) (*MsgEarlyAccessInviteResponse, error) ZealyConnect(context.Context, *MsgZealyConnect) (*MsgZealyConnectResponse, error) EncounterCreate(context.Context, *MsgEncounterCreate) (*MsgEncounterCreateResponse, error) + EncounterEdit(context.Context, *MsgEncounterEdit) (*MsgEncounterEditResponse, error) EncounterDo(context.Context, *MsgEncounterDo) (*MsgEncounterDoResponse, error) EncounterClose(context.Context, *MsgEncounterClose) (*MsgEncounterCloseResponse, error) EarlyAccessDisinvite(context.Context, *MsgEarlyAccessDisinvite) (*MsgEarlyAccessDisinviteResponse, error) @@ -6042,6 +6190,9 @@ func (*UnimplementedMsgServer) ZealyConnect(ctx context.Context, req *MsgZealyCo func (*UnimplementedMsgServer) EncounterCreate(ctx context.Context, req *MsgEncounterCreate) (*MsgEncounterCreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncounterCreate not implemented") } +func (*UnimplementedMsgServer) EncounterEdit(ctx context.Context, req *MsgEncounterEdit) (*MsgEncounterEditResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EncounterEdit not implemented") +} func (*UnimplementedMsgServer) EncounterDo(ctx context.Context, req *MsgEncounterDo) (*MsgEncounterDoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncounterDo not implemented") } @@ -6878,6 +7029,24 @@ func _Msg_EncounterCreate_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } +func _Msg_EncounterEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgEncounterEdit) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).EncounterEdit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cardchain.cardchain.Msg/EncounterEdit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).EncounterEdit(ctx, req.(*MsgEncounterEdit)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_EncounterDo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgEncounterDo) if err := dec(in); err != nil { @@ -7189,6 +7358,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "EncounterCreate", Handler: _Msg_EncounterCreate_Handler, }, + { + MethodName: "EncounterEdit", + Handler: _Msg_EncounterEdit_Handler, + }, { MethodName: "EncounterDo", Handler: _Msg_EncounterDo_Handler, @@ -7440,6 +7613,20 @@ func (m *MsgCardSaveContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Parameters) > 0 { + for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } if m.BalanceAnchor { i-- if m.BalanceAnchor { @@ -10292,6 +10479,110 @@ func (m *MsgEncounterCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } +func (m *MsgEncounterEdit) 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 *MsgEncounterEdit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgEncounterEdit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Image) > 0 { + i -= len(m.Image) + copy(dAtA[i:], m.Image) + i = encodeVarintTx(dAtA, i, uint64(len(m.Image))) + i-- + dAtA[i] = 0x32 + } + if len(m.Parameters) > 0 { + for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Drawlist) > 0 { + dAtA19 := make([]byte, len(m.Drawlist)*10) + var j18 int + for _, num := range m.Drawlist { + for num >= 1<<7 { + dAtA19[j18] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j18++ + } + dAtA19[j18] = uint8(num) + j18++ + } + i -= j18 + copy(dAtA[i:], dAtA19[:j18]) + i = encodeVarintTx(dAtA, i, uint64(j18)) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if m.Id != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgEncounterEditResponse) 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 *MsgEncounterEditResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgEncounterEditResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *MsgEncounterDo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -10848,6 +11139,12 @@ func (m *MsgCardSaveContent) Size() (n int) { if m.BalanceAnchor { n += 2 } + if len(m.Parameters) > 0 { + for _, e := range m.Parameters { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } return n } @@ -12067,7 +12364,7 @@ func (m *MsgEncounterCreateResponse) Size() (n int) { return n } -func (m *MsgEncounterDo) Size() (n int) { +func (m *MsgEncounterEdit) Size() (n int) { if m == nil { return 0 } @@ -12077,24 +12374,70 @@ func (m *MsgEncounterDo) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.EncounterId != 0 { - n += 1 + sovTx(uint64(m.EncounterId)) + if m.Id != 0 { + n += 1 + sovTx(uint64(m.Id)) } - l = len(m.User) + l = len(m.Name) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - return n -} - -func (m *MsgEncounterDoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} + if len(m.Drawlist) > 0 { + l = 0 + for _, e := range m.Drawlist { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.Parameters) > 0 { + for _, e := range m.Parameters { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + l = len(m.Image) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgEncounterEditResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgEncounterDo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.EncounterId != 0 { + n += 1 + sovTx(uint64(m.EncounterId)) + } + l = len(m.User) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgEncounterDoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} func (m *MsgEncounterClose) Size() (n int) { if m == nil { @@ -13006,6 +13349,40 @@ func (m *MsgCardSaveContent) Unmarshal(dAtA []byte) error { } } m.BalanceAnchor = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameters = append(m.Parameters, &Parameter{}) + if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -20835,6 +21212,333 @@ func (m *MsgEncounterCreateResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgEncounterEdit) 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: MsgEncounterEdit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgEncounterEdit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Drawlist = append(m.Drawlist, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Drawlist) == 0 { + m.Drawlist = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Drawlist = append(m.Drawlist, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Drawlist", wireType) + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameters = append(m.Parameters, &Parameter{}) + if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Image = append(m.Image[:0], dAtA[iNdEx:postIndex]...) + if m.Image == nil { + m.Image = []byte{} + } + 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 *MsgEncounterEditResponse) 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: MsgEncounterEditResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgEncounterEditResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *MsgEncounterDo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/featureflag/module/autocli.go b/x/featureflag/module/autocli.go index e4dbeb1d..5fde5c1c 100644 --- a/x/featureflag/module/autocli.go +++ b/x/featureflag/module/autocli.go @@ -3,14 +3,14 @@ package featureflag import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" - modulev1 "github.com/DecentralCardGame/cardchain/api/cardchain/featureflag" + "github.com/DecentralCardGame/cardchain/x/featureflag/types" ) // AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { return &autocliv1.ModuleOptions{ Query: &autocliv1.ServiceCommandDescriptor{ - Service: modulev1.Query_ServiceDesc.ServiceName, + Service: types.Query_serviceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "Params", @@ -35,7 +35,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, Tx: &autocliv1.ServiceCommandDescriptor{ - Service: modulev1.Msg_ServiceDesc.ServiceName, + Service: types.Msg_serviceDesc.ServiceName, EnhanceCustomCommand: true, // only required if you want to use the custom command RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { diff --git a/x/featureflag/module/module.go b/x/featureflag/module/module.go index d4c325d8..92ecc481 100644 --- a/x/featureflag/module/module.go +++ b/x/featureflag/module/module.go @@ -20,7 +20,6 @@ import ( // this line is used by starport scaffolding # 1 - modulev1 "github.com/DecentralCardGame/cardchain/api/cardchain/featureflag/module" "github.com/DecentralCardGame/cardchain/x/featureflag/keeper" "github.com/DecentralCardGame/cardchain/x/featureflag/types" ) @@ -167,7 +166,7 @@ func (am AppModule) IsAppModule() {} func init() { appmodule.Register( - &modulev1.Module{}, + &types.Module{}, appmodule.Provide(ProvideModule), ) } @@ -177,7 +176,7 @@ type ModuleInputs struct { StoreService store.KVStoreService Cdc codec.Codec - Config *modulev1.Module + Config *types.Module Logger log.Logger AccountKeeper types.AccountKeeper diff --git a/x/featureflag/types/module.pb.go b/x/featureflag/types/module.pb.go new file mode 100644 index 00000000..a550d792 --- /dev/null +++ b/x/featureflag/types/module.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: cardchain/featureflag/module/module.proto + +package types + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Module is the config object for the module. +type Module struct { + // authority defines the custom module authority. If not set, defaults to the governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (m *Module) Reset() { *m = Module{} } +func (m *Module) String() string { return proto.CompactTextString(m) } +func (*Module) ProtoMessage() {} +func (*Module) Descriptor() ([]byte, []int) { + return fileDescriptor_166835623c35d3ae, []int{0} +} +func (m *Module) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Module.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 *Module) XXX_Merge(src proto.Message) { + xxx_messageInfo_Module.Merge(m, src) +} +func (m *Module) XXX_Size() int { + return m.Size() +} +func (m *Module) XXX_DiscardUnknown() { + xxx_messageInfo_Module.DiscardUnknown(m) +} + +var xxx_messageInfo_Module proto.InternalMessageInfo + +func (m *Module) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func init() { + proto.RegisterType((*Module)(nil), "cardchain.featureflag.module.Module") +} + +func init() { + proto.RegisterFile("cardchain/featureflag/module/module.proto", fileDescriptor_166835623c35d3ae) +} + +var fileDescriptor_166835623c35d3ae = []byte{ + // 212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4c, 0x4e, 0x2c, 0x4a, + 0x49, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x4f, 0x4b, 0x4d, 0x2c, 0x29, 0x2d, 0x4a, 0x4d, 0xcb, 0x49, + 0x4c, 0xd7, 0xcf, 0xcd, 0x4f, 0x29, 0xcd, 0x49, 0x85, 0x52, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, + 0x42, 0x32, 0x70, 0xa5, 0x7a, 0x48, 0x4a, 0xf5, 0x20, 0x6a, 0xa4, 0x14, 0x92, 0xf3, 0x8b, 0x73, + 0xf3, 0x8b, 0xf5, 0x13, 0x0b, 0x0a, 0xf4, 0xcb, 0x0c, 0x13, 0x73, 0x0a, 0x32, 0x12, 0x0d, 0x51, + 0xf4, 0x2b, 0xa5, 0x70, 0xb1, 0xf9, 0x82, 0xf9, 0x42, 0x32, 0x5c, 0x9c, 0x89, 0xa5, 0x25, 0x19, + 0xf9, 0x45, 0x99, 0x25, 0x95, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x08, 0x01, 0x2b, 0x9b, + 0x5d, 0x07, 0xa6, 0xdd, 0x62, 0x34, 0xe3, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, + 0xce, 0xcf, 0xd5, 0x77, 0x49, 0x4d, 0x4e, 0xcd, 0x2b, 0x29, 0x4a, 0xcc, 0x71, 0x4e, 0x2c, 0x4a, + 0x71, 0x4f, 0xcc, 0x4d, 0xd5, 0x47, 0xb8, 0xbb, 0x02, 0xd9, 0xe5, 0x4e, 0x21, 0x27, 0x1e, 0xc9, + 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, + 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x65, 0x45, 0x8e, 0x79, 0xfa, 0x25, 0x95, 0x05, 0xa9, + 0xc5, 0x49, 0x6c, 0x60, 0x2f, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x91, 0x56, 0x40, + 0x2f, 0x01, 0x00, 0x00, +} + +func (m *Module) 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 *Module) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintModule(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintModule(dAtA []byte, offset int, v uint64) int { + offset -= sovModule(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Module) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovModule(uint64(l)) + } + return n +} + +func sovModule(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozModule(x uint64) (n int) { + return sovModule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Module) 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 ErrIntOverflowModule + } + 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: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModule + } + 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 ErrInvalidLengthModule + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModule + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModule(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthModule + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipModule(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModule + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModule + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModule + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthModule + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupModule + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthModule + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") +)