protobuf

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CppFeatures_StringType_name = map[int32]string{
		0: "STRING_TYPE_UNKNOWN",
		1: "VIEW",
		2: "CORD",
		3: "STRING",
	}
	CppFeatures_StringType_value = map[string]int32{
		"STRING_TYPE_UNKNOWN": 0,
		"VIEW":                1,
		"CORD":                2,
		"STRING":              3,
	}
)

Enum value maps for CppFeatures_StringType.

View Source
var (
	JavaFeatures_Utf8Validation_name = map[int32]string{
		0: "UTF8_VALIDATION_UNKNOWN",
		1: "DEFAULT",
		2: "VERIFY",
	}
	JavaFeatures_Utf8Validation_value = map[string]int32{
		"UTF8_VALIDATION_UNKNOWN": 0,
		"DEFAULT":                 1,
		"VERIFY":                  2,
	}
)

Enum value maps for JavaFeatures_Utf8Validation.

View Source
var (
	// optional pb.CppFeatures cpp = 1000;
	E_Cpp = &file_google_protobuf_cpp_features_proto_extTypes[0]
)

Extension fields to descriptorpb.FeatureSet.

View Source
var (
	// optional pb.JavaFeatures java = 1001;
	E_Java = &file_google_protobuf_java_features_proto_extTypes[0]
)

Extension fields to descriptorpb.FeatureSet.

View Source
var File_google_protobuf_cpp_features_proto protoreflect.FileDescriptor
View Source
var File_google_protobuf_java_features_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CppFeatures

type CppFeatures struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*CppFeatures) ClearEnumNameUsesStringView added in v1.49.0

func (x *CppFeatures) ClearEnumNameUsesStringView()

func (*CppFeatures) ClearLegacyClosedEnum added in v1.49.0

func (x *CppFeatures) ClearLegacyClosedEnum()

func (*CppFeatures) ClearStringType added in v1.49.0

func (x *CppFeatures) ClearStringType()

func (*CppFeatures) GetEnumNameUsesStringView added in v1.49.0

func (x *CppFeatures) GetEnumNameUsesStringView() bool

func (*CppFeatures) GetLegacyClosedEnum

func (x *CppFeatures) GetLegacyClosedEnum() bool

func (*CppFeatures) GetStringType

func (x *CppFeatures) GetStringType() CppFeatures_StringType

func (*CppFeatures) HasEnumNameUsesStringView added in v1.49.0

func (x *CppFeatures) HasEnumNameUsesStringView() bool

func (*CppFeatures) HasLegacyClosedEnum added in v1.49.0

func (x *CppFeatures) HasLegacyClosedEnum() bool

func (*CppFeatures) HasStringType added in v1.49.0

func (x *CppFeatures) HasStringType() bool

func (*CppFeatures) ProtoMessage

func (*CppFeatures) ProtoMessage()

func (*CppFeatures) ProtoReflect

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

func (*CppFeatures) Reset

func (x *CppFeatures) Reset()

func (*CppFeatures) SetEnumNameUsesStringView added in v1.49.0

func (x *CppFeatures) SetEnumNameUsesStringView(v bool)

func (*CppFeatures) SetLegacyClosedEnum added in v1.49.0

func (x *CppFeatures) SetLegacyClosedEnum(v bool)

func (*CppFeatures) SetStringType added in v1.49.0

func (x *CppFeatures) SetStringType(v CppFeatures_StringType)

func (*CppFeatures) String

func (x *CppFeatures) String() string

type CppFeatures_StringType

type CppFeatures_StringType int32
const (
	CppFeatures_STRING_TYPE_UNKNOWN CppFeatures_StringType = 0
	CppFeatures_VIEW                CppFeatures_StringType = 1
	CppFeatures_CORD                CppFeatures_StringType = 2
	CppFeatures_STRING              CppFeatures_StringType = 3
)

func (CppFeatures_StringType) Descriptor

