protobuf

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 6 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 {

	// 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                   `protobuf:"varint,1,opt,name=legacy_closed_enum,json=legacyClosedEnum" json:"legacy_closed_enum,omitempty"`
	StringType       *CppFeatures_StringType `protobuf:"varint,2,opt,name=string_type,json=stringType,enum=pb.CppFeatures_StringType" json:"string_type,omitempty"`
	// contains filtered or unexported fields
}

func (*CppFeatures) Descriptor deprecated

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

Deprecated: Use CppFeatures.ProtoReflect.Descriptor instead.

func (*CppFeatures) GetLegacyClosedEnum

func (x *CppFeatures) GetLegacyClosedEnum() bool

func (*CppFeatures) GetStringType

func (x *CppFeatures) GetStringType() CppFeatures_StringType

func (*CppFeatures) ProtoMessage

func (*CppFeatures) ProtoMessage()

func (*CppFeatures) ProtoReflect

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

func (*CppFeatures) Reset

func (x *CppFeatures) Reset()

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) EnumDescriptor deprecated

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

Deprecated: Use CppFeatures_StringType.Descriptor instead.

func (CppFeatures_StringType) Number

func (CppFeatures_StringType) String

func (x CppFeatures_StringType) String() string

func (CppFeatures_StringType) Type

func (*CppFeatures_StringType) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type JavaFeatures

type JavaFeatures 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                        `protobuf:"varint,1,opt,name=legacy_closed_enum,json=legacyClosedEnum" json:"legacy_closed_enum,omitempty"`
	Utf8Validation   *JavaFeatures_Utf8Validation `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*JavaFeatures) Descriptor deprecated

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

Deprecated: Use JavaFeatures.ProtoReflect.Descriptor instead.

func (*JavaFeatures) GetLegacyClosedEnum

func (x *JavaFeatures) GetLegacyClosedEnum() bool

func (*JavaFeatures) GetUtf8Validation

func (x *JavaFeatures) GetUtf8Validation() JavaFeatures_Utf8Validation

func (*JavaFeatures) ProtoMessage

func (*JavaFeatures) ProtoMessage()

func (*JavaFeatures) ProtoReflect

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

func (*JavaFeatures) Reset

func (x *JavaFeatures) Reset()

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) EnumDescriptor deprecated

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

Deprecated: Use JavaFeatures_Utf8Validation.Descriptor instead.

func (JavaFeatures_Utf8Validation) Number

func (JavaFeatures_Utf8Validation) String

func (JavaFeatures_Utf8Validation) Type

func (*JavaFeatures_Utf8Validation) UnmarshalJSON deprecated

func (x *JavaFeatures_Utf8Validation) 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