diff --git a/proto/vulcanize/registry/v1beta1/attributes.proto b/proto/vulcanize/registry/v1beta1/attributes.proto index e3180f8f..b3caf74a 100644 --- a/proto/vulcanize/registry/v1beta1/attributes.proto +++ b/proto/vulcanize/registry/v1beta1/attributes.proto @@ -5,6 +5,10 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/cerc-io/laconicd/x/registry/types"; +message HashReference{ + string ref =1; +} + message ServiceProviderRecord { string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""]; string laconic_id = 2 [(gogoproto.moretags) = "json:\"laconicId\" yaml:\"laconicId\""]; @@ -26,10 +30,10 @@ message ServiceProviderRecord { message WebsiteRegistrationRecord { string url = 1 [(gogoproto.moretags) = "json:\"url\" yaml:\"url\""]; - map repo_reference = 2 + HashReference repo_reference = 2 [(gogoproto.moretags) = "json:\"repoReference\" yaml:\"repoReference\""]; - map build_artifact_ref = 3 [(gogoproto.moretags) = "json:\"buildArtifactRef\" yaml:\"buildArtifactRef\""]; - map tls_cert_ref = 4 [(gogoproto.moretags) = "json:\"tlsCertRef\" yaml:\"tlsCertRef\""]; + HashReference build_artifact_ref = 3 [(gogoproto.moretags) = "json:\"buildArtifactRef\" yaml:\"buildArtifactRef\""]; + HashReference tls_cert_ref = 4 [(gogoproto.moretags) = "json:\"tlsCertRef\" yaml:\"tlsCertRef\""]; string type = 5 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; string version = 6 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; } @@ -43,36 +47,36 @@ message GitRepository{ } message Binary{ - map hash_reference=1; + HashReference hash_reference=1; string targeted_arch=2; string runtime_version=3; - map repo_reference=4; + HashReference repo_reference=4; string version=5; string type=6; } message DockerImage{ string image_id=1; - map binary_reference=2; - map repo_reference=3; + HashReference binary_reference=2; + HashReference repo_reference=3; string version=4; string type=5; } message WatcherRegistrationRecord{ WatcherMetadata metadata =1; - map repo_reference=2; + HashReference repo_reference=2; WASMBinary wasm=3; string version=4; string type=5; message WatcherMetadata{ string version=1; - map chain_reference=2; + HashReference chain_reference=2; } message WASMBinary{ - map hash_reference=1; + HashReference hash_reference=1; WASMBinaryMetadata metadata=2; } @@ -83,16 +87,16 @@ message WatcherRegistrationRecord{ } message ResponderContract{ - map service_provider_ref=1; - map auction_ref=2; - map watcher_ref=3; + HashReference service_provider_ref=1; + HashReference auction_ref=2; + HashReference watcher_ref=3; string version=4; string type=5; } message JSPackage{ - map repo_reference=1; - map js_package_ref=2; + HashReference repo_reference=1; + HashReference js_package_ref=2; string version=3; string type=4; string name =5; @@ -105,5 +109,5 @@ message ChainRegistrationRecord{ string version=4; string chain_id=5; string network_id=6; - map genesis_hash=7; + HashReference genesis_hash=7; } \ No newline at end of file diff --git a/x/registry/helpers/examples/binary_example.yml b/x/registry/helpers/examples/binary_example.yml index ad8db108..88709fed 100644 --- a/x/registry/helpers/examples/binary_example.yml +++ b/x/registry/helpers/examples/binary_example.yml @@ -1,9 +1,9 @@ record: hash_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + ref: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 targeted_arch: x86_64 runtime_version: go 1.18 repo_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + ref: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D version: 1.0.0 type: Binary \ No newline at end of file diff --git a/x/registry/helpers/examples/chain_registration_example.yml b/x/registry/helpers/examples/chain_registration_example.yml index 4fa89aa7..c1324ec9 100644 --- a/x/registry/helpers/examples/chain_registration_example.yml +++ b/x/registry/helpers/examples/chain_registration_example.yml @@ -10,4 +10,4 @@ record: chain_id: laconic_9000-1 network_id: "1392" genesis_hash: - /: f6fbe71210275adc7c7ef585a72c065cdb85f0c8d13dea0f229fd7c22d445a26 \ No newline at end of file + ref: f6fbe71210275adc7c7ef585a72c065cdb85f0c8d13dea0f229fd7c22d445a26 \ No newline at end of file diff --git a/x/registry/helpers/examples/docker_image_example.yml b/x/registry/helpers/examples/docker_image_example.yml index b7ecd09e..9f2bc677 100644 --- a/x/registry/helpers/examples/docker_image_example.yml +++ b/x/registry/helpers/examples/docker_image_example.yml @@ -1,8 +1,8 @@ record: image_id: 77af4d6b9913 binary_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + ref: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 repo_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + ref: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D version: 1.0.0 type: DockerImage \ No newline at end of file diff --git a/x/registry/helpers/examples/example1.yml b/x/registry/helpers/examples/example1.yml index 3f7b4863..2046737c 100644 --- a/x/registry/helpers/examples/example1.yml +++ b/x/registry/helpers/examples/example1.yml @@ -2,6 +2,6 @@ record: attr1: value1 attr2: value2 link1: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + ref: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D link2: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + ref: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 diff --git a/x/registry/helpers/examples/js_package_example.yml b/x/registry/helpers/examples/js_package_example.yml index 9b06fbc4..a29bc00a 100644 --- a/x/registry/helpers/examples/js_package_example.yml +++ b/x/registry/helpers/examples/js_package_example.yml @@ -1,8 +1,8 @@ record: repo_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + ref: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 js_package_ref: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + ref: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D version: 1.0.0 type: JSPackage name: test-JSPackage \ No newline at end of file diff --git a/x/registry/helpers/examples/responder_contract_example.yml b/x/registry/helpers/examples/responder_contract_example.yml index e503cc39..a327604d 100644 --- a/x/registry/helpers/examples/responder_contract_example.yml +++ b/x/registry/helpers/examples/responder_contract_example.yml @@ -1,9 +1,9 @@ record: service_provider_ref: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + ref: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 auction_ref: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + ref: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D watcher_ref: - /: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR + ref: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR version: 1.0.0 type: ResponderContract \ No newline at end of file diff --git a/x/registry/helpers/examples/watcher_registraion_example.yml b/x/registry/helpers/examples/watcher_registraion_example.yml index 50b7d687..f0cf6e33 100644 --- a/x/registry/helpers/examples/watcher_registraion_example.yml +++ b/x/registry/helpers/examples/watcher_registraion_example.yml @@ -2,12 +2,12 @@ record: metadata: version: 0.32.0 chain_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + ref: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 repo_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + ref: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D wasm: hash_reference: - /: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR + ref: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR metadata: compiler_version: 1.15.0 execution_engine_version: 0.16.1 diff --git a/x/registry/helpers/examples/website_registration_example.yml b/x/registry/helpers/examples/website_registration_example.yml index 8091d44a..0fd14d1b 100644 --- a/x/registry/helpers/examples/website_registration_example.yml +++ b/x/registry/helpers/examples/website_registration_example.yml @@ -2,9 +2,9 @@ record: type: WebsiteRegistrationRecord url: https://cerc.io repo_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + ref: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D build_artifact_ref: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + ref: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 tls_cert_ref: - /: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR + ref: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR version: 1.0.0 \ No newline at end of file diff --git a/x/registry/types/attributes.pb.go b/x/registry/types/attributes.pb.go index 55d0e38d..61b1d613 100644 --- a/x/registry/types/attributes.pb.go +++ b/x/registry/types/attributes.pb.go @@ -23,6 +23,50 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type HashReference struct { + Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (m *HashReference) Reset() { *m = HashReference{} } +func (m *HashReference) String() string { return proto.CompactTextString(m) } +func (*HashReference) ProtoMessage() {} +func (*HashReference) Descriptor() ([]byte, []int) { + return fileDescriptor_f305abc771332c96, []int{0} +} +func (m *HashReference) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HashReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HashReference.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *HashReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_HashReference.Merge(m, src) +} +func (m *HashReference) XXX_Size() int { + return m.Size() +} +func (m *HashReference) XXX_DiscardUnknown() { + xxx_messageInfo_HashReference.DiscardUnknown(m) +} + +var xxx_messageInfo_HashReference proto.InternalMessageInfo + +func (m *HashReference) GetRef() string { + if m != nil { + return m.Ref + } + return "" +} + type ServiceProviderRecord struct { BondId string `protobuf:"bytes,1,opt,name=bond_id,json=bondId,proto3" json:"bond_id,omitempty" json:"bondId" yaml:"bondId"` LaconicId string `protobuf:"bytes,2,opt,name=laconic_id,json=laconicId,proto3" json:"laconic_id,omitempty" json:"laconicId" yaml:"laconicId"` @@ -35,7 +79,7 @@ func (m *ServiceProviderRecord) Reset() { *m = ServiceProviderRecord{} } func (m *ServiceProviderRecord) String() string { return proto.CompactTextString(m) } func (*ServiceProviderRecord) ProtoMessage() {} func (*ServiceProviderRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{0} + return fileDescriptor_f305abc771332c96, []int{1} } func (m *ServiceProviderRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -112,7 +156,7 @@ func (m *ServiceProviderRecord_X500) Reset() { *m = ServiceProviderRecor func (m *ServiceProviderRecord_X500) String() string { return proto.CompactTextString(m) } func (*ServiceProviderRecord_X500) ProtoMessage() {} func (*ServiceProviderRecord_X500) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{0, 0} + return fileDescriptor_f305abc771332c96, []int{1, 0} } func (m *ServiceProviderRecord_X500) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -184,19 +228,19 @@ func (m *ServiceProviderRecord_X500) GetCountry() string { } type WebsiteRegistrationRecord struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty" json:"url" yaml:"url"` - RepoReference map[string]string `protobuf:"bytes,2,rep,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty" json:"repoReference" yaml:"repoReference" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - BuildArtifactRef map[string]string `protobuf:"bytes,3,rep,name=build_artifact_ref,json=buildArtifactRef,proto3" json:"build_artifact_ref,omitempty" json:"buildArtifactRef" yaml:"buildArtifactRef" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - TlsCertRef map[string]string `protobuf:"bytes,4,rep,name=tls_cert_ref,json=tlsCertRef,proto3" json:"tls_cert_ref,omitempty" json:"tlsCertRef" yaml:"tlsCertRef" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty" json:"type" yaml:"type"` - Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty" json:"version" yaml:"version"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty" json:"url" yaml:"url"` + RepoReference *HashReference `protobuf:"bytes,2,opt,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty" json:"repoReference" yaml:"repoReference"` + BuildArtifactRef *HashReference `protobuf:"bytes,3,opt,name=build_artifact_ref,json=buildArtifactRef,proto3" json:"build_artifact_ref,omitempty" json:"buildArtifactRef" yaml:"buildArtifactRef"` + TlsCertRef *HashReference `protobuf:"bytes,4,opt,name=tls_cert_ref,json=tlsCertRef,proto3" json:"tls_cert_ref,omitempty" json:"tlsCertRef" yaml:"tlsCertRef"` + Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty" json:"type" yaml:"type"` + Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty" json:"version" yaml:"version"` } func (m *WebsiteRegistrationRecord) Reset() { *m = WebsiteRegistrationRecord{} } func (m *WebsiteRegistrationRecord) String() string { return proto.CompactTextString(m) } func (*WebsiteRegistrationRecord) ProtoMessage() {} func (*WebsiteRegistrationRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{1} + return fileDescriptor_f305abc771332c96, []int{2} } func (m *WebsiteRegistrationRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -232,21 +276,21 @@ func (m *WebsiteRegistrationRecord) GetUrl() string { return "" } -func (m *WebsiteRegistrationRecord) GetRepoReference() map[string]string { +func (m *WebsiteRegistrationRecord) GetRepoReference() *HashReference { if m != nil { return m.RepoReference } return nil } -func (m *WebsiteRegistrationRecord) GetBuildArtifactRef() map[string]string { +func (m *WebsiteRegistrationRecord) GetBuildArtifactRef() *HashReference { if m != nil { return m.BuildArtifactRef } return nil } -func (m *WebsiteRegistrationRecord) GetTlsCertRef() map[string]string { +func (m *WebsiteRegistrationRecord) GetTlsCertRef() *HashReference { if m != nil { return m.TlsCertRef } @@ -279,7 +323,7 @@ func (m *GitRepository) Reset() { *m = GitRepository{} } func (m *GitRepository) String() string { return proto.CompactTextString(m) } func (*GitRepository) ProtoMessage() {} func (*GitRepository) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{2} + return fileDescriptor_f305abc771332c96, []int{3} } func (m *GitRepository) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -344,19 +388,19 @@ func (m *GitRepository) GetType() string { } type Binary struct { - HashReference map[string]string `protobuf:"bytes,1,rep,name=hash_reference,json=hashReference,proto3" json:"hash_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - TargetedArch string `protobuf:"bytes,2,opt,name=targeted_arch,json=targetedArch,proto3" json:"targeted_arch,omitempty"` - RuntimeVersion string `protobuf:"bytes,3,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"` - RepoReference map[string]string `protobuf:"bytes,4,rep,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` - Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` + HashReference *HashReference `protobuf:"bytes,1,opt,name=hash_reference,json=hashReference,proto3" json:"hash_reference,omitempty"` + TargetedArch string `protobuf:"bytes,2,opt,name=targeted_arch,json=targetedArch,proto3" json:"targeted_arch,omitempty"` + RuntimeVersion string `protobuf:"bytes,3,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"` + RepoReference *HashReference `protobuf:"bytes,4,opt,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty"` + Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` + Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` } func (m *Binary) Reset() { *m = Binary{} } func (m *Binary) String() string { return proto.CompactTextString(m) } func (*Binary) ProtoMessage() {} func (*Binary) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{3} + return fileDescriptor_f305abc771332c96, []int{4} } func (m *Binary) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -385,7 +429,7 @@ func (m *Binary) XXX_DiscardUnknown() { var xxx_messageInfo_Binary proto.InternalMessageInfo -func (m *Binary) GetHashReference() map[string]string { +func (m *Binary) GetHashReference() *HashReference { if m != nil { return m.HashReference } @@ -406,7 +450,7 @@ func (m *Binary) GetRuntimeVersion() string { return "" } -func (m *Binary) GetRepoReference() map[string]string { +func (m *Binary) GetRepoReference() *HashReference { if m != nil { return m.RepoReference } @@ -428,18 +472,18 @@ func (m *Binary) GetType() string { } type DockerImage struct { - ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` - BinaryReference map[string]string `protobuf:"bytes,2,rep,name=binary_reference,json=binaryReference,proto3" json:"binary_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - RepoReference map[string]string `protobuf:"bytes,3,rep,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` + ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` + BinaryReference *HashReference `protobuf:"bytes,2,opt,name=binary_reference,json=binaryReference,proto3" json:"binary_reference,omitempty"` + RepoReference *HashReference `protobuf:"bytes,3,opt,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` } func (m *DockerImage) Reset() { *m = DockerImage{} } func (m *DockerImage) String() string { return proto.CompactTextString(m) } func (*DockerImage) ProtoMessage() {} func (*DockerImage) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{4} + return fileDescriptor_f305abc771332c96, []int{5} } func (m *DockerImage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -475,14 +519,14 @@ func (m *DockerImage) GetImageId() string { return "" } -func (m *DockerImage) GetBinaryReference() map[string]string { +func (m *DockerImage) GetBinaryReference() *HashReference { if m != nil { return m.BinaryReference } return nil } -func (m *DockerImage) GetRepoReference() map[string]string { +func (m *DockerImage) GetRepoReference() *HashReference { if m != nil { return m.RepoReference } @@ -505,7 +549,7 @@ func (m *DockerImage) GetType() string { type WatcherRegistrationRecord struct { Metadata *WatcherRegistrationRecord_WatcherMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - RepoReference map[string]string `protobuf:"bytes,2,rep,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + RepoReference *HashReference `protobuf:"bytes,2,opt,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty"` Wasm *WatcherRegistrationRecord_WASMBinary `protobuf:"bytes,3,opt,name=wasm,proto3" json:"wasm,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` @@ -515,7 +559,7 @@ func (m *WatcherRegistrationRecord) Reset() { *m = WatcherRegistrationRe func (m *WatcherRegistrationRecord) String() string { return proto.CompactTextString(m) } func (*WatcherRegistrationRecord) ProtoMessage() {} func (*WatcherRegistrationRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{5} + return fileDescriptor_f305abc771332c96, []int{6} } func (m *WatcherRegistrationRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -551,7 +595,7 @@ func (m *WatcherRegistrationRecord) GetMetadata() *WatcherRegistrationRecord_Wat return nil } -func (m *WatcherRegistrationRecord) GetRepoReference() map[string]string { +func (m *WatcherRegistrationRecord) GetRepoReference() *HashReference { if m != nil { return m.RepoReference } @@ -580,8 +624,8 @@ func (m *WatcherRegistrationRecord) GetType() string { } type WatcherRegistrationRecord_WatcherMetadata struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - ChainReference map[string]string `protobuf:"bytes,2,rep,name=chain_reference,json=chainReference,proto3" json:"chain_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + ChainReference *HashReference `protobuf:"bytes,2,opt,name=chain_reference,json=chainReference,proto3" json:"chain_reference,omitempty"` } func (m *WatcherRegistrationRecord_WatcherMetadata) Reset() { @@ -592,7 +636,7 @@ func (m *WatcherRegistrationRecord_WatcherMetadata) String() string { } func (*WatcherRegistrationRecord_WatcherMetadata) ProtoMessage() {} func (*WatcherRegistrationRecord_WatcherMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{5, 1} + return fileDescriptor_f305abc771332c96, []int{6, 0} } func (m *WatcherRegistrationRecord_WatcherMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -628,7 +672,7 @@ func (m *WatcherRegistrationRecord_WatcherMetadata) GetVersion() string { return "" } -func (m *WatcherRegistrationRecord_WatcherMetadata) GetChainReference() map[string]string { +func (m *WatcherRegistrationRecord_WatcherMetadata) GetChainReference() *HashReference { if m != nil { return m.ChainReference } @@ -636,7 +680,7 @@ func (m *WatcherRegistrationRecord_WatcherMetadata) GetChainReference() map[stri } type WatcherRegistrationRecord_WASMBinary struct { - HashReference map[string]string `protobuf:"bytes,1,rep,name=hash_reference,json=hashReference,proto3" json:"hash_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + HashReference *HashReference `protobuf:"bytes,1,opt,name=hash_reference,json=hashReference,proto3" json:"hash_reference,omitempty"` Metadata *WatcherRegistrationRecord_WASMBinaryMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` } @@ -644,7 +688,7 @@ func (m *WatcherRegistrationRecord_WASMBinary) Reset() { *m = WatcherReg func (m *WatcherRegistrationRecord_WASMBinary) String() string { return proto.CompactTextString(m) } func (*WatcherRegistrationRecord_WASMBinary) ProtoMessage() {} func (*WatcherRegistrationRecord_WASMBinary) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{5, 2} + return fileDescriptor_f305abc771332c96, []int{6, 1} } func (m *WatcherRegistrationRecord_WASMBinary) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -673,7 +717,7 @@ func (m *WatcherRegistrationRecord_WASMBinary) XXX_DiscardUnknown() { var xxx_messageInfo_WatcherRegistrationRecord_WASMBinary proto.InternalMessageInfo -func (m *WatcherRegistrationRecord_WASMBinary) GetHashReference() map[string]string { +func (m *WatcherRegistrationRecord_WASMBinary) GetHashReference() *HashReference { if m != nil { return m.HashReference } @@ -700,7 +744,7 @@ func (m *WatcherRegistrationRecord_WASMBinaryMetadata) String() string { } func (*WatcherRegistrationRecord_WASMBinaryMetadata) ProtoMessage() {} func (*WatcherRegistrationRecord_WASMBinaryMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{5, 3} + return fileDescriptor_f305abc771332c96, []int{6, 2} } func (m *WatcherRegistrationRecord_WASMBinaryMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -744,18 +788,18 @@ func (m *WatcherRegistrationRecord_WASMBinaryMetadata) GetExecutionEngineVersion } type ResponderContract struct { - ServiceProviderRef map[string]string `protobuf:"bytes,1,rep,name=service_provider_ref,json=serviceProviderRef,proto3" json:"service_provider_ref,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - AuctionRef map[string]string `protobuf:"bytes,2,rep,name=auction_ref,json=auctionRef,proto3" json:"auction_ref,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - WatcherRef map[string]string `protobuf:"bytes,3,rep,name=watcher_ref,json=watcherRef,proto3" json:"watcher_ref,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` + ServiceProviderRef *HashReference `protobuf:"bytes,1,opt,name=service_provider_ref,json=serviceProviderRef,proto3" json:"service_provider_ref,omitempty"` + AuctionRef *HashReference `protobuf:"bytes,2,opt,name=auction_ref,json=auctionRef,proto3" json:"auction_ref,omitempty"` + WatcherRef *HashReference `protobuf:"bytes,3,opt,name=watcher_ref,json=watcherRef,proto3" json:"watcher_ref,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` } func (m *ResponderContract) Reset() { *m = ResponderContract{} } func (m *ResponderContract) String() string { return proto.CompactTextString(m) } func (*ResponderContract) ProtoMessage() {} func (*ResponderContract) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{6} + return fileDescriptor_f305abc771332c96, []int{7} } func (m *ResponderContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -784,21 +828,21 @@ func (m *ResponderContract) XXX_DiscardUnknown() { var xxx_messageInfo_ResponderContract proto.InternalMessageInfo -func (m *ResponderContract) GetServiceProviderRef() map[string]string { +func (m *ResponderContract) GetServiceProviderRef() *HashReference { if m != nil { return m.ServiceProviderRef } return nil } -func (m *ResponderContract) GetAuctionRef() map[string]string { +func (m *ResponderContract) GetAuctionRef() *HashReference { if m != nil { return m.AuctionRef } return nil } -func (m *ResponderContract) GetWatcherRef() map[string]string { +func (m *ResponderContract) GetWatcherRef() *HashReference { if m != nil { return m.WatcherRef } @@ -820,18 +864,18 @@ func (m *ResponderContract) GetType() string { } type JSPackage struct { - RepoReference map[string]string `protobuf:"bytes,1,rep,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - JsPackageRef map[string]string `protobuf:"bytes,2,rep,name=js_package_ref,json=jsPackageRef,proto3" json:"js_package_ref,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + RepoReference *HashReference `protobuf:"bytes,1,opt,name=repo_reference,json=repoReference,proto3" json:"repo_reference,omitempty"` + JsPackageRef *HashReference `protobuf:"bytes,2,opt,name=js_package_ref,json=jsPackageRef,proto3" json:"js_package_ref,omitempty"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` } func (m *JSPackage) Reset() { *m = JSPackage{} } func (m *JSPackage) String() string { return proto.CompactTextString(m) } func (*JSPackage) ProtoMessage() {} func (*JSPackage) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{7} + return fileDescriptor_f305abc771332c96, []int{8} } func (m *JSPackage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -860,14 +904,14 @@ func (m *JSPackage) XXX_DiscardUnknown() { var xxx_messageInfo_JSPackage proto.InternalMessageInfo -func (m *JSPackage) GetRepoReference() map[string]string { +func (m *JSPackage) GetRepoReference() *HashReference { if m != nil { return m.RepoReference } return nil } -func (m *JSPackage) GetJsPackageRef() map[string]string { +func (m *JSPackage) GetJsPackageRef() *HashReference { if m != nil { return m.JsPackageRef } @@ -896,20 +940,20 @@ func (m *JSPackage) GetName() string { } type ChainRegistrationRecord struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - IpldTypes []string `protobuf:"bytes,2,rep,name=ipld_types,json=ipldTypes,proto3" json:"ipld_types,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - ChainId string `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - NetworkId string `protobuf:"bytes,6,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` - GenesisHash map[string]string `protobuf:"bytes,7,rep,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IpldTypes []string `protobuf:"bytes,2,rep,name=ipld_types,json=ipldTypes,proto3" json:"ipld_types,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + ChainId string `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + NetworkId string `protobuf:"bytes,6,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + GenesisHash *HashReference `protobuf:"bytes,7,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"` } func (m *ChainRegistrationRecord) Reset() { *m = ChainRegistrationRecord{} } func (m *ChainRegistrationRecord) String() string { return proto.CompactTextString(m) } func (*ChainRegistrationRecord) ProtoMessage() {} func (*ChainRegistrationRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{8} + return fileDescriptor_f305abc771332c96, []int{9} } func (m *ChainRegistrationRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -980,7 +1024,7 @@ func (m *ChainRegistrationRecord) GetNetworkId() string { return "" } -func (m *ChainRegistrationRecord) GetGenesisHash() map[string]string { +func (m *ChainRegistrationRecord) GetGenesisHash() *HashReference { if m != nil { return m.GenesisHash } @@ -988,35 +1032,20 @@ func (m *ChainRegistrationRecord) GetGenesisHash() map[string]string { } func init() { + proto.RegisterType((*HashReference)(nil), "vulcanize.registry.v1beta1.HashReference") proto.RegisterType((*ServiceProviderRecord)(nil), "vulcanize.registry.v1beta1.ServiceProviderRecord") proto.RegisterType((*ServiceProviderRecord_X500)(nil), "vulcanize.registry.v1beta1.ServiceProviderRecord.X500") proto.RegisterType((*WebsiteRegistrationRecord)(nil), "vulcanize.registry.v1beta1.WebsiteRegistrationRecord") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.WebsiteRegistrationRecord.BuildArtifactRefEntry") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.WebsiteRegistrationRecord.RepoReferenceEntry") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.WebsiteRegistrationRecord.TlsCertRefEntry") proto.RegisterType((*GitRepository)(nil), "vulcanize.registry.v1beta1.GitRepository") proto.RegisterType((*Binary)(nil), "vulcanize.registry.v1beta1.Binary") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.Binary.HashReferenceEntry") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.Binary.RepoReferenceEntry") proto.RegisterType((*DockerImage)(nil), "vulcanize.registry.v1beta1.DockerImage") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.DockerImage.BinaryReferenceEntry") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.DockerImage.RepoReferenceEntry") proto.RegisterType((*WatcherRegistrationRecord)(nil), "vulcanize.registry.v1beta1.WatcherRegistrationRecord") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.WatcherRegistrationRecord.RepoReferenceEntry") proto.RegisterType((*WatcherRegistrationRecord_WatcherMetadata)(nil), "vulcanize.registry.v1beta1.WatcherRegistrationRecord.WatcherMetadata") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.WatcherRegistrationRecord.WatcherMetadata.ChainReferenceEntry") proto.RegisterType((*WatcherRegistrationRecord_WASMBinary)(nil), "vulcanize.registry.v1beta1.WatcherRegistrationRecord.WASMBinary") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.WatcherRegistrationRecord.WASMBinary.HashReferenceEntry") proto.RegisterType((*WatcherRegistrationRecord_WASMBinaryMetadata)(nil), "vulcanize.registry.v1beta1.WatcherRegistrationRecord.WASMBinaryMetadata") proto.RegisterType((*ResponderContract)(nil), "vulcanize.registry.v1beta1.ResponderContract") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.ResponderContract.AuctionRefEntry") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.ResponderContract.ServiceProviderRefEntry") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.ResponderContract.WatcherRefEntry") proto.RegisterType((*JSPackage)(nil), "vulcanize.registry.v1beta1.JSPackage") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.JSPackage.JsPackageRefEntry") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.JSPackage.RepoReferenceEntry") proto.RegisterType((*ChainRegistrationRecord)(nil), "vulcanize.registry.v1beta1.ChainRegistrationRecord") - proto.RegisterMapType((map[string]string)(nil), "vulcanize.registry.v1beta1.ChainRegistrationRecord.GenesisHashEntry") } func init() { @@ -1024,103 +1053,119 @@ func init() { } var fileDescriptor_f305abc771332c96 = []byte{ - // 1526 bytes of a gzipped FileDescriptorProto + // 1307 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0x13, 0x47, - 0x14, 0x67, 0x63, 0xe7, 0xdf, 0xcb, 0x5f, 0xa6, 0xa1, 0x38, 0x41, 0xc4, 0xc1, 0x08, 0x01, 0x4a, - 0xb1, 0x03, 0x88, 0x36, 0xa2, 0xa5, 0x25, 0x09, 0x29, 0x01, 0x44, 0x85, 0x26, 0x14, 0xda, 0x8a, - 0xd6, 0x1d, 0xaf, 0x07, 0x7b, 0x88, 0xbd, 0x6b, 0xcd, 0x8e, 0x13, 0xcc, 0xb1, 0x9f, 0x80, 0x4f, - 0xd0, 0x73, 0x4f, 0x55, 0xbf, 0x41, 0x2f, 0x3d, 0xf4, 0x88, 0xd4, 0x4b, 0x5b, 0xa9, 0x56, 0x0b, - 0xa7, 0x5e, 0xdd, 0x2f, 0x50, 0xcd, 0xcc, 0xfe, 0x19, 0x7b, 0xe3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0x38, 0x1b, + 0x15, 0xe2, 0xf9, 0x91, 0x3d, 0xfa, 0xd6, 0x03, 0xd4, 0xe8, 0xb1, 0x76, 0xe8, 0x13, 0x21, 0xd9, + 0x2e, 0x09, 0xa4, 0x8a, 0xc5, 0x56, 0xe7, 0x14, 0x51, 0x38, 0xf9, 0xa2, 0xe1, 0x6e, 0x58, 0x34, + 0x4c, 0x77, 0xd3, 0x7e, 0x32, 0x2e, 0xc7, 0x4b, 0xe3, 0x22, 0x24, 0x61, 0x4e, 0xb6, 0x63, 0x3f, + 0xa0, 0xc2, 0xc4, 0x51, 0x98, 0x36, 0x0e, 0xa7, 0xd2, 0x64, 0x3b, 0xbe, 0x49, 0x85, 0x1b, 0x81, + 0x23, 0xc1, 0x90, 0x6d, 0xd2, 0x56, 0x71, 0xf4, 0xff, 0x68, 0x15, 0xd5, 0x5f, 0x73, 0x30, 0xff, + 0x21, 0x93, 0x98, 0x76, 0x79, 0xcc, 0x24, 0x17, 0x7d, 0xe5, 0xdf, 0x69, 0x16, 0x8e, 0xff, 0xc8, + 0x49, 0x64, 0xbd, 0xc6, 0xfa, 0x20, 0x7a, 0x78, 0x60, 0xda, 0x14, 0xb7, 0xea, 0xc3, 0x41, 0x65, + 0x23, 0xcb, 0x85, 0x4c, 0xef, 0x26, 0x83, 0x23, 0x1d, 0xcf, 0x86, 0x8f, 0xa0, 0x14, 0xd2, 0x38, + 0x10, 0xac, 0xab, 0x12, 0xda, 0xb6, 0x82, 0xf5, 0xe1, 0xa0, 0x72, 0xde, 0x80, 0x3a, 0xca, 0x04, + 0xd1, 0x15, 0x61, 0xd7, 0xda, 0x25, 0xa9, 0x30, 0x2d, 0x49, 0x53, 0x3f, 0x49, 0xf5, 0x87, 0x1c, + 0xcc, 0x6c, 0xb1, 0x88, 0x88, 0x3e, 0xda, 0x81, 0x85, 0x16, 0x89, 0x5b, 0x0e, 0x3b, 0xde, 0x94, + 0x69, 0x84, 0xe7, 0x5b, 0x23, 0x3f, 0xb0, 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0x00, 0x00, +} + +func (m *HashReference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HashReference) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HashReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ref) > 0 { + i -= len(m.Ref) + copy(dAtA[i:], m.Ref) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Ref))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ServiceProviderRecord) Marshal() (dAtA []byte, err error) { @@ -1285,62 +1330,41 @@ func (m *WebsiteRegistrationRecord) MarshalToSizedBuffer(dAtA []byte) (int, erro i-- dAtA[i] = 0x2a } - if len(m.TlsCertRef) > 0 { - for k := range m.TlsCertRef { - v := m.TlsCertRef[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 + if m.TlsCertRef != nil { + { + size, err := m.TlsCertRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } - if len(m.BuildArtifactRef) > 0 { - for k := range m.BuildArtifactRef { - v := m.BuildArtifactRef[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a + if m.BuildArtifactRef != nil { + { + size, err := m.BuildArtifactRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if len(m.RepoReference) > 0 { - for k := range m.RepoReference { - v := m.RepoReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 + if m.RepoReference != nil { + { + size, err := m.RepoReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } if len(m.Url) > 0 { i -= len(m.Url) @@ -1444,24 +1468,17 @@ func (m *Binary) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if len(m.RepoReference) > 0 { - for k := range m.RepoReference { - v := m.RepoReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 + if m.RepoReference != nil { + { + size, err := m.RepoReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } if len(m.RuntimeVersion) > 0 { i -= len(m.RuntimeVersion) @@ -1477,24 +1494,17 @@ func (m *Binary) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.HashReference) > 0 { - for k := range m.HashReference { - v := m.HashReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.HashReference != nil { + { + size, err := m.HashReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1533,43 +1543,29 @@ func (m *DockerImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if len(m.RepoReference) > 0 { - for k := range m.RepoReference { - v := m.RepoReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a + if m.RepoReference != nil { + { + size, err := m.RepoReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if len(m.BinaryReference) > 0 { - for k := range m.BinaryReference { - v := m.BinaryReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 + if m.BinaryReference != nil { + { + size, err := m.BinaryReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } if len(m.ImageId) > 0 { i -= len(m.ImageId) @@ -1627,24 +1623,17 @@ func (m *WatcherRegistrationRecord) MarshalToSizedBuffer(dAtA []byte) (int, erro i-- dAtA[i] = 0x1a } - if len(m.RepoReference) > 0 { - for k := range m.RepoReference { - v := m.RepoReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 + if m.RepoReference != nil { + { + size, err := m.RepoReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } if m.Metadata != nil { { @@ -1681,24 +1670,17 @@ func (m *WatcherRegistrationRecord_WatcherMetadata) MarshalToSizedBuffer(dAtA [] _ = i var l int _ = l - if len(m.ChainReference) > 0 { - for k := range m.ChainReference { - v := m.ChainReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 + if m.ChainReference != nil { + { + size, err := m.ChainReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } if len(m.Version) > 0 { i -= len(m.Version) @@ -1742,24 +1724,17 @@ func (m *WatcherRegistrationRecord_WASMBinary) MarshalToSizedBuffer(dAtA []byte) i-- dAtA[i] = 0x12 } - if len(m.HashReference) > 0 { - for k := range m.HashReference { - v := m.HashReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.HashReference != nil { + { + size, err := m.HashReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1835,62 +1810,41 @@ func (m *ResponderContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if len(m.WatcherRef) > 0 { - for k := range m.WatcherRef { - v := m.WatcherRef[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a + if m.WatcherRef != nil { + { + size, err := m.WatcherRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if len(m.AuctionRef) > 0 { - for k := range m.AuctionRef { - v := m.AuctionRef[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 + if m.AuctionRef != nil { + { + size, err := m.AuctionRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if len(m.ServiceProviderRef) > 0 { - for k := range m.ServiceProviderRef { - v := m.ServiceProviderRef[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.ServiceProviderRef != nil { + { + size, err := m.ServiceProviderRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1936,43 +1890,29 @@ func (m *JSPackage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.JsPackageRef) > 0 { - for k := range m.JsPackageRef { - v := m.JsPackageRef[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 + if m.JsPackageRef != nil { + { + size, err := m.JsPackageRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if len(m.RepoReference) > 0 { - for k := range m.RepoReference { - v := m.RepoReference[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.RepoReference != nil { + { + size, err := m.RepoReference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1997,24 +1937,17 @@ func (m *ChainRegistrationRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if len(m.GenesisHash) > 0 { - for k := range m.GenesisHash { - v := m.GenesisHash[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintAttributes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintAttributes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintAttributes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a + if m.GenesisHash != nil { + { + size, err := m.GenesisHash.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributes(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x3a } if len(m.NetworkId) > 0 { i -= len(m.NetworkId) @@ -2074,6 +2007,19 @@ func encodeVarintAttributes(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *HashReference) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ref) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + return n +} + func (m *ServiceProviderRecord) Size() (n int) { if m == nil { return 0 @@ -2146,29 +2092,17 @@ func (m *WebsiteRegistrationRecord) Size() (n int) { if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } - if len(m.RepoReference) > 0 { - for k, v := range m.RepoReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.RepoReference != nil { + l = m.RepoReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } - if len(m.BuildArtifactRef) > 0 { - for k, v := range m.BuildArtifactRef { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.BuildArtifactRef != nil { + l = m.BuildArtifactRef.Size() + n += 1 + l + sovAttributes(uint64(l)) } - if len(m.TlsCertRef) > 0 { - for k, v := range m.TlsCertRef { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.TlsCertRef != nil { + l = m.TlsCertRef.Size() + n += 1 + l + sovAttributes(uint64(l)) } l = len(m.Type) if l > 0 { @@ -2216,13 +2150,9 @@ func (m *Binary) Size() (n int) { } var l int _ = l - if len(m.HashReference) > 0 { - for k, v := range m.HashReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.HashReference != nil { + l = m.HashReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } l = len(m.TargetedArch) if l > 0 { @@ -2232,13 +2162,9 @@ func (m *Binary) Size() (n int) { if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } - if len(m.RepoReference) > 0 { - for k, v := range m.RepoReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.RepoReference != nil { + l = m.RepoReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } l = len(m.Version) if l > 0 { @@ -2261,21 +2187,13 @@ func (m *DockerImage) Size() (n int) { if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } - if len(m.BinaryReference) > 0 { - for k, v := range m.BinaryReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.BinaryReference != nil { + l = m.BinaryReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } - if len(m.RepoReference) > 0 { - for k, v := range m.RepoReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.RepoReference != nil { + l = m.RepoReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } l = len(m.Version) if l > 0 { @@ -2298,13 +2216,9 @@ func (m *WatcherRegistrationRecord) Size() (n int) { l = m.Metadata.Size() n += 1 + l + sovAttributes(uint64(l)) } - if len(m.RepoReference) > 0 { - for k, v := range m.RepoReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.RepoReference != nil { + l = m.RepoReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } if m.Wasm != nil { l = m.Wasm.Size() @@ -2331,13 +2245,9 @@ func (m *WatcherRegistrationRecord_WatcherMetadata) Size() (n int) { if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } - if len(m.ChainReference) > 0 { - for k, v := range m.ChainReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.ChainReference != nil { + l = m.ChainReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } return n } @@ -2348,13 +2258,9 @@ func (m *WatcherRegistrationRecord_WASMBinary) Size() (n int) { } var l int _ = l - if len(m.HashReference) > 0 { - for k, v := range m.HashReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.HashReference != nil { + l = m.HashReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } if m.Metadata != nil { l = m.Metadata.Size() @@ -2386,29 +2292,17 @@ func (m *ResponderContract) Size() (n int) { } var l int _ = l - if len(m.ServiceProviderRef) > 0 { - for k, v := range m.ServiceProviderRef { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.ServiceProviderRef != nil { + l = m.ServiceProviderRef.Size() + n += 1 + l + sovAttributes(uint64(l)) } - if len(m.AuctionRef) > 0 { - for k, v := range m.AuctionRef { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.AuctionRef != nil { + l = m.AuctionRef.Size() + n += 1 + l + sovAttributes(uint64(l)) } - if len(m.WatcherRef) > 0 { - for k, v := range m.WatcherRef { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.WatcherRef != nil { + l = m.WatcherRef.Size() + n += 1 + l + sovAttributes(uint64(l)) } l = len(m.Version) if l > 0 { @@ -2427,21 +2321,13 @@ func (m *JSPackage) Size() (n int) { } var l int _ = l - if len(m.RepoReference) > 0 { - for k, v := range m.RepoReference { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.RepoReference != nil { + l = m.RepoReference.Size() + n += 1 + l + sovAttributes(uint64(l)) } - if len(m.JsPackageRef) > 0 { - for k, v := range m.JsPackageRef { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.JsPackageRef != nil { + l = m.JsPackageRef.Size() + n += 1 + l + sovAttributes(uint64(l)) } l = len(m.Version) if l > 0 { @@ -2490,13 +2376,9 @@ func (m *ChainRegistrationRecord) Size() (n int) { if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } - if len(m.GenesisHash) > 0 { - for k, v := range m.GenesisHash { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAttributes(uint64(len(k))) + 1 + len(v) + sovAttributes(uint64(len(v))) - n += mapEntrySize + 1 + sovAttributes(uint64(mapEntrySize)) - } + if m.GenesisHash != nil { + l = m.GenesisHash.Size() + n += 1 + l + sovAttributes(uint64(l)) } return n } @@ -2507,6 +2389,88 @@ func sovAttributes(x uint64) (n int) { func sozAttributes(x uint64) (n int) { return sovAttributes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *HashReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HashReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HashReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ref = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ServiceProviderRecord) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3054,102 +3018,11 @@ func (m *WebsiteRegistrationRecord) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RepoReference == nil { - m.RepoReference = make(map[string]string) + m.RepoReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.RepoReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RepoReference[mapkey] = mapvalue iNdEx = postIndex case 3: if wireType != 2 { @@ -3181,102 +3054,11 @@ func (m *WebsiteRegistrationRecord) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BuildArtifactRef == nil { - m.BuildArtifactRef = make(map[string]string) + m.BuildArtifactRef = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.BuildArtifactRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.BuildArtifactRef[mapkey] = mapvalue iNdEx = postIndex case 4: if wireType != 2 { @@ -3308,102 +3090,11 @@ func (m *WebsiteRegistrationRecord) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.TlsCertRef == nil { - m.TlsCertRef = make(map[string]string) + m.TlsCertRef = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.TlsCertRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.TlsCertRef[mapkey] = mapvalue iNdEx = postIndex case 5: if wireType != 2 { @@ -3759,102 +3450,11 @@ func (m *Binary) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.HashReference == nil { - m.HashReference = make(map[string]string) + m.HashReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.HashReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.HashReference[mapkey] = mapvalue iNdEx = postIndex case 2: if wireType != 2 { @@ -3950,102 +3550,11 @@ func (m *Binary) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RepoReference == nil { - m.RepoReference = make(map[string]string) + m.RepoReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.RepoReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RepoReference[mapkey] = mapvalue iNdEx = postIndex case 5: if wireType != 2 { @@ -4223,102 +3732,11 @@ func (m *DockerImage) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BinaryReference == nil { - m.BinaryReference = make(map[string]string) + m.BinaryReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.BinaryReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.BinaryReference[mapkey] = mapvalue iNdEx = postIndex case 3: if wireType != 2 { @@ -4350,102 +3768,11 @@ func (m *DockerImage) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RepoReference == nil { - m.RepoReference = make(map[string]string) + m.RepoReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.RepoReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RepoReference[mapkey] = mapvalue iNdEx = postIndex case 4: if wireType != 2 { @@ -4627,102 +3954,11 @@ func (m *WatcherRegistrationRecord) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RepoReference == nil { - m.RepoReference = make(map[string]string) + m.RepoReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.RepoReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RepoReference[mapkey] = mapvalue iNdEx = postIndex case 3: if wireType != 2 { @@ -4936,102 +4172,11 @@ func (m *WatcherRegistrationRecord_WatcherMetadata) Unmarshal(dAtA []byte) error return io.ErrUnexpectedEOF } if m.ChainReference == nil { - m.ChainReference = make(map[string]string) + m.ChainReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.ChainReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.ChainReference[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -5113,102 +4258,11 @@ func (m *WatcherRegistrationRecord_WASMBinary) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.HashReference == nil { - m.HashReference = make(map[string]string) + m.HashReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.HashReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.HashReference[mapkey] = mapvalue iNdEx = postIndex case 2: if wireType != 2 { @@ -5440,102 +4494,11 @@ func (m *ResponderContract) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ServiceProviderRef == nil { - m.ServiceProviderRef = make(map[string]string) + m.ServiceProviderRef = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.ServiceProviderRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.ServiceProviderRef[mapkey] = mapvalue iNdEx = postIndex case 2: if wireType != 2 { @@ -5567,102 +4530,11 @@ func (m *ResponderContract) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.AuctionRef == nil { - m.AuctionRef = make(map[string]string) + m.AuctionRef = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.AuctionRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.AuctionRef[mapkey] = mapvalue iNdEx = postIndex case 3: if wireType != 2 { @@ -5694,102 +4566,11 @@ func (m *ResponderContract) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.WatcherRef == nil { - m.WatcherRef = make(map[string]string) + m.WatcherRef = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.WatcherRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.WatcherRef[mapkey] = mapvalue iNdEx = postIndex case 4: if wireType != 2 { @@ -5935,102 +4716,11 @@ func (m *JSPackage) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RepoReference == nil { - m.RepoReference = make(map[string]string) + m.RepoReference = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.RepoReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RepoReference[mapkey] = mapvalue iNdEx = postIndex case 2: if wireType != 2 { @@ -6062,102 +4752,11 @@ func (m *JSPackage) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.JsPackageRef == nil { - m.JsPackageRef = make(map[string]string) + m.JsPackageRef = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.JsPackageRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.JsPackageRef[mapkey] = mapvalue iNdEx = postIndex case 3: if wireType != 2 { @@ -6527,102 +5126,11 @@ func (m *ChainRegistrationRecord) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.GenesisHash == nil { - m.GenesisHash = make(map[string]string) + m.GenesisHash = &HashReference{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAttributes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAttributes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthAttributes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipAttributes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAttributes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.GenesisHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.GenesisHash[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex