2
0

Regenerate proto with CapabilitiesJson in FetchTaskRequest
Some checks failed
CI / build (push) Failing after 22s
Release / release (push) Failing after 21s

This commit is contained in:
2026-01-11 06:53:40 +00:00
parent fae83e8d2f
commit c5e4258abc
6 changed files with 351 additions and 787 deletions

View File

@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// protoc-gen-go v1.36.11
// protoc v3.21.12
// source: ping/v1/messages.proto
package pingv1
@@ -11,6 +11,7 @@ import (
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
@@ -21,20 +22,17 @@ const (
)
type PingRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *PingRequest) Reset() {
*x = PingRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ping_v1_messages_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_ping_v1_messages_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PingRequest) String() string {
@@ -45,7 +43,7 @@ func (*PingRequest) ProtoMessage() {}
func (x *PingRequest) ProtoReflect() protoreflect.Message {
mi := &file_ping_v1_messages_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -68,20 +66,17 @@ func (x *PingRequest) GetData() string {
}
type PingResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *PingResponse) Reset() {
*x = PingResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_ping_v1_messages_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_ping_v1_messages_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PingResponse) String() string {
@@ -92,7 +87,7 @@ func (*PingResponse) ProtoMessage() {}
func (x *PingResponse) ProtoReflect() protoreflect.Message {
mi := &file_ping_v1_messages_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -116,39 +111,28 @@ func (x *PingResponse) GetData() string {
var File_ping_v1_messages_proto protoreflect.FileDescriptor
var file_ping_v1_messages_proto_rawDesc = []byte{
0x0a, 0x16, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76,
0x31, 0x22, 0x21, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x64, 0x61, 0x74, 0x61, 0x22, 0x22, 0x0a, 0x0c, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x88, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d,
0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x64, 0x65, 0x2e,
0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76,
0x31, 0x3b, 0x70, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02,
0x07, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x50, 0x69, 0x6e, 0x67, 0x5c,
0x56, 0x31, 0xe2, 0x02, 0x13, 0x50, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x50, 0x69, 0x6e, 0x67, 0x3a,
0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
const file_ping_v1_messages_proto_rawDesc = "" +
"\n" +
"\x16ping/v1/messages.proto\x12\aping.v1\"!\n" +
"\vPingRequest\x12\x12\n" +
"\x04data\x18\x01 \x01(\tR\x04data\"\"\n" +
"\fPingResponse\x12\x12\n" +
"\x04data\x18\x01 \x01(\tR\x04dataB/Z-code.gitea.io/actions-proto-go/ping/v1;pingv1b\x06proto3"
var (
file_ping_v1_messages_proto_rawDescOnce sync.Once
file_ping_v1_messages_proto_rawDescData = file_ping_v1_messages_proto_rawDesc
file_ping_v1_messages_proto_rawDescData []byte
)
func file_ping_v1_messages_proto_rawDescGZIP() []byte {
file_ping_v1_messages_proto_rawDescOnce.Do(func() {
file_ping_v1_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_ping_v1_messages_proto_rawDescData)
file_ping_v1_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ping_v1_messages_proto_rawDesc), len(file_ping_v1_messages_proto_rawDesc)))
})
return file_ping_v1_messages_proto_rawDescData
}
var file_ping_v1_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_ping_v1_messages_proto_goTypes = []interface{}{
var file_ping_v1_messages_proto_goTypes = []any{
(*PingRequest)(nil), // 0: ping.v1.PingRequest
(*PingResponse)(nil), // 1: ping.v1.PingResponse
}
@@ -165,37 +149,11 @@ func file_ping_v1_messages_proto_init() {
if File_ping_v1_messages_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_ping_v1_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PingRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ping_v1_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PingResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ping_v1_messages_proto_rawDesc,
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ping_v1_messages_proto_rawDesc), len(file_ping_v1_messages_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
@@ -206,7 +164,6 @@ func file_ping_v1_messages_proto_init() {
MessageInfos: file_ping_v1_messages_proto_msgTypes,
}.Build()
File_ping_v1_messages_proto = out.File
file_ping_v1_messages_proto_rawDesc = nil
file_ping_v1_messages_proto_goTypes = nil
file_ping_v1_messages_proto_depIdxs = nil
}

View File

@@ -37,12 +37,6 @@ const (
PingServicePingProcedure = "/ping.v1.PingService/Ping"
)
// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package.
var (
pingServiceServiceDescriptor = v1.File_ping_v1_services_proto.Services().ByName("PingService")
pingServicePingMethodDescriptor = pingServiceServiceDescriptor.Methods().ByName("Ping")
)
// PingServiceClient is a client for the ping.v1.PingService service.
type PingServiceClient interface {
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
@@ -57,11 +51,12 @@ type PingServiceClient interface {
// http://api.acme.com or https://acme.com/grpc).
func NewPingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PingServiceClient {
baseURL = strings.TrimRight(baseURL, "/")
pingServiceMethods := v1.File_ping_v1_services_proto.Services().ByName("PingService").Methods()
return &pingServiceClient{
ping: connect.NewClient[v1.PingRequest, v1.PingResponse](
httpClient,
baseURL+PingServicePingProcedure,
connect.WithSchema(pingServicePingMethodDescriptor),
connect.WithSchema(pingServiceMethods.ByName("Ping")),
connect.WithClientOptions(opts...),
),
}
@@ -88,10 +83,11 @@ type PingServiceHandler interface {
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
// and JSON codecs. They also support gzip compression.
func NewPingServiceHandler(svc PingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
pingServiceMethods := v1.File_ping_v1_services_proto.Services().ByName("PingService").Methods()
pingServicePingHandler := connect.NewUnaryHandler(
PingServicePingProcedure,
svc.Ping,
connect.WithSchema(pingServicePingMethodDescriptor),
connect.WithSchema(pingServiceMethods.ByName("Ping")),
connect.WithHandlerOptions(opts...),
)
return "/ping.v1.PingService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

View File

@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// protoc-gen-go v1.36.11
// protoc v3.21.12
// source: ping/v1/services.proto
package pingv1
@@ -10,6 +10,7 @@ import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
@@ -21,27 +22,13 @@ const (
var File_ping_v1_services_proto protoreflect.FileDescriptor
var file_ping_v1_services_proto_rawDesc = []byte{
0x0a, 0x16, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76,
0x31, 0x1a, 0x16, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x42, 0x0a, 0x0b, 0x50, 0x69, 0x6e,
0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67,
0x12, 0x14, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31,
0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x88, 0x01,
0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d,
0x63, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x67, 0x6f, 0x2f, 0x70,
0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03,
0x50, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07,
0x50, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x50, 0x69, 0x6e, 0x67, 0x5c, 0x56,
0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08,
0x50, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
const file_ping_v1_services_proto_rawDesc = "" +
"\n" +
"\x16ping/v1/services.proto\x12\aping.v1\x1a\x16ping/v1/messages.proto2B\n" +
"\vPingService\x123\n" +
"\x04Ping\x12\x14.ping.v1.PingRequest\x1a\x15.ping.v1.PingResponseB/Z-code.gitea.io/actions-proto-go/ping/v1;pingv1b\x06proto3"
var file_ping_v1_services_proto_goTypes = []interface{}{
var file_ping_v1_services_proto_goTypes = []any{
(*PingRequest)(nil), // 0: ping.v1.PingRequest
(*PingResponse)(nil), // 1: ping.v1.PingResponse
}
@@ -65,7 +52,7 @@ func file_ping_v1_services_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ping_v1_services_proto_rawDesc,
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ping_v1_services_proto_rawDesc), len(file_ping_v1_services_proto_rawDesc)),
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
@@ -75,7 +62,6 @@ func file_ping_v1_services_proto_init() {
DependencyIndexes: file_ping_v1_services_proto_depIdxs,
}.Build()
File_ping_v1_services_proto = out.File
file_ping_v1_services_proto_rawDesc = nil
file_ping_v1_services_proto_goTypes = nil
file_ping_v1_services_proto_depIdxs = nil
}