pb

package
v0.0.0-...-92440b6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_profilesvcgrpc_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DeleteAddress",
			Handler:    _Service_DeleteAddress_Handler,
		},
		{
			MethodName: "DeleteProfile",
			Handler:    _Service_DeleteProfile_Handler,
		},
		{
			MethodName: "GetAddress",
			Handler:    _Service_GetAddress_Handler,
		},
		{
			MethodName: "GetAddresses",
			Handler:    _Service_GetAddresses_Handler,
		},
		{
			MethodName: "GetProfile",
			Handler:    _Service_GetProfile_Handler,
		},
		{
			MethodName: "PatchProfile",
			Handler:    _Service_PatchProfile_Handler,
		},
		{
			MethodName: "PostAddress",
			Handler:    _Service_PostAddress_Handler,
		},
		{
			MethodName: "PostProfile",
			Handler:    _Service_PostProfile_Handler,
		},
		{
			MethodName: "PutProfile",
			Handler:    _Service_PutProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/profilesvcgrpc.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type Address

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

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetId

func (x *Address) GetId() string

func (*Address) GetLocation

func (x *Address) GetLocation() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type DeleteAddressRequest

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

The request message of DeleteAddress.

func (*DeleteAddressRequest) Descriptor deprecated

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

Deprecated: Use DeleteAddressRequest.ProtoReflect.Descriptor instead.

func (*DeleteAddressRequest) GetAddressId

func (x *DeleteAddressRequest) GetAddressId() string

func (*DeleteAddressRequest) GetId

func (x *DeleteAddressRequest) GetId() string

func (*DeleteAddressRequest) ProtoMessage

func (*DeleteAddressRequest) ProtoMessage()

func (*DeleteAddressRequest) ProtoReflect

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

func (*DeleteAddressRequest) Reset

func (x *DeleteAddressRequest) Reset()

func (*DeleteAddressRequest) String

func (x *DeleteAddressRequest) String() string

type DeleteAddressResponse

type DeleteAddressResponse struct {
	// contains filtered or unexported fields
}

The response message of DeleteAddress.

func (*DeleteAddressResponse) Descriptor deprecated

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

Deprecated: Use DeleteAddressResponse.ProtoReflect.Descriptor instead.

func (*DeleteAddressResponse) ProtoMessage

func (*DeleteAddressResponse) ProtoMessage()

func (*DeleteAddressResponse) ProtoReflect

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

func (*DeleteAddressResponse) Reset

func (x *DeleteAddressResponse) Reset()

func (*DeleteAddressResponse) String

func (x *DeleteAddressResponse) String() string

type DeleteProfileRequest

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

The request message of DeleteProfile.

func (*DeleteProfileRequest) Descriptor deprecated

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

Deprecated: Use DeleteProfileRequest.ProtoReflect.Descriptor instead.

func (*DeleteProfileRequest) GetId

func (x *DeleteProfileRequest) GetId() string

func (*DeleteProfileRequest) ProtoMessage

func (*DeleteProfileRequest) ProtoMessage()

func (*DeleteProfileRequest) ProtoReflect

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

func (*DeleteProfileRequest) Reset

func (x *DeleteProfileRequest) Reset()

func (*DeleteProfileRequest) String

func (x *DeleteProfileRequest) String() string

type DeleteProfileResponse

type DeleteProfileResponse struct {
	// contains filtered or unexported fields
}

The response message of DeleteProfile.

func (*DeleteProfileResponse) Descriptor deprecated

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

Deprecated: Use DeleteProfileResponse.ProtoReflect.Descriptor instead.

func (*DeleteProfileResponse) ProtoMessage

func (*DeleteProfileResponse) ProtoMessage()

func (*DeleteProfileResponse) ProtoReflect

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

func (*DeleteProfileResponse) Reset

func (x *DeleteProfileResponse) Reset()

func (*DeleteProfileResponse) String

func (x *DeleteProfileResponse) String() string

type GetAddressRequest

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

The request message of GetAddress.

func (*GetAddressRequest) Descriptor deprecated

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

Deprecated: Use GetAddressRequest.ProtoReflect.Descriptor instead.

func (*GetAddressRequest) GetAddressId

func (x *GetAddressRequest) GetAddressId() string

func (*GetAddressRequest) GetId

func (x *GetAddressRequest) GetId() string

func (*GetAddressRequest) ProtoMessage

func (*GetAddressRequest) ProtoMessage()

func (*GetAddressRequest) ProtoReflect

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

func (*GetAddressRequest) Reset

func (x *GetAddressRequest) Reset()

func (*GetAddressRequest) String

func (x *GetAddressRequest) String() string

type GetAddressResponse

type GetAddressResponse struct {
	Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

The response message of GetAddress.

func (*GetAddressResponse) Descriptor deprecated

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

Deprecated: Use GetAddressResponse.ProtoReflect.Descriptor instead.

func (*GetAddressResponse) GetAddress

func (x *GetAddressResponse) GetAddress() *Address

func (*GetAddressResponse) ProtoMessage

func (*GetAddressResponse) ProtoMessage()

func (*GetAddressResponse) ProtoReflect

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

func (*GetAddressResponse) Reset

func (x *GetAddressResponse) Reset()

func (*GetAddressResponse) String

func (x *GetAddressResponse) String() string

type GetAddressesRequest

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

The request message of GetAddresses.

func (*GetAddressesRequest) Descriptor deprecated

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

Deprecated: Use GetAddressesRequest.ProtoReflect.Descriptor instead.

func (*GetAddressesRequest) GetId

func (x *GetAddressesRequest) GetId() string

func (*GetAddressesRequest) ProtoMessage

func (*GetAddressesRequest) ProtoMessage()

func (*GetAddressesRequest) ProtoReflect

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

func (*GetAddressesRequest) Reset

func (x *GetAddressesRequest) Reset()

func (*GetAddressesRequest) String

func (x *GetAddressesRequest) String() string

type GetAddressesResponse

type GetAddressesResponse struct {
	Addresses []*Address `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

The response message of GetAddresses.

func (*GetAddressesResponse) Descriptor deprecated

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

Deprecated: Use GetAddressesResponse.ProtoReflect.Descriptor instead.

func (*GetAddressesResponse) GetAddresses

func (x *GetAddressesResponse) GetAddresses() []*Address

func (*GetAddressesResponse) ProtoMessage

func (*GetAddressesResponse) ProtoMessage()

func (*GetAddressesResponse) ProtoReflect

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

func (*GetAddressesResponse) Reset

func (x *GetAddressesResponse) Reset()

func (*GetAddressesResponse) String

func (x *GetAddressesResponse) String() string

type GetProfileRequest

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

The request message of GetProfile.

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) GetId

func (x *GetProfileRequest) GetId() string

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

type GetProfileResponse

type GetProfileResponse struct {
	Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

The response message of GetProfile.

func (*GetProfileResponse) Descriptor deprecated

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

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetProfile

func (x *GetProfileResponse) GetProfile() *Profile

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

type PatchProfileRequest

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

The request message of PatchProfile.

func (*PatchProfileRequest) Descriptor deprecated

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

Deprecated: Use PatchProfileRequest.ProtoReflect.Descriptor instead.

func (*PatchProfileRequest) GetId

func (x *PatchProfileRequest) GetId() string

func (*PatchProfileRequest) GetProfile

func (x *PatchProfileRequest) GetProfile() *Profile

func (*PatchProfileRequest) ProtoMessage

func (*PatchProfileRequest) ProtoMessage()

func (*PatchProfileRequest) ProtoReflect

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

func (*PatchProfileRequest) Reset

func (x *PatchProfileRequest) Reset()

func (*PatchProfileRequest) String

func (x *PatchProfileRequest) String() string

type PatchProfileResponse

type PatchProfileResponse struct {
	// contains filtered or unexported fields
}

The response message of PatchProfile.

func (*PatchProfileResponse) Descriptor deprecated

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

Deprecated: Use PatchProfileResponse.ProtoReflect.Descriptor instead.

func (*PatchProfileResponse) ProtoMessage

func (*PatchProfileResponse) ProtoMessage()

func (*PatchProfileResponse) ProtoReflect

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

func (*PatchProfileResponse) Reset

func (x *PatchProfileResponse) Reset()

func (*PatchProfileResponse) String

func (x *PatchProfileResponse) String() string

type PostAddressRequest

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

The request message of PostAddress.

func (*PostAddressRequest) Descriptor deprecated

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

Deprecated: Use PostAddressRequest.ProtoReflect.Descriptor instead.

func (*PostAddressRequest) GetAddress

func (x *PostAddressRequest) GetAddress() *Address

func (*PostAddressRequest) GetId

func (x *PostAddressRequest) GetId() string

func (*PostAddressRequest) ProtoMessage

func (*PostAddressRequest) ProtoMessage()

func (*PostAddressRequest) ProtoReflect

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

func (*PostAddressRequest) Reset

func (x *PostAddressRequest) Reset()

func (*PostAddressRequest) String

func (x *PostAddressRequest) String() string

type PostAddressResponse

type PostAddressResponse struct {
	// contains filtered or unexported fields
}

The response message of PostAddress.

func (*PostAddressResponse) Descriptor deprecated

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

Deprecated: Use PostAddressResponse.ProtoReflect.Descriptor instead.

func (*PostAddressResponse) ProtoMessage

func (*PostAddressResponse) ProtoMessage()

func (*PostAddressResponse) ProtoReflect

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

func (*PostAddressResponse) Reset

func (x *PostAddressResponse) Reset()

func (*PostAddressResponse) String

func (x *PostAddressResponse) String() string

type PostProfileRequest

type PostProfileRequest struct {
	Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

The request message of PostProfile.

func (*PostProfileRequest) Descriptor deprecated

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

Deprecated: Use PostProfileRequest.ProtoReflect.Descriptor instead.

func (*PostProfileRequest) GetProfile

func (x *PostProfileRequest) GetProfile() *Profile

func (*PostProfileRequest) ProtoMessage

func (*PostProfileRequest) ProtoMessage()

func (*PostProfileRequest) ProtoReflect

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

func (*PostProfileRequest) Reset

func (x *PostProfileRequest) Reset()

func (*PostProfileRequest) String

func (x *PostProfileRequest) String() string

type PostProfileResponse

type PostProfileResponse struct {
	// contains filtered or unexported fields
}

The response message of PostProfile.

func (*PostProfileResponse) Descriptor deprecated

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

Deprecated: Use PostProfileResponse.ProtoReflect.Descriptor instead.

func (*PostProfileResponse) ProtoMessage

func (*PostProfileResponse) ProtoMessage()

func (*PostProfileResponse) ProtoReflect

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

func (*PostProfileResponse) Reset

func (x *PostProfileResponse) Reset()

func (*PostProfileResponse) String

func (x *PostProfileResponse) String() string

type Profile

type Profile struct {
	Id        string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Addresses []*Address `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAddresses

func (x *Profile) GetAddresses() []*Address

func (*Profile) GetId

func (x *Profile) GetId() string

func (*Profile) GetName

func (x *Profile) GetName() 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 PutProfileRequest

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

The request message of PutProfile.

func (*PutProfileRequest) Descriptor deprecated

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

Deprecated: Use PutProfileRequest.ProtoReflect.Descriptor instead.

func (*PutProfileRequest) GetId

func (x *PutProfileRequest) GetId() string

func (*PutProfileRequest) GetProfile

func (x *PutProfileRequest) GetProfile() *Profile

func (*PutProfileRequest) ProtoMessage

func (*PutProfileRequest) ProtoMessage()

func (*PutProfileRequest) ProtoReflect

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

func (*PutProfileRequest) Reset

func (x *PutProfileRequest) Reset()

func (*PutProfileRequest) String

func (x *PutProfileRequest) String() string

type PutProfileResponse

type PutProfileResponse struct {
	// contains filtered or unexported fields
}

The response message of PutProfile.

func (*PutProfileResponse) Descriptor deprecated

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

Deprecated: Use PutProfileResponse.ProtoReflect.Descriptor instead.

func (*PutProfileResponse) ProtoMessage

func (*PutProfileResponse) ProtoMessage()

func (*PutProfileResponse) ProtoReflect

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

func (*PutProfileResponse) Reset

func (x *PutProfileResponse) Reset()

func (*PutProfileResponse) String

func (x *PutProfileResponse) String() string

type ServiceClient

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) DeleteAddress

func (UnimplementedServiceServer) DeleteProfile

func (UnimplementedServiceServer) GetAddress

func (UnimplementedServiceServer) GetAddresses

func (UnimplementedServiceServer) GetProfile

func (UnimplementedServiceServer) PatchProfile

func (UnimplementedServiceServer) PostAddress

func (UnimplementedServiceServer) PostProfile

func (UnimplementedServiceServer) PutProfile

type UnsafeServiceServer

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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