|
|
@ -3,9 +3,9 @@ |
|
|
|
#pragma warning disable 1591, 0612, 3021 |
|
|
|
#pragma warning disable 1591, 0612, 3021 |
|
|
|
#region Designer generated code |
|
|
|
#region Designer generated code |
|
|
|
|
|
|
|
|
|
|
|
using pb = global::Google.ProtocolBuffers; |
|
|
|
using pb = global::Google.Protobuf; |
|
|
|
using pbc = global::Google.ProtocolBuffers.Collections; |
|
|
|
using pbc = global::Google.Protobuf.Collections; |
|
|
|
using pbd = global::Google.ProtocolBuffers.Descriptors; |
|
|
|
using pbr = global::Google.Protobuf.Reflection; |
|
|
|
using scg = global::System.Collections.Generic; |
|
|
|
using scg = global::System.Collections.Generic; |
|
|
|
namespace Grpc.Health.V1Alpha { |
|
|
|
namespace Grpc.Health.V1Alpha { |
|
|
|
|
|
|
|
|
|
|
@ -14,21 +14,11 @@ namespace Grpc.Health.V1Alpha { |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
public static partial class Health { |
|
|
|
public static partial class Health { |
|
|
|
|
|
|
|
|
|
|
|
#region Extension registration |
|
|
|
|
|
|
|
public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
#region Static variables |
|
|
|
|
|
|
|
internal static pbd::MessageDescriptor internal__static_grpc_health_v1alpha_HealthCheckRequest__Descriptor; |
|
|
|
|
|
|
|
internal static pb::FieldAccess.FieldAccessorTable<global::Grpc.Health.V1Alpha.HealthCheckRequest, global::Grpc.Health.V1Alpha.HealthCheckRequest.Builder> internal__static_grpc_health_v1alpha_HealthCheckRequest__FieldAccessorTable; |
|
|
|
|
|
|
|
internal static pbd::MessageDescriptor internal__static_grpc_health_v1alpha_HealthCheckResponse__Descriptor; |
|
|
|
|
|
|
|
internal static pb::FieldAccess.FieldAccessorTable<global::Grpc.Health.V1Alpha.HealthCheckResponse, global::Grpc.Health.V1Alpha.HealthCheckResponse.Builder> internal__static_grpc_health_v1alpha_HealthCheckResponse__FieldAccessorTable; |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
#region Descriptor |
|
|
|
#region Descriptor |
|
|
|
public static pbd::FileDescriptor Descriptor { |
|
|
|
public static pbr::FileDescriptor Descriptor { |
|
|
|
get { return descriptor; } |
|
|
|
get { return descriptor; } |
|
|
|
} |
|
|
|
} |
|
|
|
private static pbd::FileDescriptor descriptor; |
|
|
|
private static pbr::FileDescriptor descriptor; |
|
|
|
|
|
|
|
|
|
|
|
static Health() { |
|
|
|
static Health() { |
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
@ -41,24 +31,13 @@ namespace Grpc.Health.V1Alpha { |
|
|
|
"EAESDwoLTk9UX1NFUlZJTkcQAjJkCgZIZWFsdGgSWgoFQ2hlY2sSJy5ncnBj", |
|
|
|
"EAESDwoLTk9UX1NFUlZJTkcQAjJkCgZIZWFsdGgSWgoFQ2hlY2sSJy5ncnBj", |
|
|
|
"LmhlYWx0aC52MWFscGhhLkhlYWx0aENoZWNrUmVxdWVzdBooLmdycGMuaGVh", |
|
|
|
"LmhlYWx0aC52MWFscGhhLkhlYWx0aENoZWNrUmVxdWVzdBooLmdycGMuaGVh", |
|
|
|
"bHRoLnYxYWxwaGEuSGVhbHRoQ2hlY2tSZXNwb25zZUIWqgITR3JwYy5IZWFs", |
|
|
|
"bHRoLnYxYWxwaGEuSGVhbHRoQ2hlY2tSZXNwb25zZUIWqgITR3JwYy5IZWFs", |
|
|
|
"dGguVjFBbHBoYQ==")); |
|
|
|
"dGguVjFBbHBoYWIGcHJvdG8z")); |
|
|
|
pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { |
|
|
|
descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
|
|
|
descriptor = root; |
|
|
|
new pbr::FileDescriptor[] { }, |
|
|
|
internal__static_grpc_health_v1alpha_HealthCheckRequest__Descriptor = Descriptor.MessageTypes[0]; |
|
|
|
new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { |
|
|
|
internal__static_grpc_health_v1alpha_HealthCheckRequest__FieldAccessorTable = |
|
|
|
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Health.V1Alpha.HealthCheckRequest), new[]{ "Host", "Service" }, null, null, null), |
|
|
|
new pb::FieldAccess.FieldAccessorTable<global::Grpc.Health.V1Alpha.HealthCheckRequest, global::Grpc.Health.V1Alpha.HealthCheckRequest.Builder>(internal__static_grpc_health_v1alpha_HealthCheckRequest__Descriptor, |
|
|
|
new pbr::GeneratedCodeInfo(typeof(global::Grpc.Health.V1Alpha.HealthCheckResponse), new[]{ "Status" }, null, new[]{ typeof(global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus) }, null) |
|
|
|
new string[] { "Host", "Service", }); |
|
|
|
})); |
|
|
|
internal__static_grpc_health_v1alpha_HealthCheckResponse__Descriptor = Descriptor.MessageTypes[1]; |
|
|
|
|
|
|
|
internal__static_grpc_health_v1alpha_HealthCheckResponse__FieldAccessorTable = |
|
|
|
|
|
|
|
new pb::FieldAccess.FieldAccessorTable<global::Grpc.Health.V1Alpha.HealthCheckResponse, global::Grpc.Health.V1Alpha.HealthCheckResponse.Builder>(internal__static_grpc_health_v1alpha_HealthCheckResponse__Descriptor, |
|
|
|
|
|
|
|
new string[] { "Status", }); |
|
|
|
|
|
|
|
pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance(); |
|
|
|
|
|
|
|
RegisterAllExtensions(registry); |
|
|
|
|
|
|
|
return registry; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
|
|
|
|
|
|
|
new pbd::FileDescriptor[] { |
|
|
|
|
|
|
|
}, assigner); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
@ -66,618 +45,253 @@ namespace Grpc.Health.V1Alpha { |
|
|
|
} |
|
|
|
} |
|
|
|
#region Messages |
|
|
|
#region Messages |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
public sealed partial class HealthCheckRequest : pb::GeneratedMessage<HealthCheckRequest, HealthCheckRequest.Builder> { |
|
|
|
public sealed partial class HealthCheckRequest : pb::IMessage<HealthCheckRequest> { |
|
|
|
private HealthCheckRequest() { } |
|
|
|
private static readonly pb::MessageParser<HealthCheckRequest> _parser = new pb::MessageParser<HealthCheckRequest>(() => new HealthCheckRequest()); |
|
|
|
private static readonly HealthCheckRequest defaultInstance = new HealthCheckRequest().MakeReadOnly(); |
|
|
|
public static pb::MessageParser<HealthCheckRequest> Parser { get { return _parser; } } |
|
|
|
private static readonly string[] _healthCheckRequestFieldNames = new string[] { "host", "service" }; |
|
|
|
|
|
|
|
private static readonly uint[] _healthCheckRequestFieldTags = new uint[] { 10, 18 }; |
|
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
|
public static HealthCheckRequest DefaultInstance { |
|
|
|
get { return global::Grpc.Health.V1Alpha.Proto.Health.Descriptor.MessageTypes[0]; } |
|
|
|
get { return defaultInstance; } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override HealthCheckRequest DefaultInstanceForType { |
|
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
|
|
|
get { return DefaultInstance; } |
|
|
|
get { return Descriptor; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override HealthCheckRequest ThisMessage { |
|
|
|
public HealthCheckRequest() { |
|
|
|
get { return this; } |
|
|
|
OnConstruction(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static pbd::MessageDescriptor Descriptor { |
|
|
|
partial void OnConstruction(); |
|
|
|
get { return global::Grpc.Health.V1Alpha.Proto.Health.internal__static_grpc_health_v1alpha_HealthCheckRequest__Descriptor; } |
|
|
|
|
|
|
|
|
|
|
|
public HealthCheckRequest(HealthCheckRequest other) : this() { |
|
|
|
|
|
|
|
host_ = other.host_; |
|
|
|
|
|
|
|
service_ = other.service_; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override pb::FieldAccess.FieldAccessorTable<HealthCheckRequest, HealthCheckRequest.Builder> InternalFieldAccessors { |
|
|
|
public HealthCheckRequest Clone() { |
|
|
|
get { return global::Grpc.Health.V1Alpha.Proto.Health.internal__static_grpc_health_v1alpha_HealthCheckRequest__FieldAccessorTable; } |
|
|
|
return new HealthCheckRequest(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public const int HostFieldNumber = 1; |
|
|
|
public const int HostFieldNumber = 1; |
|
|
|
private bool hasHost; |
|
|
|
|
|
|
|
private string host_ = ""; |
|
|
|
private string host_ = ""; |
|
|
|
public bool HasHost { |
|
|
|
|
|
|
|
get { return hasHost; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public string Host { |
|
|
|
public string Host { |
|
|
|
get { return host_; } |
|
|
|
get { return host_; } |
|
|
|
|
|
|
|
set { |
|
|
|
|
|
|
|
host_ = pb::Preconditions.CheckNotNull(value, "value"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public const int ServiceFieldNumber = 2; |
|
|
|
public const int ServiceFieldNumber = 2; |
|
|
|
private bool hasService; |
|
|
|
|
|
|
|
private string service_ = ""; |
|
|
|
private string service_ = ""; |
|
|
|
public bool HasService { |
|
|
|
|
|
|
|
get { return hasService; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public string Service { |
|
|
|
public string Service { |
|
|
|
get { return service_; } |
|
|
|
get { return service_; } |
|
|
|
|
|
|
|
set { |
|
|
|
|
|
|
|
service_ = pb::Preconditions.CheckNotNull(value, "value"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override bool IsInitialized { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override void WriteTo(pb::ICodedOutputStream output) { |
|
|
|
|
|
|
|
CalcSerializedSize(); |
|
|
|
|
|
|
|
string[] field_names = _healthCheckRequestFieldNames; |
|
|
|
|
|
|
|
if (hasHost) { |
|
|
|
|
|
|
|
output.WriteString(1, field_names[0], Host); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (hasService) { |
|
|
|
|
|
|
|
output.WriteString(2, field_names[1], Service); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
UnknownFields.WriteTo(output); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int memoizedSerializedSize = -1; |
|
|
|
|
|
|
|
public override int SerializedSize { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
int size = memoizedSerializedSize; |
|
|
|
|
|
|
|
if (size != -1) return size; |
|
|
|
|
|
|
|
return CalcSerializedSize(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int CalcSerializedSize() { |
|
|
|
|
|
|
|
int size = memoizedSerializedSize; |
|
|
|
|
|
|
|
if (size != -1) return size; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
size = 0; |
|
|
|
|
|
|
|
if (hasHost) { |
|
|
|
|
|
|
|
size += pb::CodedOutputStream.ComputeStringSize(1, Host); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (hasService) { |
|
|
|
|
|
|
|
size += pb::CodedOutputStream.ComputeStringSize(2, Service); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
size += UnknownFields.SerializedSize; |
|
|
|
|
|
|
|
memoizedSerializedSize = size; |
|
|
|
|
|
|
|
return size; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(pb::ByteString data) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(byte[] data) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(global::System.IO.Stream input) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseDelimitedFrom(global::System.IO.Stream input) { |
|
|
|
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(pb::ICodedInputStream input) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private HealthCheckRequest MakeReadOnly() { |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public override bool Equals(object other) { |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
return Equals(other as HealthCheckRequest); |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
|
|
|
|
public static Builder CreateBuilder(HealthCheckRequest prototype) { |
|
|
|
|
|
|
|
return new Builder(prototype); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
public bool Equals(HealthCheckRequest other) { |
|
|
|
public sealed partial class Builder : pb::GeneratedBuilder<HealthCheckRequest, Builder> { |
|
|
|
if (ReferenceEquals(other, null)) { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
return false; |
|
|
|
get { return this; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public Builder() { |
|
|
|
|
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal Builder(HealthCheckRequest cloneFrom) { |
|
|
|
|
|
|
|
result = cloneFrom; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (ReferenceEquals(other, this)) { |
|
|
|
private bool resultIsReadOnly; |
|
|
|
return true; |
|
|
|
private HealthCheckRequest result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private HealthCheckRequest PrepareBuilder() { |
|
|
|
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
HealthCheckRequest original = result; |
|
|
|
|
|
|
|
result = new HealthCheckRequest(); |
|
|
|
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
|
|
|
MergeFrom(original); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (Host != other.Host) return false; |
|
|
|
public override bool IsInitialized { |
|
|
|
if (Service != other.Service) return false; |
|
|
|
get { return result.IsInitialized; } |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override HealthCheckRequest MessageBeingBuilt { |
|
|
|
public override int GetHashCode() { |
|
|
|
get { return PrepareBuilder(); } |
|
|
|
int hash = 1; |
|
|
|
|
|
|
|
if (Host.Length != 0) hash ^= Host.GetHashCode(); |
|
|
|
|
|
|
|
if (Service.Length != 0) hash ^= Service.GetHashCode(); |
|
|
|
|
|
|
|
return hash; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
public override string ToString() { |
|
|
|
result = DefaultInstance; |
|
|
|
return pb::JsonFormatter.Default.Format(this); |
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
public void WriteTo(pb::CodedOutputStream output) { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
if (Host.Length != 0) { |
|
|
|
return new Builder(result); |
|
|
|
output.WriteRawTag(10); |
|
|
|
} else { |
|
|
|
output.WriteString(Host); |
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (Service.Length != 0) { |
|
|
|
|
|
|
|
output.WriteRawTag(18); |
|
|
|
|
|
|
|
output.WriteString(Service); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override pbd::MessageDescriptor DescriptorForType { |
|
|
|
|
|
|
|
get { return global::Grpc.Health.V1Alpha.HealthCheckRequest.Descriptor; } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override HealthCheckRequest DefaultInstanceForType { |
|
|
|
public int CalculateSize() { |
|
|
|
get { return global::Grpc.Health.V1Alpha.HealthCheckRequest.DefaultInstance; } |
|
|
|
int size = 0; |
|
|
|
|
|
|
|
if (Host.Length != 0) { |
|
|
|
|
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (Service.Length != 0) { |
|
|
|
public override HealthCheckRequest BuildPartial() { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Service); |
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
resultIsReadOnly = true; |
|
|
|
return size; |
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
public void MergeFrom(HealthCheckRequest other) { |
|
|
|
if (other is HealthCheckRequest) { |
|
|
|
if (other == null) { |
|
|
|
return MergeFrom((HealthCheckRequest) other); |
|
|
|
return; |
|
|
|
} else { |
|
|
|
|
|
|
|
base.MergeFrom(other); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (other.Host.Length != 0) { |
|
|
|
public override Builder MergeFrom(HealthCheckRequest other) { |
|
|
|
|
|
|
|
if (other == global::Grpc.Health.V1Alpha.HealthCheckRequest.DefaultInstance) return this; |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
if (other.HasHost) { |
|
|
|
|
|
|
|
Host = other.Host; |
|
|
|
Host = other.Host; |
|
|
|
} |
|
|
|
} |
|
|
|
if (other.HasService) { |
|
|
|
if (other.Service.Length != 0) { |
|
|
|
Service = other.Service; |
|
|
|
Service = other.Service; |
|
|
|
} |
|
|
|
} |
|
|
|
this.MergeUnknownFields(other.UnknownFields); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input) { |
|
|
|
|
|
|
|
return MergeFrom(input, pb::ExtensionRegistry.Empty); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public void MergeFrom(pb::CodedInputStream input) { |
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
pb::UnknownFieldSet.Builder unknownFields = null; |
|
|
|
|
|
|
|
uint tag; |
|
|
|
uint tag; |
|
|
|
string field_name; |
|
|
|
while (input.ReadTag(out tag)) { |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
switch(tag) { |
|
|
|
if(tag == 0 && field_name != null) { |
|
|
|
case 0: |
|
|
|
int field_ordinal = global::System.Array.BinarySearch(_healthCheckRequestFieldNames, field_name, global::System.StringComparer.Ordinal); |
|
|
|
|
|
|
|
if(field_ordinal >= 0) |
|
|
|
|
|
|
|
tag = _healthCheckRequestFieldTags[field_ordinal]; |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
if (unknownFields == null) { |
|
|
|
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
switch (tag) { |
|
|
|
|
|
|
|
case 0: { |
|
|
|
|
|
|
|
throw pb::InvalidProtocolBufferException.InvalidTag(); |
|
|
|
throw pb::InvalidProtocolBufferException.InvalidTag(); |
|
|
|
} |
|
|
|
default: |
|
|
|
default: { |
|
|
|
|
|
|
|
if (pb::WireFormat.IsEndGroupTag(tag)) { |
|
|
|
if (pb::WireFormat.IsEndGroupTag(tag)) { |
|
|
|
if (unknownFields != null) { |
|
|
|
return; |
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (unknownFields == null) { |
|
|
|
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
case 10: { |
|
|
|
case 10: { |
|
|
|
result.hasHost = input.ReadString(ref result.host_); |
|
|
|
Host = input.ReadString(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
case 18: { |
|
|
|
case 18: { |
|
|
|
result.hasService = input.ReadString(ref result.service_); |
|
|
|
Service = input.ReadString(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (unknownFields != null) { |
|
|
|
|
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool HasHost { |
|
|
|
|
|
|
|
get { return result.hasHost; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public string Host { |
|
|
|
|
|
|
|
get { return result.Host; } |
|
|
|
|
|
|
|
set { SetHost(value); } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public Builder SetHost(string value) { |
|
|
|
|
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.hasHost = true; |
|
|
|
|
|
|
|
result.host_ = value; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public Builder ClearHost() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.hasHost = false; |
|
|
|
|
|
|
|
result.host_ = ""; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool HasService { |
|
|
|
|
|
|
|
get { return result.hasService; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public string Service { |
|
|
|
|
|
|
|
get { return result.Service; } |
|
|
|
|
|
|
|
set { SetService(value); } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public Builder SetService(string value) { |
|
|
|
|
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.hasService = true; |
|
|
|
|
|
|
|
result.service_ = value; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public Builder ClearService() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.hasService = false; |
|
|
|
|
|
|
|
result.service_ = ""; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
static HealthCheckRequest() { |
|
|
|
|
|
|
|
object.ReferenceEquals(global::Grpc.Health.V1Alpha.Proto.Health.Descriptor, null); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
public sealed partial class HealthCheckResponse : pb::GeneratedMessage<HealthCheckResponse, HealthCheckResponse.Builder> { |
|
|
|
public sealed partial class HealthCheckResponse : pb::IMessage<HealthCheckResponse> { |
|
|
|
private HealthCheckResponse() { } |
|
|
|
private static readonly pb::MessageParser<HealthCheckResponse> _parser = new pb::MessageParser<HealthCheckResponse>(() => new HealthCheckResponse()); |
|
|
|
private static readonly HealthCheckResponse defaultInstance = new HealthCheckResponse().MakeReadOnly(); |
|
|
|
public static pb::MessageParser<HealthCheckResponse> Parser { get { return _parser; } } |
|
|
|
private static readonly string[] _healthCheckResponseFieldNames = new string[] { "status" }; |
|
|
|
|
|
|
|
private static readonly uint[] _healthCheckResponseFieldTags = new uint[] { 8 }; |
|
|
|
|
|
|
|
public static HealthCheckResponse DefaultInstance { |
|
|
|
|
|
|
|
get { return defaultInstance; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override HealthCheckResponse DefaultInstanceForType { |
|
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
|
get { return DefaultInstance; } |
|
|
|
get { return global::Grpc.Health.V1Alpha.Proto.Health.Descriptor.MessageTypes[1]; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override HealthCheckResponse ThisMessage { |
|
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
|
|
|
get { return this; } |
|
|
|
get { return Descriptor; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static pbd::MessageDescriptor Descriptor { |
|
|
|
public HealthCheckResponse() { |
|
|
|
get { return global::Grpc.Health.V1Alpha.Proto.Health.internal__static_grpc_health_v1alpha_HealthCheckResponse__Descriptor; } |
|
|
|
OnConstruction(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override pb::FieldAccess.FieldAccessorTable<HealthCheckResponse, HealthCheckResponse.Builder> InternalFieldAccessors { |
|
|
|
partial void OnConstruction(); |
|
|
|
get { return global::Grpc.Health.V1Alpha.Proto.Health.internal__static_grpc_health_v1alpha_HealthCheckResponse__FieldAccessorTable; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Nested types |
|
|
|
public HealthCheckResponse(HealthCheckResponse other) : this() { |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
status_ = other.status_; |
|
|
|
public static partial class Types { |
|
|
|
|
|
|
|
public enum ServingStatus { |
|
|
|
|
|
|
|
UNKNOWN = 0, |
|
|
|
|
|
|
|
SERVING = 1, |
|
|
|
|
|
|
|
NOT_SERVING = 2, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public HealthCheckResponse Clone() { |
|
|
|
|
|
|
|
return new HealthCheckResponse(this); |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public const int StatusFieldNumber = 1; |
|
|
|
public const int StatusFieldNumber = 1; |
|
|
|
private bool hasStatus; |
|
|
|
|
|
|
|
private global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus status_ = global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN; |
|
|
|
private global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus status_ = global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN; |
|
|
|
public bool HasStatus { |
|
|
|
|
|
|
|
get { return hasStatus; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus Status { |
|
|
|
public global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus Status { |
|
|
|
get { return status_; } |
|
|
|
get { return status_; } |
|
|
|
} |
|
|
|
set { |
|
|
|
|
|
|
|
status_ = value; |
|
|
|
public override bool IsInitialized { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override void WriteTo(pb::ICodedOutputStream output) { |
|
|
|
public override bool Equals(object other) { |
|
|
|
CalcSerializedSize(); |
|
|
|
return Equals(other as HealthCheckResponse); |
|
|
|
string[] field_names = _healthCheckResponseFieldNames; |
|
|
|
|
|
|
|
if (hasStatus) { |
|
|
|
|
|
|
|
output.WriteEnum(1, field_names[0], (int) Status, Status); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
UnknownFields.WriteTo(output); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int memoizedSerializedSize = -1; |
|
|
|
|
|
|
|
public override int SerializedSize { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
int size = memoizedSerializedSize; |
|
|
|
|
|
|
|
if (size != -1) return size; |
|
|
|
|
|
|
|
return CalcSerializedSize(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int CalcSerializedSize() { |
|
|
|
|
|
|
|
int size = memoizedSerializedSize; |
|
|
|
|
|
|
|
if (size != -1) return size; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
size = 0; |
|
|
|
|
|
|
|
if (hasStatus) { |
|
|
|
|
|
|
|
size += pb::CodedOutputStream.ComputeEnumSize(1, (int) Status); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
size += UnknownFields.SerializedSize; |
|
|
|
|
|
|
|
memoizedSerializedSize = size; |
|
|
|
|
|
|
|
return size; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(pb::ByteString data) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(byte[] data) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(global::System.IO.Stream input) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseDelimitedFrom(global::System.IO.Stream input) { |
|
|
|
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(pb::ICodedInputStream input) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static HealthCheckResponse ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private HealthCheckResponse MakeReadOnly() { |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
|
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
|
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
|
|
|
|
public static Builder CreateBuilder(HealthCheckResponse prototype) { |
|
|
|
|
|
|
|
return new Builder(prototype); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
|
|
|
|
public sealed partial class Builder : pb::GeneratedBuilder<HealthCheckResponse, Builder> { |
|
|
|
|
|
|
|
protected override Builder ThisBuilder { |
|
|
|
|
|
|
|
get { return this; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public Builder() { |
|
|
|
|
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal Builder(HealthCheckResponse cloneFrom) { |
|
|
|
|
|
|
|
result = cloneFrom; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
public bool Equals(HealthCheckResponse other) { |
|
|
|
private HealthCheckResponse result; |
|
|
|
if (ReferenceEquals(other, null)) { |
|
|
|
|
|
|
|
return false; |
|
|
|
private HealthCheckResponse PrepareBuilder() { |
|
|
|
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
HealthCheckResponse original = result; |
|
|
|
|
|
|
|
result = new HealthCheckResponse(); |
|
|
|
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
|
|
|
MergeFrom(original); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (ReferenceEquals(other, this)) { |
|
|
|
public override bool IsInitialized { |
|
|
|
return true; |
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (Status != other.Status) return false; |
|
|
|
protected override HealthCheckResponse MessageBeingBuilt { |
|
|
|
return true; |
|
|
|
get { return PrepareBuilder(); } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
public override int GetHashCode() { |
|
|
|
result = DefaultInstance; |
|
|
|
int hash = 1; |
|
|
|
resultIsReadOnly = true; |
|
|
|
if (Status != global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN) hash ^= Status.GetHashCode(); |
|
|
|
return this; |
|
|
|
return hash; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
public override string ToString() { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
return pb::JsonFormatter.Default.Format(this); |
|
|
|
return new Builder(result); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override pbd::MessageDescriptor DescriptorForType { |
|
|
|
public void WriteTo(pb::CodedOutputStream output) { |
|
|
|
get { return global::Grpc.Health.V1Alpha.HealthCheckResponse.Descriptor; } |
|
|
|
if (Status != global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN) { |
|
|
|
|
|
|
|
output.WriteRawTag(8); |
|
|
|
|
|
|
|
output.WriteEnum((int) Status); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override HealthCheckResponse DefaultInstanceForType { |
|
|
|
|
|
|
|
get { return global::Grpc.Health.V1Alpha.HealthCheckResponse.DefaultInstance; } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override HealthCheckResponse BuildPartial() { |
|
|
|
public int CalculateSize() { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
int size = 0; |
|
|
|
return result; |
|
|
|
if (Status != global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN) { |
|
|
|
|
|
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); |
|
|
|
} |
|
|
|
} |
|
|
|
resultIsReadOnly = true; |
|
|
|
return size; |
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
public void MergeFrom(HealthCheckResponse other) { |
|
|
|
if (other is HealthCheckResponse) { |
|
|
|
if (other == null) { |
|
|
|
return MergeFrom((HealthCheckResponse) other); |
|
|
|
return; |
|
|
|
} else { |
|
|
|
|
|
|
|
base.MergeFrom(other); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (other.Status != global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN) { |
|
|
|
public override Builder MergeFrom(HealthCheckResponse other) { |
|
|
|
|
|
|
|
if (other == global::Grpc.Health.V1Alpha.HealthCheckResponse.DefaultInstance) return this; |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
if (other.HasStatus) { |
|
|
|
|
|
|
|
Status = other.Status; |
|
|
|
Status = other.Status; |
|
|
|
} |
|
|
|
} |
|
|
|
this.MergeUnknownFields(other.UnknownFields); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input) { |
|
|
|
|
|
|
|
return MergeFrom(input, pb::ExtensionRegistry.Empty); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public void MergeFrom(pb::CodedInputStream input) { |
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
pb::UnknownFieldSet.Builder unknownFields = null; |
|
|
|
|
|
|
|
uint tag; |
|
|
|
uint tag; |
|
|
|
string field_name; |
|
|
|
while (input.ReadTag(out tag)) { |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
switch(tag) { |
|
|
|
if(tag == 0 && field_name != null) { |
|
|
|
case 0: |
|
|
|
int field_ordinal = global::System.Array.BinarySearch(_healthCheckResponseFieldNames, field_name, global::System.StringComparer.Ordinal); |
|
|
|
|
|
|
|
if(field_ordinal >= 0) |
|
|
|
|
|
|
|
tag = _healthCheckResponseFieldTags[field_ordinal]; |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
if (unknownFields == null) { |
|
|
|
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
switch (tag) { |
|
|
|
|
|
|
|
case 0: { |
|
|
|
|
|
|
|
throw pb::InvalidProtocolBufferException.InvalidTag(); |
|
|
|
throw pb::InvalidProtocolBufferException.InvalidTag(); |
|
|
|
} |
|
|
|
default: |
|
|
|
default: { |
|
|
|
|
|
|
|
if (pb::WireFormat.IsEndGroupTag(tag)) { |
|
|
|
if (pb::WireFormat.IsEndGroupTag(tag)) { |
|
|
|
if (unknownFields != null) { |
|
|
|
return; |
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (unknownFields == null) { |
|
|
|
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
case 8: { |
|
|
|
case 8: { |
|
|
|
object unknown; |
|
|
|
status_ = (global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus) input.ReadEnum(); |
|
|
|
if(input.ReadEnum(ref result.status_, out unknown)) { |
|
|
|
|
|
|
|
result.hasStatus = true; |
|
|
|
|
|
|
|
} else if(unknown is int) { |
|
|
|
|
|
|
|
if (unknownFields == null) { |
|
|
|
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
unknownFields.MergeVarintField(1, (ulong)(int)unknown); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (unknownFields != null) { |
|
|
|
|
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Nested types |
|
|
|
public bool HasStatus { |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
get { return result.hasStatus; } |
|
|
|
public static partial class Types { |
|
|
|
} |
|
|
|
public enum ServingStatus { |
|
|
|
public global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus Status { |
|
|
|
UNKNOWN = 0, |
|
|
|
get { return result.Status; } |
|
|
|
SERVING = 1, |
|
|
|
set { SetStatus(value); } |
|
|
|
NOT_SERVING = 2, |
|
|
|
} |
|
|
|
|
|
|
|
public Builder SetStatus(global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.hasStatus = true; |
|
|
|
|
|
|
|
result.status_ = value; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public Builder ClearStatus() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.hasStatus = false; |
|
|
|
|
|
|
|
result.status_ = global::Grpc.Health.V1Alpha.HealthCheckResponse.Types.ServingStatus.UNKNOWN; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
static HealthCheckResponse() { |
|
|
|
|
|
|
|
object.ReferenceEquals(global::Grpc.Health.V1Alpha.Proto.Health.Descriptor, null); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|