scalapb

package
v0.0.0-...-4af086f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_ScalaPbOptions_PreserveUnknownFields = bool(true)
	Default_ScalaPbOptions_Lenses                = bool(true)
	Default_ScalaPbOptions_EnumStripPrefix       = bool(false)
)

Default values for ScalaPbOptions fields.

Variables

View Source
var (
	ScalaPbOptions_OptionsScope_name = map[int32]string{
		0: "FILE",
		1: "PACKAGE",
	}
	ScalaPbOptions_OptionsScope_value = map[string]int32{
		"FILE":    0,
		"PACKAGE": 1,
	}
)

Enum value maps for ScalaPbOptions_OptionsScope.

View Source
var (
	ScalaPbOptions_EnumValueNaming_name = map[int32]string{
		0: "AS_IN_PROTO",
		1: "CAMEL_CASE",
	}
	ScalaPbOptions_EnumValueNaming_value = map[string]int32{
		"AS_IN_PROTO": 0,
		"CAMEL_CASE":  1,
	}
)

Enum value maps for ScalaPbOptions_EnumValueNaming.

View Source
var (
	// optional scalapb.EnumOptions enum_options = 1020;
	E_EnumOptions = &file_scalapb_scalapb_proto_extTypes[3]
)

Extension fields to descriptorpb.EnumOptions.

