proto2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_proto2_example_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Page

type Page struct {
	Timestamps *Timestamp `protobuf:"bytes,1,opt,name=timestamps" json:"timestamps,omitempty"`
	// Types that are assignable to Type:
	//
	//	*Page_Text
	//	*Page_Number
	Type isPage_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Page) Descriptor deprecated

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

Deprecated: Use Page.ProtoReflect.Descriptor instead.

func (*Page) GetNumber

func (x *Page) GetNumber() int64

func (*Page) GetText

func (x *Page) GetText() string

func (*Page) GetTimestamps

func (x *Page) GetTimestamps() *Timestamp

func (*Page) GetType

func (m *Page) GetType() isPage_Type

func (*Page) ProtoMessage

func (*Page) ProtoMessage()

func (*Page) ProtoReflect

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

func (*Page) Reset

func (x *Page) Reset()

func (*Page) SetTimestamps

func (m *Page) SetTimestamps(v *Timestamp)

func (*Page) SetType

func (m *Page) SetType(v isPage_Type)

func (*Page) SetTypeToNumber

func (m *Page) SetTypeToNumber(v *int64)

func (*Page) SetTypeToText

func (m *Page) SetTypeToText(v *string)

func (*Page) String

func (x *Page) String() string

type PageService

type PageService interface {
	GetPage(context.Context, *Timestamp) (*Page, error)
}

type Page_Number

type Page_Number struct {
	Number int64 `protobuf:"varint,12,opt,name=number,oneof"`
}

type Page_Text

type Page_Text struct {
	Text string `protobuf:"bytes,11,opt,name=text,oneof"`
}

type Timestamp

type Timestamp struct {
	CreatedAt *int64 `protobuf:"varint,1,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
	UpdatedAt *int64 `protobuf:"varint,2,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Timestamp) Descriptor deprecated

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

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetCreatedAt

func (x *Timestamp) GetCreatedAt() int64

func (*Timestamp) GetUpdatedAt

func (x *Timestamp) GetUpdatedAt() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

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

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) SetCreatedAt

func (m *Timestamp) SetCreatedAt(v *int64)

func (*Timestamp) SetUpdatedAt

func (m *Timestamp) SetUpdatedAt(v *int64)

func (*Timestamp) String

func (x *Timestamp) String() string

Jump to

Keyboard shortcuts

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