| // |
| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you under the Apache License, Version 2.0 (the |
| // "License"); you may not use this file except in compliance |
| // with the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, |
| // software distributed under the License is distributed on an |
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| // KIND, either express or implied. See the License for the |
| // specific language governing permissions and limitations |
| // under the License. |
| // |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.36.11 |
| // protoc v6.31.1 |
| // source: Request.proto |
| |
| package api |
| |
| 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) |
| ) |
| |
| type ServiceRequest_ServiceRequestType int32 |
| |
| const ( |
| ServiceRequest_UPDATE ServiceRequest_ServiceRequestType = 0 |
| ServiceRequest_DELETE ServiceRequest_ServiceRequestType = 1 |
| ServiceRequest_INITIALIZE ServiceRequest_ServiceRequestType = 2 |
| ) |
| |
| // Enum value maps for ServiceRequest_ServiceRequestType. |
| var ( |
| ServiceRequest_ServiceRequestType_name = map[int32]string{ |
| 0: "UPDATE", |
| 1: "DELETE", |
| 2: "INITIALIZE", |
| } |
| ServiceRequest_ServiceRequestType_value = map[string]int32{ |
| "UPDATE": 0, |
| "DELETE": 1, |
| "INITIALIZE": 2, |
| } |
| ) |
| |
| func (x ServiceRequest_ServiceRequestType) Enum() *ServiceRequest_ServiceRequestType { |
| p := new(ServiceRequest_ServiceRequestType) |
| *p = x |
| return p |
| } |
| |
| func (x ServiceRequest_ServiceRequestType) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ServiceRequest_ServiceRequestType) Descriptor() protoreflect.EnumDescriptor { |
| return file_Request_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (ServiceRequest_ServiceRequestType) Type() protoreflect.EnumType { |
| return &file_Request_proto_enumTypes[0] |
| } |
| |
| func (x ServiceRequest_ServiceRequestType) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ServiceRequest_ServiceRequestType.Descriptor instead. |
| func (ServiceRequest_ServiceRequestType) EnumDescriptor() ([]byte, []int) { |
| return file_Request_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| type ServiceRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| ServiceRequestType ServiceRequest_ServiceRequestType `protobuf:"varint,1,opt,name=serviceRequestType,proto3,enum=proto.ServiceRequest_ServiceRequestType" json:"serviceRequestType,omitempty"` |
| RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` |
| FunctionMetaData *FunctionMetaData `protobuf:"bytes,3,opt,name=functionMetaData,proto3" json:"functionMetaData,omitempty"` |
| WorkerId string `protobuf:"bytes,4,opt,name=workerId,proto3" json:"workerId,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ServiceRequest) Reset() { |
| *x = ServiceRequest{} |
| mi := &file_Request_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ServiceRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ServiceRequest) ProtoMessage() {} |
| |
| func (x *ServiceRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_Request_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 ServiceRequest.ProtoReflect.Descriptor instead. |
| func (*ServiceRequest) Descriptor() ([]byte, []int) { |
| return file_Request_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *ServiceRequest) GetServiceRequestType() ServiceRequest_ServiceRequestType { |
| if x != nil { |
| return x.ServiceRequestType |
| } |
| return ServiceRequest_UPDATE |
| } |
| |
| func (x *ServiceRequest) GetRequestId() string { |
| if x != nil { |
| return x.RequestId |
| } |
| return "" |
| } |
| |
| func (x *ServiceRequest) GetFunctionMetaData() *FunctionMetaData { |
| if x != nil { |
| return x.FunctionMetaData |
| } |
| return nil |
| } |
| |
| func (x *ServiceRequest) GetWorkerId() string { |
| if x != nil { |
| return x.WorkerId |
| } |
| return "" |
| } |
| |
| var File_Request_proto protoreflect.FileDescriptor |
| |
| const file_Request_proto_rawDesc = "" + |
| "\n" + |
| "\rRequest.proto\x12\x05proto\x1a\x0eFunction.proto\"\xa7\x02\n" + |
| "\x0eServiceRequest\x12X\n" + |
| "\x12serviceRequestType\x18\x01 \x01(\x0e2(.proto.ServiceRequest.ServiceRequestTypeR\x12serviceRequestType\x12\x1c\n" + |
| "\trequestId\x18\x02 \x01(\tR\trequestId\x12C\n" + |
| "\x10functionMetaData\x18\x03 \x01(\v2\x17.proto.FunctionMetaDataR\x10functionMetaData\x12\x1a\n" + |
| "\bworkerId\x18\x04 \x01(\tR\bworkerId\"<\n" + |
| "\x12ServiceRequestType\x12\n" + |
| "\n" + |
| "\x06UPDATE\x10\x00\x12\n" + |
| "\n" + |
| "\x06DELETE\x10\x01\x12\x0e\n" + |
| "\n" + |
| "INITIALIZE\x10\x02B,\n" + |
| "!org.apache.pulsar.functions.protoB\aRequestb\x06proto3" |
| |
| var ( |
| file_Request_proto_rawDescOnce sync.Once |
| file_Request_proto_rawDescData []byte |
| ) |
| |
| func file_Request_proto_rawDescGZIP() []byte { |
| file_Request_proto_rawDescOnce.Do(func() { |
| file_Request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_Request_proto_rawDesc), len(file_Request_proto_rawDesc))) |
| }) |
| return file_Request_proto_rawDescData |
| } |
| |
| var file_Request_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_Request_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| var file_Request_proto_goTypes = []any{ |
| (ServiceRequest_ServiceRequestType)(0), // 0: proto.ServiceRequest.ServiceRequestType |
| (*ServiceRequest)(nil), // 1: proto.ServiceRequest |
| (*FunctionMetaData)(nil), // 2: proto.FunctionMetaData |
| } |
| var file_Request_proto_depIdxs = []int32{ |
| 0, // 0: proto.ServiceRequest.serviceRequestType:type_name -> proto.ServiceRequest.ServiceRequestType |
| 2, // 1: proto.ServiceRequest.functionMetaData:type_name -> proto.FunctionMetaData |
| 2, // [2:2] is the sub-list for method output_type |
| 2, // [2:2] 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_Request_proto_init() } |
| func file_Request_proto_init() { |
| if File_Request_proto != nil { |
| return |
| } |
| file_Function_proto_init() |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_Request_proto_rawDesc), len(file_Request_proto_rawDesc)), |
| NumEnums: 1, |
| NumMessages: 1, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_Request_proto_goTypes, |
| DependencyIndexes: file_Request_proto_depIdxs, |
| EnumInfos: file_Request_proto_enumTypes, |
| MessageInfos: file_Request_proto_msgTypes, |
| }.Build() |
| File_Request_proto = out.File |
| file_Request_proto_goTypes = nil |
| file_Request_proto_depIdxs = nil |
| } |