-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate IAM API, with new Options type
- Loading branch information
Showing
2 changed files
with
248 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
186 changes: 186 additions & 0 deletions
186
apis/Google.Cloud.Iam.V1/Google.Cloud.Iam.V1/Options.cs
This file contains 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,186 @@ | ||
// <auto-generated> | ||
// Generated by the protocol buffer compiler. DO NOT EDIT! | ||
// source: google/iam/v1/options.proto | ||
// </auto-generated> | ||
#pragma warning disable 1591, 0612, 3021 | ||
#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 Google.Cloud.Iam.V1 { | ||
|
||
/// <summary>Holder for reflection information generated from google/iam/v1/options.proto</summary> | ||
public static partial class OptionsReflection { | ||
|
||
#region Descriptor | ||
/// <summary>File descriptor for google/iam/v1/options.proto</summary> | ||
public static pbr::FileDescriptor Descriptor { | ||
get { return descriptor; } | ||
} | ||
private static pbr::FileDescriptor descriptor; | ||
|
||
static OptionsReflection() { | ||
byte[] descriptorData = global::System.Convert.FromBase64String( | ||
string.Concat( | ||
"Chtnb29nbGUvaWFtL3YxL29wdGlvbnMucHJvdG8SDWdvb2dsZS5pYW0udjEa", | ||
"HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8iNAoQR2V0UG9saWN5T3B0", | ||
"aW9ucxIgChhyZXF1ZXN0ZWRfcG9saWN5X3ZlcnNpb24YASABKAVChAEKEWNv", | ||
"bS5nb29nbGUuaWFtLnYxQgxPcHRpb25zUHJvdG9QAVowZ29vZ2xlLmdvbGFu", | ||
"Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9pYW0vdjE7aWFt+AEBqgITR29v", | ||
"Z2xlLkNsb3VkLklhbS5WMcoCE0dvb2dsZVxDbG91ZFxJYW1cVjFiBnByb3Rv", | ||
"Mw==")); | ||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | ||
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, }, | ||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { | ||
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V1.GetPolicyOptions), global::Google.Cloud.Iam.V1.GetPolicyOptions.Parser, new[]{ "RequestedPolicyVersion" }, null, null, null) | ||
})); | ||
} | ||
#endregion | ||
|
||
} | ||
#region Messages | ||
/// <summary> | ||
/// Encapsulates settings provided to GetIamPolicy. | ||
/// </summary> | ||
public sealed partial class GetPolicyOptions : pb::IMessage<GetPolicyOptions> { | ||
private static readonly pb::MessageParser<GetPolicyOptions> _parser = new pb::MessageParser<GetPolicyOptions>(() => new GetPolicyOptions()); | ||
private pb::UnknownFieldSet _unknownFields; | ||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public static pb::MessageParser<GetPolicyOptions> Parser { get { return _parser; } } | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public static pbr::MessageDescriptor Descriptor { | ||
get { return global::Google.Cloud.Iam.V1.OptionsReflection.Descriptor.MessageTypes[0]; } | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
pbr::MessageDescriptor pb::IMessage.Descriptor { | ||
get { return Descriptor; } | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public GetPolicyOptions() { | ||
OnConstruction(); | ||
} | ||
|
||
partial void OnConstruction(); | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public GetPolicyOptions(GetPolicyOptions other) : this() { | ||
requestedPolicyVersion_ = other.requestedPolicyVersion_; | ||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public GetPolicyOptions Clone() { | ||
return new GetPolicyOptions(this); | ||
} | ||
|
||
/// <summary>Field number for the "requested_policy_version" field.</summary> | ||
public const int RequestedPolicyVersionFieldNumber = 1; | ||
private int requestedPolicyVersion_; | ||
/// <summary> | ||
/// Optional. The policy format version to be returned. | ||
/// Acceptable values are 0 and 1. | ||
/// If the value is 0, or the field is omitted, policy format version 1 will be | ||
/// returned. | ||
/// </summary> | ||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public int RequestedPolicyVersion { | ||
get { return requestedPolicyVersion_; } | ||
set { | ||
requestedPolicyVersion_ = value; | ||
} | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public override bool Equals(object other) { | ||
return Equals(other as GetPolicyOptions); | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public bool Equals(GetPolicyOptions other) { | ||
if (ReferenceEquals(other, null)) { | ||
return false; | ||
} | ||
if (ReferenceEquals(other, this)) { | ||
return true; | ||
} | ||
if (RequestedPolicyVersion != other.RequestedPolicyVersion) return false; | ||
return Equals(_unknownFields, other._unknownFields); | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public override int GetHashCode() { | ||
int hash = 1; | ||
if (RequestedPolicyVersion != 0) hash ^= RequestedPolicyVersion.GetHashCode(); | ||
if (_unknownFields != null) { | ||
hash ^= _unknownFields.GetHashCode(); | ||
} | ||
return hash; | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public override string ToString() { | ||
return pb::JsonFormatter.ToDiagnosticString(this); | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public void WriteTo(pb::CodedOutputStream output) { | ||
if (RequestedPolicyVersion != 0) { | ||
output.WriteRawTag(8); | ||
output.WriteInt32(RequestedPolicyVersion); | ||
} | ||
if (_unknownFields != null) { | ||
_unknownFields.WriteTo(output); | ||
} | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public int CalculateSize() { | ||
int size = 0; | ||
if (RequestedPolicyVersion != 0) { | ||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequestedPolicyVersion); | ||
} | ||
if (_unknownFields != null) { | ||
size += _unknownFields.CalculateSize(); | ||
} | ||
return size; | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public void MergeFrom(GetPolicyOptions other) { | ||
if (other == null) { | ||
return; | ||
} | ||
if (other.RequestedPolicyVersion != 0) { | ||
RequestedPolicyVersion = other.RequestedPolicyVersion; | ||
} | ||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); | ||
} | ||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
public void MergeFrom(pb::CodedInputStream input) { | ||
uint tag; | ||
while ((tag = input.ReadTag()) != 0) { | ||
switch(tag) { | ||
default: | ||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); | ||
break; | ||
case 8: { | ||
RequestedPolicyVersion = input.ReadInt32(); | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
#endregion | ||
|
||
} | ||
|
||
#endregion Designer generated code |