cpp

package
v0.0.0-...-7428086 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RefType_name = map[RefType]string{
		RefType_Unique:        "Unique",
		RefType_Shared:        "Shared",
		RefType_SharedMutable: "SharedMutable",
	}

	RefType_value = map[string]RefType{
		"Unique":        RefType_Unique,
		"Shared":        RefType_Shared,
		"SharedMutable": RefType_SharedMutable,
	}

	// Deprecated: Use RefType_name instead.
	RefTypeToName = RefType_name

	// Deprecated: Use RefType_value instead.
	RefTypeToValue = RefType_value

	// Deprecated: Use RefType_name instead (e.g. `for name, _ := range RefType_name {}`).
	RefTypeNames = []string{
		"Unique",
		"Shared",
		"SharedMutable",
	}

	// Deprecated: Use RefType_value instead (e.g. `for value, _ := range RefType_value {}`).
	RefTypeValues = []RefType{
		0,
		1,
		2,
	}
)

Enum value maps for RefType

View Source
var (
	EnumUnderlyingType_name = map[EnumUnderlyingType]string{
		EnumUnderlyingType_I8:  "I8",
		EnumUnderlyingType_U8:  "U8",
		EnumUnderlyingType_I16: "I16",
		EnumUnderlyingType_U16: "U16",
		EnumUnderlyingType_U32: "U32",
	}

	EnumUnderlyingType_value = map[string]EnumUnderlyingType{
		"I8":  EnumUnderlyingType_I8,
		"U8":  EnumUnderlyingType_U8,
		"I16": EnumUnderlyingType_I16,
		"U16": EnumUnderlyingType_U16,
		"U32": EnumUnderlyingType_U32,
	}

	// Deprecated: Use EnumUnderlyingType_name instead.
	EnumUnderlyingTypeToName = EnumUnderlyingType_name

	// Deprecated: Use EnumUnderlyingType_value instead.
	EnumUnderlyingTypeToValue = EnumUnderlyingType_value

	// Deprecated: Use EnumUnderlyingType_name instead (e.g. `for name, _ := range EnumUnderlyingType_name {}`).
	EnumUnderlyingTypeNames = []string{
		"I8",
		"U8",
		"I16",
		"U16",
		"U32",
	}

	// Deprecated: Use EnumUnderlyingType_value instead (e.g. `for value, _ := range EnumUnderlyingType_value {}`).
	EnumUnderlyingTypeValues = []EnumUnderlyingType{
		0,
		1,
		2,
		3,
		4,
	}
)

Enum value maps for EnumUnderlyingType

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Name           string `thrift:"name,1" json:"name" db:"name"`
	AdaptedType    string `thrift:"adaptedType,2" json:"adaptedType" db:"adaptedType"`
	UnderlyingName string `thrift:"underlyingName,3" json:"underlyingName" db:"underlyingName"`
	ExtraNamespace string `thrift:"extraNamespace,4" json:"extraNamespace" db:"extraNamespace"`
	MoveOnly       bool   `thrift:"moveOnly,5" json:"moveOnly" db:"moveOnly"`
}

func NewAdapter

func NewAdapter() *Adapter

func (*Adapter) GetAdaptedType

func (x *Adapter) GetAdaptedType() string

func (*Adapter) GetExtraNamespace

func (x *Adapter) GetExtraNamespace() string

func (*Adapter) GetMoveOnly

func (x *Adapter) GetMoveOnly() bool

func (*Adapter) GetName

func (x *Adapter) GetName() string

func (*Adapter) GetUnderlyingName

func (x *Adapter) GetUnderlyingName() string

func (*Adapter) Read

func (x *Adapter) Read(p thrift.Protocol) error

func (*Adapter) SetAdaptedType

func (x *Adapter) SetAdaptedType(value string) *Adapter

func (*Adapter) SetExtraNamespace

func (x *Adapter) SetExtraNamespace(value string) *Adapter

func (*Adapter) SetMoveOnly

func (x *Adapter) SetMoveOnly(value bool) *Adapter

func (*Adapter) SetName

func (x *Adapter) SetName(value string) *Adapter

func (*Adapter) SetUnderlyingName

func (x *Adapter) SetUnderlyingName(value string) *Adapter

func (*Adapter) Write

func (x *Adapter) Write(p thrift.Protocol) error

type AdapterBuilder deprecated

type AdapterBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Adapter.Set* methods instead or set the fields directly.

func NewAdapterBuilder

func NewAdapterBuilder() *AdapterBuilder

func (*AdapterBuilder) AdaptedType

func (x *AdapterBuilder) AdaptedType(value string) *AdapterBuilder

func (*AdapterBuilder) Emit

func (x *AdapterBuilder) Emit() *Adapter

func (*AdapterBuilder) ExtraNamespace

func (x *AdapterBuilder) ExtraNamespace(value string) *AdapterBuilder

func (*AdapterBuilder) MoveOnly

func (x *AdapterBuilder) MoveOnly(value bool) *AdapterBuilder

func (*AdapterBuilder) Name

func (x *AdapterBuilder) Name(value string) *AdapterBuilder

func (*AdapterBuilder) UnderlyingName

func (x *AdapterBuilder) UnderlyingName(value string) *AdapterBuilder

type DisableLazyChecksum

type DisableLazyChecksum struct {
}

func NewDisableLazyChecksum

func NewDisableLazyChecksum() *DisableLazyChecksum

func (*DisableLazyChecksum) Read

func (*DisableLazyChecksum) Write

type DisableLazyChecksumBuilder deprecated

type DisableLazyChecksumBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use DisableLazyChecksum.Set* methods instead or set the fields directly.

func NewDisableLazyChecksumBuilder

func NewDisableLazyChecksumBuilder() *DisableLazyChecksumBuilder

func (*DisableLazyChecksumBuilder) Emit

type EnumType

type EnumType struct {
	Type EnumUnderlyingType `thrift:"type,1" json:"type" db:"type"`
}

func NewEnumType

func NewEnumType() *EnumType

func (*EnumType) GetType

func (x *EnumType) GetType() EnumUnderlyingType

func (*EnumType) Read

func (x *EnumType) Read(p thrift.Protocol) error

func (*EnumType) SetType

func (x *EnumType) SetType(value EnumUnderlyingType) *EnumType

func (*EnumType) Write

func (x *EnumType) Write(p thrift.Protocol) error

type EnumTypeBuilder deprecated

type EnumTypeBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use EnumType.Set* methods instead or set the fields directly.

func NewEnumTypeBuilder

func NewEnumTypeBuilder() *EnumTypeBuilder

func (*EnumTypeBuilder) Emit

func (x *EnumTypeBuilder) Emit() *EnumType

func (*EnumTypeBuilder) Type

type EnumUnderlyingType

type EnumUnderlyingType int32
const (
	EnumUnderlyingType_I8  EnumUnderlyingType = 0
	EnumUnderlyingType_U8  EnumUnderlyingType = 1
	EnumUnderlyingType_I16 EnumUnderlyingType = 2
	EnumUnderlyingType_U16 EnumUnderlyingType = 3
	EnumUnderlyingType_U32 EnumUnderlyingType = 4
)

func EnumUnderlyingTypeFromString deprecated

func EnumUnderlyingTypeFromString(s string) (EnumUnderlyingType, error)

Deprecated: Use EnumUnderlyingType_value instead (e.g. `x, ok := EnumUnderlyingType_value["name"]`).

func EnumUnderlyingTypePtr deprecated

func EnumUnderlyingTypePtr(v EnumUnderlyingType) *EnumUnderlyingType

Deprecated: Use EnumUnderlyingType.Ptr() instead.

func (EnumUnderlyingType) Ptr

func (EnumUnderlyingType) String

func (x EnumUnderlyingType) String() string

type FieldInterceptor