View Source
var (
	// optional scalapb.EnumValueOptions enum_value = 1020;
	E_EnumValue = &file_scalapb_scalapb_proto_extTypes[4]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var (
	// optional scalapb.FieldOptions field = 1020;
	E_Field = &file_scalapb_scalapb_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional scalapb.MessageOptions message = 1020;
	E_Message = &file_scalapb_scalapb_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional scalapb.OneofOptions oneof = 1020;
	E_Oneof = &file_scalapb_scalapb_proto_extTypes[5]
)

Extension fields to descriptorpb.OneofOptions.

View Source
var (
	// optional scalapb.ScalaPbOptions options = 1020;
	E_Options = &file_scalapb_scalapb_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var File_scalapb_scalapb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EnumOptions

type EnumOptions struct {
	Extends          []string `protobuf:"bytes,1,rep,name=extends" json:"extends,omitempty"`
	CompanionExtends []string `protobuf:"bytes,2,rep,name=companion_extends,json=companionExtends" json:"companion_extends,omitempty"`
	Type             *string  `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumOptions) Descriptor deprecated

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

Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead.

func (*EnumOptions) GetCompanionExtends

func (x *EnumOptions) GetCompanionExtends() []string

func (*EnumOptions) GetExtends

func (x *EnumOptions) GetExtends() []string

func (*EnumOptions) GetType

func (x *EnumOptions) GetType() string

func (*EnumOptions) ProtoMessage

func (*EnumOptions) ProtoMessage()

func (*EnumOptions) ProtoReflect

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

func (*EnumOptions) Reset

func (x *EnumOptions) Reset()

func (*EnumOptions) String

func (x *EnumOptions) String() string

type EnumValueOptions

type EnumValueOptions struct {
	Extends   []string `protobuf:"bytes,1,rep,name=extends" json:"extends,omitempty"`
	ScalaName *string  `protobuf:"bytes,2,opt,name=scala_name,json=scalaName" json:"scala_name,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumValueOptions) Descriptor deprecated

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

Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.

func (*EnumValueOptions) GetExtends

func (x *EnumValueOptions) GetExtends() []string

func (*EnumValueOptions) GetScalaName

func (x *EnumValueOptions) GetScalaName() string

func (*EnumValueOptions) ProtoMessage

func (*EnumValueOptions) ProtoMessage()

func (*EnumValueOptions) ProtoReflect

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

func (*EnumValueOptions) Reset

func (x *EnumValueOptions) Reset()

func (*EnumValueOptions) String

func (x *EnumValueOptions) String() string

type FieldOptions

type FieldOptions struct {
	Type           *string  `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	ScalaName      *string  `protobuf:"bytes,2,opt,name=scala_name,json=scalaName" json:"scala_name,omitempty"`
	CollectionType *string  `protobuf:"bytes,3,opt,name=collection_type,json=collectionType" json:"collection_type,omitempty"`
	KeyType        *string  `protobuf:"bytes,4,opt,name=key_type,json=keyType" json:"key_type,omitempty"`
	ValueType      *string  `protobuf:"bytes,5,opt,name=value_type,json=valueType" json:"value_type,omitempty"`
	Annotations    []string `protobuf:"bytes,6,rep,name=annotations" json:"annotations,omitempty"`
	MapType        *string  `protobuf:"bytes,7,opt,name=map_type,json=mapType" json:"map_type,omitempty"`
	NoBox          *bool    `protobuf:"varint,30,opt,name=no_box,json=noBox" json:"no_box,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldOptions) Descriptor deprecated

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

Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.

func (*FieldOptions) GetAnnotations

func (x *FieldOptions) GetAnnotations() []string

func (*FieldOptions) GetCollectionType

func (x *FieldOptions) GetCollectionType() string

func (*FieldOptions) GetKeyType

func (x *FieldOptions) GetKeyType() string

func (*FieldOptions) GetMapType

func (x *FieldOptions) GetMapType() string

func (*FieldOptions) GetNoBox

func (x *FieldOptions) GetNoBox() bool

func (*FieldOptions) GetScalaName

func (x *FieldOptions) GetScalaName() string

func (*FieldOptions) GetType

func (x *FieldOptions) GetType() string

func (*FieldOptions) GetValueType

func (x *FieldOptions) GetValueType() string

func (*FieldOptions) ProtoMessage

func (*FieldOptions) ProtoMessage()

func (*FieldOptions) ProtoReflect

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

func (*FieldOptions) Reset

func (x *FieldOptions) Reset()

func (*FieldOptions) String

func (x *FieldOptions) String() string

type MessageOptions

type MessageOptions struct {
	Extends              []string `protobuf:"bytes,1,rep,name=extends" json:"extends,omitempty"`
	CompanionExtends     []string `protobuf:"bytes,2,rep,name=companion_extends,json=companionExtends" json:"companion_extends,omitempty"`
	Annotations          []string `protobuf:"bytes,3,rep,name=annotations" json:"annotations,omitempty"`
	Type                 *string  `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"`
	CompanionAnnotations []string `protobuf:"bytes,5,rep,name=companion_annotations,json=companionAnnotations" json:"companion_annotations,omitempty"`
	SealedOneofExtends   []string `protobuf:"bytes,6,rep,name=sealed_oneof_extends,json=sealedOneofExtends" json:"sealed_oneof_extends,omitempty"`
	NoBox                *bool    `protobuf:"varint,7,opt,name=no_box,json=noBox" json:"no_box,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageOptions) Descriptor deprecated

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

Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.

func (*MessageOptions) GetAnnotations

func (x *MessageOptions) GetAnnotations() []string

func (*MessageOptions) GetCompanionAnnotations

func (x *MessageOptions) GetCompanionAnnotations() []string

func (*MessageOptions) GetCompanionExtends

func (x *MessageOptions) GetCompanionExtends() []string

func (*MessageOptions) GetExtends

func (x *MessageOptions) GetExtends() []string

func (*MessageOptions) GetNoBox

func (x *MessageOptions) GetNoBox() bool

func (*MessageOptions) GetSealedOneofExtends

func (x *MessageOptions) GetSealedOneofExtends() []string

func (*MessageOptions) GetType

func (x *MessageOptions) GetType() string

func (*MessageOptions) ProtoMessage

func (*MessageOptions) ProtoMessage()

func (*MessageOptions) ProtoReflect

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

func (*MessageOptions) Reset

func (x *MessageOptions) Reset()

func (*MessageOptions) String

func (x *MessageOptions) String() string

type OneofOptions

type OneofOptions struct {
	Extends []string `protobuf:"bytes,1,rep,name=extends" json:"extends,omitempty"`
	// contains filtered or unexported fields
}

func (*OneofOptions) Descriptor deprecated

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

Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead.

func (*OneofOptions) GetExtends

func (x *OneofOptions) GetExtends() []string

func (*OneofOptions) ProtoMessage

func (*OneofOptions) ProtoMessage()

func (*OneofOptions) ProtoReflect

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

func (*OneofOptions) Reset

func (x *OneofOptions) Reset()

func (*OneofOptions) String

func (x *OneofOptions) String() string

type ScalaPbOptions

type ScalaPbOptions struct {
	PackageName                  *string                             `protobuf:"bytes,1,opt,name=package_name,json=packageName" json:"package_name,omitempty"`
	FlatPackage                  *bool                               `protobuf:"varint,2,opt,name=flat_package,json=flatPackage" json:"flat_package,omitempty"`
	Import                       []string                            `protobuf:"bytes,3,rep,name=import" json:"import,omitempty"`
	Preamble                     []string                            `protobuf:"bytes,4,rep,name=preamble" json:"preamble,omitempty"`
	SingleFile                   *bool                               `protobuf:"varint,5,opt,name=single_file,json=singleFile" json:"single_file,omitempty"`
	NoPrimitiveWrappers          *bool                               `protobuf:"varint,7,opt,name=no_primitive_wrappers,json=noPrimitiveWrappers" json:"no_primitive_wrappers,omitempty"`
	PrimitiveWrappers            *bool                               `protobuf:"varint,6,opt,name=primitive_wrappers,json=primitiveWrappers" json:"primitive_wrappers,omitempty"`
	CollectionType               *string                             `protobuf:"bytes,8,opt,name=collection_type,json=collectionType" json:"collection_type,omitempty"`
	PreserveUnknownFields        *bool                               `` /* 126-byte string literal not displayed */
	ObjectName                   *string                             `protobuf:"bytes,10,opt,name=object_name,json=objectName" json:"object_name,omitempty"`
	Scope                        *ScalaPbOptions_OptionsScope        `protobuf:"varint,11,opt,name=scope,enum=scalapb.ScalaPbOptions_OptionsScope" json:"scope,omitempty"`
	Lenses                       *bool                               `protobuf:"varint,12,opt,name=lenses,def=1" json:"lenses,omitempty"`
	RetainSourceCodeInfo         *bool                               `protobuf:"varint,13,opt,name=retain_source_code_info,json=retainSourceCodeInfo" json:"retain_source_code_info,omitempty"`
	MapType                      *string                             `protobuf:"bytes,14,opt,name=map_type,json=mapType" json:"map_type,omitempty"`
	NoDefaultValuesInConstructor *bool                               `` /* 146-byte string literal not displayed */
	EnumValueNaming              *ScalaPbOptions_EnumValueNaming     `` /* 147-byte string literal not displayed */
	EnumStripPrefix              *bool                               `protobuf:"varint,17,opt,name=enum_strip_prefix,json=enumStripPrefix,def=0" json:"enum_strip_prefix,omitempty"`
	AuxMessageOptions            []*ScalaPbOptions_AuxMessageOptions `protobuf:"bytes,18,rep,name=aux_message_options,json=auxMessageOptions" json:"aux_message_options,omitempty"`
	AuxFieldOptions              []*ScalaPbOptions_AuxFieldOptions   `protobuf:"bytes,19,rep,name=aux_field_options,json=auxFieldOptions" json:"aux_field_options,omitempty"`
	AuxEnumOptions               []*ScalaPbOptions_AuxEnumOptions    `protobuf:"bytes,20,rep,name=aux_enum_options,json=auxEnumOptions" json:"aux_enum_options,omitempty"`
	BytesType                    *string                             `protobuf:"bytes,21,opt,name=bytes_type,json=bytesType" json:"bytes_type,omitempty"`
	TestOnlyNoJavaConversions    *bool                               `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ScalaPbOptions) Descriptor deprecated

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

Deprecated: Use ScalaPbOptions.ProtoReflect.Descriptor instead.

func (*ScalaPbOptions) GetAuxEnumOptions

func (x *ScalaPbOptions) GetAuxEnumOptions() []*ScalaPbOptions_AuxEnumOptions

func (*ScalaPbOptions) GetAuxFieldOptions

func (x *ScalaPbOptions) GetAuxFieldOptions() []*ScalaPbOptions_AuxFieldOptions

func (*ScalaPbOptions) GetAuxMessageOptions

func (x *ScalaPbOptions) GetAuxMessageOptions() []*ScalaPbOptions_AuxMessageOptions

func (*ScalaPbOptions) GetBytesType

func (x *ScalaPbOptions) GetBytesType() string

func (*ScalaPbOptions) GetCollectionType

func (x *ScalaPbOptions) GetCollectionType() string

func (*ScalaPbOptions) GetEnumStripPrefix

func (x *ScalaPbOptions) GetEnumStripPrefix() bool

func (*ScalaPbOptions) GetEnumValueNaming

func (x *ScalaPbOptions) GetEnumValueNaming() ScalaPbOptions_EnumValueNaming

func (*ScalaPbOptions) GetFlatPackage

func (x *ScalaPbOptions) GetFlatPackage() bool

func (*ScalaPbOptions) GetImport

func (x *ScalaPbOptions) GetImport() []string

func (*ScalaPbOptions) GetLenses

func (x *ScalaPbOptions) GetLenses() bool

func (*ScalaPbOptions) GetMapType

func (x *ScalaPbOptions) GetMapType() string

func (*ScalaPbOptions) GetNoDefaultValuesInConstructor

func (x *ScalaPbOptions) GetNoDefaultValuesInConstructor() bool

func (*ScalaPbOptions) GetNoPrimitiveWrappers

func (x *ScalaPbOptions) GetNoPrimitiveWrappers() bool

func (*ScalaPbOptions) GetObjectName

func (x *ScalaPbOptions) GetObjectName() string

func (*ScalaPbOptions) GetPackageName

func (x *ScalaPbOptions) GetPackageName() string

func (*ScalaPbOptions) GetPreamble

func (x *ScalaPbOptions) GetPreamble() []string

func (*ScalaPbOptions) GetPreserveUnknownFields

func (x *ScalaPbOptions) GetPreserveUnknownFields() bool

func (*ScalaPbOptions) GetPrimitiveWrappers

func (x *ScalaPbOptions) GetPrimitiveWrappers() bool

func (*ScalaPbOptions) GetRetainSourceCodeInfo

func (x *ScalaPbOptions) GetRetainSourceCodeInfo() bool

func (*ScalaPbOptions) GetScope

func (*ScalaPbOptions) GetSingleFile

func (x *ScalaPbOptions) GetSingleFile() bool

func (*ScalaPbOptions) GetTestOnlyNoJavaConversions

func (x *ScalaPbOptions) GetTestOnlyNoJavaConversions() bool

func (*ScalaPbOptions) ProtoMessage

func (*ScalaPbOptions) ProtoMessage()

func (*ScalaPbOptions) ProtoReflect

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

func (*ScalaPbOptions) Reset

func (x *ScalaPbOptions) Reset()

func (*ScalaPbOptions) String

func (x *ScalaPbOptions) String() string

type ScalaPbOptions_AuxEnumOptions

type ScalaPbOptions_AuxEnumOptions struct {
	Target  *string      `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
	Options *EnumOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalaPbOptions_AuxEnumOptions) Descriptor deprecated

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

Deprecated: Use ScalaPbOptions_AuxEnumOptions.ProtoReflect.Descriptor instead.

func (*ScalaPbOptions_AuxEnumOptions) GetOptions

func (x *ScalaPbOptions_AuxEnumOptions) GetOptions() *EnumOptions

func (*ScalaPbOptions_AuxEnumOptions) GetTarget

func (x *ScalaPbOptions_AuxEnumOptions) GetTarget() string

func (*ScalaPbOptions_AuxEnumOptions) ProtoMessage

func (*ScalaPbOptions_AuxEnumOptions) ProtoMessage()

func (*ScalaPbOptions_AuxEnumOptions) ProtoReflect

func (*ScalaPbOptions_AuxEnumOptions) Reset

func (x *ScalaPbOptions_AuxEnumOptions) Reset()

func (*ScalaPbOptions_AuxEnumOptions) String

type ScalaPbOptions_AuxFieldOptions

type ScalaPbOptions_AuxFieldOptions struct {
	Target  *string       `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
	Options *FieldOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalaPbOptions_AuxFieldOptions) Descriptor deprecated

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

Deprecated: Use ScalaPbOptions_AuxFieldOptions.ProtoReflect.Descriptor instead.

func (*ScalaPbOptions_AuxFieldOptions) GetOptions

func (*ScalaPbOptions_AuxFieldOptions) GetTarget

func (x *ScalaPbOptions_AuxFieldOptions) GetTarget() string

func (*ScalaPbOptions_AuxFieldOptions) ProtoMessage

func (*ScalaPbOptions_AuxFieldOptions) ProtoMessage()

func (*ScalaPbOptions_AuxFieldOptions) ProtoReflect

func (*ScalaPbOptions_AuxFieldOptions) Reset

func (x *ScalaPbOptions_AuxFieldOptions) Reset()

func (*ScalaPbOptions_AuxFieldOptions) String

type ScalaPbOptions_AuxMessageOptions

type ScalaPbOptions_AuxMessageOptions struct {
	Target  *string         `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
	Options *MessageOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalaPbOptions_AuxMessageOptions) Descriptor deprecated

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

Deprecated: Use ScalaPbOptions_AuxMessageOptions.ProtoReflect.Descriptor instead.

func (*ScalaPbOptions_AuxMessageOptions) GetOptions

func (*ScalaPbOptions_AuxMessageOptions) GetTarget

func (*ScalaPbOptions_AuxMessageOptions) ProtoMessage

func (*ScalaPbOptions_AuxMessageOptions) ProtoMessage()

func (*ScalaPbOptions_AuxMessageOptions) ProtoReflect

func (*ScalaPbOptions_AuxMessageOptions) Reset

func (*ScalaPbOptions_AuxMessageOptions) String

type ScalaPbOptions_EnumValueNaming

type ScalaPbOptions_EnumValueNaming int32
const (
	ScalaPbOptions_AS_IN_PROTO ScalaPbOptions_EnumValueNaming = 0
	ScalaPbOptions_CAMEL_CASE  ScalaPbOptions_EnumValueNaming = 1
)

func (ScalaPbOptions_EnumValueNaming) Descriptor

func (ScalaPbOptions_EnumValueNaming) Enum

func (ScalaPbOptions_EnumValueNaming) EnumDescriptor deprecated

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

Deprecated: Use ScalaPbOptions_EnumValueNaming.Descriptor instead.

func (ScalaPbOptions_EnumValueNaming) Number

func (ScalaPbOptions_EnumValueNaming) String

func (ScalaPbOptions_EnumValueNaming) Type

func (*ScalaPbOptions_EnumValueNaming) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type ScalaPbOptions_OptionsScope

type ScalaPbOptions_OptionsScope int32
const (
	ScalaPbOptions_FILE    ScalaPbOptions_OptionsScope = 0
	ScalaPbOptions_PACKAGE ScalaPbOptions_OptionsScope = 1
)

func (ScalaPbOptions_OptionsScope) Descriptor

func (ScalaPbOptions_OptionsScope) Enum

func (ScalaPbOptions_OptionsScope) EnumDescriptor deprecated

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

Deprecated: Use ScalaPbOptions_OptionsScope.Descriptor instead.

func (ScalaPbOptions_OptionsScope) Number

func (ScalaPbOptions_OptionsScope) String

func (ScalaPbOptions_OptionsScope) Type

func (*ScalaPbOptions_OptionsScope) UnmarshalJSON deprecated

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