-
Notifications
You must be signed in to change notification settings - Fork 57
Add support for Stand Alone Nexus Operations #639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Quinn-With-Two-Ns
wants to merge
3
commits into
temporalio:main
Choose a base branch
from
Quinn-With-Two-Ns:NEXUS-291
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,345 @@ | ||
| // <auto-generated> | ||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | ||
| // source: temporal/api/compute/v1/provider.proto | ||
| // </auto-generated> | ||
| #pragma warning disable 1591, 0612, 3021, 8981 | ||
| #region Designer generated code | ||
|
|
||
| using pb = global::Google.Protobuf; | ||
| using pbc = global::Google.Protobuf.Collections; | ||
| using pbr = global::Google.Protobuf.Reflection; | ||
| using scg = global::System.Collections.Generic; | ||
| namespace Temporalio.Api.Compute.V1 { | ||
|
|
||
| /// <summary>Holder for reflection information generated from temporal/api/compute/v1/provider.proto</summary> | ||
| public static partial class ProviderReflection { | ||
|
|
||
| #region Descriptor | ||
| /// <summary>File descriptor for temporal/api/compute/v1/provider.proto</summary> | ||
| public static pbr::FileDescriptor Descriptor { | ||
| get { return descriptor; } | ||
| } | ||
| private static pbr::FileDescriptor descriptor; | ||
|
|
||
| static ProviderReflection() { | ||
| byte[] descriptorData = global::System.Convert.FromBase64String( | ||
| string.Concat( | ||
| "CiZ0ZW1wb3JhbC9hcGkvY29tcHV0ZS92MS9wcm92aWRlci5wcm90bxIXdGVt", | ||
| "cG9yYWwuYXBpLmNvbXB1dGUudjEaJHRlbXBvcmFsL2FwaS9jb21tb24vdjEv", | ||
| "bWVzc2FnZS5wcm90byJpCg9Db21wdXRlUHJvdmlkZXISDAoEdHlwZRgBIAEo", | ||
| "CRIwCgdkZXRhaWxzGAIgASgLMh8udGVtcG9yYWwuYXBpLmNvbW1vbi52MS5Q", | ||
| "YXlsb2FkEhYKDm5leHVzX2VuZHBvaW50GAogASgJQo8BChppby50ZW1wb3Jh", | ||
| "bC5hcGkuY29tcHV0ZS52MUINUHJvdmlkZXJQcm90b1ABWiVnby50ZW1wb3Jh", | ||
| "bC5pby9hcGkvY29tcHV0ZS92MTtjb21wdXRlqgIZVGVtcG9yYWxpby5BcGku", | ||
| "Q29tcHV0ZS5WMeoCHFRlbXBvcmFsaW86OkFwaTo6Q29tcHV0ZTo6VjFiBnBy", | ||
| "b3RvMw==")); | ||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | ||
| new pbr::FileDescriptor[] { global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, }, | ||
| new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { | ||
| new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Compute.V1.ComputeProvider), global::Temporalio.Api.Compute.V1.ComputeProvider.Parser, new[]{ "Type", "Details", "NexusEndpoint" }, null, null, null, null) | ||
| })); | ||
| } | ||
| #endregion | ||
|
|
||
| } | ||
| #region Messages | ||
| /// <summary> | ||
| /// ComputeProvider stores information used by a worker control plane controller | ||
| /// to respond to worker lifecycle events. For example, when a Task is received | ||
| /// on a TaskQueue that has no active pollers, a serverless worker lifecycle | ||
| /// controller might need to invoke an AWS Lambda Function that itself ends up | ||
| /// calling the SDK's worker.New() function. | ||
| /// </summary> | ||
| public sealed partial class ComputeProvider : pb::IMessage<ComputeProvider> | ||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | ||
| , pb::IBufferMessage | ||
| #endif | ||
| { | ||
| private static readonly pb::MessageParser<ComputeProvider> _parser = new pb::MessageParser<ComputeProvider>(() => new ComputeProvider()); | ||
| private pb::UnknownFieldSet _unknownFields; | ||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public static pb::MessageParser<ComputeProvider> Parser { get { return _parser; } } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public static pbr::MessageDescriptor Descriptor { | ||
| get { return global::Temporalio.Api.Compute.V1.ProviderReflection.Descriptor.MessageTypes[0]; } | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| pbr::MessageDescriptor pb::IMessage.Descriptor { | ||
| get { return Descriptor; } | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public ComputeProvider() { | ||
| OnConstruction(); | ||
| } | ||
|
|
||
| partial void OnConstruction(); | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public ComputeProvider(ComputeProvider other) : this() { | ||
| type_ = other.type_; | ||
| details_ = other.details_ != null ? other.details_.Clone() : null; | ||
| nexusEndpoint_ = other.nexusEndpoint_; | ||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public ComputeProvider Clone() { | ||
| return new ComputeProvider(this); | ||
| } | ||
|
|
||
| /// <summary>Field number for the "type" field.</summary> | ||
| public const int TypeFieldNumber = 1; | ||
| private string type_ = ""; | ||
| /// <summary> | ||
| /// Type of the compute provider. This string is implementation-specific and | ||
| /// can be used by implementations to understand how to interpret the | ||
| /// contents of the provider_details field. | ||
| /// </summary> | ||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public string Type { | ||
| get { return type_; } | ||
| set { | ||
| type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | ||
| } | ||
| } | ||
|
|
||
| /// <summary>Field number for the "details" field.</summary> | ||
| public const int DetailsFieldNumber = 2; | ||
| private global::Temporalio.Api.Common.V1.Payload details_; | ||
| /// <summary> | ||
| /// Contains provider-specific instructions and configuration. | ||
| /// For server-implemented providers, use the SDK's default content | ||
| /// converter to ensure the server can understand it. | ||
| /// For remote-implemented providers, you might use your own content | ||
| /// converters according to what the remote endpoints understand. | ||
| /// </summary> | ||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public global::Temporalio.Api.Common.V1.Payload Details { | ||
| get { return details_; } | ||
| set { | ||
| details_ = value; | ||
| } | ||
| } | ||
|
|
||
| /// <summary>Field number for the "nexus_endpoint" field.</summary> | ||
| public const int NexusEndpointFieldNumber = 10; | ||
| private string nexusEndpoint_ = ""; | ||
| /// <summary> | ||
| /// Optional. If the compute provider is a Nexus service, this should point | ||
| /// there. | ||
| /// </summary> | ||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public string NexusEndpoint { | ||
| get { return nexusEndpoint_; } | ||
| set { | ||
| nexusEndpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | ||
| } | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public override bool Equals(object other) { | ||
| return Equals(other as ComputeProvider); | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public bool Equals(ComputeProvider other) { | ||
| if (ReferenceEquals(other, null)) { | ||
| return false; | ||
| } | ||
| if (ReferenceEquals(other, this)) { | ||
| return true; | ||
| } | ||
| if (Type != other.Type) return false; | ||
| if (!object.Equals(Details, other.Details)) return false; | ||
| if (NexusEndpoint != other.NexusEndpoint) return false; | ||
| return Equals(_unknownFields, other._unknownFields); | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public override int GetHashCode() { | ||
| int hash = 1; | ||
| if (Type.Length != 0) hash ^= Type.GetHashCode(); | ||
| if (details_ != null) hash ^= Details.GetHashCode(); | ||
| if (NexusEndpoint.Length != 0) hash ^= NexusEndpoint.GetHashCode(); | ||
| if (_unknownFields != null) { | ||
| hash ^= _unknownFields.GetHashCode(); | ||
| } | ||
| return hash; | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public override string ToString() { | ||
| return pb::JsonFormatter.ToDiagnosticString(this); | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public void WriteTo(pb::CodedOutputStream output) { | ||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | ||
| output.WriteRawMessage(this); | ||
| #else | ||
| if (Type.Length != 0) { | ||
| output.WriteRawTag(10); | ||
| output.WriteString(Type); | ||
| } | ||
| if (details_ != null) { | ||
| output.WriteRawTag(18); | ||
| output.WriteMessage(Details); | ||
| } | ||
| if (NexusEndpoint.Length != 0) { | ||
| output.WriteRawTag(82); | ||
| output.WriteString(NexusEndpoint); | ||
| } | ||
| if (_unknownFields != null) { | ||
| _unknownFields.WriteTo(output); | ||
| } | ||
| #endif | ||
| } | ||
|
|
||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | ||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { | ||
| if (Type.Length != 0) { | ||
| output.WriteRawTag(10); | ||
| output.WriteString(Type); | ||
| } | ||
| if (details_ != null) { | ||
| output.WriteRawTag(18); | ||
| output.WriteMessage(Details); | ||
| } | ||
| if (NexusEndpoint.Length != 0) { | ||
| output.WriteRawTag(82); | ||
| output.WriteString(NexusEndpoint); | ||
| } | ||
| if (_unknownFields != null) { | ||
| _unknownFields.WriteTo(ref output); | ||
| } | ||
| } | ||
| #endif | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public int CalculateSize() { | ||
| int size = 0; | ||
| if (Type.Length != 0) { | ||
| size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); | ||
| } | ||
| if (details_ != null) { | ||
| size += 1 + pb::CodedOutputStream.ComputeMessageSize(Details); | ||
| } | ||
| if (NexusEndpoint.Length != 0) { | ||
| size += 1 + pb::CodedOutputStream.ComputeStringSize(NexusEndpoint); | ||
| } | ||
| if (_unknownFields != null) { | ||
| size += _unknownFields.CalculateSize(); | ||
| } | ||
| return size; | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public void MergeFrom(ComputeProvider other) { | ||
| if (other == null) { | ||
| return; | ||
| } | ||
| if (other.Type.Length != 0) { | ||
| Type = other.Type; | ||
| } | ||
| if (other.details_ != null) { | ||
| if (details_ == null) { | ||
| Details = new global::Temporalio.Api.Common.V1.Payload(); | ||
| } | ||
| Details.MergeFrom(other.Details); | ||
| } | ||
| if (other.NexusEndpoint.Length != 0) { | ||
| NexusEndpoint = other.NexusEndpoint; | ||
| } | ||
| _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); | ||
| } | ||
|
|
||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| public void MergeFrom(pb::CodedInputStream input) { | ||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | ||
| input.ReadRawMessage(this); | ||
| #else | ||
| uint tag; | ||
| while ((tag = input.ReadTag()) != 0) { | ||
| switch(tag) { | ||
| default: | ||
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); | ||
| break; | ||
| case 10: { | ||
| Type = input.ReadString(); | ||
| break; | ||
| } | ||
| case 18: { | ||
| if (details_ == null) { | ||
| Details = new global::Temporalio.Api.Common.V1.Payload(); | ||
| } | ||
| input.ReadMessage(Details); | ||
| break; | ||
| } | ||
| case 82: { | ||
| NexusEndpoint = input.ReadString(); | ||
| break; | ||
| } | ||
| } | ||
| } | ||
| #endif | ||
| } | ||
|
|
||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | ||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | ||
| void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { | ||
| uint tag; | ||
| while ((tag = input.ReadTag()) != 0) { | ||
| switch(tag) { | ||
| default: | ||
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); | ||
| break; | ||
| case 10: { | ||
| Type = input.ReadString(); | ||
| break; | ||
| } | ||
| case 18: { | ||
| if (details_ == null) { | ||
| Details = new global::Temporalio.Api.Common.V1.Payload(); | ||
| } | ||
| input.ReadMessage(Details); | ||
| break; | ||
| } | ||
| case 82: { | ||
| NexusEndpoint = input.ReadString(); | ||
| break; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| #endif | ||
|
|
||
| } | ||
|
|
||
| #endregion | ||
|
|
||
| } | ||
|
|
||
| #endregion Designer generated code |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for the fully qualified type here or could this be reverted?