type FieldInterceptor struct {
	Name     string `thrift:"name,1" json:"name" db:"name"`
	Noinline bool   `thrift:"noinline,2" json:"noinline" db:"noinline"`
}

func NewFieldInterceptor

func NewFieldInterceptor() *FieldInterceptor

func (*FieldInterceptor) GetName

func (x *FieldInterceptor) GetName() string

func (*FieldInterceptor) GetNoinline

func (x *FieldInterceptor) GetNoinline() bool

func (*FieldInterceptor) Read

func (*FieldInterceptor) SetName

func (x *FieldInterceptor) SetName(value string) *FieldInterceptor

func (*FieldInterceptor) SetNoinline

func (x *FieldInterceptor) SetNoinline(value bool) *FieldInterceptor

func (*FieldInterceptor) Write

func (x *FieldInterceptor) Write(p thrift.Protocol) error

type FieldInterceptorBuilder deprecated

type FieldInterceptorBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use FieldInterceptor.Set* methods instead or set the fields directly.

func NewFieldInterceptorBuilder

func NewFieldInterceptorBuilder() *FieldInterceptorBuilder

func (*FieldInterceptorBuilder) Emit

func (*FieldInterceptorBuilder) Name

func (*FieldInterceptorBuilder) Noinline

type Lazy

type Lazy struct {
	Ref bool `thrift:"ref,1" json:"ref" db:"ref"`
}

func NewLazy

func NewLazy() *Lazy

func (*Lazy) GetRef

func (x *Lazy) GetRef() bool

func (*Lazy) Read

func (x *Lazy) Read(p thrift.Protocol) error

func (*Lazy) SetRef

func (x *Lazy) SetRef(value bool) *Lazy

func (*Lazy) Write

func (x *Lazy) Write(p thrift.Protocol) error

type LazyBuilder deprecated

type LazyBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Lazy.Set* methods instead or set the fields directly.

func NewLazyBuilder

func NewLazyBuilder() *LazyBuilder

func (*LazyBuilder) Emit

func (x *LazyBuilder) Emit() *Lazy

func (*LazyBuilder) Ref

func (x *LazyBuilder) Ref(value bool) *LazyBuilder

type MinimizePadding

type MinimizePadding struct {
}

func NewMinimizePadding

func NewMinimizePadding() *MinimizePadding

func (*MinimizePadding) Read

func (x *MinimizePadding) Read(p thrift.Protocol) error

func (*MinimizePadding) Write

func (x *MinimizePadding) Write(p thrift.Protocol) error

type MinimizePaddingBuilder deprecated

type MinimizePaddingBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use MinimizePadding.Set* methods instead or set the fields directly.

func NewMinimizePaddingBuilder

func NewMinimizePaddingBuilder() *MinimizePaddingBuilder

func (*MinimizePaddingBuilder) Emit

type PackIsset

type PackIsset struct {
	Atomic bool `thrift:"atomic,1" json:"atomic" db:"atomic"`
}

func NewPackIsset

func NewPackIsset() *PackIsset

func (*PackIsset) GetAtomic

func (x *PackIsset) GetAtomic() bool

func (*PackIsset) Read

func (x *PackIsset) Read(p thrift.Protocol) error

func (*PackIsset) SetAtomic

func (x *PackIsset) SetAtomic(value bool) *PackIsset

func (*PackIsset) Write

func (x *PackIsset) Write(p thrift.Protocol) error

type PackIssetBuilder deprecated

type PackIssetBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use PackIsset.Set* methods instead or set the fields directly.

func NewPackIssetBuilder

func NewPackIssetBuilder() *PackIssetBuilder

func (*PackIssetBuilder) Atomic

func (x *PackIssetBuilder) Atomic(value bool) *PackIssetBuilder

func (*PackIssetBuilder) Emit

func (x *PackIssetBuilder) Emit() *PackIsset

type Ref

type Ref struct {
	Type RefType `thrift:"type,1" json:"type" db:"type"`
}

func NewRef

