コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    Resource = input.ReadString();
                    break;
                }

                case 18: {
                    if (policy_ == null)
                    {
                        policy_ = new global::Google.Cloud.Iam.V1.Policy();
                    }
                    input.ReadMessage(policy_);
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(Asset other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.AssetType.Length != 0)
     {
         AssetType = other.AssetType;
     }
     if (other.resource_ != null)
     {
         if (resource_ == null)
         {
             resource_ = new global::Google.Cloud.Asset.V1Beta1.Resource();
         }
         Resource.MergeFrom(other.Resource);
     }
     if (other.iamPolicy_ != null)
     {
         if (iamPolicy_ == null)
         {
             iamPolicy_ = new global::Google.Cloud.Iam.V1.Policy();
         }
         IamPolicy.MergeFrom(other.IamPolicy);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #3
0
        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: {
                    Resource = input.ReadString();
                    break;
                }

                case 18: {
                    if (policy_ == null)
                    {
                        Policy = new global::Google.Cloud.Iam.V1.Policy();
                    }
                    input.ReadMessage(Policy);
                    break;
                }
                }
            }
        }
コード例 #4
0
        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: {
                    Resource = input.ReadString();
                    break;
                }

                case 18: {
                    if (policy_ == null)
                    {
                        Policy = new global::Google.Cloud.Iam.V1.Policy();
                    }
                    input.ReadMessage(Policy);
                    break;
                }
                }
            }
    #endif
        }
コード例 #5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    AssetType = input.ReadString();
                    break;
                }

                case 26: {
                    if (resource_ == null)
                    {
                        Resource = new global::Google.Cloud.Asset.V1.Resource();
                    }
                    input.ReadMessage(Resource);
                    break;
                }

                case 34: {
                    if (iamPolicy_ == null)
                    {
                        IamPolicy = new global::Google.Cloud.Iam.V1.Policy();
                    }
                    input.ReadMessage(IamPolicy);
                    break;
                }

                case 82: {
                    ancestors_.AddEntriesFrom(input, _repeated_ancestors_codec);
                    break;
                }
                }
            }
        }
コード例 #6
0
ファイル: IamPolicy.cs プロジェクト: greggaba/GCDotNet
 public void MergeFrom(SetIamPolicyRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Resource.Length != 0)
     {
         Resource = other.Resource;
     }
     if (other.policy_ != null)
     {
         if (policy_ == null)
         {
             policy_ = new global::Google.Cloud.Iam.V1.Policy();
         }
         Policy.MergeFrom(other.Policy);
     }
 }
コード例 #7
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    AssetType = input.ReadString();
                    break;
                }

                case 26: {
                    if (resource_ == null)
                    {
                        resource_ = new global::Google.Cloud.Asset.V1Beta1.Resource();
                    }
                    input.ReadMessage(resource_);
                    break;
                }

                case 34: {
                    if (iamPolicy_ == null)
                    {
                        iamPolicy_ = new global::Google.Cloud.Iam.V1.Policy();
                    }
                    input.ReadMessage(iamPolicy_);
                    break;
                }
                }
            }
        }
コード例 #8
0
 public void MergeFrom(SetIamPolicyRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Resource.Length != 0)
     {
         Resource = other.Resource;
     }
     if (other.policy_ != null)
     {
         if (policy_ == null)
         {
             Policy = new global::Google.Cloud.Iam.V1.Policy();
         }
         Policy.MergeFrom(other.Policy);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }