proto

package
v0.4.72 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

README

ProtoBuffers

Compiler setup

To install protoc use make command utilities.

make install

To manage the version which I choose, if not use

go get -u github.com/golang/protobuf/proto

The below command used to generate the go file from protoc

protoc -I proto/ --go_out=. proto/03_city_message.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File__03_city_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type City

type City struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ZipCode     string `protobuf:"bytes,2,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"`
	CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	// contains filtered or unexported fields
}

func (*City) Descriptor deprecated

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

Deprecated: Use City.ProtoReflect.Descriptor instead.

func (*City) GetCountryCode

func (x *City) GetCountryCode() string

func (*City) GetName

func (x *City) GetName() string

func (*City) GetZipCode

func (x *City) GetZipCode() string

func (*City) ProtoMessage

func (*City) ProtoMessage()

func (*City) ProtoReflect

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

func (*City) Reset

func (x *City) Reset()

func (*City) String

func (x *City) String() string

Jump to

Keyboard shortcuts

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