func NewRef() *Ref

func (*Ref) GetType

func (x *Ref) GetType() RefType

func (*Ref) Read

func (x *Ref) Read(p thrift.Protocol) error

func (*Ref) SetType

func (x *Ref) SetType(value RefType) *Ref

func (*Ref) Write

func (x *Ref) Write(p thrift.Protocol) error

type RefBuilder deprecated

type RefBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Ref.Set* methods instead or set the fields directly.

func NewRefBuilder

func NewRefBuilder() *RefBuilder

func (*RefBuilder) Emit

func (x *RefBuilder) Emit() *Ref

func (*RefBuilder) Type

func (x *RefBuilder) Type(value RefType) *RefBuilder

type RefType

type RefType int32
const (
	RefType_Unique        RefType = 0
	RefType_Shared        RefType = 1
	RefType_SharedMutable RefType = 2
)

func RefTypeFromString deprecated

func RefTypeFromString(s string) (RefType, error)

Deprecated: Use RefType_value instead (e.g. `x, ok := RefType_value["name"]`).

func RefTypePtr deprecated

func RefTypePtr(v RefType) *RefType

Deprecated: Use RefType.Ptr() instead.

func (RefType) Ptr

func (x RefType) Ptr() *RefType

func (RefType) String

func (x RefType) String() string

type ScopedEnumAsUnionType

type ScopedEnumAsUnionType struct {
}

func NewScopedEnumAsUnionType

func NewScopedEnumAsUnionType() *ScopedEnumAsUnionType

func (*ScopedEnumAsUnionType) Read

func (*ScopedEnumAsUnionType) Write

type ScopedEnumAsUnionTypeBuilder deprecated

type ScopedEnumAsUnionTypeBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use ScopedEnumAsUnionType.Set* methods instead or set the fields directly.

func NewScopedEnumAsUnionTypeBuilder

func NewScopedEnumAsUnionTypeBuilder() *ScopedEnumAsUnionTypeBuilder

func (*ScopedEnumAsUnionTypeBuilder) Emit

type StrongType

type StrongType struct {
}

func NewStrongType

func NewStrongType() *StrongType

func (*StrongType) Read

func (x *StrongType) Read(p thrift.Protocol) error

func (*StrongType) Write

func (x *StrongType) Write(p thrift.Protocol) error

type StrongTypeBuilder deprecated

type StrongTypeBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use StrongType.Set* methods instead or set the fields directly.

func NewStrongTypeBuilder

func NewStrongTypeBuilder() *StrongTypeBuilder

func (*StrongTypeBuilder) Emit

func (x *StrongTypeBuilder) Emit() *StrongType

type TriviallyRelocatable

type TriviallyRelocatable struct {
}

func NewTriviallyRelocatable

func NewTriviallyRelocatable() *TriviallyRelocatable

func (*TriviallyRelocatable) Read

func (*TriviallyRelocatable) Write

type TriviallyRelocatableBuilder deprecated

type TriviallyRelocatableBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use TriviallyRelocatable.Set* methods instead or set the fields directly.

func NewTriviallyRelocatableBuilder

func NewTriviallyRelocatableBuilder() *TriviallyRelocatableBuilder

func (*TriviallyRelocatableBuilder) Emit

type UseOpEncode

type UseOpEncode struct {
}

func NewUseOpEncode

func NewUseOpEncode() *UseOpEncode

func (*UseOpEncode) Read

func (x *UseOpEncode) Read(p thrift.Protocol) error

func (*UseOpEncode) Write

func (x *UseOpEncode) Write(p thrift.Protocol) error

type UseOpEncodeBuilder deprecated

type UseOpEncodeBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use UseOpEncode.Set* methods instead or set the fields directly.

func NewUseOpEncodeBuilder

func NewUseOpEncodeBuilder() *UseOpEncodeBuilder

func (*UseOpEncodeBuilder) Emit

func (x *UseOpEncodeBuilder) Emit() *UseOpEncode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL