scalapb

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// File-level optionals for ScalaPB.
	// Extension number officially assigned by protobuf-global-extension-registry@google.com
	//
	// optional scalapb.FieldOptions field = 1020;
	E_Field = &file_scalapb_scalapb_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// Message-level optionals for ScalaPB.
	// Extension number officially assigned by protobuf-global-extension-registry@google.com
	//
	// optional scalapb.MessageOptions message = 1020;
	E_Message = &file_scalapb_scalapb_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// File-level optionals for ScalaPB.
	// Extension number officially assigned by protobuf-global-extension-registry@google.com
	//
	// 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 FieldOptions

type FieldOptions struct {
	Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldOptions) Descriptor deprecated

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

Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.

func (*FieldOptions) GetType

func (x *FieldOptions) GetType() 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 {

	// additional classes and traits to mix in to the case class.
	Extends []string `protobuf:"bytes,1,rep,name=extends" json:"extends,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageOptions) Descriptor deprecated

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

Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.

func (*MessageOptions) GetExtends

func (x *MessageOptions) GetExtends() []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 ScalaPbOptions

type ScalaPbOptions struct {

	// If set then it overrides the java_package and package.
	PackageName *string `protobuf:"bytes,1,opt,name=package_name,json=packageName" json:"package_name,omitempty"`
	// If true, the compiler does not append the proto base file name
	// into the generated package name. If false (the default), the
	// generated scala package name is the package_name.basename where
	// basename is the proto file name without the .proto extension.
	FlatPackage *bool `protobuf:"varint,2,opt,name=flat_package,json=flatPackage" json:"flat_package,omitempty"`
	// Adds the following imports at the top of the file (this is meant
	// to provide implicit TypeMappers)
	Import []string `protobuf:"bytes,3,rep,name=import" json:"import,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalaPbOptions) Descriptor deprecated

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

Deprecated: Use ScalaPbOptions.ProtoReflect.Descriptor instead.

func (*ScalaPbOptions) GetFlatPackage

func (x *ScalaPbOptions) GetFlatPackage() bool

func (*ScalaPbOptions) GetImport

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

func (*ScalaPbOptions) GetPackageName

func (x *ScalaPbOptions) GetPackageName() string

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

Jump to

Keyboard shortcuts

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