proto

package
v0.0.0-...-4374876 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomersService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.CustomersService",
	HandlerType: (*CustomersServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _CustomersService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/pool.proto",
}

CustomersService_ServiceDesc is the grpc.ServiceDesc for CustomersService 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_proto_pool_proto protoreflect.FileDescriptor

Functions

func RegisterCustomersServiceServer

func RegisterCustomersServiceServer(s grpc.ServiceRegistrar, srv CustomersServiceServer)

Types

type Contract

type Contract struct {
	AssetID          string      `protobuf:"bytes,1,opt,name=AssetID,proto3" json:"AssetID,omitempty"`
	BillingProfileID string      `protobuf:"bytes,2,opt,name=BillingProfileID,proto3" json:"BillingProfileID,omitempty"`
	StatusKey        string      `protobuf:"bytes,3,opt,name=StatusKey,proto3" json:"StatusKey,omitempty"`
	Plan             *Plan       `protobuf:"bytes,4,opt,name=Plan,proto3" json:"Plan,omitempty"`
	Services         []*Services `protobuf:"bytes,5,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*Contract) Descriptor deprecated

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

Deprecated: Use Contract.ProtoReflect.Descriptor instead.

func (*Contract) GetAssetID

func (x *Contract) GetAssetID() string

func (*Contract) GetBillingProfileID

func (x *Contract) GetBillingProfileID() string

func (*Contract) GetPlan

func (x *Contract) GetPlan() *Plan

func (*Contract) GetServices

func (x *Contract) GetServices() []*Services

func (*Contract) GetStatusKey

func (x *Contract) GetStatusKey() string

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) ProtoReflect

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

func (*Contract) Reset

func (x *Contract) Reset()

func (*Contract) String

func (x *Contract) String() string

type Customers

type Customers struct {
	Document  string      `protobuf:"bytes,1,opt,name=Document,proto3" json:"Document,omitempty"`
	Name      string      `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	BirthDate string      `protobuf:"bytes,3,opt,name=BirthDate,proto3" json:"BirthDate,omitempty"`
	Contract  []*Contract `protobuf:"bytes,4,rep,name=Contract,proto3" json:"Contract,omitempty"`
	// contains filtered or unexported fields
}

func (*Customers) Descriptor deprecated

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

Deprecated: Use Customers.ProtoReflect.Descriptor instead.

func (*Customers) GetBirthDate

func (x *Customers) GetBirthDate() string

func (*Customers) GetContract

func (x *Customers) GetContract() []*Contract

func (*Customers) GetDocument

func (x *Customers) GetDocument() string

func (*Customers) GetName

func (x *Customers) GetName() string

func (*Customers) ProtoMessage

func (*Customers) ProtoMessage()

func (*Customers) ProtoReflect

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

func (*Customers) Reset

func (x *Customers) Reset()

func (*Customers) String

func (x *Customers) String() string

type CustomersServiceClient

type CustomersServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Customers, error)
}

CustomersServiceClient is the client API for CustomersService 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 CustomersServiceServer

type CustomersServiceServer interface {
	Get(context.Context, *GetRequest) (*Customers, error)
	// contains filtered or unexported methods
}

CustomersServiceServer is the server API for CustomersService service. All implementations must embed UnimplementedCustomersServiceServer for forward compatibility

type GetRequest

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

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetDocument

func (x *GetRequest) GetDocument() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type Plan

type Plan struct {
	PlanKey                    string `protobuf:"bytes,1,opt,name=PlanKey,proto3" json:"PlanKey,omitempty"`
	ServiceActivationTimestamp int64  `protobuf:"varint,2,opt,name=ServiceActivationTimestamp,proto3" json:"ServiceActivationTimestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Plan) Descriptor deprecated

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

Deprecated: Use Plan.ProtoReflect.Descriptor instead.

func (*Plan) GetPlanKey

func (x *Plan) GetPlanKey() string

func (*Plan) GetServiceActivationTimestamp

func (x *Plan) GetServiceActivationTimestamp() int64

func (*Plan) ProtoMessage

func (*Plan) ProtoMessage()

func (*Plan) ProtoReflect

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

func (*Plan) Reset

func (x *Plan) Reset()

func (*Plan) String

func (x *Plan) String() string

type Services

type Services struct {
	ServiceKey                 string `protobuf:"bytes,1,opt,name=ServiceKey,proto3" json:"ServiceKey,omitempty"`
	ServiceActivationTimestamp int64  `protobuf:"varint,2,opt,name=ServiceActivationTimestamp,proto3" json:"ServiceActivationTimestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Services) Descriptor deprecated

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

Deprecated: Use Services.ProtoReflect.Descriptor instead.

func (*Services) GetServiceActivationTimestamp

func (x *Services) GetServiceActivationTimestamp() int64

func (*Services) GetServiceKey

func (x *Services) GetServiceKey() string

func (*Services) ProtoMessage

func (*Services) ProtoMessage()

func (*Services) ProtoReflect

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

func (*Services) Reset

func (x *Services) Reset()

func (*Services) String

func (x *Services) String() string

type UnimplementedCustomersServiceServer

type UnimplementedCustomersServiceServer struct {
}

UnimplementedCustomersServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCustomersServiceServer) Get

type UnsafeCustomersServiceServer

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

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

Jump to

Keyboard shortcuts

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