// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. package machine import ( fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" reflect "reflect" sync "sync" ) var ( md_Machine protoreflect.MessageDescriptor fd_Machine_name protoreflect.FieldDescriptor fd_Machine_ticker protoreflect.FieldDescriptor fd_Machine_domain protoreflect.FieldDescriptor fd_Machine_reissue protoreflect.FieldDescriptor fd_Machine_amount protoreflect.FieldDescriptor fd_Machine_precision protoreflect.FieldDescriptor fd_Machine_issuerPlanetmint protoreflect.FieldDescriptor fd_Machine_issuerLiquid protoreflect.FieldDescriptor fd_Machine_machineId protoreflect.FieldDescriptor fd_Machine_metadata protoreflect.FieldDescriptor fd_Machine_type protoreflect.FieldDescriptor fd_Machine_machineIdSignature protoreflect.FieldDescriptor fd_Machine_address protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_machine_proto_init() md_Machine = File_planetmintgo_machine_machine_proto.Messages().ByName("Machine") fd_Machine_name = md_Machine.Fields().ByName("name") fd_Machine_ticker = md_Machine.Fields().ByName("ticker") fd_Machine_domain = md_Machine.Fields().ByName("domain") fd_Machine_reissue = md_Machine.Fields().ByName("reissue") fd_Machine_amount = md_Machine.Fields().ByName("amount") fd_Machine_precision = md_Machine.Fields().ByName("precision") fd_Machine_issuerPlanetmint = md_Machine.Fields().ByName("issuerPlanetmint") fd_Machine_issuerLiquid = md_Machine.Fields().ByName("issuerLiquid") fd_Machine_machineId = md_Machine.Fields().ByName("machineId") fd_Machine_metadata = md_Machine.Fields().ByName("metadata") fd_Machine_type = md_Machine.Fields().ByName("type") fd_Machine_machineIdSignature = md_Machine.Fields().ByName("machineIdSignature") fd_Machine_address = md_Machine.Fields().ByName("address") } var _ protoreflect.Message = (*fastReflection_Machine)(nil) type fastReflection_Machine Machine func (x *Machine) ProtoReflect() protoreflect.Message { return (*fastReflection_Machine)(x) } func (x *Machine) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_machine_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_Machine_messageType fastReflection_Machine_messageType var _ protoreflect.MessageType = fastReflection_Machine_messageType{} type fastReflection_Machine_messageType struct{} func (x fastReflection_Machine_messageType) Zero() protoreflect.Message { return (*fastReflection_Machine)(nil) } func (x fastReflection_Machine_messageType) New() protoreflect.Message { return new(fastReflection_Machine) } func (x fastReflection_Machine_messageType) Descriptor() protoreflect.MessageDescriptor { return md_Machine } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_Machine) Descriptor() protoreflect.MessageDescriptor { return md_Machine } // 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_Machine) Type() protoreflect.MessageType { return _fastReflection_Machine_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_Machine) New() protoreflect.Message { return new(fastReflection_Machine) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_Machine) Interface() protoreflect.ProtoMessage { return (*Machine)(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_Machine) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Name != "" { value := protoreflect.ValueOfString(x.Name) if !f(fd_Machine_name, value) { return } } if x.Ticker != "" { value := protoreflect.ValueOfString(x.Ticker) if !f(fd_Machine_ticker, value) { return } } if x.Domain != "" { value := protoreflect.ValueOfString(x.Domain) if !f(fd_Machine_domain, value) { return } } if x.Reissue != false { value := protoreflect.ValueOfBool(x.Reissue) if !f(fd_Machine_reissue, value) { return } } if x.Amount != uint64(0) { value := protoreflect.ValueOfUint64(x.Amount) if !f(fd_Machine_amount, value) { return } } if x.Precision != uint64(0) { value := protoreflect.ValueOfUint64(x.Precision) if !f(fd_Machine_precision, value) { return } } if x.IssuerPlanetmint != "" { value := protoreflect.ValueOfString(x.IssuerPlanetmint) if !f(fd_Machine_issuerPlanetmint, value) { return } } if x.IssuerLiquid != "" { value := protoreflect.ValueOfString(x.IssuerLiquid) if !f(fd_Machine_issuerLiquid, value) { return } } if x.MachineId != "" { value := protoreflect.ValueOfString(x.MachineId) if !f(fd_Machine_machineId, value) { return } } if x.Metadata != nil { value := protoreflect.ValueOfMessage(x.Metadata.ProtoReflect()) if !f(fd_Machine_metadata, value) { return } } if x.Type_ != uint32(0) { value := protoreflect.ValueOfUint32(x.Type_) if !f(fd_Machine_type, value) { return } } if x.MachineIdSignature != "" { value := protoreflect.ValueOfString(x.MachineIdSignature) if !f(fd_Machine_machineIdSignature, value) { return } } if x.Address != "" { value := protoreflect.ValueOfString(x.Address) if !f(fd_Machine_address, value) { return } } } // Has reports whether a field is populated. // // Some fields have the property of nullability where it is possible to // distinguish between the default value of a field and whether the field // was explicitly populated with the default value. Singular message fields, // member fields of a oneof, and proto2 scalar fields are nullable. Such // fields are populated only if explicitly set. // // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. func (x *fastReflection_Machine) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.Machine.name": return x.Name != "" case "planetmintgo.machine.Machine.ticker": return x.Ticker != "" case "planetmintgo.machine.Machine.domain": return x.Domain != "" case "planetmintgo.machine.Machine.reissue": return x.Reissue != false case "planetmintgo.machine.Machine.amount": return x.Amount != uint64(0) case "planetmintgo.machine.Machine.precision": return x.Precision != uint64(0) case "planetmintgo.machine.Machine.issuerPlanetmint": return x.IssuerPlanetmint != "" case "planetmintgo.machine.Machine.issuerLiquid": return x.IssuerLiquid != "" case "planetmintgo.machine.Machine.machineId": return x.MachineId != "" case "planetmintgo.machine.Machine.metadata": return x.Metadata != nil case "planetmintgo.machine.Machine.type": return x.Type_ != uint32(0) case "planetmintgo.machine.Machine.machineIdSignature": return x.MachineIdSignature != "" case "planetmintgo.machine.Machine.address": return x.Address != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Machine")) } panic(fmt.Errorf("message planetmintgo.machine.Machine 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_Machine) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.Machine.name": x.Name = "" case "planetmintgo.machine.Machine.ticker": x.Ticker = "" case "planetmintgo.machine.Machine.domain": x.Domain = "" case "planetmintgo.machine.Machine.reissue": x.Reissue = false case "planetmintgo.machine.Machine.amount": x.Amount = uint64(0) case "planetmintgo.machine.Machine.precision": x.Precision = uint64(0) case "planetmintgo.machine.Machine.issuerPlanetmint": x.IssuerPlanetmint = "" case "planetmintgo.machine.Machine.issuerLiquid": x.IssuerLiquid = "" case "planetmintgo.machine.Machine.machineId": x.MachineId = "" case "planetmintgo.machine.Machine.metadata": x.Metadata = nil case "planetmintgo.machine.Machine.type": x.Type_ = uint32(0) case "planetmintgo.machine.Machine.machineIdSignature": x.MachineIdSignature = "" case "planetmintgo.machine.Machine.address": x.Address = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Machine")) } panic(fmt.Errorf("message planetmintgo.machine.Machine 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_Machine) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.Machine.name": value := x.Name return protoreflect.ValueOfString(value) case "planetmintgo.machine.Machine.ticker": value := x.Ticker return protoreflect.ValueOfString(value) case "planetmintgo.machine.Machine.domain": value := x.Domain return protoreflect.ValueOfString(value) case "planetmintgo.machine.Machine.reissue": value := x.Reissue return protoreflect.ValueOfBool(value) case "planetmintgo.machine.Machine.amount": value := x.Amount return protoreflect.ValueOfUint64(value) case "planetmintgo.machine.Machine.precision": value := x.Precision return protoreflect.ValueOfUint64(value) case "planetmintgo.machine.Machine.issuerPlanetmint": value := x.IssuerPlanetmint return protoreflect.ValueOfString(value) case "planetmintgo.machine.Machine.issuerLiquid": value := x.IssuerLiquid return protoreflect.ValueOfString(value) case "planetmintgo.machine.Machine.machineId": value := x.MachineId return protoreflect.ValueOfString(value) case "planetmintgo.machine.Machine.metadata": value := x.Metadata return protoreflect.ValueOfMessage(value.ProtoReflect()) case "planetmintgo.machine.Machine.type": value := x.Type_ return protoreflect.ValueOfUint32(value) case "planetmintgo.machine.Machine.machineIdSignature": value := x.MachineIdSignature return protoreflect.ValueOfString(value) case "planetmintgo.machine.Machine.address": value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Machine")) } panic(fmt.Errorf("message planetmintgo.machine.Machine 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_Machine) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.Machine.name": x.Name = value.Interface().(string) case "planetmintgo.machine.Machine.ticker": x.Ticker = value.Interface().(string) case "planetmintgo.machine.Machine.domain": x.Domain = value.Interface().(string) case "planetmintgo.machine.Machine.reissue": x.Reissue = value.Bool() case "planetmintgo.machine.Machine.amount": x.Amount = value.Uint() case "planetmintgo.machine.Machine.precision": x.Precision = value.Uint() case "planetmintgo.machine.Machine.issuerPlanetmint": x.IssuerPlanetmint = value.Interface().(string) case "planetmintgo.machine.Machine.issuerLiquid": x.IssuerLiquid = value.Interface().(string) case "planetmintgo.machine.Machine.machineId": x.MachineId = value.Interface().(string) case "planetmintgo.machine.Machine.metadata": x.Metadata = value.Message().Interface().(*Metadata) case "planetmintgo.machine.Machine.type": x.Type_ = uint32(value.Uint()) case "planetmintgo.machine.Machine.machineIdSignature": x.MachineIdSignature = value.Interface().(string) case "planetmintgo.machine.Machine.address": x.Address = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Machine")) } panic(fmt.Errorf("message planetmintgo.machine.Machine 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_Machine) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.Machine.metadata": if x.Metadata == nil { x.Metadata = new(Metadata) } return protoreflect.ValueOfMessage(x.Metadata.ProtoReflect()) case "planetmintgo.machine.Machine.name": panic(fmt.Errorf("field name of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.ticker": panic(fmt.Errorf("field ticker of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.domain": panic(fmt.Errorf("field domain of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.reissue": panic(fmt.Errorf("field reissue of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.amount": panic(fmt.Errorf("field amount of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.precision": panic(fmt.Errorf("field precision of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.issuerPlanetmint": panic(fmt.Errorf("field issuerPlanetmint of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.issuerLiquid": panic(fmt.Errorf("field issuerLiquid of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.machineId": panic(fmt.Errorf("field machineId of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.type": panic(fmt.Errorf("field type of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.machineIdSignature": panic(fmt.Errorf("field machineIdSignature of message planetmintgo.machine.Machine is not mutable")) case "planetmintgo.machine.Machine.address": panic(fmt.Errorf("field address of message planetmintgo.machine.Machine is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Machine")) } panic(fmt.Errorf("message planetmintgo.machine.Machine 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_Machine) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.Machine.name": return protoreflect.ValueOfString("") case "planetmintgo.machine.Machine.ticker": return protoreflect.ValueOfString("") case "planetmintgo.machine.Machine.domain": return protoreflect.ValueOfString("") case "planetmintgo.machine.Machine.reissue": return protoreflect.ValueOfBool(false) case "planetmintgo.machine.Machine.amount": return protoreflect.ValueOfUint64(uint64(0)) case "planetmintgo.machine.Machine.precision": return protoreflect.ValueOfUint64(uint64(0)) case "planetmintgo.machine.Machine.issuerPlanetmint": return protoreflect.ValueOfString("") case "planetmintgo.machine.Machine.issuerLiquid": return protoreflect.ValueOfString("") case "planetmintgo.machine.Machine.machineId": return protoreflect.ValueOfString("") case "planetmintgo.machine.Machine.metadata": m := new(Metadata) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "planetmintgo.machine.Machine.type": return protoreflect.ValueOfUint32(uint32(0)) case "planetmintgo.machine.Machine.machineIdSignature": return protoreflect.ValueOfString("") case "planetmintgo.machine.Machine.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Machine")) } panic(fmt.Errorf("message planetmintgo.machine.Machine 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_Machine) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.Machine", 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_Machine) 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_Machine) 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_Machine) 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_Machine) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*Machine) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Size: 0, } } options := runtime.SizeInputToOptions(input) _ = options var n int var l int _ = l l = len(x.Name) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Ticker) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Domain) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.Reissue { n += 2 } if x.Amount != 0 { n += 1 + runtime.Sov(uint64(x.Amount)) } if x.Precision != 0 { n += 1 + runtime.Sov(uint64(x.Precision)) } l = len(x.IssuerPlanetmint) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.IssuerLiquid) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.MachineId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.Metadata != nil { l = options.Size(x.Metadata) n += 1 + l + runtime.Sov(uint64(l)) } if x.Type_ != 0 { n += 1 + runtime.Sov(uint64(x.Type_)) } l = len(x.MachineIdSignature) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Address) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) } return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Size: n, } } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { x := input.Message.Interface().(*Machine) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Buf: input.Buf, }, nil } options := runtime.MarshalInputToOptions(input) _ = options size := options.Size(x) dAtA := make([]byte, size) i := len(dAtA) _ = i var l int _ = l if x.unknownFields != nil { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } if len(x.Address) > 0 { i -= len(x.Address) copy(dAtA[i:], x.Address) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) i-- dAtA[i] = 0x6a } if len(x.MachineIdSignature) > 0 { i -= len(x.MachineIdSignature) copy(dAtA[i:], x.MachineIdSignature) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MachineIdSignature))) i-- dAtA[i] = 0x62 } if x.Type_ != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_)) i-- dAtA[i] = 0x58 } if x.Metadata != nil { encoded, err := options.Marshal(x.Metadata) 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 len(x.MachineId) > 0 { i -= len(x.MachineId) copy(dAtA[i:], x.MachineId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MachineId))) i-- dAtA[i] = 0x4a } if len(x.IssuerLiquid) > 0 { i -= len(x.IssuerLiquid) copy(dAtA[i:], x.IssuerLiquid) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IssuerLiquid))) i-- dAtA[i] = 0x42 } if len(x.IssuerPlanetmint) > 0 { i -= len(x.IssuerPlanetmint) copy(dAtA[i:], x.IssuerPlanetmint) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IssuerPlanetmint))) i-- dAtA[i] = 0x3a } if x.Precision != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Precision)) i-- dAtA[i] = 0x30 } if x.Amount != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) i-- dAtA[i] = 0x28 } if x.Reissue { i-- if x.Reissue { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 } if len(x.Domain) > 0 { i -= len(x.Domain) copy(dAtA[i:], x.Domain) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Domain))) i-- dAtA[i] = 0x1a } if len(x.Ticker) > 0 { i -= len(x.Ticker) copy(dAtA[i:], x.Ticker) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Ticker))) i-- dAtA[i] = 0x12 } if len(x.Name) > 0 { i -= len(x.Name) copy(dAtA[i:], x.Name) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) i-- dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { input.Buf = dAtA } return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Buf: input.Buf, }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { x := input.Message.Interface().(*Machine) 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: Machine: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Machine: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } if iNdEx >= l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } x.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ticker", 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.Ticker = 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 Domain", 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.Domain = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reissue", 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.Reissue = bool(v != 0) case 5: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } x.Amount = 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.Amount |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Precision", wireType) } x.Precision = 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.Precision |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerPlanetmint", 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.IssuerPlanetmint = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 8: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerLiquid", 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.IssuerLiquid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 9: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MachineId", 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.MachineId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 10: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", 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.Metadata == nil { x.Metadata = &Metadata{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Metadata); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 11: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType) } x.Type_ = 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.Type_ |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 12: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MachineIdSignature", 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.MachineIdSignature = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 13: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } if iNdEx >= l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } x.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_Metadata protoreflect.MessageDescriptor fd_Metadata_gps protoreflect.FieldDescriptor fd_Metadata_device protoreflect.FieldDescriptor fd_Metadata_assetDefinition protoreflect.FieldDescriptor fd_Metadata_additionalDataCID protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_machine_proto_init() md_Metadata = File_planetmintgo_machine_machine_proto.Messages().ByName("Metadata") fd_Metadata_gps = md_Metadata.Fields().ByName("gps") fd_Metadata_device = md_Metadata.Fields().ByName("device") fd_Metadata_assetDefinition = md_Metadata.Fields().ByName("assetDefinition") fd_Metadata_additionalDataCID = md_Metadata.Fields().ByName("additionalDataCID") } var _ protoreflect.Message = (*fastReflection_Metadata)(nil) type fastReflection_Metadata Metadata func (x *Metadata) ProtoReflect() protoreflect.Message { return (*fastReflection_Metadata)(x) } func (x *Metadata) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_machine_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_Metadata_messageType fastReflection_Metadata_messageType var _ protoreflect.MessageType = fastReflection_Metadata_messageType{} type fastReflection_Metadata_messageType struct{} func (x fastReflection_Metadata_messageType) Zero() protoreflect.Message { return (*fastReflection_Metadata)(nil) } func (x fastReflection_Metadata_messageType) New() protoreflect.Message { return new(fastReflection_Metadata) } func (x fastReflection_Metadata_messageType) Descriptor() protoreflect.MessageDescriptor { return md_Metadata } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_Metadata) Descriptor() protoreflect.MessageDescriptor { return md_Metadata } // 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_Metadata) Type() protoreflect.MessageType { return _fastReflection_Metadata_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_Metadata) New() protoreflect.Message { return new(fastReflection_Metadata) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_Metadata) Interface() protoreflect.ProtoMessage { return (*Metadata)(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_Metadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Gps != "" { value := protoreflect.ValueOfString(x.Gps) if !f(fd_Metadata_gps, value) { return } } if x.Device != "" { value := protoreflect.ValueOfString(x.Device) if !f(fd_Metadata_device, value) { return } } if x.AssetDefinition != "" { value := protoreflect.ValueOfString(x.AssetDefinition) if !f(fd_Metadata_assetDefinition, value) { return } } if x.AdditionalDataCID != "" { value := protoreflect.ValueOfString(x.AdditionalDataCID) if !f(fd_Metadata_additionalDataCID, 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_Metadata) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.Metadata.gps": return x.Gps != "" case "planetmintgo.machine.Metadata.device": return x.Device != "" case "planetmintgo.machine.Metadata.assetDefinition": return x.AssetDefinition != "" case "planetmintgo.machine.Metadata.additionalDataCID": return x.AdditionalDataCID != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Metadata")) } panic(fmt.Errorf("message planetmintgo.machine.Metadata 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_Metadata) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.Metadata.gps": x.Gps = "" case "planetmintgo.machine.Metadata.device": x.Device = "" case "planetmintgo.machine.Metadata.assetDefinition": x.AssetDefinition = "" case "planetmintgo.machine.Metadata.additionalDataCID": x.AdditionalDataCID = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Metadata")) } panic(fmt.Errorf("message planetmintgo.machine.Metadata 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_Metadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.Metadata.gps": value := x.Gps return protoreflect.ValueOfString(value) case "planetmintgo.machine.Metadata.device": value := x.Device return protoreflect.ValueOfString(value) case "planetmintgo.machine.Metadata.assetDefinition": value := x.AssetDefinition return protoreflect.ValueOfString(value) case "planetmintgo.machine.Metadata.additionalDataCID": value := x.AdditionalDataCID return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Metadata")) } panic(fmt.Errorf("message planetmintgo.machine.Metadata 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_Metadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.Metadata.gps": x.Gps = value.Interface().(string) case "planetmintgo.machine.Metadata.device": x.Device = value.Interface().(string) case "planetmintgo.machine.Metadata.assetDefinition": x.AssetDefinition = value.Interface().(string) case "planetmintgo.machine.Metadata.additionalDataCID": x.AdditionalDataCID = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Metadata")) } panic(fmt.Errorf("message planetmintgo.machine.Metadata 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_Metadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.Metadata.gps": panic(fmt.Errorf("field gps of message planetmintgo.machine.Metadata is not mutable")) case "planetmintgo.machine.Metadata.device": panic(fmt.Errorf("field device of message planetmintgo.machine.Metadata is not mutable")) case "planetmintgo.machine.Metadata.assetDefinition": panic(fmt.Errorf("field assetDefinition of message planetmintgo.machine.Metadata is not mutable")) case "planetmintgo.machine.Metadata.additionalDataCID": panic(fmt.Errorf("field additionalDataCID of message planetmintgo.machine.Metadata is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Metadata")) } panic(fmt.Errorf("message planetmintgo.machine.Metadata 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_Metadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.Metadata.gps": return protoreflect.ValueOfString("") case "planetmintgo.machine.Metadata.device": return protoreflect.ValueOfString("") case "planetmintgo.machine.Metadata.assetDefinition": return protoreflect.ValueOfString("") case "planetmintgo.machine.Metadata.additionalDataCID": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.Metadata")) } panic(fmt.Errorf("message planetmintgo.machine.Metadata 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_Metadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.Metadata", 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_Metadata) 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_Metadata) 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_Metadata) 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_Metadata) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*Metadata) 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.Gps) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Device) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.AssetDefinition) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.AdditionalDataCID) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) } return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Size: n, } } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { x := input.Message.Interface().(*Metadata) 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.AdditionalDataCID) > 0 { i -= len(x.AdditionalDataCID) copy(dAtA[i:], x.AdditionalDataCID) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AdditionalDataCID))) i-- dAtA[i] = 0x22 } if len(x.AssetDefinition) > 0 { i -= len(x.AssetDefinition) copy(dAtA[i:], x.AssetDefinition) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AssetDefinition))) i-- dAtA[i] = 0x1a } if len(x.Device) > 0 { i -= len(x.Device) copy(dAtA[i:], x.Device) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Device))) i-- dAtA[i] = 0x12 } if len(x.Gps) > 0 { i -= len(x.Gps) copy(dAtA[i:], x.Gps) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Gps))) 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().(*Metadata) 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: Metadata: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Metadata: 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 Gps", 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.Gps = 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 Device", 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.Device = 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 AssetDefinition", 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.AssetDefinition = 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 AdditionalDataCID", 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.AdditionalDataCID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_MachineIndex protoreflect.MessageDescriptor fd_MachineIndex_machineId protoreflect.FieldDescriptor fd_MachineIndex_issuerPlanetmint protoreflect.FieldDescriptor fd_MachineIndex_issuerLiquid protoreflect.FieldDescriptor fd_MachineIndex_address protoreflect.FieldDescriptor ) func init() { file_planetmintgo_machine_machine_proto_init() md_MachineIndex = File_planetmintgo_machine_machine_proto.Messages().ByName("MachineIndex") fd_MachineIndex_machineId = md_MachineIndex.Fields().ByName("machineId") fd_MachineIndex_issuerPlanetmint = md_MachineIndex.Fields().ByName("issuerPlanetmint") fd_MachineIndex_issuerLiquid = md_MachineIndex.Fields().ByName("issuerLiquid") fd_MachineIndex_address = md_MachineIndex.Fields().ByName("address") } var _ protoreflect.Message = (*fastReflection_MachineIndex)(nil) type fastReflection_MachineIndex MachineIndex func (x *MachineIndex) ProtoReflect() protoreflect.Message { return (*fastReflection_MachineIndex)(x) } func (x *MachineIndex) slowProtoReflect() protoreflect.Message { mi := &file_planetmintgo_machine_machine_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_MachineIndex_messageType fastReflection_MachineIndex_messageType var _ protoreflect.MessageType = fastReflection_MachineIndex_messageType{} type fastReflection_MachineIndex_messageType struct{} func (x fastReflection_MachineIndex_messageType) Zero() protoreflect.Message { return (*fastReflection_MachineIndex)(nil) } func (x fastReflection_MachineIndex_messageType) New() protoreflect.Message { return new(fastReflection_MachineIndex) } func (x fastReflection_MachineIndex_messageType) Descriptor() protoreflect.MessageDescriptor { return md_MachineIndex } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_MachineIndex) Descriptor() protoreflect.MessageDescriptor { return md_MachineIndex } // 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_MachineIndex) Type() protoreflect.MessageType { return _fastReflection_MachineIndex_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_MachineIndex) New() protoreflect.Message { return new(fastReflection_MachineIndex) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_MachineIndex) Interface() protoreflect.ProtoMessage { return (*MachineIndex)(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_MachineIndex) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.MachineId != "" { value := protoreflect.ValueOfString(x.MachineId) if !f(fd_MachineIndex_machineId, value) { return } } if x.IssuerPlanetmint != "" { value := protoreflect.ValueOfString(x.IssuerPlanetmint) if !f(fd_MachineIndex_issuerPlanetmint, value) { return } } if x.IssuerLiquid != "" { value := protoreflect.ValueOfString(x.IssuerLiquid) if !f(fd_MachineIndex_issuerLiquid, value) { return } } if x.Address != "" { value := protoreflect.ValueOfString(x.Address) if !f(fd_MachineIndex_address, value) { return } } } // Has reports whether a field is populated. // // Some fields have the property of nullability where it is possible to // distinguish between the default value of a field and whether the field // was explicitly populated with the default value. Singular message fields, // member fields of a oneof, and proto2 scalar fields are nullable. Such // fields are populated only if explicitly set. // // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. func (x *fastReflection_MachineIndex) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "planetmintgo.machine.MachineIndex.machineId": return x.MachineId != "" case "planetmintgo.machine.MachineIndex.issuerPlanetmint": return x.IssuerPlanetmint != "" case "planetmintgo.machine.MachineIndex.issuerLiquid": return x.IssuerLiquid != "" case "planetmintgo.machine.MachineIndex.address": return x.Address != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.MachineIndex")) } panic(fmt.Errorf("message planetmintgo.machine.MachineIndex 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_MachineIndex) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "planetmintgo.machine.MachineIndex.machineId": x.MachineId = "" case "planetmintgo.machine.MachineIndex.issuerPlanetmint": x.IssuerPlanetmint = "" case "planetmintgo.machine.MachineIndex.issuerLiquid": x.IssuerLiquid = "" case "planetmintgo.machine.MachineIndex.address": x.Address = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.MachineIndex")) } panic(fmt.Errorf("message planetmintgo.machine.MachineIndex 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_MachineIndex) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "planetmintgo.machine.MachineIndex.machineId": value := x.MachineId return protoreflect.ValueOfString(value) case "planetmintgo.machine.MachineIndex.issuerPlanetmint": value := x.IssuerPlanetmint return protoreflect.ValueOfString(value) case "planetmintgo.machine.MachineIndex.issuerLiquid": value := x.IssuerLiquid return protoreflect.ValueOfString(value) case "planetmintgo.machine.MachineIndex.address": value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.MachineIndex")) } panic(fmt.Errorf("message planetmintgo.machine.MachineIndex 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_MachineIndex) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "planetmintgo.machine.MachineIndex.machineId": x.MachineId = value.Interface().(string) case "planetmintgo.machine.MachineIndex.issuerPlanetmint": x.IssuerPlanetmint = value.Interface().(string) case "planetmintgo.machine.MachineIndex.issuerLiquid": x.IssuerLiquid = value.Interface().(string) case "planetmintgo.machine.MachineIndex.address": x.Address = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.MachineIndex")) } panic(fmt.Errorf("message planetmintgo.machine.MachineIndex 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_MachineIndex) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.MachineIndex.machineId": panic(fmt.Errorf("field machineId of message planetmintgo.machine.MachineIndex is not mutable")) case "planetmintgo.machine.MachineIndex.issuerPlanetmint": panic(fmt.Errorf("field issuerPlanetmint of message planetmintgo.machine.MachineIndex is not mutable")) case "planetmintgo.machine.MachineIndex.issuerLiquid": panic(fmt.Errorf("field issuerLiquid of message planetmintgo.machine.MachineIndex is not mutable")) case "planetmintgo.machine.MachineIndex.address": panic(fmt.Errorf("field address of message planetmintgo.machine.MachineIndex is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.MachineIndex")) } panic(fmt.Errorf("message planetmintgo.machine.MachineIndex 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_MachineIndex) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "planetmintgo.machine.MachineIndex.machineId": return protoreflect.ValueOfString("") case "planetmintgo.machine.MachineIndex.issuerPlanetmint": return protoreflect.ValueOfString("") case "planetmintgo.machine.MachineIndex.issuerLiquid": return protoreflect.ValueOfString("") case "planetmintgo.machine.MachineIndex.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: planetmintgo.machine.MachineIndex")) } panic(fmt.Errorf("message planetmintgo.machine.MachineIndex 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_MachineIndex) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in planetmintgo.machine.MachineIndex", 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_MachineIndex) 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_MachineIndex) 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_MachineIndex) 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_MachineIndex) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*MachineIndex) 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.MachineId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.IssuerPlanetmint) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.IssuerLiquid) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Address) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) } return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Size: n, } } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { x := input.Message.Interface().(*MachineIndex) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, Buf: input.Buf, }, nil } options := runtime.MarshalInputToOptions(input) _ = options size := options.Size(x) dAtA := make([]byte, size) i := len(dAtA) _ = i var l int _ = l if x.unknownFields != nil { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } if len(x.Address) > 0 { i -= len(x.Address) copy(dAtA[i:], x.Address) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) i-- dAtA[i] = 0x22 } if len(x.IssuerLiquid) > 0 { i -= len(x.IssuerLiquid) copy(dAtA[i:], x.IssuerLiquid) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IssuerLiquid))) i-- dAtA[i] = 0x1a } if len(x.IssuerPlanetmint) > 0 { i -= len(x.IssuerPlanetmint) copy(dAtA[i:], x.IssuerPlanetmint) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IssuerPlanetmint))) i-- dAtA[i] = 0x12 } if len(x.MachineId) > 0 { i -= len(x.MachineId) copy(dAtA[i:], x.MachineId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MachineId))) 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().(*MachineIndex) 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: MachineIndex: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MachineIndex: 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 MachineId", 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.MachineId = 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 IssuerPlanetmint", 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.IssuerPlanetmint = 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 IssuerLiquid", 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.IssuerLiquid = 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 Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } if iNdEx >= l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } x.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 // protoc (unknown) // source: planetmintgo/machine/machine.proto const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type Machine struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Ticker string `protobuf:"bytes,2,opt,name=ticker,proto3" json:"ticker,omitempty"` Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` Reissue bool `protobuf:"varint,4,opt,name=reissue,proto3" json:"reissue,omitempty"` Amount uint64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Precision uint64 `protobuf:"varint,6,opt,name=precision,proto3" json:"precision,omitempty"` IssuerPlanetmint string `protobuf:"bytes,7,opt,name=issuerPlanetmint,proto3" json:"issuerPlanetmint,omitempty"` IssuerLiquid string `protobuf:"bytes,8,opt,name=issuerLiquid,proto3" json:"issuerLiquid,omitempty"` MachineId string `protobuf:"bytes,9,opt,name=machineId,proto3" json:"machineId,omitempty"` Metadata *Metadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"` Type_ uint32 `protobuf:"varint,11,opt,name=type,proto3" json:"type,omitempty"` MachineIdSignature string `protobuf:"bytes,12,opt,name=machineIdSignature,proto3" json:"machineIdSignature,omitempty"` Address string `protobuf:"bytes,13,opt,name=address,proto3" json:"address,omitempty"` } func (x *Machine) Reset() { *x = Machine{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_machine_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Machine) String() string { return protoimpl.X.MessageStringOf(x) } func (*Machine) ProtoMessage() {} // Deprecated: Use Machine.ProtoReflect.Descriptor instead. func (*Machine) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_machine_proto_rawDescGZIP(), []int{0} } func (x *Machine) GetName() string { if x != nil { return x.Name } return "" } func (x *Machine) GetTicker() string { if x != nil { return x.Ticker } return "" } func (x *Machine) GetDomain() string { if x != nil { return x.Domain } return "" } func (x *Machine) GetReissue() bool { if x != nil { return x.Reissue } return false } func (x *Machine) GetAmount() uint64 { if x != nil { return x.Amount } return 0 } func (x *Machine) GetPrecision() uint64 { if x != nil { return x.Precision } return 0 } func (x *Machine) GetIssuerPlanetmint() string { if x != nil { return x.IssuerPlanetmint } return "" } func (x *Machine) GetIssuerLiquid() string { if x != nil { return x.IssuerLiquid } return "" } func (x *Machine) GetMachineId() string { if x != nil { return x.MachineId } return "" } func (x *Machine) GetMetadata() *Metadata { if x != nil { return x.Metadata } return nil } func (x *Machine) GetType_() uint32 { if x != nil { return x.Type_ } return 0 } func (x *Machine) GetMachineIdSignature() string { if x != nil { return x.MachineIdSignature } return "" } func (x *Machine) GetAddress() string { if x != nil { return x.Address } return "" } type Metadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Gps string `protobuf:"bytes,1,opt,name=gps,proto3" json:"gps,omitempty"` Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` AssetDefinition string `protobuf:"bytes,3,opt,name=assetDefinition,proto3" json:"assetDefinition,omitempty"` AdditionalDataCID string `protobuf:"bytes,4,opt,name=additionalDataCID,proto3" json:"additionalDataCID,omitempty"` } func (x *Metadata) Reset() { *x = Metadata{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_machine_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Metadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*Metadata) ProtoMessage() {} // Deprecated: Use Metadata.ProtoReflect.Descriptor instead. func (*Metadata) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_machine_proto_rawDescGZIP(), []int{1} } func (x *Metadata) GetGps() string { if x != nil { return x.Gps } return "" } func (x *Metadata) GetDevice() string { if x != nil { return x.Device } return "" } func (x *Metadata) GetAssetDefinition() string { if x != nil { return x.AssetDefinition } return "" } func (x *Metadata) GetAdditionalDataCID() string { if x != nil { return x.AdditionalDataCID } return "" } type MachineIndex struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MachineId string `protobuf:"bytes,1,opt,name=machineId,proto3" json:"machineId,omitempty"` IssuerPlanetmint string `protobuf:"bytes,2,opt,name=issuerPlanetmint,proto3" json:"issuerPlanetmint,omitempty"` IssuerLiquid string `protobuf:"bytes,3,opt,name=issuerLiquid,proto3" json:"issuerLiquid,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` } func (x *MachineIndex) Reset() { *x = MachineIndex{} if protoimpl.UnsafeEnabled { mi := &file_planetmintgo_machine_machine_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MachineIndex) String() string { return protoimpl.X.MessageStringOf(x) } func (*MachineIndex) ProtoMessage() {} // Deprecated: Use MachineIndex.ProtoReflect.Descriptor instead. func (*MachineIndex) Descriptor() ([]byte, []int) { return file_planetmintgo_machine_machine_proto_rawDescGZIP(), []int{2} } func (x *MachineIndex) GetMachineId() string { if x != nil { return x.MachineId } return "" } func (x *MachineIndex) GetIssuerPlanetmint() string { if x != nil { return x.IssuerPlanetmint } return "" } func (x *MachineIndex) GetIssuerLiquid() string { if x != nil { return x.IssuerLiquid } return "" } func (x *MachineIndex) GetAddress() string { if x != nil { return x.Address } return "" } var File_planetmintgo_machine_machine_proto protoreflect.FileDescriptor var file_planetmintgo_machine_machine_proto_rawDesc = []byte{ 0x0a, 0x22, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22, 0xa5, 0x03, 0x0a, 0x07, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x67, 0x70, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x43, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x43, 0x49, 0x44, 0x22, 0x96, 0x01, 0x0a, 0x0c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0xc0, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x0c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0xca, 0x02, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x5c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0xe2, 0x02, 0x20, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x5c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x74, 0x67, 0x6f, 0x3a, 0x3a, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_planetmintgo_machine_machine_proto_rawDescOnce sync.Once file_planetmintgo_machine_machine_proto_rawDescData = file_planetmintgo_machine_machine_proto_rawDesc ) func file_planetmintgo_machine_machine_proto_rawDescGZIP() []byte { file_planetmintgo_machine_machine_proto_rawDescOnce.Do(func() { file_planetmintgo_machine_machine_proto_rawDescData = protoimpl.X.CompressGZIP(file_planetmintgo_machine_machine_proto_rawDescData) }) return file_planetmintgo_machine_machine_proto_rawDescData } var file_planetmintgo_machine_machine_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_planetmintgo_machine_machine_proto_goTypes = []interface{}{ (*Machine)(nil), // 0: planetmintgo.machine.Machine (*Metadata)(nil), // 1: planetmintgo.machine.Metadata (*MachineIndex)(nil), // 2: planetmintgo.machine.MachineIndex } var file_planetmintgo_machine_machine_proto_depIdxs = []int32{ 1, // 0: planetmintgo.machine.Machine.metadata:type_name -> planetmintgo.machine.Metadata 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_planetmintgo_machine_machine_proto_init() } func file_planetmintgo_machine_machine_proto_init() { if File_planetmintgo_machine_machine_proto != nil { return } if !protoimpl.UnsafeEnabled { file_planetmintgo_machine_machine_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Machine); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_machine_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Metadata); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_planetmintgo_machine_machine_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MachineIndex); 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_planetmintgo_machine_machine_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_planetmintgo_machine_machine_proto_goTypes, DependencyIndexes: file_planetmintgo_machine_machine_proto_depIdxs, MessageInfos: file_planetmintgo_machine_machine_proto_msgTypes, }.Build() File_planetmintgo_machine_machine_proto = out.File file_planetmintgo_machine_machine_proto_rawDesc = nil file_planetmintgo_machine_machine_proto_goTypes = nil file_planetmintgo_machine_machine_proto_depIdxs = nil }