gofeaturespb

package
v1.36.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: BSD-3-Clause Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GoFeatures_APILevel_name = map[int32]string{
		0: "API_LEVEL_UNSPECIFIED",
		1: "API_OPEN",
		2: "API_HYBRID",
		3: "API_OPAQUE",
	}
	GoFeatures_APILevel_value = map[string]int32{
		"API_LEVEL_UNSPECIFIED": 0,
		"API_OPEN":              1,
		"API_HYBRID":            2,
		"API_OPAQUE":            3,
	}
)

Enum value maps for GoFeatures_APILevel.

View Source
var (
	GoFeatures_StripEnumPrefix_name = map[int32]string{
		0: "STRIP_ENUM_PREFIX_UNSPECIFIED",
		1: "STRIP_ENUM_PREFIX_KEEP",
		2: "STRIP_ENUM_PREFIX_GENERATE_BOTH",
		3: "STRIP_ENUM_PREFIX_STRIP",
	}
	GoFeatures_StripEnumPrefix_value = map[string]int32{
		"STRIP_ENUM_PREFIX_UNSPECIFIED":   0,
		"STRIP_ENUM_PREFIX_KEEP":          1,
		"STRIP_ENUM_PREFIX_GENERATE_BOTH": 2,
		"STRIP_ENUM_PREFIX_STRIP":         3,
	}
)

Enum value maps for GoFeatures_StripEnumPrefix.

View Source
var (
	// optional pb.GoFeatures go = 1002;
	E_Go = &file_google_protobuf_go_features_proto_extTypes[0]
)

Extension fields to descriptorpb.FeatureSet.

View Source
var File_google_protobuf_go_features_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GoFeatures

type GoFeatures struct {

	// Whether or not to generate the deprecated UnmarshalJSON method for enums.
	// Can only be true for proto using the Open Struct api.
	LegacyUnmarshalJsonEnum *bool `` /* 128-byte string literal not displayed */
	// One of OPEN, HYBRID or OPAQUE.
	ApiLevel        *GoFeatures_APILevel        `protobuf:"varint,2,opt,name=api_level,json=apiLevel,enum=pb.GoFeatures_APILevel" json:"api_level,omitempty"`
	StripEnumPrefix *GoFeatures_StripEnumPrefix `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GoFeatures) Descriptor deprecated

func (*GoFeatures) Descriptor() ([]byte, []int)

Deprecated: Use GoFeatures.ProtoReflect.Descriptor instead.

func (*GoFeatures) GetApiLevel added in v1.36.0

func (x *GoFeatures) GetApiLevel() GoFeatures_APILevel

func (*GoFeatures) GetLegacyUnmarshalJsonEnum

func (x *GoFeatures) GetLegacyUnmarshalJsonEnum() bool

func (*GoFeatures) GetStripEnumPrefix added in v1.35.2

func (x *GoFeatures) GetStripEnumPrefix() GoFeatures_StripEnumPrefix

func (*GoFeatures) ProtoMessage

func (*GoFeatures) ProtoMessage()

func (*GoFeatures) ProtoReflect

func (x *GoFeatures) ProtoReflect() protoreflect.Message

func (*GoFeatures) Reset

func (x *GoFeatures) Reset()

func (*GoFeatures) String

func (x *GoFeatures) String() string

type GoFeatures_APILevel added in v1.36.0

type GoFeatures_APILevel int32
const (
	// API_LEVEL_UNSPECIFIED results in selecting the OPEN API,
	// but needs to be a separate value to distinguish between
	// an explicitly set api level or a missing api level.
	GoFeatures_API_LEVEL_UNSPECIFIED GoFeatures_APILevel = 0
	GoFeatures_API_OPEN              GoFeatures_APILevel = 1
	GoFeatures_API_HYBRID            GoFeatures_APILevel = 2
	GoFeatures_API_OPAQUE            GoFeatures_APILevel = 3
)

func (GoFeatures_APILevel) Descriptor added in v1.36.0

func (GoFeatures_APILevel) Enum added in v1.36.0

func (GoFeatures_APILevel) EnumDescriptor deprecated added in v1.36.0

func (GoFeatures_APILevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use GoFeatures_APILevel.Descriptor instead.

func (GoFeatures_APILevel) Number added in v1.36.0

func (GoFeatures_APILevel) String added in v1.36.0

func (x GoFeatures_APILevel) String() string

func (GoFeatures_APILevel) Type added in v1.36.0

func (*GoFeatures_APILevel) UnmarshalJSON deprecated added in v1.36.0

func (x *GoFeatures_APILevel) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type GoFeatures_StripEnumPrefix added in v1.35.2

type GoFeatures_StripEnumPrefix int32
const (
	GoFeatures_STRIP_ENUM_PREFIX_UNSPECIFIED   GoFeatures_StripEnumPrefix = 0
	GoFeatures_STRIP_ENUM_PREFIX_KEEP          GoFeatures_StripEnumPrefix = 1
	GoFeatures_STRIP_ENUM_PREFIX_GENERATE_BOTH GoFeatures_StripEnumPrefix = 2
	GoFeatures_STRIP_ENUM_PREFIX_STRIP         GoFeatures_StripEnumPrefix = 3
)

func (GoFeatures_StripEnumPrefix) Descriptor added in v1.35.2

func (GoFeatures_StripEnumPrefix) Enum added in v1.35.2

func (GoFeatures_StripEnumPrefix) EnumDescriptor deprecated added in v1.35.2

func (GoFeatures_StripEnumPrefix) EnumDescriptor() ([]byte, []int)

Deprecated: Use GoFeatures_StripEnumPrefix.Descriptor instead.

func (GoFeatures_StripEnumPrefix) Number added in v1.35.2

func (GoFeatures_StripEnumPrefix) String added in v1.35.2

func (GoFeatures_StripEnumPrefix) Type added in v1.35.2

func (*GoFeatures_StripEnumPrefix) UnmarshalJSON deprecated added in v1.35.2

func (x *GoFeatures_StripEnumPrefix) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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