// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. package auctionv1 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" timestamppb "google.golang.org/protobuf/types/known/timestamppb" io "io" reflect "reflect" sync "sync" ) var ( md_Params protoreflect.MessageDescriptor ) func init() { file_cerc_auction_v1_auction_proto_init() md_Params = File_cerc_auction_v1_auction_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_cerc_auction_v1_auction_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: cerc.auction.v1.Params")) } panic(fmt.Errorf("message cerc.auction.v1.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: cerc.auction.v1.Params")) } panic(fmt.Errorf("message cerc.auction.v1.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: cerc.auction.v1.Params")) } panic(fmt.Errorf("message cerc.auction.v1.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: cerc.auction.v1.Params")) } panic(fmt.Errorf("message cerc.auction.v1.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: cerc.auction.v1.Params")) } panic(fmt.Errorf("message cerc.auction.v1.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: cerc.auction.v1.Params")) } panic(fmt.Errorf("message cerc.auction.v1.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 cerc.auction.v1.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, } } var _ protoreflect.List = (*_Auction_11_list)(nil) type _Auction_11_list struct { list *[]string } func (x *_Auction_11_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_Auction_11_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } func (x *_Auction_11_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } func (x *_Auction_11_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } func (x *_Auction_11_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message Auction at list field WinnerAddresses as it is not of Message kind")) } func (x *_Auction_11_list) Truncate(n int) { *x.list = (*x.list)[:n] } func (x *_Auction_11_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } func (x *_Auction_11_list) IsValid() bool { return x.list != nil } var _ protoreflect.List = (*_Auction_12_list)(nil) type _Auction_12_list struct { list *[]*v1beta1.Coin } func (x *_Auction_12_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_Auction_12_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_Auction_12_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) (*x.list)[i] = concreteValue } func (x *_Auction_12_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) *x.list = append(*x.list, concreteValue) } func (x *_Auction_12_list) AppendMutable() protoreflect.Value { v := new(v1beta1.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Auction_12_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } func (x *_Auction_12_list) NewElement() protoreflect.Value { v := new(v1beta1.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Auction_12_list) IsValid() bool { return x.list != nil } var ( md_Auction protoreflect.MessageDescriptor fd_Auction_id protoreflect.FieldDescriptor fd_Auction_kind protoreflect.FieldDescriptor fd_Auction_status protoreflect.FieldDescriptor fd_Auction_owner_address protoreflect.FieldDescriptor fd_Auction_create_time protoreflect.FieldDescriptor fd_Auction_commits_end_time protoreflect.FieldDescriptor fd_Auction_reveals_end_time protoreflect.FieldDescriptor fd_Auction_commit_fee protoreflect.FieldDescriptor fd_Auction_reveal_fee protoreflect.FieldDescriptor fd_Auction_minimum_bid protoreflect.FieldDescriptor fd_Auction_winner_addresses protoreflect.FieldDescriptor fd_Auction_winning_bids protoreflect.FieldDescriptor fd_Auction_winning_price protoreflect.FieldDescriptor fd_Auction_max_price protoreflect.FieldDescriptor fd_Auction_num_providers protoreflect.FieldDescriptor fd_Auction_funds_released protoreflect.FieldDescriptor ) func init() { file_cerc_auction_v1_auction_proto_init() md_Auction = File_cerc_auction_v1_auction_proto.Messages().ByName("Auction") fd_Auction_id = md_Auction.Fields().ByName("id") fd_Auction_kind = md_Auction.Fields().ByName("kind") fd_Auction_status = md_Auction.Fields().ByName("status") fd_Auction_owner_address = md_Auction.Fields().ByName("owner_address") fd_Auction_create_time = md_Auction.Fields().ByName("create_time") fd_Auction_commits_end_time = md_Auction.Fields().ByName("commits_end_time") fd_Auction_reveals_end_time = md_Auction.Fields().ByName("reveals_end_time") fd_Auction_commit_fee = md_Auction.Fields().ByName("commit_fee") fd_Auction_reveal_fee = md_Auction.Fields().ByName("reveal_fee") fd_Auction_minimum_bid = md_Auction.Fields().ByName("minimum_bid") fd_Auction_winner_addresses = md_Auction.Fields().ByName("winner_addresses") fd_Auction_winning_bids = md_Auction.Fields().ByName("winning_bids") fd_Auction_winning_price = md_Auction.Fields().ByName("winning_price") fd_Auction_max_price = md_Auction.Fields().ByName("max_price") fd_Auction_num_providers = md_Auction.Fields().ByName("num_providers") fd_Auction_funds_released = md_Auction.Fields().ByName("funds_released") } var _ protoreflect.Message = (*fastReflection_Auction)(nil) type fastReflection_Auction Auction func (x *Auction) ProtoReflect() protoreflect.Message { return (*fastReflection_Auction)(x) } func (x *Auction) slowProtoReflect() protoreflect.Message { mi := &file_cerc_auction_v1_auction_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_Auction_messageType fastReflection_Auction_messageType var _ protoreflect.MessageType = fastReflection_Auction_messageType{} type fastReflection_Auction_messageType struct{} func (x fastReflection_Auction_messageType) Zero() protoreflect.Message { return (*fastReflection_Auction)(nil) } func (x fastReflection_Auction_messageType) New() protoreflect.Message { return new(fastReflection_Auction) } func (x fastReflection_Auction_messageType) Descriptor() protoreflect.MessageDescriptor { return md_Auction } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_Auction) Descriptor() protoreflect.MessageDescriptor { return md_Auction } // 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_Auction) Type() protoreflect.MessageType { return _fastReflection_Auction_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_Auction) New() protoreflect.Message { return new(fastReflection_Auction) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_Auction) Interface() protoreflect.ProtoMessage { return (*Auction)(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_Auction) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != "" { value := protoreflect.ValueOfString(x.Id) if !f(fd_Auction_id, value) { return } } if x.Kind != "" { value := protoreflect.ValueOfString(x.Kind) if !f(fd_Auction_kind, value) { return } } if x.Status != "" { value := protoreflect.ValueOfString(x.Status) if !f(fd_Auction_status, value) { return } } if x.OwnerAddress != "" { value := protoreflect.ValueOfString(x.OwnerAddress) if !f(fd_Auction_owner_address, value) { return } } if x.CreateTime != nil { value := protoreflect.ValueOfMessage(x.CreateTime.ProtoReflect()) if !f(fd_Auction_create_time, value) { return } } if x.CommitsEndTime != nil { value := protoreflect.ValueOfMessage(x.CommitsEndTime.ProtoReflect()) if !f(fd_Auction_commits_end_time, value) { return } } if x.RevealsEndTime != nil { value := protoreflect.ValueOfMessage(x.RevealsEndTime.ProtoReflect()) if !f(fd_Auction_reveals_end_time, value) { return } } if x.CommitFee != nil { value := protoreflect.ValueOfMessage(x.CommitFee.ProtoReflect()) if !f(fd_Auction_commit_fee, value) { return } } if x.RevealFee != nil { value := protoreflect.ValueOfMessage(x.RevealFee.ProtoReflect()) if !f(fd_Auction_reveal_fee, value) { return } } if x.MinimumBid != nil { value := protoreflect.ValueOfMessage(x.MinimumBid.ProtoReflect()) if !f(fd_Auction_minimum_bid, value) { return } } if len(x.WinnerAddresses) != 0 { value := protoreflect.ValueOfList(&_Auction_11_list{list: &x.WinnerAddresses}) if !f(fd_Auction_winner_addresses, value) { return } } if len(x.WinningBids) != 0 { value := protoreflect.ValueOfList(&_Auction_12_list{list: &x.WinningBids}) if !f(fd_Auction_winning_bids, value) { return } } if x.WinningPrice != nil { value := protoreflect.ValueOfMessage(x.WinningPrice.ProtoReflect()) if !f(fd_Auction_winning_price, value) { return } } if x.MaxPrice != nil { value := protoreflect.ValueOfMessage(x.MaxPrice.ProtoReflect()) if !f(fd_Auction_max_price, value) { return } } if x.NumProviders != int32(0) { value := protoreflect.ValueOfInt32(x.NumProviders) if !f(fd_Auction_num_providers, value) { return } } if x.FundsReleased != false { value := protoreflect.ValueOfBool(x.FundsReleased) if !f(fd_Auction_funds_released, 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_Auction) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "cerc.auction.v1.Auction.id": return x.Id != "" case "cerc.auction.v1.Auction.kind": return x.Kind != "" case "cerc.auction.v1.Auction.status": return x.Status != "" case "cerc.auction.v1.Auction.owner_address": return x.OwnerAddress != "" case "cerc.auction.v1.Auction.create_time": return x.CreateTime != nil case "cerc.auction.v1.Auction.commits_end_time": return x.CommitsEndTime != nil case "cerc.auction.v1.Auction.reveals_end_time": return x.RevealsEndTime != nil case "cerc.auction.v1.Auction.commit_fee": return x.CommitFee != nil case "cerc.auction.v1.Auction.reveal_fee": return x.RevealFee != nil case "cerc.auction.v1.Auction.minimum_bid": return x.MinimumBid != nil case "cerc.auction.v1.Auction.winner_addresses": return len(x.WinnerAddresses) != 0 case "cerc.auction.v1.Auction.winning_bids": return len(x.WinningBids) != 0 case "cerc.auction.v1.Auction.winning_price": return x.WinningPrice != nil case "cerc.auction.v1.Auction.max_price": return x.MaxPrice != nil case "cerc.auction.v1.Auction.num_providers": return x.NumProviders != int32(0) case "cerc.auction.v1.Auction.funds_released": return x.FundsReleased != false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auction")) } panic(fmt.Errorf("message cerc.auction.v1.Auction 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_Auction) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "cerc.auction.v1.Auction.id": x.Id = "" case "cerc.auction.v1.Auction.kind": x.Kind = "" case "cerc.auction.v1.Auction.status": x.Status = "" case "cerc.auction.v1.Auction.owner_address": x.OwnerAddress = "" case "cerc.auction.v1.Auction.create_time": x.CreateTime = nil case "cerc.auction.v1.Auction.commits_end_time": x.CommitsEndTime = nil case "cerc.auction.v1.Auction.reveals_end_time": x.RevealsEndTime = nil case "cerc.auction.v1.Auction.commit_fee": x.CommitFee = nil case "cerc.auction.v1.Auction.reveal_fee": x.RevealFee = nil case "cerc.auction.v1.Auction.minimum_bid": x.MinimumBid = nil case "cerc.auction.v1.Auction.winner_addresses": x.WinnerAddresses = nil case "cerc.auction.v1.Auction.winning_bids": x.WinningBids = nil case "cerc.auction.v1.Auction.winning_price": x.WinningPrice = nil case "cerc.auction.v1.Auction.max_price": x.MaxPrice = nil case "cerc.auction.v1.Auction.num_providers": x.NumProviders = int32(0) case "cerc.auction.v1.Auction.funds_released": x.FundsReleased = false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auction")) } panic(fmt.Errorf("message cerc.auction.v1.Auction 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_Auction) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "cerc.auction.v1.Auction.id": value := x.Id return protoreflect.ValueOfString(value) case "cerc.auction.v1.Auction.kind": value := x.Kind return protoreflect.ValueOfString(value) case "cerc.auction.v1.Auction.status": value := x.Status return protoreflect.ValueOfString(value) case "cerc.auction.v1.Auction.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) case "cerc.auction.v1.Auction.create_time": value := x.CreateTime return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.commits_end_time": value := x.CommitsEndTime return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.reveals_end_time": value := x.RevealsEndTime return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.commit_fee": value := x.CommitFee return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.reveal_fee": value := x.RevealFee return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.minimum_bid": value := x.MinimumBid return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.winner_addresses": if len(x.WinnerAddresses) == 0 { return protoreflect.ValueOfList(&_Auction_11_list{}) } listValue := &_Auction_11_list{list: &x.WinnerAddresses} return protoreflect.ValueOfList(listValue) case "cerc.auction.v1.Auction.winning_bids": if len(x.WinningBids) == 0 { return protoreflect.ValueOfList(&_Auction_12_list{}) } listValue := &_Auction_12_list{list: &x.WinningBids} return protoreflect.ValueOfList(listValue) case "cerc.auction.v1.Auction.winning_price": value := x.WinningPrice return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.max_price": value := x.MaxPrice return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Auction.num_providers": value := x.NumProviders return protoreflect.ValueOfInt32(value) case "cerc.auction.v1.Auction.funds_released": value := x.FundsReleased return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auction")) } panic(fmt.Errorf("message cerc.auction.v1.Auction 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_Auction) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cerc.auction.v1.Auction.id": x.Id = value.Interface().(string) case "cerc.auction.v1.Auction.kind": x.Kind = value.Interface().(string) case "cerc.auction.v1.Auction.status": x.Status = value.Interface().(string) case "cerc.auction.v1.Auction.owner_address": x.OwnerAddress = value.Interface().(string) case "cerc.auction.v1.Auction.create_time": x.CreateTime = value.Message().Interface().(*timestamppb.Timestamp) case "cerc.auction.v1.Auction.commits_end_time": x.CommitsEndTime = value.Message().Interface().(*timestamppb.Timestamp) case "cerc.auction.v1.Auction.reveals_end_time": x.RevealsEndTime = value.Message().Interface().(*timestamppb.Timestamp) case "cerc.auction.v1.Auction.commit_fee": x.CommitFee = value.Message().Interface().(*v1beta1.Coin) case "cerc.auction.v1.Auction.reveal_fee": x.RevealFee = value.Message().Interface().(*v1beta1.Coin) case "cerc.auction.v1.Auction.minimum_bid": x.MinimumBid = value.Message().Interface().(*v1beta1.Coin) case "cerc.auction.v1.Auction.winner_addresses": lv := value.List() clv := lv.(*_Auction_11_list) x.WinnerAddresses = *clv.list case "cerc.auction.v1.Auction.winning_bids": lv := value.List() clv := lv.(*_Auction_12_list) x.WinningBids = *clv.list case "cerc.auction.v1.Auction.winning_price": x.WinningPrice = value.Message().Interface().(*v1beta1.Coin) case "cerc.auction.v1.Auction.max_price": x.MaxPrice = value.Message().Interface().(*v1beta1.Coin) case "cerc.auction.v1.Auction.num_providers": x.NumProviders = int32(value.Int()) case "cerc.auction.v1.Auction.funds_released": x.FundsReleased = value.Bool() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auction")) } panic(fmt.Errorf("message cerc.auction.v1.Auction 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_Auction) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cerc.auction.v1.Auction.create_time": if x.CreateTime == nil { x.CreateTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.CreateTime.ProtoReflect()) case "cerc.auction.v1.Auction.commits_end_time": if x.CommitsEndTime == nil { x.CommitsEndTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.CommitsEndTime.ProtoReflect()) case "cerc.auction.v1.Auction.reveals_end_time": if x.RevealsEndTime == nil { x.RevealsEndTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.RevealsEndTime.ProtoReflect()) case "cerc.auction.v1.Auction.commit_fee": if x.CommitFee == nil { x.CommitFee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.CommitFee.ProtoReflect()) case "cerc.auction.v1.Auction.reveal_fee": if x.RevealFee == nil { x.RevealFee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.RevealFee.ProtoReflect()) case "cerc.auction.v1.Auction.minimum_bid": if x.MinimumBid == nil { x.MinimumBid = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.MinimumBid.ProtoReflect()) case "cerc.auction.v1.Auction.winner_addresses": if x.WinnerAddresses == nil { x.WinnerAddresses = []string{} } value := &_Auction_11_list{list: &x.WinnerAddresses} return protoreflect.ValueOfList(value) case "cerc.auction.v1.Auction.winning_bids": if x.WinningBids == nil { x.WinningBids = []*v1beta1.Coin{} } value := &_Auction_12_list{list: &x.WinningBids} return protoreflect.ValueOfList(value) case "cerc.auction.v1.Auction.winning_price": if x.WinningPrice == nil { x.WinningPrice = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.WinningPrice.ProtoReflect()) case "cerc.auction.v1.Auction.max_price": if x.MaxPrice == nil { x.MaxPrice = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.MaxPrice.ProtoReflect()) case "cerc.auction.v1.Auction.id": panic(fmt.Errorf("field id of message cerc.auction.v1.Auction is not mutable")) case "cerc.auction.v1.Auction.kind": panic(fmt.Errorf("field kind of message cerc.auction.v1.Auction is not mutable")) case "cerc.auction.v1.Auction.status": panic(fmt.Errorf("field status of message cerc.auction.v1.Auction is not mutable")) case "cerc.auction.v1.Auction.owner_address": panic(fmt.Errorf("field owner_address of message cerc.auction.v1.Auction is not mutable")) case "cerc.auction.v1.Auction.num_providers": panic(fmt.Errorf("field num_providers of message cerc.auction.v1.Auction is not mutable")) case "cerc.auction.v1.Auction.funds_released": panic(fmt.Errorf("field funds_released of message cerc.auction.v1.Auction is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auction")) } panic(fmt.Errorf("message cerc.auction.v1.Auction 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_Auction) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cerc.auction.v1.Auction.id": return protoreflect.ValueOfString("") case "cerc.auction.v1.Auction.kind": return protoreflect.ValueOfString("") case "cerc.auction.v1.Auction.status": return protoreflect.ValueOfString("") case "cerc.auction.v1.Auction.owner_address": return protoreflect.ValueOfString("") case "cerc.auction.v1.Auction.create_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.commits_end_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.reveals_end_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.commit_fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.reveal_fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.minimum_bid": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.winner_addresses": list := []string{} return protoreflect.ValueOfList(&_Auction_11_list{list: &list}) case "cerc.auction.v1.Auction.winning_bids": list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_Auction_12_list{list: &list}) case "cerc.auction.v1.Auction.winning_price": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.max_price": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Auction.num_providers": return protoreflect.ValueOfInt32(int32(0)) case "cerc.auction.v1.Auction.funds_released": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auction")) } panic(fmt.Errorf("message cerc.auction.v1.Auction 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_Auction) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in cerc.auction.v1.Auction", 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_Auction) 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_Auction) 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_Auction) 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_Auction) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*Auction) 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.Id) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Kind) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Status) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.OwnerAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.CreateTime != nil { l = options.Size(x.CreateTime) n += 1 + l + runtime.Sov(uint64(l)) } if x.CommitsEndTime != nil { l = options.Size(x.CommitsEndTime) n += 1 + l + runtime.Sov(uint64(l)) } if x.RevealsEndTime != nil { l = options.Size(x.RevealsEndTime) n += 1 + l + runtime.Sov(uint64(l)) } if x.CommitFee != nil { l = options.Size(x.CommitFee) n += 1 + l + runtime.Sov(uint64(l)) } if x.RevealFee != nil { l = options.Size(x.RevealFee) n += 1 + l + runtime.Sov(uint64(l)) } if x.MinimumBid != nil { l = options.Size(x.MinimumBid) n += 1 + l + runtime.Sov(uint64(l)) } if len(x.WinnerAddresses) > 0 { for _, s := range x.WinnerAddresses { l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } if len(x.WinningBids) > 0 { for _, e := range x.WinningBids { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } if x.WinningPrice != nil { l = options.Size(x.WinningPrice) n += 1 + l + runtime.Sov(uint64(l)) } if x.MaxPrice != nil { l = options.Size(x.MaxPrice) n += 1 + l + runtime.Sov(uint64(l)) } if x.NumProviders != 0 { n += 1 + runtime.Sov(uint64(x.NumProviders)) } if x.FundsReleased { n += 3 } 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().(*Auction) 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.FundsReleased { i-- if x.FundsReleased { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x80 } if x.NumProviders != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.NumProviders)) i-- dAtA[i] = 0x78 } if x.MaxPrice != nil { encoded, err := options.Marshal(x.MaxPrice) 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 x.WinningPrice != nil { encoded, err := options.Marshal(x.WinningPrice) 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.WinningBids) > 0 { for iNdEx := len(x.WinningBids) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.WinningBids[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 len(x.WinnerAddresses) > 0 { for iNdEx := len(x.WinnerAddresses) - 1; iNdEx >= 0; iNdEx-- { i -= len(x.WinnerAddresses[iNdEx]) copy(dAtA[i:], x.WinnerAddresses[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WinnerAddresses[iNdEx]))) i-- dAtA[i] = 0x5a } } if x.MinimumBid != nil { encoded, err := options.Marshal(x.MinimumBid) 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.RevealFee != nil { encoded, err := options.Marshal(x.RevealFee) 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.CommitFee != nil { encoded, err := options.Marshal(x.CommitFee) 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.RevealsEndTime != nil { encoded, err := options.Marshal(x.RevealsEndTime) 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 x.CommitsEndTime != nil { encoded, err := options.Marshal(x.CommitsEndTime) 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.CreateTime != nil { encoded, err := options.Marshal(x.CreateTime) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Buf: input.Buf, }, err } i -= len(encoded) copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x2a } if len(x.OwnerAddress) > 0 { i -= len(x.OwnerAddress) copy(dAtA[i:], x.OwnerAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) i-- dAtA[i] = 0x22 } if len(x.Status) > 0 { i -= len(x.Status) copy(dAtA[i:], x.Status) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status))) i-- dAtA[i] = 0x1a } if len(x.Kind) > 0 { i -= len(x.Kind) copy(dAtA[i:], x.Kind) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Kind))) i-- dAtA[i] = 0x12 } if len(x.Id) > 0 { i -= len(x.Id) copy(dAtA[i:], x.Id) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) 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().(*Auction) 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: Auction: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Auction: 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 Id", 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.Id = 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 Kind", 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.Kind = 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 Status", 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.Status = 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 OwnerAddress", 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.OwnerAddress = 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 CreateTime", 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.CreateTime == nil { x.CreateTime = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreateTime); 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 CommitsEndTime", 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.CommitsEndTime == nil { x.CommitsEndTime = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CommitsEndTime); 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 RevealsEndTime", 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.RevealsEndTime == nil { x.RevealsEndTime = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RevealsEndTime); 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 CommitFee", 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.CommitFee == nil { x.CommitFee = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CommitFee); 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 RevealFee", 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.RevealFee == nil { x.RevealFee = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RevealFee); 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 MinimumBid", 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.MinimumBid == nil { x.MinimumBid = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MinimumBid); 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 WinnerAddresses", 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.WinnerAddresses = append(x.WinnerAddresses, 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 WinningBids", 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.WinningBids = append(x.WinningBids, &v1beta1.Coin{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WinningBids[len(x.WinningBids)-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 WinningPrice", 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.WinningPrice == nil { x.WinningPrice = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WinningPrice); 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 MaxPrice", 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.MaxPrice == nil { x.MaxPrice = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MaxPrice); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 15: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NumProviders", wireType) } x.NumProviders = 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.NumProviders |= int32(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 FundsReleased", 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.FundsReleased = 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 = (*_Auctions_1_list)(nil) type _Auctions_1_list struct { list *[]*Auction } func (x *_Auctions_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_Auctions_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_Auctions_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Auction) (*x.list)[i] = concreteValue } func (x *_Auctions_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Auction) *x.list = append(*x.list, concreteValue) } func (x *_Auctions_1_list) AppendMutable() protoreflect.Value { v := new(Auction) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Auctions_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } func (x *_Auctions_1_list) NewElement() protoreflect.Value { v := new(Auction) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Auctions_1_list) IsValid() bool { return x.list != nil } var ( md_Auctions protoreflect.MessageDescriptor fd_Auctions_auctions protoreflect.FieldDescriptor ) func init() { file_cerc_auction_v1_auction_proto_init() md_Auctions = File_cerc_auction_v1_auction_proto.Messages().ByName("Auctions") fd_Auctions_auctions = md_Auctions.Fields().ByName("auctions") } var _ protoreflect.Message = (*fastReflection_Auctions)(nil) type fastReflection_Auctions Auctions func (x *Auctions) ProtoReflect() protoreflect.Message { return (*fastReflection_Auctions)(x) } func (x *Auctions) slowProtoReflect() protoreflect.Message { mi := &file_cerc_auction_v1_auction_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_Auctions_messageType fastReflection_Auctions_messageType var _ protoreflect.MessageType = fastReflection_Auctions_messageType{} type fastReflection_Auctions_messageType struct{} func (x fastReflection_Auctions_messageType) Zero() protoreflect.Message { return (*fastReflection_Auctions)(nil) } func (x fastReflection_Auctions_messageType) New() protoreflect.Message { return new(fastReflection_Auctions) } func (x fastReflection_Auctions_messageType) Descriptor() protoreflect.MessageDescriptor { return md_Auctions } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_Auctions) Descriptor() protoreflect.MessageDescriptor { return md_Auctions } // 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_Auctions) Type() protoreflect.MessageType { return _fastReflection_Auctions_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_Auctions) New() protoreflect.Message { return new(fastReflection_Auctions) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_Auctions) Interface() protoreflect.ProtoMessage { return (*Auctions)(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_Auctions) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Auctions) != 0 { value := protoreflect.ValueOfList(&_Auctions_1_list{list: &x.Auctions}) if !f(fd_Auctions_auctions, 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_Auctions) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "cerc.auction.v1.Auctions.auctions": return len(x.Auctions) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auctions")) } panic(fmt.Errorf("message cerc.auction.v1.Auctions 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_Auctions) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "cerc.auction.v1.Auctions.auctions": x.Auctions = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auctions")) } panic(fmt.Errorf("message cerc.auction.v1.Auctions 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_Auctions) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "cerc.auction.v1.Auctions.auctions": if len(x.Auctions) == 0 { return protoreflect.ValueOfList(&_Auctions_1_list{}) } listValue := &_Auctions_1_list{list: &x.Auctions} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auctions")) } panic(fmt.Errorf("message cerc.auction.v1.Auctions 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_Auctions) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cerc.auction.v1.Auctions.auctions": lv := value.List() clv := lv.(*_Auctions_1_list) x.Auctions = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auctions")) } panic(fmt.Errorf("message cerc.auction.v1.Auctions 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_Auctions) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cerc.auction.v1.Auctions.auctions": if x.Auctions == nil { x.Auctions = []*Auction{} } value := &_Auctions_1_list{list: &x.Auctions} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auctions")) } panic(fmt.Errorf("message cerc.auction.v1.Auctions 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_Auctions) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cerc.auction.v1.Auctions.auctions": list := []*Auction{} return protoreflect.ValueOfList(&_Auctions_1_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Auctions")) } panic(fmt.Errorf("message cerc.auction.v1.Auctions 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_Auctions) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in cerc.auction.v1.Auctions", 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_Auctions) 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_Auctions) 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_Auctions) 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_Auctions) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*Auctions) 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.Auctions) > 0 { for _, e := range x.Auctions { 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().(*Auctions) 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.Auctions) > 0 { for iNdEx := len(x.Auctions) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Auctions[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().(*Auctions) 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: Auctions: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Auctions: 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 Auctions", 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.Auctions = append(x.Auctions, &Auction{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Auctions[len(x.Auctions)-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_Bid protoreflect.MessageDescriptor fd_Bid_auction_id protoreflect.FieldDescriptor fd_Bid_bidder_address protoreflect.FieldDescriptor fd_Bid_status protoreflect.FieldDescriptor fd_Bid_commit_hash protoreflect.FieldDescriptor fd_Bid_commit_time protoreflect.FieldDescriptor fd_Bid_commit_fee protoreflect.FieldDescriptor fd_Bid_reveal_time protoreflect.FieldDescriptor fd_Bid_reveal_fee protoreflect.FieldDescriptor fd_Bid_bid_amount protoreflect.FieldDescriptor ) func init() { file_cerc_auction_v1_auction_proto_init() md_Bid = File_cerc_auction_v1_auction_proto.Messages().ByName("Bid") fd_Bid_auction_id = md_Bid.Fields().ByName("auction_id") fd_Bid_bidder_address = md_Bid.Fields().ByName("bidder_address") fd_Bid_status = md_Bid.Fields().ByName("status") fd_Bid_commit_hash = md_Bid.Fields().ByName("commit_hash") fd_Bid_commit_time = md_Bid.Fields().ByName("commit_time") fd_Bid_commit_fee = md_Bid.Fields().ByName("commit_fee") fd_Bid_reveal_time = md_Bid.Fields().ByName("reveal_time") fd_Bid_reveal_fee = md_Bid.Fields().ByName("reveal_fee") fd_Bid_bid_amount = md_Bid.Fields().ByName("bid_amount") } var _ protoreflect.Message = (*fastReflection_Bid)(nil) type fastReflection_Bid Bid func (x *Bid) ProtoReflect() protoreflect.Message { return (*fastReflection_Bid)(x) } func (x *Bid) slowProtoReflect() protoreflect.Message { mi := &file_cerc_auction_v1_auction_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_Bid_messageType fastReflection_Bid_messageType var _ protoreflect.MessageType = fastReflection_Bid_messageType{} type fastReflection_Bid_messageType struct{} func (x fastReflection_Bid_messageType) Zero() protoreflect.Message { return (*fastReflection_Bid)(nil) } func (x fastReflection_Bid_messageType) New() protoreflect.Message { return new(fastReflection_Bid) } func (x fastReflection_Bid_messageType) Descriptor() protoreflect.MessageDescriptor { return md_Bid } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_Bid) Descriptor() protoreflect.MessageDescriptor { return md_Bid } // 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_Bid) Type() protoreflect.MessageType { return _fastReflection_Bid_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_Bid) New() protoreflect.Message { return new(fastReflection_Bid) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_Bid) Interface() protoreflect.ProtoMessage { return (*Bid)(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_Bid) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.AuctionId != "" { value := protoreflect.ValueOfString(x.AuctionId) if !f(fd_Bid_auction_id, value) { return } } if x.BidderAddress != "" { value := protoreflect.ValueOfString(x.BidderAddress) if !f(fd_Bid_bidder_address, value) { return } } if x.Status != "" { value := protoreflect.ValueOfString(x.Status) if !f(fd_Bid_status, value) { return } } if x.CommitHash != "" { value := protoreflect.ValueOfString(x.CommitHash) if !f(fd_Bid_commit_hash, value) { return } } if x.CommitTime != nil { value := protoreflect.ValueOfMessage(x.CommitTime.ProtoReflect()) if !f(fd_Bid_commit_time, value) { return } } if x.CommitFee != nil { value := protoreflect.ValueOfMessage(x.CommitFee.ProtoReflect()) if !f(fd_Bid_commit_fee, value) { return } } if x.RevealTime != nil { value := protoreflect.ValueOfMessage(x.RevealTime.ProtoReflect()) if !f(fd_Bid_reveal_time, value) { return } } if x.RevealFee != nil { value := protoreflect.ValueOfMessage(x.RevealFee.ProtoReflect()) if !f(fd_Bid_reveal_fee, value) { return } } if x.BidAmount != nil { value := protoreflect.ValueOfMessage(x.BidAmount.ProtoReflect()) if !f(fd_Bid_bid_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_Bid) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "cerc.auction.v1.Bid.auction_id": return x.AuctionId != "" case "cerc.auction.v1.Bid.bidder_address": return x.BidderAddress != "" case "cerc.auction.v1.Bid.status": return x.Status != "" case "cerc.auction.v1.Bid.commit_hash": return x.CommitHash != "" case "cerc.auction.v1.Bid.commit_time": return x.CommitTime != nil case "cerc.auction.v1.Bid.commit_fee": return x.CommitFee != nil case "cerc.auction.v1.Bid.reveal_time": return x.RevealTime != nil case "cerc.auction.v1.Bid.reveal_fee": return x.RevealFee != nil case "cerc.auction.v1.Bid.bid_amount": return x.BidAmount != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Bid")) } panic(fmt.Errorf("message cerc.auction.v1.Bid 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_Bid) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "cerc.auction.v1.Bid.auction_id": x.AuctionId = "" case "cerc.auction.v1.Bid.bidder_address": x.BidderAddress = "" case "cerc.auction.v1.Bid.status": x.Status = "" case "cerc.auction.v1.Bid.commit_hash": x.CommitHash = "" case "cerc.auction.v1.Bid.commit_time": x.CommitTime = nil case "cerc.auction.v1.Bid.commit_fee": x.CommitFee = nil case "cerc.auction.v1.Bid.reveal_time": x.RevealTime = nil case "cerc.auction.v1.Bid.reveal_fee": x.RevealFee = nil case "cerc.auction.v1.Bid.bid_amount": x.BidAmount = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Bid")) } panic(fmt.Errorf("message cerc.auction.v1.Bid 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_Bid) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "cerc.auction.v1.Bid.auction_id": value := x.AuctionId return protoreflect.ValueOfString(value) case "cerc.auction.v1.Bid.bidder_address": value := x.BidderAddress return protoreflect.ValueOfString(value) case "cerc.auction.v1.Bid.status": value := x.Status return protoreflect.ValueOfString(value) case "cerc.auction.v1.Bid.commit_hash": value := x.CommitHash return protoreflect.ValueOfString(value) case "cerc.auction.v1.Bid.commit_time": value := x.CommitTime return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Bid.commit_fee": value := x.CommitFee return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Bid.reveal_time": value := x.RevealTime return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Bid.reveal_fee": value := x.RevealFee return protoreflect.ValueOfMessage(value.ProtoReflect()) case "cerc.auction.v1.Bid.bid_amount": value := x.BidAmount return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Bid")) } panic(fmt.Errorf("message cerc.auction.v1.Bid 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_Bid) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cerc.auction.v1.Bid.auction_id": x.AuctionId = value.Interface().(string) case "cerc.auction.v1.Bid.bidder_address": x.BidderAddress = value.Interface().(string) case "cerc.auction.v1.Bid.status": x.Status = value.Interface().(string) case "cerc.auction.v1.Bid.commit_hash": x.CommitHash = value.Interface().(string) case "cerc.auction.v1.Bid.commit_time": x.CommitTime = value.Message().Interface().(*timestamppb.Timestamp) case "cerc.auction.v1.Bid.commit_fee": x.CommitFee = value.Message().Interface().(*v1beta1.Coin) case "cerc.auction.v1.Bid.reveal_time": x.RevealTime = value.Message().Interface().(*timestamppb.Timestamp) case "cerc.auction.v1.Bid.reveal_fee": x.RevealFee = value.Message().Interface().(*v1beta1.Coin) case "cerc.auction.v1.Bid.bid_amount": x.BidAmount = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Bid")) } panic(fmt.Errorf("message cerc.auction.v1.Bid 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_Bid) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cerc.auction.v1.Bid.commit_time": if x.CommitTime == nil { x.CommitTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.CommitTime.ProtoReflect()) case "cerc.auction.v1.Bid.commit_fee": if x.CommitFee == nil { x.CommitFee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.CommitFee.ProtoReflect()) case "cerc.auction.v1.Bid.reveal_time": if x.RevealTime == nil { x.RevealTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.RevealTime.ProtoReflect()) case "cerc.auction.v1.Bid.reveal_fee": if x.RevealFee == nil { x.RevealFee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.RevealFee.ProtoReflect()) case "cerc.auction.v1.Bid.bid_amount": if x.BidAmount == nil { x.BidAmount = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.BidAmount.ProtoReflect()) case "cerc.auction.v1.Bid.auction_id": panic(fmt.Errorf("field auction_id of message cerc.auction.v1.Bid is not mutable")) case "cerc.auction.v1.Bid.bidder_address": panic(fmt.Errorf("field bidder_address of message cerc.auction.v1.Bid is not mutable")) case "cerc.auction.v1.Bid.status": panic(fmt.Errorf("field status of message cerc.auction.v1.Bid is not mutable")) case "cerc.auction.v1.Bid.commit_hash": panic(fmt.Errorf("field commit_hash of message cerc.auction.v1.Bid is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Bid")) } panic(fmt.Errorf("message cerc.auction.v1.Bid 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_Bid) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cerc.auction.v1.Bid.auction_id": return protoreflect.ValueOfString("") case "cerc.auction.v1.Bid.bidder_address": return protoreflect.ValueOfString("") case "cerc.auction.v1.Bid.status": return protoreflect.ValueOfString("") case "cerc.auction.v1.Bid.commit_hash": return protoreflect.ValueOfString("") case "cerc.auction.v1.Bid.commit_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Bid.commit_fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Bid.reveal_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Bid.reveal_fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cerc.auction.v1.Bid.bid_amount": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.auction.v1.Bid")) } panic(fmt.Errorf("message cerc.auction.v1.Bid 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_Bid) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in cerc.auction.v1.Bid", 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_Bid) 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_Bid) 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_Bid) 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_Bid) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*Bid) 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.AuctionId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.BidderAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Status) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.CommitHash) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.CommitTime != nil { l = options.Size(x.CommitTime) n += 1 + l + runtime.Sov(uint64(l)) } if x.CommitFee != nil { l = options.Size(x.CommitFee) n += 1 + l + runtime.Sov(uint64(l)) } if x.RevealTime != nil { l = options.Size(x.RevealTime) n += 1 + l + runtime.Sov(uint64(l)) } if x.RevealFee != nil { l = options.Size(x.RevealFee) n += 1 + l + runtime.Sov(uint64(l)) } if x.BidAmount != nil { l = options.Size(x.BidAmount) 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().(*Bid) 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.BidAmount != nil { encoded, err := options.Marshal(x.BidAmount) 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.RevealFee != nil { encoded, err := options.Marshal(x.RevealFee) 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.RevealTime != nil { encoded, err := options.Marshal(x.RevealTime) 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 x.CommitFee != nil { encoded, err := options.Marshal(x.CommitFee) 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.CommitTime != nil { encoded, err := options.Marshal(x.CommitTime) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Buf: input.Buf, }, err } i -= len(encoded) copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x2a } if len(x.CommitHash) > 0 { i -= len(x.CommitHash) copy(dAtA[i:], x.CommitHash) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CommitHash))) i-- dAtA[i] = 0x22 } if len(x.Status) > 0 { i -= len(x.Status) copy(dAtA[i:], x.Status) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status))) i-- dAtA[i] = 0x1a } if len(x.BidderAddress) > 0 { i -= len(x.BidderAddress) copy(dAtA[i:], x.BidderAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BidderAddress))) i-- dAtA[i] = 0x12 } if len(x.AuctionId) > 0 { i -= len(x.AuctionId) copy(dAtA[i:], x.AuctionId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AuctionId))) 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().(*Bid) 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: Bid: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Bid: 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 AuctionId", 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.AuctionId = 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 BidderAddress", 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.BidderAddress = 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 Status", 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.Status = 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 CommitHash", 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.CommitHash = 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 CommitTime", 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.CommitTime == nil { x.CommitTime = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CommitTime); 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 CommitFee", 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.CommitFee == nil { x.CommitFee = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CommitFee); 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 RevealTime", 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.RevealTime == nil { x.RevealTime = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RevealTime); 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 RevealFee", 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.RevealFee == nil { x.RevealFee = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RevealFee); 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 BidAmount", 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.BidAmount == nil { x.BidAmount = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BidAmount); 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: cerc/auction/v1/auction.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 auction module parameters type Params struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *Params) Reset() { *x = Params{} if protoimpl.UnsafeEnabled { mi := &file_cerc_auction_v1_auction_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_cerc_auction_v1_auction_proto_rawDescGZIP(), []int{0} } // Auction represents a sealed-bid on-chain auction type Auction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Auction kind (vickrey | provider) Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // Address of the creator of the auction OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // Timestamp at which the auction was created CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Timestamp at which the commits phase concluded CommitsEndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=commits_end_time,json=commitsEndTime,proto3" json:"commits_end_time,omitempty"` // Timestamp at which the reveals phase concluded RevealsEndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=reveals_end_time,json=revealsEndTime,proto3" json:"reveals_end_time,omitempty"` // Commit and reveal fees must both be paid when committing a bid // Reveal fee is returned only if the bid is revealed CommitFee *v1beta1.Coin `protobuf:"bytes,8,opt,name=commit_fee,json=commitFee,proto3" json:"commit_fee,omitempty"` RevealFee *v1beta1.Coin `protobuf:"bytes,9,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee,omitempty"` // Minimum acceptable bid amount for a valid commit // Only applicable in vickrey auctions MinimumBid *v1beta1.Coin `protobuf:"bytes,10,opt,name=minimum_bid,json=minimumBid,proto3" json:"minimum_bid,omitempty"` // Addresses of the winners // (single winner for vickrey auction) // (multiple winners for provider auctions) WinnerAddresses []string `protobuf:"bytes,11,rep,name=winner_addresses,json=winnerAddresses,proto3" json:"winner_addresses,omitempty"` // Winning bids, i.e. the best bids WinningBids []*v1beta1.Coin `protobuf:"bytes,12,rep,name=winning_bids,json=winningBids,proto3" json:"winning_bids,omitempty"` // Auction winning price // vickrey auction: second highest bid, paid by the winner // provider auction: higest bid amongst winning_bids, paid by auction creator // to each winner WinningPrice *v1beta1.Coin `protobuf:"bytes,13,opt,name=winning_price,json=winningPrice,proto3" json:"winning_price,omitempty"` // Maximum acceptable bid amount for a valid commit // Only applicable in provider auctions MaxPrice *v1beta1.Coin `protobuf:"bytes,14,opt,name=max_price,json=maxPrice,proto3" json:"max_price,omitempty"` // Number of desired providers (num of auction winners) // Only applicable in provider auctions NumProviders int32 `protobuf:"varint,15,opt,name=num_providers,json=numProviders,proto3" json:"num_providers,omitempty"` // Whether funds have been released to providers // Only applicable in provider auctions FundsReleased bool `protobuf:"varint,16,opt,name=funds_released,json=fundsReleased,proto3" json:"funds_released,omitempty"` } func (x *Auction) Reset() { *x = Auction{} if protoimpl.UnsafeEnabled { mi := &file_cerc_auction_v1_auction_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Auction) String() string { return protoimpl.X.MessageStringOf(x) } func (*Auction) ProtoMessage() {} // Deprecated: Use Auction.ProtoReflect.Descriptor instead. func (*Auction) Descriptor() ([]byte, []int) { return file_cerc_auction_v1_auction_proto_rawDescGZIP(), []int{1} } func (x *Auction) GetId() string { if x != nil { return x.Id } return "" } func (x *Auction) GetKind() string { if x != nil { return x.Kind } return "" } func (x *Auction) GetStatus() string { if x != nil { return x.Status } return "" } func (x *Auction) GetOwnerAddress() string { if x != nil { return x.OwnerAddress } return "" } func (x *Auction) GetCreateTime() *timestamppb.Timestamp { if x != nil { return x.CreateTime } return nil } func (x *Auction) GetCommitsEndTime() *timestamppb.Timestamp { if x != nil { return x.CommitsEndTime } return nil } func (x *Auction) GetRevealsEndTime() *timestamppb.Timestamp { if x != nil { return x.RevealsEndTime } return nil } func (x *Auction) GetCommitFee() *v1beta1.Coin { if x != nil { return x.CommitFee } return nil } func (x *Auction) GetRevealFee() *v1beta1.Coin { if x != nil { return x.RevealFee } return nil } func (x *Auction) GetMinimumBid() *v1beta1.Coin { if x != nil { return x.MinimumBid } return nil } func (x *Auction) GetWinnerAddresses() []string { if x != nil { return x.WinnerAddresses } return nil } func (x *Auction) GetWinningBids() []*v1beta1.Coin { if x != nil { return x.WinningBids } return nil } func (x *Auction) GetWinningPrice() *v1beta1.Coin { if x != nil { return x.WinningPrice } return nil } func (x *Auction) GetMaxPrice() *v1beta1.Coin { if x != nil { return x.MaxPrice } return nil } func (x *Auction) GetNumProviders() int32 { if x != nil { return x.NumProviders } return 0 } func (x *Auction) GetFundsReleased() bool { if x != nil { return x.FundsReleased } return false } // Auctions represent all the auctions in the module type Auctions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Auctions []*Auction `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions,omitempty"` } func (x *Auctions) Reset() { *x = Auctions{} if protoimpl.UnsafeEnabled { mi := &file_cerc_auction_v1_auction_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Auctions) String() string { return protoimpl.X.MessageStringOf(x) } func (*Auctions) ProtoMessage() {} // Deprecated: Use Auctions.ProtoReflect.Descriptor instead. func (*Auctions) Descriptor() ([]byte, []int) { return file_cerc_auction_v1_auction_proto_rawDescGZIP(), []int{2} } func (x *Auctions) GetAuctions() []*Auction { if x != nil { return x.Auctions } return nil } // Bid represents a sealed bid (commit) made during the auction type Bid struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` BidderAddress string `protobuf:"bytes,2,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` CommitHash string `protobuf:"bytes,4,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"` CommitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"` CommitFee *v1beta1.Coin `protobuf:"bytes,6,opt,name=commit_fee,json=commitFee,proto3" json:"commit_fee,omitempty"` RevealTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=reveal_time,json=revealTime,proto3" json:"reveal_time,omitempty"` RevealFee *v1beta1.Coin `protobuf:"bytes,8,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee,omitempty"` BidAmount *v1beta1.Coin `protobuf:"bytes,9,opt,name=bid_amount,json=bidAmount,proto3" json:"bid_amount,omitempty"` } func (x *Bid) Reset() { *x = Bid{} if protoimpl.UnsafeEnabled { mi := &file_cerc_auction_v1_auction_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Bid) String() string { return protoimpl.X.MessageStringOf(x) } func (*Bid) ProtoMessage() {} // Deprecated: Use Bid.ProtoReflect.Descriptor instead. func (*Bid) Descriptor() ([]byte, []int) { return file_cerc_auction_v1_auction_proto_rawDescGZIP(), []int{3} } func (x *Bid) GetAuctionId() string { if x != nil { return x.AuctionId } return "" } func (x *Bid) GetBidderAddress() string { if x != nil { return x.BidderAddress } return "" } func (x *Bid) GetStatus() string { if x != nil { return x.Status } return "" } func (x *Bid) GetCommitHash() string { if x != nil { return x.CommitHash } return "" } func (x *Bid) GetCommitTime() *timestamppb.Timestamp { if x != nil { return x.CommitTime } return nil } func (x *Bid) GetCommitFee() *v1beta1.Coin { if x != nil { return x.CommitFee } return nil } func (x *Bid) GetRevealTime() *timestamppb.Timestamp { if x != nil { return x.RevealTime } return nil } func (x *Bid) GetRevealFee() *v1beta1.Coin { if x != nil { return x.RevealFee } return nil } func (x *Bid) GetBidAmount() *v1beta1.Coin { if x != nil { return x.BidAmount } return nil } var File_cerc_auction_v1_auction_proto protoreflect.FileDescriptor var file_cerc_auction_v1_auction_proto_rawDesc = []byte{ 0x0a, 0x1d, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 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, 0x08, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xab, 0x0a, 0x0a, 0x07, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1b, 0xf2, 0xde, 0x1f, 0x17, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x3b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x10, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x3b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 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, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x23, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x65, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 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, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x23, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52, 0x09, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x46, 0x65, 0x65, 0x12, 0x69, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x69, 0x64, 0x18, 0x0a, 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, 0x2d, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x69, 0x64, 0x22, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x42, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x77, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x77, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x6d, 0x0a, 0x0c, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x69, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x2f, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x27, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x69, 0x64, 0x73, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x69, 0x64, 0x73, 0x22, 0x52, 0x0b, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x42, 0x69, 0x64, 0x73, 0x12, 0x71, 0x0a, 0x0d, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0d, 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, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x29, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x52, 0x0c, 0x77, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x61, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0e, 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, 0x29, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x21, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x75, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6e, 0x75, 0x6d, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x56, 0x0a, 0x0e, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x42, 0x2f, 0xf2, 0xde, 0x1f, 0x2b, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x22, 0x52, 0x0d, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x4c, 0x0a, 0x08, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x9f, 0x05, 0x0a, 0x03, 0x42, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x69, 0x64, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x69, 0x64, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x6e, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 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, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x23, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x65, 0x65, 0x12, 0x6e, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 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, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x23, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52, 0x09, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x46, 0x65, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x62, 0x69, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 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, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x23, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x62, 0x69, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x69, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x52, 0x09, 0x62, 0x69, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x42, 0xbc, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x2e, 0x76, 0x64, 0x62, 0x2e, 0x74, 0x6f, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2d, 0x69, 0x6f, 0x2f, 0x6c, 0x61, 0x63, 0x6f, 0x6e, 0x69, 0x63, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x65, 0x72, 0x63, 0x2e, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x65, 0x72, 0x63, 0x3a, 0x3a, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_cerc_auction_v1_auction_proto_rawDescOnce sync.Once file_cerc_auction_v1_auction_proto_rawDescData = file_cerc_auction_v1_auction_proto_rawDesc ) func file_cerc_auction_v1_auction_proto_rawDescGZIP() []byte { file_cerc_auction_v1_auction_proto_rawDescOnce.Do(func() { file_cerc_auction_v1_auction_proto_rawDescData = protoimpl.X.CompressGZIP(file_cerc_auction_v1_auction_proto_rawDescData) }) return file_cerc_auction_v1_auction_proto_rawDescData } var file_cerc_auction_v1_auction_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_cerc_auction_v1_auction_proto_goTypes = []interface{}{ (*Params)(nil), // 0: cerc.auction.v1.Params (*Auction)(nil), // 1: cerc.auction.v1.Auction (*Auctions)(nil), // 2: cerc.auction.v1.Auctions (*Bid)(nil), // 3: cerc.auction.v1.Bid (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin } var file_cerc_auction_v1_auction_proto_depIdxs = []int32{ 4, // 0: cerc.auction.v1.Auction.create_time:type_name -> google.protobuf.Timestamp 4, // 1: cerc.auction.v1.Auction.commits_end_time:type_name -> google.protobuf.Timestamp 4, // 2: cerc.auction.v1.Auction.reveals_end_time:type_name -> google.protobuf.Timestamp 5, // 3: cerc.auction.v1.Auction.commit_fee:type_name -> cosmos.base.v1beta1.Coin 5, // 4: cerc.auction.v1.Auction.reveal_fee:type_name -> cosmos.base.v1beta1.Coin 5, // 5: cerc.auction.v1.Auction.minimum_bid:type_name -> cosmos.base.v1beta1.Coin 5, // 6: cerc.auction.v1.Auction.winning_bids:type_name -> cosmos.base.v1beta1.Coin 5, // 7: cerc.auction.v1.Auction.winning_price:type_name -> cosmos.base.v1beta1.Coin 5, // 8: cerc.auction.v1.Auction.max_price:type_name -> cosmos.base.v1beta1.Coin 1, // 9: cerc.auction.v1.Auctions.auctions:type_name -> cerc.auction.v1.Auction 4, // 10: cerc.auction.v1.Bid.commit_time:type_name -> google.protobuf.Timestamp 5, // 11: cerc.auction.v1.Bid.commit_fee:type_name -> cosmos.base.v1beta1.Coin 4, // 12: cerc.auction.v1.Bid.reveal_time:type_name -> google.protobuf.Timestamp 5, // 13: cerc.auction.v1.Bid.reveal_fee:type_name -> cosmos.base.v1beta1.Coin 5, // 14: cerc.auction.v1.Bid.bid_amount:type_name -> cosmos.base.v1beta1.Coin 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_cerc_auction_v1_auction_proto_init() } func file_cerc_auction_v1_auction_proto_init() { if File_cerc_auction_v1_auction_proto != nil { return } if !protoimpl.UnsafeEnabled { file_cerc_auction_v1_auction_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 } } file_cerc_auction_v1_auction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Auction); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_cerc_auction_v1_auction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Auctions); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_cerc_auction_v1_auction_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Bid); 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_cerc_auction_v1_auction_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, GoTypes: file_cerc_auction_v1_auction_proto_goTypes, DependencyIndexes: file_cerc_auction_v1_auction_proto_depIdxs, MessageInfos: file_cerc_auction_v1_auction_proto_msgTypes, }.Build() File_cerc_auction_v1_auction_proto = out.File file_cerc_auction_v1_auction_proto_rawDesc = nil file_cerc_auction_v1_auction_proto_goTypes = nil file_cerc_auction_v1_auction_proto_depIdxs = nil }