Skip to content

Commit

Permalink
feat: updates to protobuf definitions for flipt main (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: flipt-bot <[email protected]>
  • Loading branch information
github-actions[bot] and flipt-bot authored Nov 15, 2023
1 parent 5a87614 commit c78cfe5
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 108 deletions.
139 changes: 88 additions & 51 deletions src/Flipt.Grpc/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,58 +51,58 @@ static AuthReflection() {
"bmV4dFBhZ2VUb2tlbiItChtEZWxldGVBdXRoZW50aWNhdGlvblJlcXVlc3QS",
"DgoCaWQYASABKAlSAmlkInAKH0V4cGlyZUF1dGhlbnRpY2F0aW9uU2VsZlJl",
"cXVlc3QSPgoKZXhwaXJlc19hdBgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U",
"aW1lc3RhbXBIAFIJZXhwaXJlc0F0iAEBQg0KC19leHBpcmVzX2F0IoUBChJD",
"aW1lc3RhbXBIAFIJZXhwaXJlc0F0iAEBQg0KC19leHBpcmVzX2F0IqoBChJD",
"cmVhdGVUb2tlblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRIgCgtkZXNj",
"cmlwdGlvbhgCIAEoCVILZGVzY3JpcHRpb24SOQoKZXhwaXJlc19hdBgDIAEo",
"CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCWV4cGlyZXNBdCJ8ChND",
"cmVhdGVUb2tlblJlc3BvbnNlEiEKDGNsaWVudF90b2tlbhgBIAEoCVILY2xp",
"ZW50VG9rZW4SQgoOYXV0aGVudGljYXRpb24YAiABKAsyGi5mbGlwdC5hdXRo",
"LkF1dGhlbnRpY2F0aW9uUg5hdXRoZW50aWNhdGlvbiJHChNBdXRob3JpemVV",
"UkxSZXF1ZXN0EhoKCHByb3ZpZGVyGAEgASgJUghwcm92aWRlchIUCgVzdGF0",
"ZRgCIAEoCVIFc3RhdGUiOwoUQXV0aG9yaXplVVJMUmVzcG9u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mF1dGguVmVyaWZ5",
"U2VydmljZUFjY291bnRSZXNwb25zZSIAMsEBCiFBdXRoZW50aWNhdGlvbk1l",
"dGhvZEdpdGh1YlNlcnZpY2USUwoMQXV0aG9yaXplVVJMEh8uZmxpcHQuYXV0",
"aC5BdXRob3JpemVVUkxSZXF1ZXN0GiAuZmxpcHQuYXV0aC5BdXRob3JpemVV",
"UkxSZXNwb25zZSIAEkcKCENhbGxiYWNrEhsuZmxpcHQuYXV0aC5DYWxsYmFj",
"a1JlcXVlc3QaHC5mbGlwdC5hdXRoLkNhbGxiYWNrUmVzcG9uc2UiAEIiWiBn",
"by5mbGlwdC5pby9mbGlwdC9ycGMvZmxpcHQvYXV0aGIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Flipt.Auth.Method), }, null, new pbr::GeneratedClrTypeInfo[] {
Expand All @@ -114,7 +114,7 @@ static AuthReflection() {
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.ListAuthenticationsResponse), global::Flipt.Auth.ListAuthenticationsResponse.Parser, new[]{ "Authentications", "NextPageToken" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.DeleteAuthenticationRequest), global::Flipt.Auth.DeleteAuthenticationRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.ExpireAuthenticationSelfRequest), global::Flipt.Auth.ExpireAuthenticationSelfRequest.Parser, new[]{ "ExpiresAt" }, new[]{ "ExpiresAt" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.CreateTokenRequest), global::Flipt.Auth.CreateTokenRequest.Parser, new[]{ "Name", "Description", "ExpiresAt" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.CreateTokenRequest), global::Flipt.Auth.CreateTokenRequest.Parser, new[]{ "Name", "Description", "ExpiresAt", "NamespaceKey" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.CreateTokenResponse), global::Flipt.Auth.CreateTokenResponse.Parser, new[]{ "ClientToken", "Authentication" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.AuthorizeURLRequest), global::Flipt.Auth.AuthorizeURLRequest.Parser, new[]{ "Provider", "State" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Flipt.Auth.AuthorizeURLResponse), global::Flipt.Auth.AuthorizeURLResponse.Parser, new[]{ "AuthorizeUrl" }, null, null, null, null),
Expand Down Expand Up @@ -2107,6 +2107,7 @@ public CreateTokenRequest(CreateTokenRequest other) : this() {
name_ = other.name_;
description_ = other.description_;
expiresAt_ = other.expiresAt_ != null ? other.expiresAt_.Clone() : null;
namespaceKey_ = other.namespaceKey_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -2152,6 +2153,18 @@ public string Description {
}
}

/// <summary>Field number for the "namespace_key" field.</summary>
public const int NamespaceKeyFieldNumber = 4;
private string namespaceKey_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string NamespaceKey {
get { return namespaceKey_; }
set {
namespaceKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -2170,6 +2183,7 @@ public bool Equals(CreateTokenRequest other) {
if (Name != other.Name) return false;
if (Description != other.Description) return false;
if (!object.Equals(ExpiresAt, other.ExpiresAt)) return false;
if (NamespaceKey != other.NamespaceKey) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -2180,6 +2194,7 @@ public override int GetHashCode() {
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Description.Length != 0) hash ^= Description.GetHashCode();
if (expiresAt_ != null) hash ^= ExpiresAt.GetHashCode();
if (NamespaceKey.Length != 0) hash ^= NamespaceKey.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -2210,6 +2225,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(26);
output.WriteMessage(ExpiresAt);
}
if (NamespaceKey.Length != 0) {
output.WriteRawTag(34);
output.WriteString(NamespaceKey);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -2232,6 +2251,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(26);
output.WriteMessage(ExpiresAt);
}
if (NamespaceKey.Length != 0) {
output.WriteRawTag(34);
output.WriteString(NamespaceKey);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -2251,6 +2274,9 @@ public int CalculateSize() {
if (expiresAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiresAt);
}
if (NamespaceKey.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NamespaceKey);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -2275,6 +2301,9 @@ public void MergeFrom(CreateTokenRequest other) {
}
ExpiresAt.MergeFrom(other.ExpiresAt);
}
if (other.NamespaceKey.Length != 0) {
NamespaceKey = other.NamespaceKey;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -2305,6 +2334,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(ExpiresAt);
break;
}
case 34: {
NamespaceKey = input.ReadString();
break;
}
}
}
#endif
Expand Down Expand Up @@ -2335,6 +2368,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(ExpiresAt);
break;
}
case 34: {
NamespaceKey = input.ReadString();
break;
}
}
}
}
Expand Down
Loading

0 comments on commit c78cfe5

Please sign in to comment.