383 lines
13 KiB
Go
383 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v5.27.3
|
|
// source: api/proto/activity/v1/activity.proto
|
|
|
|
package activityv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// RequestMeta 是 activity-service 内部 RPC 的最小追踪元信息。
|
|
type RequestMeta struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
Caller string `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"`
|
|
GatewayNodeId string `protobuf:"bytes,3,opt,name=gateway_node_id,json=gatewayNodeId,proto3" json:"gateway_node_id,omitempty"`
|
|
SentAtMs int64 `protobuf:"varint,4,opt,name=sent_at_ms,json=sentAtMs,proto3" json:"sent_at_ms,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RequestMeta) Reset() {
|
|
*x = RequestMeta{}
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RequestMeta) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RequestMeta) ProtoMessage() {}
|
|
|
|
func (x *RequestMeta) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RequestMeta.ProtoReflect.Descriptor instead.
|
|
func (*RequestMeta) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_activity_v1_activity_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *RequestMeta) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RequestMeta) GetCaller() string {
|
|
if x != nil {
|
|
return x.Caller
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RequestMeta) GetGatewayNodeId() string {
|
|
if x != nil {
|
|
return x.GatewayNodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RequestMeta) GetSentAtMs() int64 {
|
|
if x != nil {
|
|
return x.SentAtMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// PingActivityRequest 用于验证 activity-service gRPC 链路可用。
|
|
type PingActivityRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PingActivityRequest) Reset() {
|
|
*x = PingActivityRequest{}
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PingActivityRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PingActivityRequest) ProtoMessage() {}
|
|
|
|
func (x *PingActivityRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PingActivityRequest.ProtoReflect.Descriptor instead.
|
|
func (*PingActivityRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_activity_v1_activity_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *PingActivityRequest) GetMeta() *RequestMeta {
|
|
if x != nil {
|
|
return x.Meta
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// PingActivityResponse 返回服务是否接受请求。
|
|
type PingActivityResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PingActivityResponse) Reset() {
|
|
*x = PingActivityResponse{}
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PingActivityResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PingActivityResponse) ProtoMessage() {}
|
|
|
|
func (x *PingActivityResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PingActivityResponse.ProtoReflect.Descriptor instead.
|
|
func (*PingActivityResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_activity_v1_activity_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *PingActivityResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PingActivityResponse) GetNodeId() string {
|
|
if x != nil {
|
|
return x.NodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetActivityStatusRequest 查询活动服务底座状态。
|
|
type GetActivityStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
|
ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetActivityStatusRequest) Reset() {
|
|
*x = GetActivityStatusRequest{}
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetActivityStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetActivityStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *GetActivityStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetActivityStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetActivityStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_activity_v1_activity_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetActivityStatusRequest) GetMeta() *RequestMeta {
|
|
if x != nil {
|
|
return x.Meta
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetActivityStatusRequest) GetActivityId() string {
|
|
if x != nil {
|
|
return x.ActivityId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetActivityStatusResponse 返回活动是否启用。
|
|
type GetActivityStatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetActivityStatusResponse) Reset() {
|
|
*x = GetActivityStatusResponse{}
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetActivityStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetActivityStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *GetActivityStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_activity_v1_activity_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetActivityStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetActivityStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_activity_v1_activity_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetActivityStatusResponse) GetActivityId() string {
|
|
if x != nil {
|
|
return x.ActivityId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetActivityStatusResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_api_proto_activity_v1_activity_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_proto_activity_v1_activity_proto_rawDesc = "" +
|
|
"\n" +
|
|
"$api/proto/activity/v1/activity.proto\x12\x11hyapp.activity.v1\"\x8a\x01\n" +
|
|
"\vRequestMeta\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\x01 \x01(\tR\trequestId\x12\x16\n" +
|
|
"\x06caller\x18\x02 \x01(\tR\x06caller\x12&\n" +
|
|
"\x0fgateway_node_id\x18\x03 \x01(\tR\rgatewayNodeId\x12\x1c\n" +
|
|
"\n" +
|
|
"sent_at_ms\x18\x04 \x01(\x03R\bsentAtMs\"I\n" +
|
|
"\x13PingActivityRequest\x122\n" +
|
|
"\x04meta\x18\x01 \x01(\v2\x1e.hyapp.activity.v1.RequestMetaR\x04meta\"?\n" +
|
|
"\x14PingActivityResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\x12\x17\n" +
|
|
"\anode_id\x18\x02 \x01(\tR\x06nodeId\"o\n" +
|
|
"\x18GetActivityStatusRequest\x122\n" +
|
|
"\x04meta\x18\x01 \x01(\v2\x1e.hyapp.activity.v1.RequestMetaR\x04meta\x12\x1f\n" +
|
|
"\vactivity_id\x18\x02 \x01(\tR\n" +
|
|
"activityId\"T\n" +
|
|
"\x19GetActivityStatusResponse\x12\x1f\n" +
|
|
"\vactivity_id\x18\x01 \x01(\tR\n" +
|
|
"activityId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06status2\xe2\x01\n" +
|
|
"\x0fActivityService\x12_\n" +
|
|
"\fPingActivity\x12&.hyapp.activity.v1.PingActivityRequest\x1a'.hyapp.activity.v1.PingActivityResponse\x12n\n" +
|
|
"\x11GetActivityStatus\x12+.hyapp.activity.v1.GetActivityStatusRequest\x1a,.hyapp.activity.v1.GetActivityStatusResponseB(Z&hyapp/api/proto/activity/v1;activityv1b\x06proto3"
|
|
|
|
var (
|
|
file_api_proto_activity_v1_activity_proto_rawDescOnce sync.Once
|
|
file_api_proto_activity_v1_activity_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_proto_activity_v1_activity_proto_rawDescGZIP() []byte {
|
|
file_api_proto_activity_v1_activity_proto_rawDescOnce.Do(func() {
|
|
file_api_proto_activity_v1_activity_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_proto_activity_v1_activity_proto_rawDesc), len(file_api_proto_activity_v1_activity_proto_rawDesc)))
|
|
})
|
|
return file_api_proto_activity_v1_activity_proto_rawDescData
|
|
}
|
|
|
|
var file_api_proto_activity_v1_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_api_proto_activity_v1_activity_proto_goTypes = []any{
|
|
(*RequestMeta)(nil), // 0: hyapp.activity.v1.RequestMeta
|
|
(*PingActivityRequest)(nil), // 1: hyapp.activity.v1.PingActivityRequest
|
|
(*PingActivityResponse)(nil), // 2: hyapp.activity.v1.PingActivityResponse
|
|
(*GetActivityStatusRequest)(nil), // 3: hyapp.activity.v1.GetActivityStatusRequest
|
|
(*GetActivityStatusResponse)(nil), // 4: hyapp.activity.v1.GetActivityStatusResponse
|
|
}
|
|
var file_api_proto_activity_v1_activity_proto_depIdxs = []int32{
|
|
0, // 0: hyapp.activity.v1.PingActivityRequest.meta:type_name -> hyapp.activity.v1.RequestMeta
|
|
0, // 1: hyapp.activity.v1.GetActivityStatusRequest.meta:type_name -> hyapp.activity.v1.RequestMeta
|
|
1, // 2: hyapp.activity.v1.ActivityService.PingActivity:input_type -> hyapp.activity.v1.PingActivityRequest
|
|
3, // 3: hyapp.activity.v1.ActivityService.GetActivityStatus:input_type -> hyapp.activity.v1.GetActivityStatusRequest
|
|
2, // 4: hyapp.activity.v1.ActivityService.PingActivity:output_type -> hyapp.activity.v1.PingActivityResponse
|
|
4, // 5: hyapp.activity.v1.ActivityService.GetActivityStatus:output_type -> hyapp.activity.v1.GetActivityStatusResponse
|
|
4, // [4:6] is the sub-list for method output_type
|
|
2, // [2:4] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_proto_activity_v1_activity_proto_init() }
|
|
func file_api_proto_activity_v1_activity_proto_init() {
|
|
if File_api_proto_activity_v1_activity_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_activity_v1_activity_proto_rawDesc), len(file_api_proto_activity_v1_activity_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_api_proto_activity_v1_activity_proto_goTypes,
|
|
DependencyIndexes: file_api_proto_activity_v1_activity_proto_depIdxs,
|
|
MessageInfos: file_api_proto_activity_v1_activity_proto_msgTypes,
|
|
}.Build()
|
|
File_api_proto_activity_v1_activity_proto = out.File
|
|
file_api_proto_activity_v1_activity_proto_goTypes = nil
|
|
file_api_proto_activity_v1_activity_proto_depIdxs = nil
|
|
}
|