testproto

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "OK",
		2: "FAILED",
	}
	Status_value = map[string]int32{
		"UNKNOWN": 0,
		"OK":      1,
		"FAILED":  2,
	}
)

Enum value maps for Status.

View Source
var File_testproto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Attribute added in v0.2.0

type Attribute struct {
	Tags map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetTags added in v0.2.0

func (x *Attribute) GetTags() map[string]string

func (*Attribute) ProtoMessage added in v0.2.0

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect added in v0.2.0

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

func (*Attribute) Reset added in v0.2.0

func (x *Attribute) Reset()

func (*Attribute) String added in v0.2.0

func (x *Attribute) String() string

type Dimensions

type Dimensions struct {
	Width  int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*Dimensions) Descriptor deprecated

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

Deprecated: Use Dimensions.ProtoReflect.Descriptor instead.

func (*Dimensions) GetHeight

func (x *Dimensions) GetHeight() int32

func (*Dimensions) GetWidth

func (x *Dimensions) GetWidth() int32

func (*Dimensions) ProtoMessage

func (*Dimensions) ProtoMessage()

func (*Dimensions) ProtoReflect

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

func (*Dimensions) Reset

func (x *Dimensions) Reset()

func (*Dimensions) String

func (x *Dimensions) String() string

type Event

type Event struct {
	EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// Types that are assignable to Changed:
	//	*Event_User
	//	*Event_Photo
	//	*Event_Status
	//	*Event_Details
	//	*Event_Profile
	Changed isEvent_Changed `protobuf_oneof:"changed"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetChanged

func (m *Event) GetChanged() isEvent_Changed

func (*Event) GetDetails

func (x *Event) GetDetails() *anypb.Any

func (*Event) GetEventId

func (x *Event) GetEventId() int64

func (*Event) GetPhoto

func (x *Event) GetPhoto() *Photo

func (*Event) GetProfile

func (x *Event) GetProfile() *Profile

func (*Event) GetStatus

func (x *Event) GetStatus() Status

func (*Event) GetUser

func (x *Event) GetUser() *User

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_Details

type Event_Details struct {
	Details *anypb.Any `protobuf:"bytes,5,opt,name=details,proto3,oneof"`
}

type Event_Photo

type Event_Photo struct {
	Photo *Photo `protobuf:"bytes,3,opt,name=photo,proto3,oneof"`
}

type Event_Profile

type Event_Profile struct {
	Profile *Profile `protobuf:"bytes,6,opt,name=profile,proto3,oneof"`
}

type Event_Status

type Event_Status struct {
	Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=testproto.Status,oneof"`
}

type Event_User

type Event_User struct {
	User *User `protobuf:"bytes,2,opt,name=user,proto3,oneof"`
}

type Photo

type Photo struct {
	PhotoId    int64       `protobuf:"varint,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
	Path       string      `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Dimensions *Dimensions `protobuf:"bytes,3,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
	// contains filtered or unexported fields
}

func (*Photo) Descriptor deprecated

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

Deprecated: Use Photo.ProtoReflect.Descriptor instead.

func (*Photo) GetDimensions

func (x *Photo) GetDimensions() *Dimensions

func (*Photo) GetPath

func (x *Photo) GetPath() string

func (*Photo) GetPhotoId

func (x *Photo) GetPhotoId() int64

func (*Photo) ProtoMessage

func (*Photo) ProtoMessage()

func (*Photo) ProtoReflect

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

func (*Photo) Reset

func (x *Photo) Reset()

func (*Photo) String

func (x *Photo) String() string

type Profile

type Profile struct {
	User            *User                 `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Photo           *Photo                `protobuf:"bytes,2,opt,name=photo,proto3" json:"photo,omitempty"`
	LoginTimestamps []int64               `protobuf:"varint,3,rep,packed,name=login_timestamps,json=loginTimestamps,proto3" json:"login_timestamps,omitempty"`
	Gallery         []*Photo              `protobuf:"bytes,4,rep,name=gallery,proto3" json:"gallery,omitempty"`
	Attributes      map[string]*Attribute `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAttributes added in v0.2.0

func (x *Profile) GetAttributes() map[string]*Attribute

func (*Profile) GetGallery added in v0.1.0

func (x *Profile) GetGallery() []*Photo

func (*Profile) GetLoginTimestamps

func (x *Profile) GetLoginTimestamps() []int64

func (*Profile) GetPhoto

func (x *Profile) GetPhoto() *Photo

func (*Profile) GetUser

func (x *Profile) GetUser() *User

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type Result

type Result struct {
	Data      []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	NextToken int64  `protobuf:"varint,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetData

func (x *Result) GetData() []byte

func (*Result) GetNextToken

func (x *Result) GetNextToken() int64

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Status

type Status int32
const (
	Status_UNKNOWN Status = 0
	Status_OK      Status = 1
	Status_FAILED  Status = 2
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type UpdateProfileRequest

type UpdateProfileRequest struct {
	Profile   *Profile               `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	Fieldmask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=fieldmask,proto3" json:"fieldmask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileRequest) Descriptor deprecated

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetFieldmask

func (x *UpdateProfileRequest) GetFieldmask() *fieldmaskpb.FieldMask

func (*UpdateProfileRequest) GetProfile

func (x *UpdateProfileRequest) GetProfile() *Profile

func (*UpdateProfileRequest) ProtoMessage

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect

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

func (*UpdateProfileRequest) Reset

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) String

func (x *UpdateProfileRequest) String() string

type User

type User struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetName

func (x *User) GetName() string

func (*User) GetUserId

func (x *User) GetUserId() int64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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