From 5a65cc811e253b0328c4629eed4d2e2f6e25b5f3 Mon Sep 17 00:00:00 2001 From: Roshan Date: Mon, 20 Nov 2023 16:59:56 +0800 Subject: [PATCH] feat: add new msg `MsgSetTag` --- app/upgrade.go | 5 + proto/greenfield/storage/events.proto | 10 + proto/greenfield/storage/tx.proto | 17 + x/storage/client/cli/flags.go | 27 + x/storage/client/cli/tx.go | 33 + x/storage/keeper/msg_server.go | 17 + x/storage/keeper/permission.go | 70 ++- x/storage/types/events.pb.go | 589 ++++++++++++++---- x/storage/types/message.go | 51 ++ x/storage/types/tx.pb.go | 834 +++++++++++++++++++++----- 10 files changed, 1402 insertions(+), 251 deletions(-) diff --git a/app/upgrade.go b/app/upgrade.go index ec66e42c1..eaf035547 100644 --- a/app/upgrade.go +++ b/app/upgrade.go @@ -10,6 +10,7 @@ import ( paymentmodule "github.com/bnb-chain/greenfield/x/payment" paymenttypes "github.com/bnb-chain/greenfield/x/payment/types" storagemoduletypes "github.com/bnb-chain/greenfield/x/storage/types" + gashubtypes "github.com/cosmos/cosmos-sdk/x/gashub/types" ) func (app *App) RegisterUpgradeHandlers(chainID string, serverCfg *serverconfig.Config) error { @@ -112,6 +113,10 @@ func (app *App) registerEddystoneUpgradeHandler() { func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { app.Logger().Info("upgrade to ", plan.Name) + typeUrl := sdk.MsgTypeURL(&storagemoduletypes.MsgSetTag{}) + msgSetTagGasParams := gashubtypes.NewMsgGasParamsWithFixedGas(typeUrl, 1.2e3) + app.GashubKeeper.SetMsgGasParams(ctx, *msgSetTagGasParams) + return app.mm.RunMigrations(ctx, app.configurator, fromVM) }) diff --git a/proto/greenfield/storage/events.proto b/proto/greenfield/storage/events.proto index d3dde1f82..eb34e1074 100644 --- a/proto/greenfield/storage/events.proto +++ b/proto/greenfield/storage/events.proto @@ -4,6 +4,7 @@ package greenfield.storage; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; +import "greenfield/resource/types.proto"; import "greenfield/storage/common.proto"; import "greenfield/storage/types.proto"; @@ -553,3 +554,12 @@ message EventCompleteMigrationBucket { // The src_primary_sp_id defines the primary sp id of the bucket before migrate. uint32 src_primary_sp_id = 5; } + +message EventSetTag { + // resource_type define the type of the source that the tag belongs to + greenfield.resource.ResourceType resource_type = 1; + // resource_id define the u256 id of the source that the tag belongs to + string resource_id = 2; + // tags define the tag of the source + map tags = 3; +} diff --git a/proto/greenfield/storage/tx.proto b/proto/greenfield/storage/tx.proto index 27757cd4b..4df28d876 100644 --- a/proto/greenfield/storage/tx.proto +++ b/proto/greenfield/storage/tx.proto @@ -59,6 +59,8 @@ service Msg { rpc CompleteMigrateBucket(MsgCompleteMigrateBucket) returns (MsgCompleteMigrateBucketResponse); rpc CancelMigrateBucket(MsgCancelMigrateBucket) returns (MsgCancelMigrateBucketResponse); rpc RejectMigrateBucket(MsgRejectMigrateBucket) returns (MsgRejectMigrateBucketResponse); + + rpc SetTag(MsgSetTag) returns (MsgSetTagResponse); } message MsgCreateBucket { option (cosmos.msg.v1.signer) = "creator"; @@ -628,3 +630,18 @@ message MsgRejectMigrateBucket { } message MsgRejectMigrateBucketResponse {} + +message MsgSetTag { + option (cosmos.msg.v1.signer) = "operator"; + + // operator defines the granter who grant the permission to another principal + string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // resource defines a greenfield standard resource name that can be generated by GRN structure + string resource = 2; + + // tags defines a list of tags which will be set to the resource + map tags = 3; +} + +message MsgSetTagResponse {} diff --git a/x/storage/client/cli/flags.go b/x/storage/client/cli/flags.go index de7de4af1..1fd4558c1 100644 --- a/x/storage/client/cli/flags.go +++ b/x/storage/client/cli/flags.go @@ -7,6 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" flag "github.com/spf13/pflag" + "strings" + gnfderrors "github.com/bnb-chain/greenfield/types/errors" permissiontypes "github.com/bnb-chain/greenfield/x/permission/types" storagetypes "github.com/bnb-chain/greenfield/x/storage/types" @@ -148,3 +150,28 @@ func FlagSetApproval() *flag.FlagSet { fs.Uint64(FlagApproveTimeoutHeight, math.MaxUint, "The approval timeout height of primarySp") return fs } + +func GetTags(str string) map[string]string { + tags := make(map[string]string) + if str == "" { + return tags + } + + tagsStr := str + if tagsStr[0] == '{' { + tagsStr = tagsStr[1:] + } + if tagsStr[len(tagsStr)-1] == '}' { + tagsStr = tagsStr[:len(tagsStr)-1] + } + + for _, tagStr := range strings.Split(tagsStr, ",") { + kv := strings.Split(tagStr, "=") + if len(kv) != 2 { + continue + } + tags[kv[0]] = kv[1] + } + + return tags +} diff --git a/x/storage/client/cli/tx.go b/x/storage/client/cli/tx.go index 469a8d91f..4723226cf 100644 --- a/x/storage/client/cli/tx.go +++ b/x/storage/client/cli/tx.go @@ -67,6 +67,10 @@ func GetTxCmd() *cobra.Command { CmdPutPolicy(), CmdDeletePolicy(), ) + + cmd.AddCommand( + CmdSetTag(), + ) // this line is used by starport scaffolding # 1 return cmd @@ -1115,3 +1119,32 @@ func CmdMirrorGroup() *cobra.Command { return cmd } + +func CmdSetTag() *cobra.Command { + cmd := &cobra.Command{ + Use: "set-tag [resource] [tags]", + Short: "set a bucket/object/group's tag. The tags should be like: key1=value1,key2=value2", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argResource := args[0] + argTags := args[1] + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + tags := GetTags(argTags) + + msg := types.NewMsgSetTag(clientCtx.GetFromAddress(), argResource, tags) + if err := msg.ValidateBasic(); err != nil { + return err + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/storage/keeper/msg_server.go b/x/storage/keeper/msg_server.go index 826963f4e..3e9d78edf 100644 --- a/x/storage/keeper/msg_server.go +++ b/x/storage/keeper/msg_server.go @@ -695,6 +695,23 @@ func (k msgServer) RejectMigrateBucket(goCtx context.Context, msg *storagetypes. return &types.MsgRejectMigrateBucketResponse{}, nil } +func (k msgServer) SetTag(goCtx context.Context, msg *types.MsgSetTag) (*types.MsgSetTagResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + operatorAddr := sdk.MustAccAddressFromHex(msg.Operator) + + var grn types2.GRN + err := grn.ParseFromString(msg.Resource, true) + if err != nil { + return nil, err + } + + if err := k.Keeper.SetTag(ctx, operatorAddr, grn, msg.Tags); err != nil { + return nil, err + } + return &types.MsgSetTagResponse{}, nil +} + func (k Keeper) verifyGVGSignatures(ctx sdk.Context, bucketID math.Uint, dstSP *sptypes.StorageProvider, gvgMappings []*storagetypes.GVGMapping) error { // verify secondary sp signature for _, newLvg2gvg := range gvgMappings { diff --git a/x/storage/keeper/permission.go b/x/storage/keeper/permission.go index 5c1df583b..a77aeb520 100644 --- a/x/storage/keeper/permission.go +++ b/x/storage/keeper/permission.go @@ -291,7 +291,7 @@ func (k Keeper) PutPolicy(ctx sdk.Context, operator sdk.AccAddress, grn types2.G if !operator.Equals(resOwner) { return math.ZeroUint(), types.ErrAccessDenied.Wrapf( - "Only resource owner can put bucket policy, operator (%s), owner(%s)", + "Only resource owner can put policy, operator (%s), owner(%s)", operator.String(), resOwner.String()) } k.normalizePrincipal(ctx, policy.Principal) @@ -304,8 +304,7 @@ func (k Keeper) PutPolicy(ctx sdk.Context, operator sdk.AccAddress, grn types2.G } func (k Keeper) DeletePolicy(ctx sdk.Context, operator sdk.AccAddress, principal *permtypes.Principal, - grn types2.GRN) (math.Uint, - error) { + grn types2.GRN) (math.Uint, error) { var resOwner sdk.AccAddress var resID math.Uint @@ -355,6 +354,71 @@ func (k Keeper) DeletePolicy(ctx sdk.Context, operator sdk.AccAddress, principal return k.permKeeper.DeletePolicy(ctx, principal, grn.ResourceType(), resID) } +func (k Keeper) SetTag(ctx sdk.Context, operator sdk.AccAddress, grn types2.GRN, tags map[string]string) error { + var resOwner sdk.AccAddress + var resType gnfdresource.ResourceType + var resID math.Uint + switch grn.ResourceType() { + case gnfdresource.RESOURCE_TYPE_BUCKET: + resType = gnfdresource.RESOURCE_TYPE_BUCKET + bucketName, grnErr := grn.GetBucketName() + if grnErr != nil { + return grnErr + } + bucketInfo, found := k.GetBucketInfo(ctx, bucketName) + if !found { + return types.ErrNoSuchBucket.Wrapf("bucketName: %s", bucketName) + } + resOwner = sdk.MustAccAddressFromHex(bucketInfo.Owner) + resID = bucketInfo.Id + case gnfdresource.RESOURCE_TYPE_OBJECT: + resType = gnfdresource.RESOURCE_TYPE_OBJECT + bucketName, objectName, grnErr := grn.GetBucketAndObjectName() + if grnErr != nil { + return grnErr + } + objectInfo, found := k.GetObjectInfo(ctx, bucketName, objectName) + if !found { + return types.ErrNoSuchObject.Wrapf("BucketName: %s, objectName: %s", bucketName, objectName) + } + + resOwner = sdk.MustAccAddressFromHex(objectInfo.Owner) + resID = objectInfo.Id + case gnfdresource.RESOURCE_TYPE_GROUP: + resType = gnfdresource.RESOURCE_TYPE_GROUP + groupOwner, groupName, grnErr := grn.GetGroupOwnerAndAccount() + if grnErr != nil { + return grnErr + } + groupInfo, found := k.GetGroupInfo(ctx, groupOwner, groupName) + if !found { + return types.ErrNoSuchBucket.Wrapf("groupOwner: %s, groupName: %s", groupOwner.String(), groupName) + } + + resOwner = sdk.MustAccAddressFromHex(groupInfo.Owner) + resID = groupInfo.Id + default: + return gnfderrors.ErrInvalidGRN.Wrap("Unknown resource type in greenfield resource name") + } + + if !operator.Equals(resOwner) { + return types.ErrAccessDenied.Wrapf( + "Only resource owner can set tag, operator (%s), owner(%s)", + operator.String(), resOwner.String()) + } + + // emit Event + if err := ctx.EventManager().EmitTypedEvents(&types.EventSetTag{ + ResourceType: resType, + ResourceId: resID.String(), + Tags: tags, + }); err != nil { + return err + } + + return nil +} + func (k Keeper) normalizePrincipal(ctx sdk.Context, principal *permtypes.Principal) { if principal.Type == permtypes.PRINCIPAL_TYPE_GNFD_GROUP { if _, err := math.ParseUint(principal.Value); err == nil { diff --git a/x/storage/types/events.pb.go b/x/storage/types/events.pb.go index b8848116b..390d79065 100644 --- a/x/storage/types/events.pb.go +++ b/x/storage/types/events.pb.go @@ -5,6 +5,7 @@ package types import ( fmt "fmt" + resource "github.com/bnb-chain/greenfield/types/resource" _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" @@ -2318,6 +2319,69 @@ func (m *EventCompleteMigrationBucket) GetSrcPrimarySpId() uint32 { return 0 } +type EventSetTag struct { + // resource_type define the type of the source that the tag belongs to + ResourceType resource.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=greenfield.resource.ResourceType" json:"resource_type,omitempty"` + // resource_id define the u256 id of the source that the tag belongs to + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // tags define the tag of the source + Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *EventSetTag) Reset() { *m = EventSetTag{} } +func (m *EventSetTag) String() string { return proto.CompactTextString(m) } +func (*EventSetTag) ProtoMessage() {} +func (*EventSetTag) Descriptor() ([]byte, []int) { + return fileDescriptor_946dcba4f763ddc4, []int{30} +} +func (m *EventSetTag) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventSetTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventSetTag.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 *EventSetTag) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventSetTag.Merge(m, src) +} +func (m *EventSetTag) XXX_Size() int { + return m.Size() +} +func (m *EventSetTag) XXX_DiscardUnknown() { + xxx_messageInfo_EventSetTag.DiscardUnknown(m) +} + +var xxx_messageInfo_EventSetTag proto.InternalMessageInfo + +func (m *EventSetTag) GetResourceType() resource.ResourceType { + if m != nil { + return m.ResourceType + } + return resource.RESOURCE_TYPE_UNSPECIFIED +} + +func (m *EventSetTag) GetResourceId() string { + if m != nil { + return m.ResourceId + } + return "" +} + +func (m *EventSetTag) GetTags() map[string]string { + if m != nil { + return m.Tags + } + return nil +} + func init() { proto.RegisterType((*EventCreateBucket)(nil), "greenfield.storage.EventCreateBucket") proto.RegisterType((*EventDeleteBucket)(nil), "greenfield.storage.EventDeleteBucket") @@ -2349,116 +2413,125 @@ func init() { proto.RegisterType((*EventCancelMigrationBucket)(nil), "greenfield.storage.EventCancelMigrationBucket") proto.RegisterType((*EventRejectMigrateBucket)(nil), "greenfield.storage.EventRejectMigrateBucket") proto.RegisterType((*EventCompleteMigrationBucket)(nil), "greenfield.storage.EventCompleteMigrationBucket") + proto.RegisterType((*EventSetTag)(nil), "greenfield.storage.EventSetTag") + proto.RegisterMapType((map[string]string)(nil), "greenfield.storage.EventSetTag.TagsEntry") } func init() { proto.RegisterFile("greenfield/storage/events.proto", fileDescriptor_946dcba4f763ddc4) } var fileDescriptor_946dcba4f763ddc4 = []byte{ - // 1658 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xcd, 0x8f, 0xdb, 0x44, - 0x1b, 0x5f, 0x27, 0x4e, 0x36, 0x3b, 0xd9, 0x24, 0x5d, 0xbf, 0xfb, 0xb6, 0x7e, 0xb7, 0x7d, 0xb3, - 0xa9, 0x0f, 0x7d, 0xb7, 0xaf, 0x68, 0x82, 0xb6, 0x80, 0x7a, 0xab, 0xf6, 0xa3, 0xa0, 0x08, 0xfa, - 0x81, 0xb7, 0xed, 0x81, 0x8b, 0x35, 0xb1, 0x67, 0xb3, 0xa6, 0xb6, 0xc7, 0xd8, 0x93, 0x6d,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1, - 0x13, 0x6d, 0xd4, 0xf5, 0x5b, 0xd5, 0xf0, 0xc9, 0x95, 0xc1, 0x0d, 0x9c, 0xf2, 0xa5, 0x00, 0x96, - 0x62, 0x37, 0x87, 0xd3, 0xee, 0x5a, 0x40, 0x55, 0x39, 0x76, 0xda, 0x67, 0xf6, 0xa2, 0x69, 0xb5, - 0xf6, 0x6e, 0x0e, 0x9c, 0xe0, 0x37, 0x67, 0xb6, 0x1b, 0x10, 0x69, 0xea, 0xa9, 0x33, 0xfe, 0x73, - 0x92, 0x38, 0xf6, 0x6b, 0xe9, 0x69, 0xb0, 0xe0, 0x7b, 0xfa, 0x10, 0xfd, 0x98, 0x6c, 0x56, 0x7d, - 0x4f, 0x8f, 0xd1, 0x6f, 0xbd, 0x7d, 0xff, 0x71, 0x5d, 0x78, 0xf0, 0xb8, 0x2e, 0xfc, 0xf2, 0xb8, - 0x2e, 0xdc, 0x79, 0x52, 0x9f, 0x79, 0xf0, 0xa4, 0x3e, 0xf3, 0xfd, 0x93, 0xfa, 0xcc, 0x7b, 0xad, - 0xae, 0x49, 0x76, 0x7a, 0x9d, 0xa6, 0x8e, 0xed, 0x56, 0xc7, 0xe9, 0x9c, 0xa1, 0x8a, 0xd0, 0x8a, - 0x7d, 0xc3, 0xbf, 0x95, 0xfc, 0x8a, 0xdf, 0x29, 0xd2, 0xce, 0xee, 0xec, 0x5f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x47, 0x07, 0x50, 0x6a, 0x90, 0x20, 0x00, 0x00, + // 1776 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0xcd, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0x25, 0x4a, 0x96, 0x46, 0x96, 0x64, 0xb3, 0x6e, 0x96, 0xf5, 0x6e, 0x65, 0x85, 0x87, + 0xad, 0x53, 0x34, 0x52, 0xe1, 0xed, 0x87, 0x51, 0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0xb9, 0xa5, 0x97, 0x09, 0xb7, + 0x5c, 0x24, 0xdc, 0xd9, 0xc4, 0x96, 0xcf, 0x21, 0xf6, 0x97, 0xf2, 0xc4, 0x66, 0x75, 0x98, 0xa3, + 0x6f, 0x56, 0x0b, 0xaa, 0x0b, 0x69, 0xc1, 0xfc, 0x9d, 0x58, 0x9e, 0xbb, 0x13, 0xbf, 0x94, 0xc0, + 0x0d, 0x4e, 0x52, 0x87, 0x98, 0xd8, 0xa7, 0x8e, 0x3f, 0x8a, 0x99, 0x9a, 0xc9, 0x99, 0x54, 0x24, + 0x67, 0x73, 0xb7, 0xe3, 0x06, 0xa8, 0x86, 0x08, 0x12, 0xec, 0x0b, 0x66, 0x8a, 0x51, 0xa4, 0x6e, + 0x16, 0x2b, 0x96, 0x94, 0xba, 0x71, 0xc3, 0x2e, 0xd5, 0x7e, 0x5a, 0xcd, 0xa8, 0xf4, 0x07, 0xc3, + 0x1f, 0x22, 0x93, 0x2a, 0xdb, 0x60, 0x99, 0xe9, 0xdf, 0x05, 0xf8, 0x12, 0x03, 0xff, 0xf7, 0xd5, + 0xb4, 0x09, 0x1a, 0x98, 0xb9, 0xc3, 0x01, 0x32, 0x07, 0x70, 0x53, 0x9e, 0x7f, 0xd5, 0x22, 0xb9, + 0xdc, 0x01, 0x75, 0xb1, 0xb4, 0xd8, 0xcf, 0x79, 0x33, 0x39, 0x7a, 0x60, 0xe5, 0x15, 0xb2, 0x96, + 0x57, 0xc8, 0x9b, 0x60, 0x25, 0x80, 0x63, 0x17, 0x43, 0xcb, 0x20, 0xce, 0x27, 0x88, 0x89, 0xa8, + 0xac, 0x37, 0x84, 0xed, 0xd0, 0xf9, 0x64, 0xfa, 0xd4, 0x02, 0x0b, 0x31, 0xf5, 0x26, 0x58, 0x89, + 0xc8, 0x15, 0x95, 0x05, 0x3b, 0x5f, 0x1a, 0x2c, 0x41, 0x0d, 0x61, 0x63, 0x07, 0x48, 0xe6, 0x60, + 0x5b, 0xc9, 0x1d,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5, 0xc4, + 0xa4, 0xac, 0x82, 0xf2, 0x29, 0x1a, 0x8b, 0x27, 0x99, 0xe8, 0x63, 0xd4, 0x64, 0x9d, 0x41, 0x77, + 0x14, 0x6f, 0x0d, 0x1f, 0x7c, 0xab, 0xb4, 0x23, 0xed, 0x0d, 0x1e, 0x3e, 0xed, 0x48, 0x8f, 0x9e, + 0x76, 0xa4, 0xbf, 0x3d, 0xed, 0x48, 0x9f, 0x3e, 0xeb, 0x2c, 0x3d, 0x7a, 0xd6, 0x59, 0xfa, 0xe3, + 0xb3, 0xce, 0xd2, 0x0f, 0xfa, 0xb6, 0x43, 0x4f, 0x46, 0xc3, 0x9e, 0x89, 0xbd, 0xfe, 0xd0, 0x1f, + 0xde, 0x66, 0x12, 0xd8, 0x4f, 0xfd, 0xd3, 0xc2, 0xfd, 0xec, 0xbf, 0x2d, 0x0c, 0xab, 0xac, 0x95, + 0x7d, 0xe7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x32, 0xab, 0x14, 0x08, 0xa2, 0x21, 0x00, 0x00, } func (m *EventCreateBucket) Marshal() (dAtA []byte, err error) { @@ -4270,6 +4343,60 @@ func (m *EventCompleteMigrationBucket) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } +func (m *EventSetTag) 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 *EventSetTag) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSetTag) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tags) > 0 { + for k := range m.Tags { + v := m.Tags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintEvents(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintEvents(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintEvents(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ResourceId) > 0 { + i -= len(m.ResourceId) + copy(dAtA[i:], m.ResourceId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.ResourceId))) + i-- + dAtA[i] = 0x12 + } + if m.ResourceType != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ResourceType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { offset -= sovEvents(v) base := offset @@ -5076,6 +5203,30 @@ func (m *EventCompleteMigrationBucket) Size() (n int) { return n } +func (m *EventSetTag) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceType != 0 { + n += 1 + sovEvents(uint64(m.ResourceType)) + } + l = len(m.ResourceId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if len(m.Tags) > 0 { + for k, v := range m.Tags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + 1 + len(v) + sovEvents(uint64(len(v))) + n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize)) + } + } + return n +} + func sovEvents(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -11055,6 +11206,234 @@ func (m *EventCompleteMigrationBucket) Unmarshal(dAtA []byte) error { } return nil } +func (m *EventSetTag) 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 ErrIntOverflowEvents + } + 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: EventSetTag: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSetTag: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceType", wireType) + } + m.ResourceType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResourceType |= resource.ResourceType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + 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 ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tags == nil { + m.Tags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + 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 ErrIntOverflowEvents + } + 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 ErrInvalidLengthEvents + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthEvents + } + 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 ErrIntOverflowEvents + } + 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 ErrInvalidLengthEvents + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthEvents + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Tags[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipEvents(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/storage/types/message.go b/x/storage/types/message.go index 1ffb6c133..fb66d0c79 100644 --- a/x/storage/types/message.go +++ b/x/storage/types/message.go @@ -53,6 +53,8 @@ const ( TypeMsgPutPolicy = "put_policy" TypeMsgDeletePolicy = "delete_policy" + TypeMsgSetTag = "set_tag" + MaxGroupMemberLimitOnce = 20 // For discontinue @@ -1532,3 +1534,52 @@ func (msg *MsgRenewGroupMember) ValidateBasic() error { return nil } + +func NewMsgSetTag(operator sdk.AccAddress, resource string, tags map[string]string) *MsgSetTag { + return &MsgSetTag{ + Operator: operator.String(), + Resource: resource, + Tags: tags, + } +} + +// Route implements the sdk.Msg interface. +func (msg *MsgSetTag) Route() string { + return RouterKey +} + +// Type implements the sdk.Msg interface. +func (msg *MsgSetTag) Type() string { + return TypeMsgSetTag +} + +// GetSigners implements the sdk.Msg interface. +func (msg *MsgSetTag) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromHexUnsafe(msg.Operator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +// GetSignBytes returns the message bytes to sign over. +func (msg *MsgSetTag) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +// ValidateBasic implements the sdk.Msg interface. +func (msg *MsgSetTag) ValidateBasic() error { + _, err := sdk.AccAddressFromHexUnsafe(msg.Operator) + if err != nil { + return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + + var grn grn2.GRN + err = grn.ParseFromString(msg.Resource, true) + if err != nil { + return errors.Wrapf(gnfderrors.ErrInvalidGRN, "invalid greenfield resource name (%s)", err) + } + + return nil +} diff --git a/x/storage/types/tx.pb.go b/x/storage/types/tx.pb.go index 95729c350..1989c0dc9 100644 --- a/x/storage/types/tx.pb.go +++ b/x/storage/types/tx.pb.go @@ -3091,6 +3091,105 @@ func (m *MsgRejectMigrateBucketResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRejectMigrateBucketResponse proto.InternalMessageInfo +type MsgSetTag struct { + // operator defines the granter who grant the permission to another principal + Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` + // resource defines a greenfield standard resource name that can be generated by GRN structure + Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + // tags defines a list of tags which will be set to the resource + Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *MsgSetTag) Reset() { *m = MsgSetTag{} } +func (m *MsgSetTag) String() string { return proto.CompactTextString(m) } +func (*MsgSetTag) ProtoMessage() {} +func (*MsgSetTag) Descriptor() ([]byte, []int) { + return fileDescriptor_ddb71b028305a3cc, []int{57} +} +func (m *MsgSetTag) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetTag.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 *MsgSetTag) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetTag.Merge(m, src) +} +func (m *MsgSetTag) XXX_Size() int { + return m.Size() +} +func (m *MsgSetTag) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetTag.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetTag proto.InternalMessageInfo + +func (m *MsgSetTag) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +func (m *MsgSetTag) GetResource() string { + if m != nil { + return m.Resource + } + return "" +} + +func (m *MsgSetTag) GetTags() map[string]string { + if m != nil { + return m.Tags + } + return nil +} + +type MsgSetTagResponse struct { +} + +func (m *MsgSetTagResponse) Reset() { *m = MsgSetTagResponse{} } +func (m *MsgSetTagResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetTagResponse) ProtoMessage() {} +func (*MsgSetTagResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ddb71b028305a3cc, []int{58} +} +func (m *MsgSetTagResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetTagResponse.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 *MsgSetTagResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetTagResponse.Merge(m, src) +} +func (m *MsgSetTagResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetTagResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetTagResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetTagResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgCreateBucket)(nil), "greenfield.storage.MsgCreateBucket") proto.RegisterType((*MsgCreateBucketResponse)(nil), "greenfield.storage.MsgCreateBucketResponse") @@ -3149,154 +3248,163 @@ func init() { proto.RegisterType((*MsgCancelMigrateBucketResponse)(nil), "greenfield.storage.MsgCancelMigrateBucketResponse") proto.RegisterType((*MsgRejectMigrateBucket)(nil), "greenfield.storage.MsgRejectMigrateBucket") proto.RegisterType((*MsgRejectMigrateBucketResponse)(nil), "greenfield.storage.MsgRejectMigrateBucketResponse") + proto.RegisterType((*MsgSetTag)(nil), "greenfield.storage.MsgSetTag") + proto.RegisterMapType((map[string]string)(nil), "greenfield.storage.MsgSetTag.TagsEntry") + proto.RegisterType((*MsgSetTagResponse)(nil), "greenfield.storage.MsgSetTagResponse") } func init() { proto.RegisterFile("greenfield/storage/tx.proto", fileDescriptor_ddb71b028305a3cc) } var fileDescriptor_ddb71b028305a3cc = []byte{ - // 2269 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4d, 0x6c, 0x1b, 0xc7, - 0x15, 0x36, 0x45, 0xca, 0x12, 0x1f, 0xa9, 0x1f, 0xaf, 0x15, 0x8b, 0xa1, 0x6a, 0x8a, 0x66, 0x8a, - 0x44, 0xfe, 0x13, 0x1d, 0xd5, 0x35, 0x52, 0xa1, 0x28, 0x2a, 0x29, 0x8d, 0x4b, 0x24, 0xac, 0x95, - 0x95, 0xed, 0x02, 0x01, 0x0a, 0x66, 0xc8, 0x1d, 0xaf, 0xb6, 0x21, 0x77, 0xb7, 0x33, 0x4b, 0xd9, - 0x4c, 0x81, 0x1e, 0x7a, 0xe9, 0xa9, 0x40, 0x80, 0xf4, 0xd0, 0x43, 0xd1, 0x73, 0x4f, 0x45, 0x51, - 0xe4, 0x5c, 0xf4, 0x12, 0xc0, 0xe8, 0xc9, 0xc8, 0xa9, 0x28, 0x0a, 0x37, 0xb0, 0x0b, 0x14, 0xbd, - 0xf6, 0xd2, 0x6b, 0x30, 0x3b, 0xb3, 0xbb, 0xc3, 0xfd, 0xa5, 0x64, 0x29, 0xd6, 0x49, 0xda, 0x99, - 0x6f, 0x66, 0xde, 0xff, 0xbc, 0xf7, 0x86, 0xb0, 0xa2, 0x13, 0x8c, 0xcd, 0x07, 0x06, 0xee, 0x6b, - 0x4d, 0xea, 0x58, 0x04, 0xe9, 0xb8, 0xe9, 0x3c, 0x5a, 0xb7, 0x89, 0xe5, 0x58, 0x8a, 0x12, 0x4c, - 0xae, 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0x91, 0x2b, 0x56, 0xf6, 0x61, 0x5e, 0x7c, 0xd9, 0xff, 0x21, 0xe7, 0x26, - 0x24, 0xef, 0x61, 0x74, 0x20, 0xe2, 0xd0, 0xe1, 0x45, 0x7f, 0x62, 0x1c, 0x6e, 0x96, 0x18, 0x2f, - 0xe2, 0x18, 0x91, 0x12, 0x06, 0x94, 0x06, 0x57, 0xe3, 0x94, 0xa4, 0x2f, 0x9e, 0xee, 0xb4, 0xcc, - 0x07, 0xd6, 0x49, 0xdd, 0x8c, 0xef, 0xc5, 0x16, 0xf2, 0x79, 0xd7, 0xd8, 0x6a, 0x31, 0x09, 0xcf, - 0xbd, 0x96, 0xe9, 0xdc, 0xba, 0x79, 0x1f, 0xf5, 0x87, 0x38, 0x5a, 0xe8, 0x1f, 0x47, 0xbb, 0xe3, - 0x18, 0x0a, 0xba, 0x34, 0xab, 0x09, 0x24, 0xea, 0x4b, 0xfc, 0xf7, 0x39, 0x9e, 0x96, 0x21, 0xb3, - 0x87, 0xfb, 0x63, 0x55, 0xef, 0x29, 0x49, 0xa4, 0x56, 0xe1, 0x62, 0x2c, 0x7d, 0x3e, 0x07, 0x7f, - 0x9d, 0x82, 0x72, 0x9b, 0xea, 0xbb, 0x43, 0x67, 0xd7, 0xea, 0x1b, 0xbd, 0xd1, 0x11, 0x09, 0xff, - 0x1e, 0x14, 0x6d, 0x62, 0x98, 0x3d, 0xc3, 0x46, 0x7d, 0x11, 0x6f, 0xea, 0xb2, 0xe4, 0x83, 0x9e, - 0xde, 0xfa, 0xae, 0x87, 0x53, 0x83, 0x25, 0x2c, 0xfb, 0x27, 0x98, 0x5a, 0x43, 0xd2, 0xf3, 0x98, - 0xf2, 0xbf, 0x95, 0xef, 0x03, 0x50, 0x07, 0x39, 0x98, 0xa9, 0xda, 0x8b, 0xc2, 0x49, 0x9b, 0xef, - 0x79, 0x40, 0x55, 0x5a, 0xa3, 0xb4, 0xa3, 0x31, 0x71, 0x26, 0x33, 0x26, 0xce, 0x3e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e, 0xfc, 0xf3, 0x02, 0xe4, 0xdb, - 0x54, 0x57, 0x3e, 0x84, 0xf2, 0xd8, 0xfb, 0xed, 0x6b, 0x09, 0xf5, 0xb8, 0x0c, 0xaa, 0x5e, 0x9d, - 0x00, 0xe4, 0x67, 0x2b, 0x1f, 0x42, 0x79, 0xec, 0x31, 0x30, 0xe9, 0x04, 0x19, 0x94, 0x78, 0x42, - 0xdc, 0xeb, 0x9e, 0xd2, 0x87, 0xc5, 0x48, 0x91, 0xf6, 0x46, 0xc2, 0x06, 0x61, 0x60, 0xb5, 0x39, - 0x21, 0x50, 0xe6, 0x67, 0x2c, 0x71, 0x48, 0xe2, 0x47, 0x06, 0x25, 0xf2, 0x13, 0x77, 0x6d, 0x29, - 0x16, 0x9c, 0x8b, 0xbe, 0x54, 0xae, 0x25, 0x49, 0x24, 0x8c, 0xac, 0xde, 0x98, 0x14, 0x29, 0xb3, - 0x34, 0x56, 0x6d, 0xa5, 0x1b, 0x01, 0x07, 0x65, 0x18, 0x41, 0xa8, 0xad, 0xfe, 0x01, 0x80, 0xf4, - 0xa8, 0x72, 0x29, 0x61, 0x69, 0x00, 0xa9, 0x5e, 0xce, 0x84, 0xc8, 0xea, 0x8f, 0x3c, 0xdb, 0x24, - 0xa9, 0x3f, 0x0c, 0x4c, 0x54, 0x7f, 0xd2, 0x53, 0x0b, 0xe3, 0x44, 0x7a, 0x66, 0x49, 0xe2, 0x24, - 0x80, 0x24, 0x72, 0x12, 0xf3, 0xf8, 0xe0, 0xbb, 0x4a, 0x86, 0x1e, 0x64, 0x50, 0x86, 0xab, 0x84, - 0x4e, 0x20, 0xa0, 0xc4, 0x54, 0xd7, 0x89, 0x24, 0x46, 0xa0, 0xd5, 0x37, 0x27, 0x86, 0x46, 0x1d, - 0x26, 0x83, 0x2b, 0x19, 0x94, 0xe1, 0x30, 0xa1, 0x13, 0xc6, 0x1d, 0x46, 0x1c, 0x33, 0x81, 0xc3, - 0x88, 0xb3, 0x6e, 0x4c, 0x8a, 0x8c, 0x46, 0x1c, 0x29, 0xa5, 0x4e, 0x8f, 0x38, 0x01, 0x30, 0x23, - 0xe2, 0x44, 0x93, 0x78, 0xe5, 0x27, 0x50, 0x92, 0x1f, 0x2b, 0x1a, 0xa9, 0x8e, 0xe7, 0x62, 0xaa, - 0x57, 0xb2, 0x31, 0xf2, 0xf6, 0xf2, 0x83, 0x41, 0x23, 0xd5, 0x9e, 0xd2, 0xb7, 0x8f, 0x79, 0x02, - 0x60, 0xca, 0x89, 0xb6, 0xff, 0xd7, 0x52, 0x65, 0x20, 0x21, 0x13, 0x95, 0x93, 0xd8, 0x0b, 0x0f, - 0x94, 0x23, 0xf5, 0x58, 0xdf, 0xc8, 0xde, 0xc5, 0x05, 0x66, 0x28, 0x27, 0xda, 0xe9, 0x64, 0xf1, - 0x40, 0xea, 0x72, 0x26, 0xc5, 0x83, 0x00, 0x92, 0x18, 0x0f, 0xa2, 0x1d, 0x48, 0xa6, 0x19, 0xb9, - 0x76, 0x69, 0xa4, 0xfa, 0x44, 0xba, 0x66, 0x62, 0x8a, 0x07, 0x1e, 0x38, 0x43, 0x0f, 0x06, 0xc9, - 0x81, 0x73, 0x1c, 0x98, 0x12, 0x38, 0xe3, 0xdb, 0xf1, 0xca, 0x8f, 0xa1, 0x18, 0xb4, 0xc5, 0xea, - 0x09, 0xab, 0x7d, 0x44, 0x75, 0x2d, 0x0b, 0x11, 0x8d, 0x9a, 0x62, 0xef, 0xf4, 0xa8, 0x29, 0xb6, - 0xbf, 0x3a, 0x01, 0x48, 0x3e, 0x61, 0xac, 0xc2, 0x7a, 0x2d, 0xd5, 0x48, 0x38, 0x28, 0xf1, 0x84, - 0xb8, 0xb2, 0x48, 0xe9, 0xc1, 0xdc, 0x78, 0x9e, 0xf8, 0xcd, 0x44, 0x3d, 0x4a, 0xa8, 0xea, 0xb5, - 0x49, 0x50, 0xfe, 0x21, 0x3f, 0x87, 0x57, 0xe2, 0x2b, 0x8c, 0x6b, 0x89, 0x57, 0x54, 0x0c, 0xba, - 0x7a, 0xf3, 0x30, 0x68, 0xff, 0xf0, 0x21, 0x9c, 0x8f, 0xcb, 0xd8, 0xaf, 0xa4, 0xde, 0x27, 0xe3, - 0x07, 0x6f, 0x4c, 0x8e, 0x95, 0x8f, 0x8d, 0x4b, 0xc3, 0xaf, 0xa4, 0x5e, 0xfb, 0x93, 0x1d, 0x9b, - 0x92, 0x5e, 0x6f, 0xb7, 0x1e, 0x3f, 0xab, 0xe5, 0x9e, 0x3c, 0xab, 0xe5, 0xbe, 0x7c, 0x56, 0xcb, - 0x7d, 0xf2, 0xbc, 0x76, 0xe6, 0xc9, 0xf3, 0xda, 0x99, 0xbf, 0x3f, 0xaf, 0x9d, 0xf9, 0xa0, 0xa9, - 0x1b, 0xce, 0xfe, 0xb0, 0xcb, 0x6a, 0xc8, 0x66, 0xd7, 0xec, 0x5e, 0x77, 0xdb, 0x00, 0x4d, 0xe9, - 0xa7, 0x96, 0x8f, 0x82, 0x1f, 0xa4, 0x8e, 0x6c, 0x4c, 0xbb, 0x67, 0xdd, 0x66, 0xea, 0xb7, 0xbe, - 0x0a, 0x00, 0x00, 0xff, 0xff, 0x7e, 0x9d, 0xed, 0xbd, 0xb3, 0x2a, 0x00, 0x00, + // 2367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4b, 0x6c, 0x1b, 0xc7, + 0x19, 0x36, 0x1f, 0x92, 0xcc, 0x9f, 0xd4, 0xc3, 0x6b, 0x25, 0x62, 0xe8, 0x9a, 0x62, 0x98, 0x36, + 0x91, 0x5f, 0xa2, 0xa3, 0xba, 0xae, 0xab, 0x16, 0x45, 0x25, 0x27, 0x71, 0x89, 0x84, 0xb1, 0xb2, + 0xb2, 0x5d, 0x20, 0x40, 0xc1, 0x0c, 0xb9, 0xe3, 0xf5, 0xd6, 0xe4, 0xee, 0x76, 0x67, 0x29, 0x9b, + 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, 0x3a, 0x78, 0x9d, 0x8e, 0xb5, + 0xb5, 0xf8, 0xa2, 0x47, 0x66, 0x55, 0x78, 0xe9, 0x23, 0x59, 0x0c, 0xcf, 0xd5, 0x09, 0x3c, 0x5c, + 0x31, 0x44, 0xb8, 0x2c, 0x66, 0x72, 0x29, 0x47, 0x54, 0xc6, 0xe5, 0x44, 0x44, 0xfd, 0x52, 0xce, + 0x39, 0x82, 0xf9, 0x17, 0xd6, 0x0b, 0x9a, 0xbc, 0x53, 0x8a, 0x87, 0x71, 0xa7, 0xc8, 0x7a, 0x0e, + 0xf5, 0x4f, 0x3f, 0x67, 0x19, 0x20, 0x9b, 0x7b, 0x9e, 0x72, 0x68, 0x5f, 0x6a, 0xce, 0x48, 0xaf, + 0x0e, 0xa0, 0x64, 0x56, 0x5f, 0x49, 0x6c, 0x08, 0x0e, 0x3f, 0x65, 0x96, 0xcc, 0xf4, 0xbb, 0xe3, + 0x3d, 0xce, 0x28, 0x57, 0xa1, 0x84, 0x46, 0xee, 0x3d, 0xcb, 0xa1, 0x22, 0xce, 0xe2, 0x31, 0x80, + 0x2a, 0xd7, 0x60, 0x96, 0x3d, 0xef, 0x04, 0x19, 0x6e, 0x54, 0x2f, 0xec, 0x8c, 0xed, 0x22, 0x15, + 0x82, 0xca, 0xf1, 0x9b, 0x0b, 0x94, 0xdc, 0x60, 0x27, 0xae, 0x12, 0x99, 0x28, 0x41, 0xf0, 0xff, + 0x72, 0xb0, 0xe4, 0xf1, 0xa2, 0x3b, 0xe8, 0x88, 0xdf, 0x07, 0x94, 0x73, 0x70, 0x2a, 0xd4, 0x47, + 0x32, 0x34, 0x4f, 0x1f, 0xf3, 0xea, 0x82, 0xdc, 0x24, 0x6a, 0x6b, 0x69, 0x2d, 0xa7, 0xe2, 0x21, + 0xb5, 0x9c, 0x6a, 0x50, 0x0d, 0x33, 0x1e, 0xb4, 0x24, 0xf2, 0xde, 0xe4, 0x75, 0x6b, 0x68, 0xd3, + 0x78, 0xff, 0x95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 0x97, 0xeb, 0xd7, 0x12, 0x68, 0x94, 0x41, 0xb5, + 0x0b, 0x53, 0x80, 0x44, 0x9e, 0xf6, 0x11, 0x54, 0x26, 0x9e, 0x41, 0x93, 0x4e, 0x90, 0x41, 0x89, + 0x27, 0xc4, 0xbd, 0x6b, 0x2a, 0x03, 0x58, 0x8a, 0x94, 0xa7, 0x49, 0xb2, 0x0e, 0x03, 0x6b, 0xad, + 0x29, 0x81, 0x32, 0x3f, 0x13, 0x29, 0x53, 0x12, 0x3f, 0x32, 0x28, 0x91, 0x9f, 0xb8, 0x0b, 0x5b, + 0xb1, 0xe0, 0x54, 0xf4, 0x8d, 0x76, 0x2d, 0x49, 0x22, 0x61, 0x64, 0xed, 0xf2, 0xb4, 0x48, 0x99, + 0xa5, 0x89, 0x3a, 0x33, 0xdd, 0x08, 0x18, 0x28, 0xc3, 0x08, 0x42, 0x0f, 0x0a, 0x1f, 0x02, 0x48, + 0xcf, 0x49, 0xaf, 0x26, 0x3a, 0x82, 0x0f, 0xa9, 0x9d, 0xcb, 0x84, 0xc8, 0xea, 0x8f, 0x3c, 0x58, + 0x25, 0xa9, 0x3f, 0x0c, 0x4c, 0x54, 0x7f, 0xd2, 0x23, 0x13, 0xe5, 0x44, 0x7a, 0x60, 0x4a, 0xe2, + 0x24, 0x80, 0x24, 0x72, 0x12, 0xf3, 0xec, 0x22, 0x5c, 0x25, 0x43, 0x0f, 0x32, 0x28, 0xc3, 0x55, + 0x42, 0x27, 0x38, 0xa0, 0xc4, 0xf4, 0x15, 0x12, 0x49, 0x8c, 0x40, 0x6b, 0x6f, 0x4e, 0x0d, 0x8d, + 0x3a, 0x4c, 0x06, 0x57, 0x32, 0x28, 0xc3, 0x61, 0x42, 0x27, 0x4c, 0x3a, 0x0c, 0x3f, 0x66, 0x0a, + 0x87, 0xe1, 0x67, 0x5d, 0x9e, 0x16, 0x19, 0x8d, 0x38, 0x52, 0x31, 0x91, 0x1e, 0x71, 0x02, 0x60, + 0x46, 0xc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38, 0x1d, 0x57, 0xab, 0x9c, 0x4f, 0xbd, 0x4f, + 0x26, 0x0f, 0xde, 0x98, 0x1e, 0x2b, 0x1f, 0x1b, 0x57, 0x80, 0x9c, 0x4f, 0xbd, 0xf6, 0xa7, 0x3b, + 0x36, 0xa5, 0xb0, 0x50, 0xde, 0x87, 0x59, 0x5e, 0x54, 0x9c, 0x4d, 0x4d, 0xfa, 0x6b, 0xdf, 0x48, + 0x9d, 0xf6, 0xf7, 0xdb, 0x6e, 0x3f, 0x7a, 0x5a, 0xcf, 0x3d, 0x7e, 0x5a, 0xcf, 0x7d, 0xf9, 0xb4, + 0x9e, 0xfb, 0xe4, 0x59, 0xfd, 0xc4, 0xe3, 0x67, 0xf5, 0x13, 0x7f, 0x7f, 0x56, 0x3f, 0xf1, 0x61, + 0x4b, 0x37, 0xdc, 0x7b, 0xa3, 0x1e, 0xad, 0xc6, 0x5b, 0x3d, 0xb3, 0x77, 0xc9, 0x6b, 0xa8, 0xb4, + 0xa4, 0x7f, 0x5a, 0x7d, 0x18, 0xfc, 0x6b, 0xef, 0xd8, 0xc6, 0xa4, 0x37, 0xeb, 0xb5, 0xa5, 0xbf, + 0xf9, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, 0x7b, 0x82, 0x4d, 0xfd, 0x2b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3345,6 +3453,7 @@ type MsgClient interface { CompleteMigrateBucket(ctx context.Context, in *MsgCompleteMigrateBucket, opts ...grpc.CallOption) (*MsgCompleteMigrateBucketResponse, error) CancelMigrateBucket(ctx context.Context, in *MsgCancelMigrateBucket, opts ...grpc.CallOption) (*MsgCancelMigrateBucketResponse, error) RejectMigrateBucket(ctx context.Context, in *MsgRejectMigrateBucket, opts ...grpc.CallOption) (*MsgRejectMigrateBucketResponse, error) + SetTag(ctx context.Context, in *MsgSetTag, opts ...grpc.CallOption) (*MsgSetTagResponse, error) } type msgClient struct { @@ -3607,6 +3716,15 @@ func (c *msgClient) RejectMigrateBucket(ctx context.Context, in *MsgRejectMigrat return out, nil } +func (c *msgClient) SetTag(ctx context.Context, in *MsgSetTag, opts ...grpc.CallOption) (*MsgSetTagResponse, error) { + out := new(MsgSetTagResponse) + err := c.cc.Invoke(ctx, "/greenfield.storage.Msg/SetTag", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { // basic operation of bucket @@ -3643,6 +3761,7 @@ type MsgServer interface { CompleteMigrateBucket(context.Context, *MsgCompleteMigrateBucket) (*MsgCompleteMigrateBucketResponse, error) CancelMigrateBucket(context.Context, *MsgCancelMigrateBucket) (*MsgCancelMigrateBucketResponse, error) RejectMigrateBucket(context.Context, *MsgRejectMigrateBucket) (*MsgRejectMigrateBucketResponse, error) + SetTag(context.Context, *MsgSetTag) (*MsgSetTagResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -3733,6 +3852,9 @@ func (*UnimplementedMsgServer) CancelMigrateBucket(ctx context.Context, req *Msg func (*UnimplementedMsgServer) RejectMigrateBucket(ctx context.Context, req *MsgRejectMigrateBucket) (*MsgRejectMigrateBucketResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RejectMigrateBucket not implemented") } +func (*UnimplementedMsgServer) SetTag(ctx context.Context, req *MsgSetTag) (*MsgSetTagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetTag not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -4242,6 +4364,24 @@ func _Msg_RejectMigrateBucket_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Msg_SetTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetTag) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greenfield.storage.Msg/SetTag", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetTag(ctx, req.(*MsgSetTag)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "greenfield.storage.Msg", HandlerType: (*MsgServer)(nil), @@ -4358,6 +4498,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "RejectMigrateBucket", Handler: _Msg_RejectMigrateBucket_Handler, }, + { + MethodName: "SetTag", + Handler: _Msg_SetTag_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "greenfield/storage/tx.proto", @@ -6584,6 +6728,85 @@ func (m *MsgRejectMigrateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *MsgSetTag) 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 *MsgSetTag) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetTag) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tags) > 0 { + for k := range m.Tags { + v := m.Tags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintTx(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintTx(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintTx(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Resource) > 0 { + i -= len(m.Resource) + copy(dAtA[i:], m.Resource) + i = encodeVarintTx(dAtA, i, uint64(len(m.Resource))) + i-- + dAtA[i] = 0x12 + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetTagResponse) 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 *MsgSetTagResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetTagResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -7561,6 +7784,40 @@ func (m *MsgRejectMigrateBucketResponse) Size() (n int) { return n } +func (m *MsgSetTag) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Resource) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Tags) > 0 { + for k, v := range m.Tags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovTx(uint64(len(k))) + 1 + len(v) + sovTx(uint64(len(v))) + n += mapEntrySize + 1 + sovTx(uint64(mapEntrySize)) + } + } + return n +} + +func (m *MsgSetTagResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -14093,6 +14350,297 @@ func (m *MsgRejectMigrateBucketResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgSetTag) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetTag: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetTag: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Resource = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tags == nil { + m.Tags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthTx + } + 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 ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthTx + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Tags[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetTagResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetTagResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetTagResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0