pb

package
v0.0.0-...-d750ee4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_profile_service_proto protoreflect.FileDescriptor

Functions

func RegisterProfileServiceServer

func RegisterProfileServiceServer(s *grpc.Server, srv ProfileServiceServer)

Types

type Date

type Date struct {
	Day   int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"`
	Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
	Year  int32 `protobuf:"varint,3,opt,name=year,proto3" json:"year,omitempty"`
	// contains filtered or unexported fields
}

func (*Date) Descriptor deprecated

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

Deprecated: Use Date.ProtoReflect.Descriptor instead.

func (*Date) GetDay

func (x *Date) GetDay() int32

func (*Date) GetMonth

func (x *Date) GetMonth() int32

func (*Date) GetYear

func (x *Date) GetYear() int32

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) ProtoReflect

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

func (*Date) Reset

func (x *Date) Reset()

func (*Date) String

func (x *Date) String() string

type Image

type Image struct {

	// Types that are assignable to ImageOneof:
	//	*Image_ImageMetaData
	//	*Image_ImageData
	ImageOneof isImage_ImageOneof `protobuf_oneof:"image_oneof"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetImageData

func (x *Image) GetImageData() *ImageData

func (*Image) GetImageMetaData

func (x *Image) GetImageMetaData() *ImageMetadata

func (*Image) GetImageOneof

func (m *Image) GetImageOneof() isImage_ImageOneof

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type ImageData

type ImageData struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageData) Descriptor deprecated

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

Deprecated: Use ImageData.ProtoReflect.Descriptor instead.

func (*ImageData) GetData

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

func (*ImageData) ProtoMessage

func (*ImageData) ProtoMessage()

func (*ImageData) ProtoReflect

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

func (*ImageData) Reset

func (x *ImageData) Reset()

func (*ImageData) String

func (x *ImageData) String() string

type ImageId

type ImageId struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageId) Descriptor deprecated

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

Deprecated: Use ImageId.ProtoReflect.Descriptor instead.

func (*ImageId) GetId

func (x *ImageId) GetId() string

func (*ImageId) ProtoMessage

func (*ImageId) ProtoMessage()

func (*ImageId) ProtoReflect

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

func (*ImageId) Reset

func (x *ImageId) Reset()

func (*ImageId) String

func (x *ImageId) String() string

type ImageMetadata

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

func (*ImageMetadata) Descriptor deprecated

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

Deprecated: Use ImageMetadata.ProtoReflect.Descriptor instead.

func (*ImageMetadata) GetType

func (x *ImageMetadata) GetType() string

func (*ImageMetadata) ProtoMessage

func (*ImageMetadata) ProtoMessage()

func (*ImageMetadata) ProtoReflect

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

func (*ImageMetadata) Reset

func (x *ImageMetadata) Reset()

func (*ImageMetadata) String

func (x *ImageMetadata) String() string

type Image_ImageData

type Image_ImageData struct {
	ImageData *ImageData `protobuf:"bytes,2,opt,name=imageData,proto3,oneof"`
}

type Image_ImageMetaData

type Image_ImageMetaData struct {
	ImageMetaData *ImageMetadata `protobuf:"bytes,1,opt,name=imageMetaData,proto3,oneof"`
}

type Profile

type Profile struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	GivenName string `protobuf:"bytes,2,opt,name=givenName,proto3" json:"givenName,omitempty"`
	LastName  string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"`
	Birthday  *Date  `protobuf:"bytes,4,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Email     string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	ImageId   string `protobuf:"bytes,6,opt,name=imageId,proto3" json:"imageId,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetBirthday

func (x *Profile) GetBirthday() *Date

func (*Profile) GetEmail

func (x *Profile) GetEmail() string

func (*Profile) GetGivenName

func (x *Profile) GetGivenName() string

func (*Profile) GetId

func (x *Profile) GetId() string

func (*Profile) GetImageId

func (x *Profile) GetImageId() string

func (*Profile) GetLastName

func (x *Profile) GetLastName() string

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 ProfileId

type ProfileId struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileId) Descriptor deprecated

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

Deprecated: Use ProfileId.ProtoReflect.Descriptor instead.

func (*ProfileId) GetId

func (x *ProfileId) GetId() string

func (*ProfileId) ProtoMessage

func (*ProfileId) ProtoMessage()

func (*ProfileId) ProtoReflect

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

func (*ProfileId) Reset

func (x *ProfileId) Reset()

func (*ProfileId) String

func (x *ProfileId) String() string

type ProfileServiceClient

type ProfileServiceClient interface {
	CreateImage(ctx context.Context, opts ...grpc.CallOption) (ProfileService_CreateImageClient, error)
	CreateProfile(ctx context.Context, in *Profile, opts ...grpc.CallOption) (*ProfileId, error)
}

ProfileServiceClient is the client API for ProfileService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ProfileServiceServer

type ProfileServiceServer interface {
	CreateImage(ProfileService_CreateImageServer) error
	CreateProfile(context.Context, *Profile) (*ProfileId, error)
}

ProfileServiceServer is the server API for ProfileService service.

type ProfileService_CreateImageClient

type ProfileService_CreateImageClient interface {
	Send(*Image) error
	CloseAndRecv() (*ImageId, error)
	grpc.ClientStream
}

type ProfileService_CreateImageServer

type ProfileService_CreateImageServer interface {
	SendAndClose(*ImageId) error
	Recv() (*Image, error)
	grpc.ServerStream
}

type UnimplementedProfileServiceServer

type UnimplementedProfileServiceServer struct {
}

UnimplementedProfileServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProfileServiceServer) CreateImage

func (*UnimplementedProfileServiceServer) CreateProfile

Jump to

Keyboard shortcuts

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