func (CppFeatures_StringType) Enum

func (CppFeatures_StringType) Number

func (CppFeatures_StringType) String

func (x CppFeatures_StringType) String() string

func (CppFeatures_StringType) Type

type CppFeatures_builder added in v1.49.0

type CppFeatures_builder struct {

	// Whether or not to treat an enum field as closed.  This option is only
	// applicable to enum fields, and will be removed in the future.  It is
	// consistent with the legacy behavior of using proto3 enum types for proto2
	// fields.
	LegacyClosedEnum       *bool
	StringType             *CppFeatures_StringType
	EnumNameUsesStringView *bool
	// contains filtered or unexported fields
}

func (CppFeatures_builder) Build added in v1.49.0

func (b0 CppFeatures_builder) Build() *CppFeatures

type JavaFeatures

type JavaFeatures struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*JavaFeatures) ClearLegacyClosedEnum added in v1.49.0

func (x *JavaFeatures) ClearLegacyClosedEnum()

func (*JavaFeatures) ClearUtf8Validation added in v1.49.0

func (x *JavaFeatures) ClearUtf8Validation()

func (*JavaFeatures) GetLegacyClosedEnum

func (x *JavaFeatures) GetLegacyClosedEnum() bool

func (*JavaFeatures) GetUtf8Validation

func (x *JavaFeatures) GetUtf8Validation() JavaFeatures_Utf8Validation

func (*JavaFeatures) HasLegacyClosedEnum added in v1.49.0

func (x *JavaFeatures) HasLegacyClosedEnum() bool

func (*JavaFeatures) HasUtf8Validation added in v1.49.0

func (x *JavaFeatures) HasUtf8Validation() bool

func (*JavaFeatures) ProtoMessage

func (*JavaFeatures) ProtoMessage()

func (*JavaFeatures) ProtoReflect

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

func (*JavaFeatures) Reset

func (x *JavaFeatures) Reset()

func (*JavaFeatures) SetLegacyClosedEnum added in v1.49.0

func (x *JavaFeatures) SetLegacyClosedEnum(v bool)

func (*JavaFeatures) SetUtf8Validation added in v1.49.0

func (x *JavaFeatures) SetUtf8Validation(v JavaFeatures_Utf8Validation)

func (*JavaFeatures) String

func (x *JavaFeatures) String() string

type JavaFeatures_Utf8Validation

type JavaFeatures_Utf8Validation int32

The UTF8 validation strategy to use. See go/editions-utf8-validation for more information on this feature.

const (
	// Invalid default, which should never be used.
	JavaFeatures_UTF8_VALIDATION_UNKNOWN JavaFeatures_Utf8Validation = 0
	// Respect the UTF8 validation behavior specified by the global
	// utf8_validation feature.
	JavaFeatures_DEFAULT JavaFeatures_Utf8Validation = 1
	// Verifies UTF8 validity overriding the global utf8_validation
	// feature. This represents the legacy java_string_check_utf8 option.
	JavaFeatures_VERIFY JavaFeatures_Utf8Validation = 2
)

func (JavaFeatures_Utf8Validation) Descriptor

func (JavaFeatures_Utf8Validation) Enum

func (JavaFeatures_Utf8Validation) Number

func (JavaFeatures_Utf8Validation) String

func (JavaFeatures_Utf8Validation) Type

type JavaFeatures_builder added in v1.49.0

type JavaFeatures_builder struct {

	// Whether or not to treat an enum field as closed.  This option is only
	// applicable to enum fields, and will be removed in the future.  It is
	// consistent with the legacy behavior of using proto3 enum types for proto2
	// fields.
	LegacyClosedEnum *bool
	Utf8Validation   *JavaFeatures_Utf8Validation
	// contains filtered or unexported fields
}

func (JavaFeatures_builder) Build added in v1.49.0

func (b0 JavaFeatures_builder) Build() *JavaFeatures

Jump to

Keyboard shortcuts

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