mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? Update proto extension number 7234 to 50234 ## Why? it was colliding with a saas-control-plane dep (discussed [here](https://temporaltechnologies.slack.com/archives/C0ARSCEHU75/p1775773612977229?thread_ts=1775773490.781049&cid=C0ARSCEHU75)) ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
169 lines
6.4 KiB
Go
169 lines
6.4 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/routing/v1/extension.proto
|
|
|
|
package routing
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
|
|
)
|
|
|
|
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 RoutingOptions struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Requests will be routed to a random shard.
|
|
Random bool `protobuf:"varint,1,opt,name=random,proto3" json:"random,omitempty"`
|
|
// Requests may specify how to obtain the namespace ID. Defaults to the "namespace_id" field.
|
|
NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
|
|
// Request will be routed by resolving the namespace ID and business ID to a given shard.
|
|
BusinessId string `protobuf:"bytes,3,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RoutingOptions) Reset() {
|
|
*x = RoutingOptions{}
|
|
mi := &file_temporal_server_api_routing_v1_extension_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RoutingOptions) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoutingOptions) ProtoMessage() {}
|
|
|
|
func (x *RoutingOptions) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_routing_v1_extension_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 RoutingOptions.ProtoReflect.Descriptor instead.
|
|
func (*RoutingOptions) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_routing_v1_extension_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *RoutingOptions) GetRandom() bool {
|
|
if x != nil {
|
|
return x.Random
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *RoutingOptions) GetNamespaceId() string {
|
|
if x != nil {
|
|
return x.NamespaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoutingOptions) GetBusinessId() string {
|
|
if x != nil {
|
|
return x.BusinessId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var file_temporal_server_api_routing_v1_extension_proto_extTypes = []protoimpl.ExtensionInfo{
|
|
{
|
|
ExtendedType: (*descriptorpb.MethodOptions)(nil),
|
|
ExtensionType: (*RoutingOptions)(nil),
|
|
Field: 50234,
|
|
Name: "temporal.server.api.routing.v1.routing",
|
|
Tag: "bytes,50234,opt,name=routing",
|
|
Filename: "temporal/server/api/routing/v1/extension.proto",
|
|
},
|
|
}
|
|
|
|
// Extension fields to descriptorpb.MethodOptions.
|
|
var (
|
|
// optional temporal.server.api.routing.v1.RoutingOptions routing = 50234;
|
|
E_Routing = &file_temporal_server_api_routing_v1_extension_proto_extTypes[0]
|
|
)
|
|
|
|
var File_temporal_server_api_routing_v1_extension_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_routing_v1_extension_proto_rawDesc = "" +
|
|
"\n" +
|
|
".temporal/server/api/routing/v1/extension.proto\x12\x1etemporal.server.api.routing.v1\x1a google/protobuf/descriptor.proto\"l\n" +
|
|
"\x0eRoutingOptions\x12\x16\n" +
|
|
"\x06random\x18\x01 \x01(\bR\x06random\x12!\n" +
|
|
"\fnamespace_id\x18\x02 \x01(\tR\vnamespaceId\x12\x1f\n" +
|
|
"\vbusiness_id\x18\x03 \x01(\tR\n" +
|
|
"businessId:m\n" +
|
|
"\arouting\x12\x1e.google.protobuf.MethodOptions\x18\xba\x88\x03 \x01(\v2..temporal.server.api.routing.v1.RoutingOptionsR\arouting\x88\x01\x01B.Z,go.temporal.io/server/api/routing/v1;routingb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_routing_v1_extension_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_routing_v1_extension_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_routing_v1_extension_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_routing_v1_extension_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_routing_v1_extension_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_routing_v1_extension_proto_rawDesc), len(file_temporal_server_api_routing_v1_extension_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_routing_v1_extension_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_routing_v1_extension_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_temporal_server_api_routing_v1_extension_proto_goTypes = []any{
|
|
(*RoutingOptions)(nil), // 0: temporal.server.api.routing.v1.RoutingOptions
|
|
(*descriptorpb.MethodOptions)(nil), // 1: google.protobuf.MethodOptions
|
|
}
|
|
var file_temporal_server_api_routing_v1_extension_proto_depIdxs = []int32{
|
|
1, // 0: temporal.server.api.routing.v1.routing:extendee -> google.protobuf.MethodOptions
|
|
0, // 1: temporal.server.api.routing.v1.routing:type_name -> temporal.server.api.routing.v1.RoutingOptions
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
1, // [1:2] is the sub-list for extension type_name
|
|
0, // [0:1] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_api_routing_v1_extension_proto_init() }
|
|
func file_temporal_server_api_routing_v1_extension_proto_init() {
|
|
if File_temporal_server_api_routing_v1_extension_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_api_routing_v1_extension_proto_rawDesc), len(file_temporal_server_api_routing_v1_extension_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 1,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_routing_v1_extension_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_routing_v1_extension_proto_depIdxs,
|
|
MessageInfos: file_temporal_server_api_routing_v1_extension_proto_msgTypes,
|
|
ExtensionInfos: file_temporal_server_api_routing_v1_extension_proto_extTypes,
|
|
}.Build()
|
|
File_temporal_server_api_routing_v1_extension_proto = out.File
|
|
file_temporal_server_api_routing_v1_extension_proto_goTypes = nil
|
|
file_temporal_server_api_routing_v1_extension_proto_depIdxs = nil
|
|
}
|