addresspb

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddressService_Create_FullMethodName  = "/address.v1.AddressService/Create"
	AddressService_Delete_FullMethodName  = "/address.v1.AddressService/Delete"
	AddressService_Update_FullMethodName  = "/address.v1.AddressService/Update"
	AddressService_GetList_FullMethodName = "/address.v1.AddressService/GetList"
)

Variables

View Source
var AddressService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "address.v1.AddressService",
	HandlerType: (*AddressServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _AddressService_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _AddressService_Delete_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _AddressService_Update_Handler,
		},
		{
			MethodName: "GetList",
			Handler:    _AddressService_GetList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "address.proto",
}

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

View Source
var File_address_proto protoreflect.FileDescriptor

Functions

func RegisterAddressServiceServer

func RegisterAddressServiceServer(s grpc.ServiceRegistrar, srv AddressServiceServer)

Types

type AddressServiceClient

type AddressServiceClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	Update(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*empty.Empty, error)
	GetList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}

AddressServiceClient is the client API for AddressService 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.

type AddressServiceServer

type AddressServiceServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
	Update(context.Context, *Entity) (*empty.Empty, error)
	GetList(context.Context, *ListRequest) (*ListResponse, error)
	// contains filtered or unexported methods
}

AddressServiceServer is the server API for AddressService service. All implementations must embed UnimplementedAddressServiceServer for forward compatibility

type CreateRequest

type CreateRequest struct {
	MemberId  uint64 `protobuf:"varint,1,opt,name=memberId,proto3" json:"memberId,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Phone     string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	IsDefault uint32 `protobuf:"varint,4,opt,name=isDefault,proto3" json:"isDefault,omitempty"`
	PostCode  string `protobuf:"bytes,5,opt,name=postCode,proto3" json:"postCode,omitempty"`
	Province  string `protobuf:"bytes,6,opt,name=province,proto3" json:"province,omitempty"`
	City      string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"`
	Region    string `protobuf:"bytes,8,opt,name=region,proto3" json:"region,omitempty"`
	Detail    string `protobuf:"bytes,9,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetCity

func (x *CreateRequest) GetCity() string

func (*CreateRequest) GetDetail

func (x *CreateRequest) GetDetail() string

func (*CreateRequest) GetIsDefault

func (x *CreateRequest) GetIsDefault() uint32

func (*CreateRequest) GetMemberId

func (x *CreateRequest) GetMemberId() uint64

func (*CreateRequest) GetName

func (x *CreateRequest) GetName() string

func (*CreateRequest) GetPhone

func (x *CreateRequest) GetPhone() string

func (*CreateRequest) GetPostCode

func (x *CreateRequest) GetPostCode() string

func (*CreateRequest) GetProvince

func (x *CreateRequest) GetProvince() string

func (*CreateRequest) GetRegion

func (x *CreateRequest) GetRegion() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

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

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId

func (x *CreateResponse) GetId() uint64

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {
	Id       uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MemberId uint64 `protobuf:"varint,2,opt,name=memberId,proto3" json:"memberId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() uint64

func (*DeleteRequest) GetMemberId

func (x *DeleteRequest) GetMemberId() uint64

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type Entity

type Entity struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MemberId  uint64 `protobuf:"varint,2,opt,name=memberId,proto3" json:"memberId,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Phone     string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	IsDefault uint32 `protobuf:"varint,5,opt,name=isDefault,proto3" json:"isDefault,omitempty"`
	PostCode  string `protobuf:"bytes,6,opt,name=postCode,proto3" json:"postCode,omitempty"`
	Province  string `protobuf:"bytes,7,opt,name=province,proto3" json:"province,omitempty"`
	City      string `protobuf:"bytes,8,opt,name=city,proto3" json:"city,omitempty"`
	Region    string `protobuf:"bytes,9,opt,name=region,proto3" json:"region,omitempty"`
	Detail    string `protobuf:"bytes,10,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*Entity) Descriptor deprecated

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

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetCity

func (x *Entity) GetCity() string

func (*Entity) GetDetail

func (x *Entity) GetDetail() string

func (*Entity) GetId

func (x *Entity) GetId() uint64

func (*Entity) GetIsDefault

func (x *Entity) GetIsDefault() uint32

func (*Entity) GetMemberId

func (x *Entity) GetMemberId() uint64

func (*Entity) GetName

func (x *Entity) GetName() string

func (*Entity) GetPhone

func (x *Entity) GetPhone() string

func (*Entity) GetPostCode

func (x *Entity) GetPostCode() string

func (*Entity) GetProvince

func (x *Entity) GetProvince() string

func (*Entity) GetRegion

func (x *Entity) GetRegion() string

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

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

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

type ListRequest

type ListRequest struct {
	MemberId uint64 `protobuf:"varint,1,opt,name=memberId,proto3" json:"memberId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetMemberId

func (x *ListRequest) GetMemberId() uint64

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	List []*Entity `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetList

func (x *ListResponse) GetList() []*Entity

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type UnimplementedAddressServiceServer

type UnimplementedAddressServiceServer struct {
}

UnimplementedAddressServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAddressServiceServer) Create

func (UnimplementedAddressServiceServer) Delete

func (UnimplementedAddressServiceServer) GetList

func (UnimplementedAddressServiceServer) Update

type UnsafeAddressServiceServer

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

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

Jump to

Keyboard shortcuts

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