Skip to content

Commit

Permalink
feat: add ResourcePolicyMember to google/iam/v1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 699258514

Source-Link: googleapis/googleapis@1c69885

Source-Link: googleapis/googleapis-gen@01e3cd8
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuSWFtLlYxLy5Pd2xCb3QueWFtbCIsImgiOiIwMWUzY2Q4MDhjNGM1ZDE4MjYzNzU4MTkxNWQwOTExZGU2NmY3MDhkIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Nov 25, 2024
1 parent 15ac66e commit 3c1d048
Show file tree
Hide file tree
Showing 2 changed files with 299 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ internal static class PackageApiMetadata
yield return IamPolicyReflection.Descriptor;
yield return OptionsReflection.Descriptor;
yield return PolicyReflection.Descriptor;
yield return ResourcePolicyMemberReflection.Descriptor;
}
}
}
298 changes: 298 additions & 0 deletions apis/Google.Cloud.Iam.V1/Google.Cloud.Iam.V1/ResourcePolicyMember.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,298 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/iam/v1/resource_policy_member.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 Google.Cloud.Iam.V1 {

/// <summary>Holder for reflection information generated from google/iam/v1/resource_policy_member.proto</summary>
public static partial class ResourcePolicyMemberReflection {

#region Descriptor
/// <summary>File descriptor for google/iam/v1/resource_policy_member.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;

static ResourcePolicyMemberReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cipnb29nbGUvaWFtL3YxL3Jlc291cmNlX3BvbGljeV9tZW1iZXIucHJvdG8S",
"DWdvb2dsZS5pYW0udjEaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJv",
"dG8iZQoUUmVzb3VyY2VQb2xpY3lNZW1iZXISJgoZaWFtX3BvbGljeV9uYW1l",
"X3ByaW5jaXBhbBgBIAEoCUID4EEDEiUKGGlhbV9wb2xpY3lfdWlkX3ByaW5j",
"aXBhbBgCIAEoCUID4EEDQocBChFjb20uZ29vZ2xlLmlhbS52MUIZUmVzb3Vy",
"Y2VQb2xpY3lNZW1iZXJQcm90b1ABWiljbG91ZC5nb29nbGUuY29tL2dvL2lh",
"bS9hcGl2MS9pYW1wYjtpYW1wYqoCE0dvb2dsZS5DbG91ZC5JYW0uVjHKAhNH",
"b29nbGVcQ2xvdWRcSWFtXFYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V1.ResourcePolicyMember), global::Google.Cloud.Iam.V1.ResourcePolicyMember.Parser, new[]{ "IamPolicyNamePrincipal", "IamPolicyUidPrincipal" }, null, null, null, null)
}));
}
#endregion

}
#region Messages
/// <summary>
/// Output-only policy member strings of a Google Cloud resource's built-in
/// identity.
/// </summary>
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class ResourcePolicyMember : pb::IMessage<ResourcePolicyMember>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ResourcePolicyMember> _parser = new pb::MessageParser<ResourcePolicyMember>(() => new ResourcePolicyMember());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ResourcePolicyMember> Parser { get { return _parser; } }

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Cloud.Iam.V1.ResourcePolicyMemberReflection.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 ResourcePolicyMember() {
OnConstruction();
}

partial void OnConstruction();

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ResourcePolicyMember(ResourcePolicyMember other) : this() {
iamPolicyNamePrincipal_ = other.iamPolicyNamePrincipal_;
iamPolicyUidPrincipal_ = other.iamPolicyUidPrincipal_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ResourcePolicyMember Clone() {
return new ResourcePolicyMember(this);
}

/// <summary>Field number for the "iam_policy_name_principal" field.</summary>
public const int IamPolicyNamePrincipalFieldNumber = 1;
private string iamPolicyNamePrincipal_ = "";
/// <summary>
/// IAM policy binding member referring to a Google Cloud resource by
/// user-assigned name (https://google.aip.dev/122). If a resource is deleted
/// and recreated with the same name, the binding will be applicable to the new
/// resource.
///
/// Example:
/// `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string IamPolicyNamePrincipal {
get { return iamPolicyNamePrincipal_; }
set {
iamPolicyNamePrincipal_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

/// <summary>Field number for the "iam_policy_uid_principal" field.</summary>
public const int IamPolicyUidPrincipalFieldNumber = 2;
private string iamPolicyUidPrincipal_ = "";
/// <summary>
/// IAM policy binding member referring to a Google Cloud resource by
/// system-assigned unique identifier (https://google.aip.dev/148#uid). If a
/// resource is deleted and recreated with the same name, the binding will not
/// be applicable to the new resource
///
/// Example:
/// `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string IamPolicyUidPrincipal {
get { return iamPolicyUidPrincipal_; }
set {
iamPolicyUidPrincipal_ = 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 ResourcePolicyMember);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ResourcePolicyMember other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (IamPolicyNamePrincipal != other.IamPolicyNamePrincipal) return false;
if (IamPolicyUidPrincipal != other.IamPolicyUidPrincipal) 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 (IamPolicyNamePrincipal.Length != 0) hash ^= IamPolicyNamePrincipal.GetHashCode();
if (IamPolicyUidPrincipal.Length != 0) hash ^= IamPolicyUidPrincipal.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 (IamPolicyNamePrincipal.Length != 0) {
output.WriteRawTag(10);
output.WriteString(IamPolicyNamePrincipal);
}
if (IamPolicyUidPrincipal.Length != 0) {
output.WriteRawTag(18);
output.WriteString(IamPolicyUidPrincipal);
}
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 (IamPolicyNamePrincipal.Length != 0) {
output.WriteRawTag(10);
output.WriteString(IamPolicyNamePrincipal);
}
if (IamPolicyUidPrincipal.Length != 0) {
output.WriteRawTag(18);
output.WriteString(IamPolicyUidPrincipal);
}
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 (IamPolicyNamePrincipal.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(IamPolicyNamePrincipal);
}
if (IamPolicyUidPrincipal.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(IamPolicyUidPrincipal);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ResourcePolicyMember other) {
if (other == null) {
return;
}
if (other.IamPolicyNamePrincipal.Length != 0) {
IamPolicyNamePrincipal = other.IamPolicyNamePrincipal;
}
if (other.IamPolicyUidPrincipal.Length != 0) {
IamPolicyUidPrincipal = other.IamPolicyUidPrincipal;
}
_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: {
IamPolicyNamePrincipal = input.ReadString();
break;
}
case 18: {
IamPolicyUidPrincipal = 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: {
IamPolicyNamePrincipal = input.ReadString();
break;
}
case 18: {
IamPolicyUidPrincipal = input.ReadString();
break;
}
}
}
}
#endif

}

#endregion

}

#endregion Designer generated code

0 comments on commit 3c1d048

Please sign in to comment.