yt

package
v0.0.0-...-74e9d54 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_yuanting_yt_v1_vendor_proto protoreflect.FileDescriptor
View Source
var File_yuanting_yt_v1_vendor_service_proto protoreflect.FileDescriptor

Functions

func RegisterVendorServiceServer

func RegisterVendorServiceServer(s grpc.ServiceRegistrar, srv VendorServiceServer)

Types

type GetVendorRequest

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

func (*GetVendorRequest) Descriptor deprecated

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

Deprecated: Use GetVendorRequest.ProtoReflect.Descriptor instead.

func (*GetVendorRequest) GetName

func (x *GetVendorRequest) GetName() string

func (*GetVendorRequest) ProtoMessage

func (*GetVendorRequest) ProtoMessage()

func (*GetVendorRequest) ProtoReflect

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

func (*GetVendorRequest) Reset

func (x *GetVendorRequest) Reset()

func (*GetVendorRequest) String

func (x *GetVendorRequest) String() string

type UnimplementedVendorServiceServer

type UnimplementedVendorServiceServer struct {
}

UnimplementedVendorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVendorServiceServer) GetVendor

type UnsafeVendorServiceServer

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

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

type Vendor

type Vendor struct {

	// Resource name of the vendor. It must have the format of "vendors/*".
	// For example: "vendors/1".
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Telephone   string `protobuf:"bytes,4,opt,name=telephone,proto3" json:"telephone,omitempty"`
	//  Address address = 5;
	//  Contact contact = 6;
	//  BankAccount bank_account = 7;
	CreateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Vendor) Descriptor deprecated

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

Deprecated: Use Vendor.ProtoReflect.Descriptor instead.

func (*Vendor) GetCreateTime

func (x *Vendor) GetCreateTime() *timestamp.Timestamp

func (*Vendor) GetDescription

func (x *Vendor) GetDescription() string

func (*Vendor) GetName

func (x *Vendor) GetName() string

func (*Vendor) GetTelephone

func (x *Vendor) GetTelephone() string

func (*Vendor) GetTitle

func (x *Vendor) GetTitle() string

func (*Vendor) GetUpdateTime

func (x *Vendor) GetUpdateTime() *timestamp.Timestamp

func (*Vendor) ProtoMessage

func (*Vendor) ProtoMessage()

func (*Vendor) ProtoReflect

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

func (*Vendor) Reset

func (x *Vendor) Reset()

func (*Vendor) String

func (x *Vendor) String() string

type VendorServiceClient

type VendorServiceClient interface {
	GetVendor(ctx context.Context, in *GetVendorRequest, opts ...grpc.CallOption) (*Vendor, error)
}

VendorServiceClient is the client API for VendorService 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 VendorServiceServer

type VendorServiceServer interface {
	GetVendor(context.Context, *GetVendorRequest) (*Vendor, error)
	// contains filtered or unexported methods
}

VendorServiceServer is the server API for VendorService service. All implementations must embed UnimplementedVendorServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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