blob: ecacacacf7e8c2a1d3d1dc8d816d62a3524a3f3d [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file was auto-generated by the vanadium vdl tool.
// Source: blob_test_types.vdl
package blobtestsvdl
import (
// VDL system imports
"v.io/v23/vdl"
// VDL user imports
"v.io/v23/services/syncbase/nosql"
)
type BlobInfo struct {
Info string
Br nosql.BlobRef
}
func (BlobInfo) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/services/syncbase/vsync/testdata.BlobInfo"`
}) {
}
type (
// BlobUnion represents any single field of the BlobUnion union type.
BlobUnion interface {
// Index returns the field index.
Index() int
// Interface returns the field value as an interface.
Interface() interface{}
// Name returns the field name.
Name() string
// __VDLReflect describes the BlobUnion union type.
__VDLReflect(__BlobUnionReflect)
}
// BlobUnionNum represents field Num of the BlobUnion union type.
BlobUnionNum struct{ Value int32 }
// BlobUnionBi represents field Bi of the BlobUnion union type.
BlobUnionBi struct{ Value BlobInfo }
// __BlobUnionReflect describes the BlobUnion union type.
__BlobUnionReflect struct {
Name string `vdl:"v.io/x/ref/services/syncbase/vsync/testdata.BlobUnion"`
Type BlobUnion
Union struct {
Num BlobUnionNum
Bi BlobUnionBi
}
}
)
func (x BlobUnionNum) Index() int { return 0 }
func (x BlobUnionNum) Interface() interface{} { return x.Value }
func (x BlobUnionNum) Name() string { return "Num" }
func (x BlobUnionNum) __VDLReflect(__BlobUnionReflect) {}
func (x BlobUnionBi) Index() int { return 1 }
func (x BlobUnionBi) Interface() interface{} { return x.Value }
func (x BlobUnionBi) Name() string { return "Bi" }
func (x BlobUnionBi) __VDLReflect(__BlobUnionReflect) {}
type BlobSet struct {
Info string
Bs map[nosql.BlobRef]struct{}
}
func (BlobSet) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/services/syncbase/vsync/testdata.BlobSet"`
}) {
}
type BlobAny struct {
Info string
Baa []*vdl.Value
}
func (BlobAny) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/services/syncbase/vsync/testdata.BlobAny"`
}) {
}
type NonBlobSet struct {
Info string
S map[string]struct{}
}
func (NonBlobSet) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/services/syncbase/vsync/testdata.NonBlobSet"`
}) {
}
type BlobOpt struct {
Info string
Bo *BlobInfo
}
func (BlobOpt) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/services/syncbase/vsync/testdata.BlobOpt"`
}) {
}
func init() {
vdl.Register((*BlobInfo)(nil))
vdl.Register((*BlobUnion)(nil))
vdl.Register((*BlobSet)(nil))
vdl.Register((*BlobAny)(nil))
vdl.Register((*NonBlobSet)(nil))
vdl.Register((*BlobOpt)(nil))
}