testproto

package
v0.0.0-...-7ae29b8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testproto contains some protobuf defintions that are used in internal tests.

Index

Constants

This section is empty.

Variables

View Source
var File_testproto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type A

type A struct {
	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Other types that we can use. There isn't any purpose for this other than to provide message types that can be used for tests.

func (*A) Descriptor deprecated

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

Deprecated: Use A.ProtoReflect.Descriptor instead.

func (*A) GetValue

func (x *A) GetValue() int32

func (*A) ProtoMessage

func (*A) ProtoMessage()

func (*A) ProtoReflect

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

func (*A) Reset

func (x *A) Reset()

func (*A) String

func (x *A) String() string

type B

type B struct {
	Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*B) Descriptor deprecated

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

Deprecated: Use B.ProtoReflect.Descriptor instead.

func (*B) GetValue

func (x *B) GetValue() int32

func (*B) ProtoMessage

func (*B) ProtoMessage()

func (*B) ProtoReflect

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

func (*B) Reset

func (x *B) Reset()

func (*B) String

func (x *B) String() string

type Data

type Data struct {
	Value  string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Number int32  `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

Data is just some data, used for tests so meant to be meaningless.

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetNumber

func (x *Data) GetNumber() int32

func (*Data) GetValue

func (x *Data) GetValue() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

Jump to

Keyboard shortcuts

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